Manuscript Offprint
arXiv:2610.39344PicturePerfect: Diffusion-based Same-identity Facial Replacement
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Manik Dhingra ✉, Yashesh Savani ✉, Mahesh Reddy, Antoine Mercier, Jiahe Liu, and Guillaume Berger
Qualcomm AI Research
{manidhin,ysavani,guilberg}@qti.qualcomm.com

Driving
Driving
Driving
Ours
Face-Adapter
Driving
Ours
Face-Adapter
Fig. 1: We present PicturePerfect, a diffusion-based identity preserving facial replacement approach. Prior methods like FaceAdapter [20] tend to alter the facial identity and lose realism on both in-distribution (ID) (left) and out-of-distribution (OOD) (right) face replacement tasks.
Abstract. With the growing success of diffusion models in computer vision, we explore their potential for same-identity facial replacement in photographs. Specifically, we propose a diffusion-based method, built on top of a pre-trained text-to-image model, that takes as input a portrait image of a person and a second reference image of the same individual, potentially captured under different conditions. The goal is to seamlessly replace the input face with the reference face, while keeping the background intact. Surprisingly, despite the clear real-world utility of this task, no recently published work has directly addressed face replacement in this specific setting. To support this goal, we construct a large dataset
- Equal contribution.
** Qualcomm AI Research is an initiative of Qualcomm Technologies, Inc.
M. Dhingra et al.
of image pairs depicting the same person under varying facial expressions and poses. Experimental results demonstrate that our approach produces more realistic and identity-consistent results than existing face reenactment models.
1 Introduction
Pasting a person's face onto another image and retouching it using traditional image editing software is a challenging task, particularly when the two images differ in viewpoint, illumination, background, hairstyle, or clothing. In this paper, we propose a diffusion-based approach, built on top of a pre-trained text-to-image model, that can effectively replace a subject's face in a photograph with one that matches the pose and expression from another image of the same individual—even in the presence of substantial variation in lighting, pose, or facial expression. A practical application involves replacing an unflattering facial appearance in a group photo with a more favorable one taken from another image, where the person may be smiling or posing more naturally.
An effective solution to this task must preserve the individual's identity, leave the background unaltered, and seamlessly incorporate the reference face into the original image. This is closely related to face reenactment, where a "source" face is morphed to match the pose and expression of a "driving" face. However, most reenactment methods are designed to support cross-identity generation, where the source and driving images may come from different people. While recent reenactment approaches leveraging pre-trained diffusion models, such as FaceAdapter [20], produce impressive cross-identity results, we observe that these methods often struggle to produce realistic and identity-preserving outputs that faithfully match the driving image. These methods typically rely on the source image alone to retain identity, which becomes a serious limitation in cases with expressions that deviate significantly from the driving image or extreme poses. As shown in Fig. 1, our method outperforms such approaches by leveraging the reference image more directly — since both images depict the same person, our model can effectively composite the driving face directly into the original photo, rather than attempting to hallucinate it from limited cues.
Our approach shares similarities with early work on automated face swapping [3, 4]. Like our method, these classical approaches rely heavily on the reference image by extracting and “pasting” the reference’s inner face into the original image after performing re-alignment and relighting. However, these methods typically involve complex pipelines composed of hand-engineered components whereas our approach relies on an end-to-end neural network trained specifically for this task.
Our key contributions are as follows:
– We construct a large-scale dataset of image pairs featuring the same individual under varying facial expressions and poses. We intend to release this dataset publicly.
– We propose a simple yet effective training strategy for extending pretrained text-to-image diffusion model to same-identity face replacement. Compared to prior works, our approach yields realistic, higher-quality outputs with better identity preservation.
– We demonstrate that methods tailored to same-identity generation significantly outperform existing techniques designed for general-purpose, cross-identity face reenactment.
Face Swapping. Recent face swapping approaches [2, 10, 29, 30, 33, 46, 61, 62, 75] focus on identity swapping, where the identity is altered while preserving pose, expression, and background. Since our work focuses on same-identity face replacement, these methods are related but not directly applicable to our setup.
Face Reenactment. Face reenactment methods are more closely aligned with our task, as they modify a source face to match the pose and expression of a driving image. Most methods are designed for cross-identity generations and therefore rely on intermediate representations that discard the identity of the driving image. Existing techniques can be broadly categorized into warping-based and 3DMM-based approaches. Warping-based methods [22, 23, 50–52, 55, 66, 73] use facial landmarks to transfer motion by warping the source image. These approaches perform well under small motions but degrade significantly with larger pose changes, often producing blurred or distorted outputs due to imprecise motion fields. In contrast, 3DMM-based methods [15, 16, 28, 44, 65] use 3D facial representations [13] and are usually more robust to larger pose variations. However, 3DMMs typically lack high-frequency details, such as hair, teeth, and eye motion. To address this, several works [5, 65] integrate adversarial generators like StyleGAN2 [27]. More recently, diffusion-based face reenactment methods have emerged. FADM [67] combines warping-based facial animation approaches [51, 55] with diffusion-based refinement. Face-Adapter [20], AniPortrait [57] and DiffusionAct [6] also leverage pre-trained diffusion models, but
M. Dhingra et al.
rely on keypoints for motion control. A related subcategory includes portrait animation models that require a driving video for motion control. Approaches such as FaceVid2Vid [55], X-Portrait [60], MegActor [63] and LivePortrait [19] fall into this class. Like their image-driven counterparts, these methods are designed for cross-identity reenactment and often struggle to preserve identity when the source image contains extreme expressions or poses. In contrast, our approach focuses on same-identity face replacement and does not require landmarks, 3DMMs, or auxiliary motion representation. Instead, we directly use a distorted version of the driving image itself to control the transformation.
Subject-driven Image Generation. IP-Adapter-FaceID [64] and Instant-ID [54] extend diffusion-based text-to-image models for subject-driven generation by conditioning on face identity embeddings extracted from external face encoders. Although effective for tasks such as identity interpolation or novel view synthesis, these methods often fail to reproduce the precise pose or expression of a driving image and may introduce unwanted background changes—limiting their applicability to our use case.
3 Method
3.1 Learning to Replace Faces in Photographs
Motivation. Our goal is to train a model that can replace a given source face with a driving face of the same individual, potentially captured under different conditions, while preserving the original background. Ideally, this task would require {source, driving, target} triplets, where the target image reflects the desired output. However, to the best of our knowledge, no such dataset exists.
Instead, face reenactment models are typically trained on {source, target} pairs extracted from video frames, where the target image also implicitly serves as the driving signal. Using the full target image directly as input would amount to giving the model access to the ground truth, leading to trivial solutions where the model simply reproduces the target image verbatim. To avoid this, existing methods rely on intermediate representations derived from the target, such as keypoints or learned embeddings. These representations intentionally discard most of the low-level information present in the driving image to prevent trivial copying and allow generalization to driving images depicting different individuals or captured under different conditions.
While such representations are necessary for cross-identity reenactment, they are less suitable for same-identity scenarios. As a result, current face reenactment models must rely heavily on the source image to preserve identity and frequently fail to generate realistic, identity-consistent results that faithfully match the driving image.
Proposed Representation for the Driving Image. To address this limitation, we propose using a distorted version of the inner face region from the target image as the driving signal. This simple yet effective strategy provides

