Adversarial Identity Injection for Semantic Face Image Synthesis
Giuseppe Tarollo, Tomaso Fontanini, Claudio Ferrari, Guido Borghi, Andrea Prati
TL;DR
This work tackles identity preservation in semantic face image synthesis by introducing a cross-attention-based CA^2SIS-inspired architecture that jointly leverages identity, style, and semantic cues. A pre-trained identity encoder supplies an identity embedding as an additional style input, coupled with an identity preservation loss, to strengthen identity fidelity in generated faces and enable identity swapping at inference. The approach is evaluated on CelebMask-HQ, showing improved identity preservation across multiple face-recognition models and enabling adversarial attacks that steer recognition toward a target identity, with attention maps revealing identity-influencing regions. Additionally, style-transfer experiments demonstrate that selective region swaps can enhance attack effectiveness while preserving human indistinguishability, highlighting important ethical considerations and the need for safeguards in biometric systems.
Abstract
Nowadays, deep learning models have reached incredible performance in the task of image generation. Plenty of literature works address the task of face generation and editing, with human and automatic systems that struggle to distinguish what's real from generated. Whereas most systems reached excellent visual generation quality, they still face difficulties in preserving the identity of the starting input subject. Among all the explored techniques, Semantic Image Synthesis (SIS) methods, whose goal is to generate an image conditioned on a semantic segmentation mask, are the most promising, even though preserving the perceived identity of the input subject is not their main concern. Therefore, in this paper, we investigate the problem of identity preservation in face image generation and present an SIS architecture that exploits a cross-attention mechanism to merge identity, style, and semantic features to generate faces whose identities are as similar as possible to the input ones. Experimental results reveal that the proposed method is not only suitable for preserving the identity but is also effective in the face recognition adversarial attack, i.e. hiding a second identity in the generated faces.