Fig. 2: PicturePerfect network overview: Given a source (s) and target (tg) image pair, we extract the driving image (d) by segmenting the face from the target image. To simulate real-world variations, we apply data augmentations such as scaling, rotation, translation, and relighting. The image triplet is then encoded using the SDXL [42] VAE to obtain latent representations and concatenated spatially.
strong supervision for preserving the facial attributes of the driving image while preventing the model from trivially copying the target.
We begin by segmenting the inner face to exclude the background, ensuring that the model does not rely on the driving signal for this part. This is particularly important for enabling generalization to driving images from external sources, which may contain entirely different backgrounds. We then apply a series of augmentations to the segmented face, including color jittering, grayscale conversion, horizontal flipping, and affine transformations (e.g., translation, rotation, and scaling). Additionally, we leverage a relighting module to introduce artificial shadows and lighting variations. These augmentations help the model generalize to images captured under diverse illumination conditions. We feed the obtained distorted face alongside the source image to the model, and train it to reconstruct the original target image from a degraded version of its inner face (and the source image), effectively learning to reverse the applied augmentations. More details on the data augmentation pipeline are provided in Sec. 4.
Model Architecture. Our diffusion model, illustrated in Fig. 2, is based on SDXL [42]. To condition the model on both the source and driving images, we concatenate the source image, the distorted driving image, and the noisy latent along the width axis before feeding them into the model, taking inspiration from [35, 49]. We experiment with alternative conditioning strategies, including channel-wise concatenation and ControlNet-style [69] adapter modules, but found spatial concatenation to yield the best performance for this task.
M. Dhingra et al.
3.2 The PicturePerfect Dataset
Existing Datasets Most face reenactment models are trained using video-based face datasets, where two frames are randomly sampled to serve as source and target images. A common choice are the VoxCeleb datasets (VoxCeleb1 [37] and VoxCeleb2 [11]), which consist of interview videos crawled from YouTube. However, VoxCeleb was originally created for speech-related tasks, where visual fidelity is not a priority. As a result, a significant portion of the VoxCeleb videos are low-resolution, and most clips depict individuals talking, with minimal variation in pose or expression throughout. Consequently, randomly sampling two frames often results in pairs with similar facial attributes.
Although more recent datasets such as TalkingHead-1KH [55], VFHQ [59] and CelebV-HQ [74] offer higher visual quality, they remain heavily biased toward “talking heads” footage crawled from YouTube. Other datasets, such as MEAD [53], FaceForensics [47], and UvA-NEMO [14], are typically reserved for evaluation due to their smaller size or lack of identity diversity.
Proposed Dataset. To address these limitations, we introduce the PicturePerfect dataset—a large-scale collection comprising approximately 500,000 images spanning over 6,724 unique identities, and from which more than 10 million distinct source-target pairs can be sampled. Sample images from our dataset are shown in Fig. 3. Each face in our dataset is available under 21 distinct poses and expressions, including a neutral image (row 1) and 20 expressive variants generated using a face animation model (rows 2-4). To construct the dataset, we leverage an internal face video dataset and LivePortrait [19], a model capable of animating a face based on a driving video. We begin by extracting 25,000 neutral faces from our internal dataset, each depicting a person facing the camera with a neutral expression and direct eye contact. We then manually select 200 neutral-to-expressive driving videos, chosen to cover a wide range of facial expressions and head poses. Each neutral face is animated 20 times, each time using a randomly selected driving video, and we retain only the final frame of each animation. This yields 20 expressive images sharing the same background and visual identity as the neutral source.
All images are standardized to high resolution . We further generate descriptive captions for each image using LLaVA v1.5–7B [32]. During training, we randomly sample two images from these sets of 21 (1 neutral + 20 expressive) to form source-target pairs. From each set of 21 images, up to 420 unique source-target combinations can be sampled (excluding self-pairs). With 25,000 such sets, this results in over 10 million unique source-target pairs available for training.
Our dataset captures broad diversity across gender identities, skin tones, and environmental conditions—from dimly lit settings to brightly illuminated scenes, and from close-ups to wide shots. Examples of driving videos used in animation are illustrated in the supplementary material. These include a variety of expressions (e.g., “make a funny face”, “smile with mouth opened”, “stick your tongue out", "make a sad face") and head movements (e.g., "look left", "tilt your head upward").

Fig. 3: PicturePerfect dataset samples. For each neutral face (top row), we generate 20 expressive variants using a face animation model [19]. For visualization purposes, we display three randomly sampled expressive variants per neutral face.
Compared to sampling two random frames from the same video, our synthetic data generation pipeline allows finer control over dataset composition. For instance, we deliberately oversample driving videos featuring subtle variations of smiling, resulting in expressive faces that appear to be “posing for the camera”—a scenario that is particularly useful for photographic applications such as replacing an unflattering expression in a group photo with a more favorable one from another image. Such “posed” expressions are rare in existing video-based face datasets, which are typically crawled from YouTube interviews and dominated by conversational or neutral expressions. Another advantage is that, during training, source–target pairs can be selected from dissimilar driving videos to increase task difficulty and model robustness.
4 Experiments
4.1 Implementation Details
Training Hyperparameters. We fine-tune the pre-trained SDXL model [42] for 25,000 iterations on our proposed dataset (Sec. 3.2). Training is performed
M. Dhingra et al.

Fig. 4: Face Replacement (in-distribution). Our method produces high-quality, realistic reconstructions with stronger identity preservation by leveraging both the source and masked driving image (red inset), outperforming other approaches for diverse identities.

Fig. 5: Face Replacement (out-of-distribution). Our method demonstrates strong generalization for a wide range of facial poses, expressions, identities, and lighting conditions. Moreover, it effectively generates reenacted source images that preserve the subject's identity. Rows 1-3 showcase results on authentic image-pairs from the PicturePerfect test-set, while row 4 contains results on synthetic images.
on 8 NVIDIA A100 GPUs with an effective batch size of 64. We use the Adam optimizer with a learning rate of , , and .
Data Augmentation. Before fine-tuning, we extract segmentation masks for the target image using SegFormer [58]. During training, these masks are used to isolate the inner face region and exclude the background. To improve robustness,
Table 1: Quantitative comparison with prior approaches using ArcFace CSIM [12], FID, pose (APD) [31], expression (AED) [31], gaze (AGD) [5] errors, LPIPS [70], and PSNR. Best scores are highlighted in blue, and second-best are underlined. FFHQ and VoxCeleb2 samples are generated with LivePortrait, while PicturePerfect uses curated real-world pairs. Baselines with unreliable FID scores are marked as (—).
| Replacement in-distribution (ID) | |||||||
|---|---|---|---|---|---|---|---|
| FFHQ + VoxCeleb2 (LivePortrait) | |||||||
| Methods | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ | LPIPS↓ | PSNR↑ |
| DAM | 0.500 | 24.86 | 2.90 | 12.45 | 21.66 | ||
| FADM | 0.477 | 48.42 | 2.98 | 0.2643 | 13.41 | 0.0455 | 20.09 |
| IP-Adapter | 0.282 | 3.07 | 0.2804 | 18.19 | 0.0886 | 15.40 | |
| FaceAdapter | 0.369 | — | 2.99 | 0.2636 | 11.64 | 0.1127 | 10.43 |
| HyperReenact | 0.405 | — | 3.04 | 0.2914 | 11.22 | 0.1038 | 13.69 |
| LivePortrait | — | 0.2740 | |||||
| Ours | 0.818 | 7.81 | 0.2592 | 5.95 | 0.0640 | 19.17 | |
| Replacement out-of-distribution (OOD) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| PicturePerfect (Real) | VoxCeleb2 (LivePortrait) | |||||||||
| Methods | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ |
| DAM | 0.350 | 55.16 | 2.61 | 0.2222 | 15.29 | 0.246 | 38.51 | 15.59 | ||
| FADM | 0.342 | 74.98 | 2.66 | 0.2252 | 16.51 | 0.219 | 61.76 | 3.01 | 0.2490 | 16.45 |
| IP-Adapter | 0.275 | 0.2666 | 16.59 | 0.214 | 3.14 | 0.2761 | 23.13 | |||
| FaceAdapter | 0.343 | — | 2.53 | 0.207 | — | 3.06 | 0.3104 | 14.61 | ||
| HyperReenact | — | 2.25 | 0.1999 | 11.52 | — | 3.34 | 0.3235 | 11.99 | ||
| Ours | 0.631 | 28.08 | 2.50 | 0.2262 | 9.87 | 0.579 | 12.44 | 2.78 | 0.2366 | |
we randomly include optional regions such as hair and neck in the mask. The resulting mask is further refined by applying morphological erosion with a kernel size randomly sampled from the range [0, 30], helping to remove background spillover near the face boundary. To make the model robust to varying lighting conditions, we relight the inner face using NeuralGaffer [25], with environment lighting sourced from the PolyHaven dataset [43]. The relit inner face is then subjected to a series of augmentations. Finally, the source image, the augmented inner face, and the target image are resized to and encoded using the VAE module [42] associated with SDXL. These representations are concatenated along the spatial axis and provided as input to the model. During training, captions are randomly dropped for of the samples to improve robustness to missing text conditioning.
Evaluation Datasets. Following standard practices in face reenactment, we evaluate our model under two settings: (1) in-distribution (ID), where the driving and source images are captured moments apart—for example, in burst-mode photo sequences— and (2) out-of-distribution (OOD), where the driving image shows the same person under different conditions, for instance when pictures are
M. Dhingra et al.

Fig. 6: User study: Replacement ID and OOD. Participants were asked to mark {source, output} pairs as “real” or “fake” based on perceptual quality. We report the proportion of images marked as “real” for each approach. The error bars represent the standard error of the mean (SEM).
taken at different times under varying background and lighting conditions. For the replacement-ID setting, we use 5,000 test images each from FFHQ and Vox-Celeb2, all of which are synthesized using the LivePortrait animation pipeline to ensure consistency and controlled variations. As for the replacement-OOD setting, we use 5,000 test samples each from PicturePerfect (Sec. 3.2) and Vox-Celeb2. To generate the PicturePerfect test-set on the OOD setup, instead of using LivePortrait, two random frames were captured from two separate video submissions by the same crowd-worker to evaluate model robustness and generalizability on real-world data.
Baselines. We compare our model against five face reenactment approaches: DAM [52], FADM [67], Face-Adapter [20], HyperReenact [5], and LivePortrait [19], as well as one subject-driven image generation baseline, based on IP-Adapter [64]. LivePortrait is excluded from the OOD setting due to the absence of driving videos compatible with this setup. In the ID setting, we simulate a two-frame video by treating the source and driving images as sequential frames. For the IP-Adapter baseline, we use a dual-adapter SDXL configuration, with each adapter conditioned on a CLIP embedding of the source image and driving image respectively (more details are available in the supplementary material). For the other baselines, we use the official implementations provided by the authors.
Metrics. We evaluate identity preservation using CSIM, overall image quality with PSNR, LPIPS, and FID [21]. Following prior work on face reenactment and portrait animation, we additionally report Average Expression Distance (AED) [31], Average Pose Distance (APD) [31], and Average Gaze Distance (AGD) [5], which measure discrepancies in facial expression, head pose, and gaze direction between generated and target images, respectively.
4.2 Results
Replacement in-distribution (ID). Fig. 4 shows a qualitative comparison of replacement-ID results across all methods. Our approach achieves higher re-construction quality in most examples, producing identity-consistent outputs. In contrast, methods such as DAM, FADM, Face-Adapter, HyperReenact, and LivePortrait primarily rely on the source image for identity, resulting in poor reconstruction quality when the source is in a non-frontal pose (e.g., rows 1 and 3). IP-Adapter, meanwhile, struggles to produce realistic outputs that accurately match the driving image and often fails to preserve the original background.
Tab. 1 reports quantitative comparisons of replacement-ID performance. Our method outperforms prior approaches on most metrics, with particularly strong results in CSIM, FID, and AGD. Although some baselines achieve better scores on LPIPS and PSNR, these metrics often favor overly smooth or blurry reconstructions over perceptual fidelity (see supplementary material for more details).
Replacement out-of-distribution (OOD). The results for visual comparison of the replacement-OOD are provided in Fig. 5. Compared to prior methods, our approach consistently achieves identity-preserving outputs, even under challenging conditions such as exaggerated expressions in the driving images. Generative baselines like FaceAdapter, IP-Adapter, and HyperReenact struggle with identity preservation and often introduce undesirable alterations to the background of the source image. Landmark-based methods such as DAM and FADM are limited by the low identity information contained in facial landmarks and also face difficulties handling large motion differences between the source and driving images, resulting in blurry or low-quality outputs.
As shown in Tab. 1, our proposed method quantitatively outperforms all baseline approaches across key evaluation metrics, demonstrating its effectiveness in leveraging facial features from the driving image for accurate face replacement. Furthermore, results on the OOD setup showcase that our solution generalizes well on both synthetic as well as real-world data.

Source
Driving
Ours
No Relighting
Fig. 7: Ablation study: Effects of Relighting. Without relighting, lighting artifacts from the driving image often leak into the output. Incorporating random relighting into the data augmentation pipeline produces significantly more realistic and consistent illumination.
M. Dhingra et al.

Fig. 8: Ablation study. We evaluate replacing spatial to channel-wise concatenation, swapping SDXL to SDv1.5, as well as disabling relighting, all data augmentations and inner face extraction.
User Study. As part of our quantitative evaluation, we conducted a user study involving ten participants. Each participant reviewed a total of 252 and 175 outputs for ID and OOD face replacement tasks respectively. For each example, participants were shown the source image alongside the model's output and asked to label the result as either "real" or "fake" based on photorealism and perceptual quality. As shown in Fig. 6, participants judged our model's outputs to be realistic in 59% of replacement-ID cases and 44% of replacement-OOD cases—substantially outperforming other baselines.
4.3 Ablation Study
We conduct a series of ablation studies to evaluate key components of our proposed pipeline. Fig. 8 shows visual comparisons for different configurations, and quantitative results for a subset of ablations are reported in Tab. 2. The quantitative metrics for the remaining ablation studies were omitted because the numerical results were counter-intuitive when compared to their corresponding qualitative outputs (as shown in Fig. 8). The visual quality of the ablation variants is clearly inferior to that of our final model, however, when computing standard quantitative metrics on these outputs, the scores misleadingly suggested better performance than the proposed solution—an inconsistency that does not align with the observed qualitative degradation. We further discuss this sensitivity and the limitations of current quantitative metrics relative to perceptual quality in the supplementary material.
Our key findings are as follows: Using the target image directly as the driving input results in a degenerate solution in which the model simply reproduces the driving image. Removing all data augmentations severely degrades performance, effectively pasting the driving face onto the source with minimal adjustment in color or structure. Removing relighting introduces “lighting leakage” artifacts—i.e., the model fails to adjust illumination and retains lighting effects from the driving image. Additional results for the no-relighting condition are shown in Fig. 7. Channel-wise concatenation leads to consistently poorer performance across all metrics and produces visual artifacts, particularly around fine
Table 2: Ablation study. We compare spatial versus channel-wise concatenation of the input images and assess the performance with SDv1.5 as the backbone UNet architecture [45]. We report the main ablation results here and defer the remaining variants to the supplementary material.
| Replacement in-distribution (ID) | |||||||
|---|---|---|---|---|---|---|---|
| FFHQ + VoxCeleb2 (LivePortrait) | |||||||
| Methods | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ | LPIPS↓ | PSNR↑ |
| Ours | 0.818 | 7.81 | 2.81 | 0.2592 | 5.95 | 0.0640 | 19.17 |
| Channel-wise | 0.689 | 55.19 | 3.67 | 0.3542 | 6.18 | 0.0831 | 16.11 |
| SDv1.5 | 0.776 | 9.90 | 2.87 | 0.2620 | 6.58 | 0.0564 | 17.55 |
| Replacement out-of-distribution (OOD) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| PicturePerfect (Real) | VoxCeleb2 (LivePortrait) | |||||||||
| Methods | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ |
| Ours | 0.631 | 28.08 | 2.50 | 0.2262 | 9.87 | 0.579 | 12.44 | 2.78 | 0.2366 | 12.78 |
| Channel-wise | 0.618 | 80.70 | 3.37 | 0.3113 | 8.47 | 0.548 | 62.26 | 3.69 | 0.3418 | 11.80 |
| SDv1.5 | 0.655 | 30.98 | 2.50 | 0.2164 | 9.71 | 0.576 | 12.96 | 2.84 | 0.2413 | 13.19 |
details such as the teeth. As expected, using SDv1.5 [45] results in slightly lower overall performance. While the SDv1.5-based variant occasionally preserves the pose of the source image more accurately, it tends to produce oversaturated color compositions and lower-quality facial details.
5 Discussion and Conclusion
We have introduced PicturePerfect, a diffusion-based method for realistic, same-identity facial replacement in photographs. Our approach leverages a pre-trained text-to-image model and a simple but effective training strategy: by feeding the model a distorted version of the target image as the driving signal, we encourage it to rely on the driving image's expression and pose. As a result, the model learns to composite the driving face on the source image while preserving the subject's identity and background. Experimental results demonstrate that our method outperforms existing face reenactment and subject-driven generation techniques on both in- and out-of-distribution face replacement settings. A key part of this work is the PicturePerfect dataset, a large-scale collection of high-quality same-identity image pairs that exhibit diverse facial expressions, poses, and illumination conditions. To support further research, we will release this dataset publicly. A particularly compelling application of our method, illustrated in Fig. 9, lies in real-world composite group photo editing, where users can replace unflattering expressions in a group shot with better alternatives from other photos of the same individual, allowing a level of post hoc control difficult to achieve with prior approaches.
M. Dhingra et al.
Source Composite
Photograph
Target faces (from photos captured in burst mode)

Source faces
(extracted from source composite photograph)
Final Edited Composite Photograph
Fig. 9: Real-world simulation of composite picture editing (“burst” mode reconstruction). Each one of the source faces is individually edited using the corresponding target face as the driving image. The model automatically adjusts for orientation, head pose, and blending issues to naturally fit the source composite photograph.
Although our method produces high-quality and perceptually realistic results, it is not without limitations. Despite demonstrating strong generalization on the OOD face replacement task, the predominance of LivePortrait-generated data in the training set may bias the model toward the LivePortrait data distribution. Artifacts may appear in fine details such as hair or around the eyes, and performance degrades when the driving face is extremely small or large, likely due to encoding challenges. An interesting future research direction could explore better head pose control by conditioning the model on keypoints or learned facial embeddings. Because our model is trained specifically for same-identity face replacement, it is not designed to handle cross-identity scenarios. Nonetheless, we include qualitative results in the supplementary material to illustrate how the model behaves in such cases: some outputs transfer identity, while others transfer only expression. These observations highlight interesting directions for future work on disentangling identity and expression.
References
-
Avrahami, O., Fried, O., Lischinski, D.: Blended latent diffusion. TOG (2023)
-
Baliah, S., Lin, Q., Liao, S., Liang, X., Khan, M.H.: Realistic and efficient face swapping: A unified approach with diffusion models. In: 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV). pp. 1062–1071. IEEE (2025)
-
Bitouk, D., Kumar, N., Dhillon, S., Belhumeur, P., Nayar, S.K.: Face swapping: automatically replacing faces in photographs. In: ACM SIGGRAPH 2008 papers, pp. 1–8 (2008)
-
Blanz, V., Scherbaum, K., Vetter, T., Seidel, H.P.: Exchanging faces in images. Computer Graphics Forum 23 (2004), https://api.semanticscholar.org/CorpusID:2803614
-
Bounareli, S., Tzelepis, C., Argyriou, V., Patras, I., Tzimiropoulos, G.: Hyperreenact: one-shot reenactment via jointly learning to refine and retarget faces. In: ICCV (2023)
-
Bounareli, S., Tzelepis, C., Argyriou, V., Patras, I., Tzimiropoulos, G.: Diffusionact: Controllable diffusion autoencoder for one-shot face reenactment. arXiv preprint arXiv:2403.17217 (2024)
-
Brack, M., Friedrich, F., Kornmeier, K., Tsaban, L., Schramowski, P., Kersting, K., Passos, A.: Ledits++: Limitless image editing using text-to-image models. In: CVPR (2024)
-
Brooks, T., Holynski, A., Efros, A.A.: Instructpix2pix: Learning to follow image editing instructions. In: CVPR (2023)
-
Cao, M., Wang, X., Qi, Z., Shan, Y., Qie, X., Zheng, Y.: Masactrl: Tuning-free mutual self-attention control for consistent image synthesis and editing. In: ICCV (2023)
-
Chen, R., Chen, X., Ni, B., Ge, Y.: Simswap: An efficient framework for high fidelity face swapping. In: Proceedings of the 28th ACM international conference on multimedia. pp. 2003–2011 (2020)
-
Chung, J.S., Nagrani, A., Zisserman, A.: Voxceleb2: Deep speaker recognition. arXiv preprint arXiv:1806.05622 (2018)
-
Deng, J., Guo, J., Yang, J., Xue, N., Kotsia, I., Zafeiriou, S.: Arcface: Additive angular margin loss for deep face recognition (2022)
-
Deng, Y., Yang, J., Xu, S., Chen, D., Jia, Y., Tong, X.: Accurate 3d face reconstruction with weakly-supervised learning: From single image to image set. In: CVPRW (2019)
-
Dibeklioğlu, H., Salah, A.A., Gevers, T.: Are you really smiling at me? spontaneous versus posed enjoyment smiles. In: ECCV (2012)
-
Ding, Z., Zhang, X., Xia, Z., Jebe, L., Tu, Z., Zhang, X.: Diffusionrig: Learning personalized priors for facial appearance editing. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 12736–12746 (2023)
-
Doukas, M.C., Zafeiriou, S., Sharmanska, V.: Headgan: One-shot neural head synthesis and editing. In: ICCV (2021)
-
Esler, T.: Face recognition using pytorch. https://github.com/timesler/facenet-pytorch, accessed: 2025-04-25
-
Google: Google best take (2025), https://store.google.com/intl/en/ideas/articles/pixel-best-take/
-
Guo, J., Zhang, D., Liu, X., Zhong, Z., Zhang, Y., Wan, P., Zhang, D.: Liveportrait: Efficient portrait animation with stitching and retargeting control. arXiv preprint arXiv:2407.03168 (2024)
M. Dhingra et al.
-
Han, Y., Zhu, J., He, K., Chen, X., Ge, Y., Li, W., Li, X., Zhang, J., Wang, C., Liu, Y.: Face-adapter for pre-trained diffusion models with fine-grained id and attribute control. In: ECCV (2024)
-
Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., Hochreiter, S.: Gans trained by a two time-scale update rule converge to a local nash equilibrium (2017)
-
Hong, F.T., Xu, D.: Implicit identity representation conditioned memory compensation network for talking head video generation. In: ICCV (2023)
-
Hong, F.T., Zhang, L., Shen, L., Xu, D.: Depth-aware generative adversarial network for talking head video generation. In: CVPR (2022)
-
Huawei: Huawei ai best expression (2025), https://consumer.huawei.com/my/community/details/topicId-184693/
-
Jin, H., Li, Y., Luan, F., Xiangli, Y., Bi, S., Zhang, K., Xu, Z., Sun, J., Snavely, N.: Neural gaffer: Relighting any object via diffusion (2024)
-
Karras, T., Laine, S., Aila, T.: A style-based generator architecture for generative adversarial networks. In: CVPR (2019)
-
Karras, T., Laine, S., Aittala, M., Hellsten, J., Lehtinen, J., Aila, T.: Analyzing and improving the image quality of stylegan. In: CVPR (2020)
-
Kim, H., Garrido, P., Tewari, A., Xu, W., Thies, J., Niessner, M., Pérez, P., Richardt, C., Zollhöfer, M., Theobalt, C.: Deep video portraits. ACM TOG (2018)
-
Kim, K., Kim, Y., Cho, S., Seo, J., Nam, J., Lee, K., Kim, S., Lee, K.: Difface: Diffusion-based face swapping with facial guidance. Pattern Recognition 163, 111451 (2025)
-
Li, L., Bao, J., Yang, H., Chen, D., Wen, F.: Faceshifter: Towards high fidelity and occlusion aware face swapping. arXiv preprint arXiv:1912.13457 (2019)
-
Lin, C.Z., Lindell, D.B., Chan, E.R., Wetzstein, G.: 3d gan inversion for controllable portrait image animation. arXiv preprint arXiv:2203.13441 (2022)
-
Liu, H., Li, C., Li, Y., Lee, Y.J.: Improved baselines with visual instruction tuning. In: CVPR (2024)
-
Liu, Z., Li, M., Zhang, Y., Wang, C., Zhang, Q., Wang, J., Nie, Y.: Fine-grained face swapping via regional gan inversion. In: CVPR (2023)
-
Meng, C., He, Y., Song, Y., Song, J., Wu, J., Zhu, J.Y., Ermon, S.: Sdedit: Guided image synthesis and editing with stochastic differential equations. In: ICLR (2022)
-
Mercier, A., Nakhli, R., Reddy, M., Yasarla, R., Cai, H., Porikli, F., Berger, G.: Hexagen3d: stablediffusion is just one step away from fast and diverse text-to-3d generation. arXiv preprint arXiv:2401.07727 (2024)
-
Mokady, R., Hertz, A., Aberman, K., Pritch, Y., Cohen-Or, D.: Null-text inversion for editing real images using guided diffusion models. In: CVPR (2023)
-
Nagrani, A., Chung, J.S., Zisserman, A.: Voxceleb: a large-scale speaker identification dataset. arXiv preprint arXiv:1706.08612 (2017)
-
Nichol, A., Dhariwal, P., Ramesh, A., Shyam, P., Mishkin, P., McGrew, B., Sutskever, I., Chen, M.: Glide: Towards photorealistic image generation and editing with text-guided diffusion models. arXiv preprint arXiv:2112.10741 (2021)
-
OnePlus: Oneplus ai best face (2025), https://www.oneplus.com/global/nord-4
-
Oppo: Oppo ai perfect shot (2025), https://www.oppo.com/en/smartphones/series-reno/reno14/
-
Parmar, G., Kumar Singh, K., Zhang, R., Li, Y., Lu, J., Zhu, J.Y.: Zero-shot image-to-image translation (2023)
-
Podell, D., English, Z., Lacey, K., Blattmann, A., Dockhorn, T., Müller, J., Penna, J., Rombach, R.: Sdxl: Improving latent diffusion models for high-resolution image synthesis. In: ICLR (2024)
-
PolyHaven: Polyhaven (2025), https://polyhaven.com/
-
Ren, Y., Li, G., Chen, Y., Li, T.H., Liu, S.: Pirenderer: Controllable portrait image generation via semantic neural rendering. In: ICCV (2021)
-
Rombach, R., Blattmann, A., Lorenz, D., Esser, P., Ommer, B.: High-resolution image synthesis with latent diffusion models. In: CVPR (2022)
-
Roop-Unleased: Roop unleashed: Free face swap tool for images & videos (2025), https://www.roopunleased.com/
-
Rössler, A., Cozzolino, D., Verdoliva, L., Riess, C., Thies, J., Nießner, M.: Face-forensics: A large-scale video dataset for forgery detection in human faces. arXiv preprint arXiv:1803.09179 (2018)
-
Seedream, T., Chen, Y., Gao, Y., Gong, L., Guo, M., Guo, Q., Guo, Z., Hou, X., Huang, W., Huang, Y., et al.: Seedream 4.0: Toward next-generation multimodal image generation. arXiv preprint arXiv:2509.20427 (2025)
-
Shi, Y., Wang, P., Ye, J., Long, M., Li, K., Yang, X.: Mvdream: Multi-view diffusion for 3d generation. arXiv preprint arXiv:2308.16512 (2023)
-
Siarohin, A., Lathuilière, S., Tulyakov, S., Ricci, E., Sebe, N.: Animating arbitrary objects via deep motion transfer. In: CVPR (2019)
-
Siarohin, A., Lathuilière, S., Tulyakov, S., Ricci, E., Sebe, N.: First order motion model for image animation (2019)
-
Tao, J., Wang, B., Xu, B., Ge, T., Jiang, Y., Li, W., Duan, L.: Structure-aware motion transfer with deformable anchor model. In: CVPR (2022)
-
Wang, K., Wu, Q., Song, L., Yang, Z., Wu, W., Qian, C., He, R., Qiao, Y., Loy, C.C.: Mead: A large-scale audio-visual dataset for emotional talking-face generation. In: ECCV (2020)
-
Wang, Q., Bai, X., Wang, H., Qin, Z., Chen, A.: Instantid: Zero-shot identity-preserving generation in seconds. arXiv preprint arXiv:2401.07519 (2024)
-
Wang, T.C., Mallya, A., Liu, M.Y.: One-shot free-view neural talking-head synthesis for video conferencing. In: CVPR (2021)
-
Wei, C., Xiong, Z., Ren, W., Du, X., Zhang, G., Chen, W.: Omniedit: Building image editing generalist models through specialist supervision. In: ICLR (2024)
-
Wei, H., Yang, Z., Wang, Z.: Aniportrait: Audio-driven synthesis of photorealistic portrait animation. arXiv preprint arXiv:2403.17694 (2024)
-
Xie, E., Wang, W., Yu, Z., Anandkumar, A., Alvarez, J.M., Luo, P.: Segformer: Simple and efficient design for semantic segmentation with transformers (2021)
-
Xie, L., Wang, X., Zhang, H., Dong, C., Shan, Y.: Vfhq: A high-quality dataset and benchmark for video face super-resolution. In: CVPRW (2022)
-
Xie, Y., Xu, H., Song, G., Wang, C., Shi, Y., Luo, L.: X-portrait: Expressive portrait animation with hierarchical motion attention. In: ACM TOG (2024)
-
Xu, C., Zhang, J., Hua, M., He, Q., Yi, Z., Liu, Y.: Region-aware face swapping. In: CVPR (2022)
-
Xu, Z., Hong, Z., Ding, C., Zhu, Z., Han, J., Liu, J., Ding, E.: Mobilefaceswap: A lightweight framework for video face swapping. In: AAAI (2022)
-
Yang, S., Li, H., Wu, J., Jing, M., Li, L., Ji, R., Liang, J., Fan, H.: Megac-tor: Harness the power of raw video for vivid portrait animation. arXiv preprint arXiv:2405.20851 (2024)
-
Ye, H., Zhang, J., Liu, S., Han, X., Yang, W.: Ip-adapter: Text compatible image prompt adapter for text-to-image diffusion models (2023)
-
Yin, F., Zhang, Y., Cun, X., Cao, M., Fan, Y., Wang, X., Bai, Q., Wu, B., Wang, J., Yang, Y.: Styleheat: One-shot high-resolution editable talking face generation via pre-trained stylegan. In: ECCV (2022)
M. Dhingra et al.
-
Zakharov, E., Shysheya, A., Burkov, E., Lempitsky, V.: Few-shot adversarial learning of realistic neural talking head models. In: ICCV (2019)
-
Zeng, B., Liu, X., Gao, S., Liu, B., Li, H., Liu, J., Zhang, B.: Face animation with an attribute-guided diffusion model. In: CVPR (2023)
-
Zhang, K., Mo, L., Chen, W., Sun, H., Su, Y.: Magicbrush: A manually annotated dataset for instruction-guided image editing (2023)
-
Zhang, L., Rao, A., Agrawala, M.: Adding conditional control to text-to-image diffusion models. In: ICCV (2023)
-
Zhang, R., Isola, P., Efros, A.A., Shechtman, E., Wang, O.: The unreasonable effectiveness of deep features as a perceptual metric. In: CVPR (2018)
-
Zhang, S., Yang, X., Feng, Y., Qin, C., Chen, C.C., Yu, N., Chen, Z., Wang, H., Savarese, S., Ermon, S., et al.: Hive: Harnessing human feedback for instructional visual editing. In: CVPR (2024)
-
Zhao, H., Ma, X.S., Chen, L., Si, S., Wu, R., An, K., Yu, P., Zhang, M., Li, Q., Chang, B.: Ultraedit: Instruction-based fine-grained image editing at scale (2024)
-
Zhao, J., Zhang, H.: Thin-plate spline motion model for image animation. In: CVPR (2022)
-
Zhu, H., Wu, W., Zhu, W., Jiang, L., Tang, S., Zhang, L., Liu, Z., Loy, C.C.: CelebV-HQ: A large-scale video facial attributes dataset. In: ECCV (2022)
-
Zhu, Y., Li, Q., Wang, J., Xu, C.Z., Sun, Z.: One shot face swapping on megapixels. In: CVPR (2021)
A Supplementary Material
A.1 Additional Implementation Details
Training. As part of our data augmentation pipeline, we extract the inner face from driving images and apply relighting. To achieve this, we use SegFormer [58] to generate face masks and NeuralGaffer [25] to perform relighting, with background lighting sourced from randomly selected images in the Poly-Haven dataset [43]. To reduce training time and GPU memory usage, both operations are performed offline prior to training. More specifically, for each source image, we generate and save six driving images—five relighted variants and one original—as well as a single face mask. During training, one of the six driving images is randomly sampled for use in each iteration.
Inference. Our results are generated using 50 denoising steps and a guidance scale of 1.5, and takes 3 seconds per image on a single NVIDIA A100. For classifier-free guidance, we drop the text prompt and use a zeroed-out version of the driving image for the negative branch.
Baselines. For most baselines, we use the official implementations provided by the respective authors: DAM , FADM , HyperReenact , Face-Adapter , and LivePortrait .
For the IP-Adapter baseline, we use the implementation and pre-trained weights available on HuggingFace's diffusers library in a dual-adapter SDXL configuration. One “style” adapter is conditioned on a CLIP embedding of the source image, and the second “face” adapter—fine-tuned for facial representation tasks—is conditioned on a CLIP embedding of the driving image. The “style” and “face” adapters are assigned scale values of 0.5 and 0.6, respectively; these scale parameters control the strength of the corresponding image conditioning. The guidance scale is set to 3.0 to perform 27 denoising steps. In practice, we initialize the process with 30 denoising steps but skip the first three, and initialize the noisy latents with a noisy version of the source image, with the noise strength parameter set to 0.9. For classifier-free guidance, we drop the text prompt and use a noisy version of the driving image as the negative branch.
A.2 Additional Results
Comparison against Text-driven Image Editing Approaches. Diffusion models have gained significant attention for instruction-based image editing.
https://github.com/JialeTao/DAM
https://github.com/zengbohan0217/FADM
https://github.com/StelaBou/HyperReenact
https://github.com/FaceAdapter/Face-Adapter
https://github.com/KwaiVGI/LivePortrait
https://huggingface.co/docs/diffusers/using-diffusers/ip_adapter
The adapter names are “ip-adapter-plus_sdxl_vit-h” and “ip-adapter-plus-face_sdxl_vit-h”
M. Dhingra et al.
Source
Ours
InstructPix2Pix
LEDITS++

Fig. 10: Comparing our facial replacement with instruction-based image editing approaches [7,8]. Note that, our approach uses a masked driving image (show in red inset), while the image editing approaches do not require a driving image. Our approach makes realistic edits following the driving image, while the image editing methods have no control over the facial edits, leading to unrealistic changes to personal identity.
SDEdit [34] proposes a training-free method for global, text-driven modifications but often fails to preserve regions outside the editing target. Subsequent approaches [1,38] introduce user-defined masks to enable localized control. Other methods [9,36,41] focus on manipulating attention maps, while LEDITS++ [7] integrates both attention and noise-based masking to achieve more precise edits. Fully supervised pipelines [8,56,68,71,72] support end-to-end editing from textual instructions. However, these models are not explicitly optimized for identity preservation in face-specific tasks. This limitation is evident in Fig. 10, where both InstructPix2Pix and LEDITS++ produce suboptimal results in terms of visual fidelity and identity consistency.
Quantitative Results. Tab. 3 provides a per-dataset breakdown of metrics for all benchmarks for replacement-ID setup. Please note that the FID scores for Face-Adapter [20] and HyperReenact [5] may be unreliable due to face detec-
Source
Driving
Ours
SeeDream 4.0

Fig. 11: Comparing our facial replacement with multimodal-based editing approach [48]. Note that, our approach uses a masked driving image (showed in red inset), while the SeeDream4.0 uses the full driving image. Our approach makes realistic edits following the driving image, while the image editing method has quality output but has tendency to change person's identity.
tion failures during evaluation. Specifically, Face-Adapter fails on 4,325 (FFHQ), 4,813 (VoxCeleb ID), 68 (PicturePerfect), and 4,896 (VoxCeleb OOD) images out of 5,000. HyperReenact fails on 297 (FFHQ), 1,052 (VoxCeleb ID), 901 (PicturePerfect), and 1,264 (VoxCeleb OOD) images. These failures significantly impact the quality of FID estimation for these methods.
M. Dhingra et al.

Source
Target
Output
Fig. 12: Although our proposed approach achieves more realistic facial replacement compared to prior methods, it still exhibits limitations in certain areas, particularly around the eyes and hair.
Table 3: We quantitatively compare our method with prior approaches ( Standard Error of Mean) on replacement-ID testsets FFHQ [26] and VoxCeleb [11,37].
| Replacement in-distribution (ID) | |||||||
|---|---|---|---|---|---|---|---|
| FFHQ | |||||||
| Methods | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ | LPIPS↓ | PSNR↑ |
| DAM | 0.557 ± 0.0034 | 25.28 | 2.91 ± 0.0128 | 0.2796 ± 0.0022 | 11.89 ± 0.1247 | 0.0380 ± 0.0003 | 21.37 ± 0.0491 |
| FADM | 0.542 ± 0.0034 | 43.24 | 2.97 ± 0.0138 | 0.2849 ± 0.0022 | 13.28 ± 0.1278 | 0.0453 ± 0.0004 | 19.76 ± 0.0464 |
| IP-Adapter | 0.312 ± 0.0018 | 17.22 | 3.01 ± 0.0116 | 0.2910 ± 0.0022 | 16.28 ± 0.1839 | 0.0835 ± 0.0004 | 14.78 ± 0.0312 |
| FaceAdapter | 0.429 ± 0.0064 | 122.47 | 2.97 ± 0.0327 | 0.2439 ± 0.0049 | 10.37 ± 0.3383 | 0.1252 ± 0.0009 | 10.32 ± 0.0824 |
| HyperReenact | 0.431 ± 0.0019 | 111.89 | 2.79 ± 0.0118 | 0.2439 ± 0.0019 | 11.14 ± 0.0914 | 0.1152 ± 0.0004 | 13.56 ± 0.0245 |
| LivePortrait | 0.676 ± 0.0031 | 11.18 | 2.79 ± 0.0113 | 0.2804 ± 0.0021 | 8.44 ± 0.0903 | 0.0432 ± 0.0003 | 20.23 ± 0.0584 |
| Ours | 0.863 ± 0.0017 | 6.51 | 2.86 ± 0.0116 | 0.2797 ± 0.0021 | 5.35 ± 0.0647 | 0.0620 ± 0.0003 | 18.46 ± 0.0434 |
| VoxCeleb | |||||||
| DAM | 0.466 ± 0.0031 | 24.43 | 2.89 ± 0.0138 | 0.2412 ± 0.0017 | 13.01 ± 0.1220 | 0.0345 ± 0.0003 | 21.96 ± 0.0433 |
| FADM | 0.413 ± 0.0032 | 53.60 | 2.99 ± 0.0163 | 0.2437 ± 0.0017 | 13.55 ± 0.1268 | 0.0457 ± 0.0003 | 20.43 ± 0.0436 |
| IP-Adapter | 0.253 ± 0.0018 | 21.33 | 3.12 ± 0.0133 | 0.2698 ± 0.0019 | 20.10 ± 0.2033 | 0.0938 ± 0.0003 | 16.03 ± 0.0279 |
| FaceAdapter | 0.309 ± 0.0126 | 140.57 | 3.14 ± 0.0658 | 0.2833 ± 0.0086 | 12.90 ± 0.7425 | 0.1003 ± 0.0027 | 10.54 ± 0.1666 |
| HyperReenact | 0.379 ± 0.0022 | 100.97 | 3.29 ± 0.0141 | 0.3147 ± 0.0018 | 11.29 ± 0.1034 | 0.0925 ± 0.0004 | 13.82 ± 0.0254 |
| LivePortrait | 0.486 ± 0.0029 | 13.57 | 2.72 ± 0.0116 | 0.2455 ± 0.0017 | 10.37 ± 0.1037 | 0.0290 ± 0.0002 | 20.78 ± 0.0517 |
| Ours | 0.772 ± 0.0027 | 9.12 | 2.76 ± 0.0122 | 0.2388 ± 0.0017 | 6.55 ± 0.0762 | 0.0660 ± 0.0003 | 19.89 ± 0.0389 |
Issues of Image Quality Metrics. In Fig. 13, we highlight the discrepancy between standard image quality metrics and human judgment. Although our results exhibit superior visual quality compared to baseline methods—as further supported by our user study—the quantitative metrics tend to undervalue our approach.

Fig. 13: Metrics like PSNR and LPIPS often favor blurry, low-quality reconstructions due to sensitivity to slight misalignments, failing to align with human judgment.

Fig. 14: Ablation: Robustness to data augmentations. Our solution demonstrates the ability to mitigate the effects of different data augmentations, resulting in more stable and visually appealing results.
Model Robustness to Various Transformations. In Fig. 14, we assess our model's robustness to various augmentations applied to the face in the driving image, including color jittering, translation, rotation, and scaling. The results indicate that our model is generally consistent despite large variations in facial color, position, orientation, and size. However, it exhibits difficulty in preserving identity when the face in the driving image is either extremely small (first row of Scaling driving) or excessively large (fourth row of Scaling driving). This
M. Dhingra et al.
limitation may stem from information loss during the image-to-latent conversion process—where small faces lack sufficient detail.
Source
Target
Ours
Source
Target
Ours

Fig. 15: Additional face replacement (in-distribution) results
Additional Visual Results. Fig. 15 and Fig. 16 present additional visual results of our proposed method for the face replacement task. Furthermore, Fig. 11 showcases direct comparisons between our method and SeeDream4.0 [48]. As can be seen, SeeDream4.0 yields promising results but has a tendency to alter the identity of the source image, making it unreliable. We also don’t include this approach in our quantitative study due to the fact that inference using the SeeDream4.0 model was extremely slow and required manual intervention.
Additional Ablation Results. Tab. 4 Interestingly, the No Relighting, No Augmentation, and Driving as-is variants often achieve higher reconstruction-oriented metrics than our final model. However, these variants simplify the task by either reducing appearance variation during training or exposing richer target-related appearance information to the model. In particular, the Driving as-is variant can preserve facial appearance cues from the driving image, leading to shortcut solutions where facial details are partially copied into the generated output. Likewise, removing relighting or data augmentation weakens regularization and reduces the need for robust identity disentanglement. As a result, these
Source
Target
Ours
Source
Target
Ours

Fig. 16: Additional face replacement (out-of-distribution) results
variants can produce outputs that are numerically closer to the ground-truth image, yielding improved CSIM, LPIPS, FID, and PSNR scores, while relying on appearance leakage rather than genuine identity-preserving synthesis. We therefore retain relighting and augmentation in the final model, as they encourage stronger disentanglement and better generalization under realistic deployment conditions.
Failure Cases. Fig. 12 illustrates representative failure cases in the same-identity face replacement task. Most failures are caused by suboptimal generation of intricate details such as eyes and hair, and this is caused by the limitations of the backbone diffusion [42] architecture.
M. Dhingra et al.
Table 4: Additional ablation study of our identity-preserving face replacement framework. We compare the final model against variants without relighting, without data augmentation, and using the driving image as-is. While some ablations achieve higher reconstruction-oriented metrics, these settings introduce shortcut cues that can artificially increase similarity to the target image and therefore do not reflect robust identity-preserving face replacement.
| Replacement in-distribution (ID) | |||||||
|---|---|---|---|---|---|---|---|
| FFHQ + VoxCeleb2 (LivePortrait) | |||||||
| Methods | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ | LPIPS↓ | PSNR↑ |
| Ours | 0.818 | 7.81 | 5.95 | 0.0640 | 19.17 | ||
| Channel-wise | 0.689 | 55.19 | 3.67 | 0.3542 | 6.18 | 0.0831 | 16.11 |
| SDv1.5 | 0.776 | 9.90 | 2.87 | 6.58 | 0.0564 | 17.55 | |
| No Relighting | 0.836 | 7.49 | 0.2632 | 5.88 | 0.0569 | 18.68 | |
| No Augmentation | 0.2668 | ||||||
| Driving as-is | 0.945 | 4.03 | 2.80 | 0.2656 | 4.34 | 0.0045 | 33.72 |
| Replacement out-of-distribution (OOD) | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| PicturePerfect (Real) | VoxCeleb2 (LivePortrait) | |||||||||
| Methods | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ | CSIM↑ | FID↓ | AED↓ | APD↓ | AGD↓ |
| Ours | 0.631 | 28.08 | 2.50 | 0.2262 | 9.87 | 0.579 | 12.78 | |||
| Channel-wise | 0.618 | 80.70 | 3.37 | 0.3113 | 8.47 | 0.548 | 62.26 | 3.69 | 0.3418 | 11.80 |
| SDv1.5 | 0.655 | 30.98 | 2.50 | 0.2164 | 9.71 | 0.576 | 12.96 | 2.84 | 13.19 | |
| No Relighting | 0.759 | 8.67 | 0.685 | 11.91 | 2.83 | 0.2465 | 13.00 | |||
| No Augmentation | 28.90 | 0.2139 | 6.99 | 12.63 | 0.2515 | |||||
| Driving as-is | 0.713 | 21.12 | 2.38 | 7.48 | 0.772 | 0.2523 | 7.21 | |||
Source
Target
Driving
Output

Fig. 17: Experiment with cross-identity facial replacement where the identity along with the expression from the driving image gets transferred to source.
Source
Target
Driving
Output

Fig. 18: Experiment with cross-identity facial replacement where only the expression from the driving image gets transferred to source while keeping the identity unaltered.
M. Dhingra et al.
B PicturePerfect Dataset
Most existing reenactment datasets are biased toward interview-style YouTube videos, where subjects are primarily talking with limited head movement and facial variation. In contrast, we introduce the PicturePerfect dataset, a synthetic dataset featuring diverse head poses and expressions, generated using a portrait animation pipeline. Our dataset comprises approximately 500,000 images spanning over 6,724 unique identities, and from which more than 10 million distinct source-target pairs can be sampled. Sample images from our dataset are shown in Fig. 19. Each face in our dataset is available under 21 distinct poses and expressions, including a neutral image and 20 expressive variants generated using LivePortrait [19], a face animation model.

Fig. 19: PicturePerfect dataset samples. For each neutral face (top row), we generate 20 expressive variants using a face animation model [19]. For visualization purposes, we display four randomly sampled expressive variants per neutral face.
To construct the dataset, we leverage an internal face video dataset and LivePortrait [19], a model capable of animating a face based on a driving video. An overview of the animation pipeline is shown in Fig. 20.

Fig. 20: PicturePerfect Dataset generation process overview: Neutral looking faces are detected and extracted from source videos, which are guided via driving videos to generate expressive animated faces using LivePortrait [19].

Fig. 21: Overview of some example driving videos used to animate the neutral faces with LivePortrait [19].
B.1 Video Crowdsourcing
To collect videos, we used a custom platform in collaboration with crowdsourcing providers to recruit participants from diverse gender, geographic, and ethnic backgrounds. Data was collected under direct agreements with crowd workers, permitting both research and commercial use and ensuring compliance with privacy regulations, including GDPR-equivalent standards. All videos were manually reviewed to exclude issues such as individuals in the background. Personally identifiable information and metadata were removed to ensure participant privacy. All contributors were fairly and appropriately compensated according to regional standards and signed consent forms explicitly permitting research and commercial use of their video and audio data, including training AI models. A contact email will be provided on the dataset release page for participants to request data removal at any time. Participants were instructed to record short videos while performing specific actions and expressions, such as “smiling gently at the camera while sitting in front of a computer”, “pretending to be shocked while looking at the screen”, “looking down with a sad expression while sitting at
M. Dhingra et al.

Fig. 22: Random samples from the dataset. The PicturePerfect dataset features a wide diversity of backgrounds, lighting conditions, ethnicities, clothing styles, poses, and facial expressions.
a desk” and so on. Each participant was encouraged to submit multiple videos featuring varied backgrounds, outfits, and lighting conditions.
B.2 Data Pre-processing and Filtering
From the collected videos, we filter and retain only those that fall into the following predefined categories of facial expressions and head gestures:
– making eye contact with the camera while sitting in front of a computer
– making eye contact with the camera while sitting at a distance
– making eye contact with the camera while standing
– no facial expression
– no gesture
From the filtered videos, we randomly sample pairs of frames from segments where the subject is looking directly at the camera. To ensure the selection of truly neutral expressions, we extract facial landmarks and bounding boxes using FaceNet [17]. We then compute the angles between the left and right eyes and the nose, as well as left and right corners of the mouth and the nose, ensuring the head orientation is within an empirically determined threshold of . To further eliminate head tilt, we also check that the vertical angle between the nose and the mid-point of both the eyes is below .
Images that pass both filters are standardized by cropping around the midpoint of the detected bounding box, using a bounding box scaled by a factor of 2. This process yields approximately 25,000 neutral face images across 6,724 unique identities.
To enable neutral-to-any-expression animation, we manually select 200 diverse driving videos. In Fig. 21, we provide some example driving videos. For each neutral face, we randomly sample 20 unique driving videos and animate the source using LivePortrait [19]. An overview of the animation pipeline using LivePortrait is shown in Fig. 20. From each resulting video, we extract the final frame as the animated output. This results in 20 animated images per source, culminating in a dataset of approximately 500,000 images comprising both neutral and expressive faces.
We provide an overview of the images in Fig. 22 to demonstrate the data diversity for backgrounds, lighting, gender, ethnicity, head poses, facial expression.
B.3 Caption Generation
To generate descriptive captions for the upscaled images, we use LLaVA-1.5-7B [32] with the instruction: “Describe this real-world image and its style as a long detailed caption. Include details about the person’s facial expression and describe face attributes. Ignore the background and clothing information for the caption.”