TL;DR
Researchers from Qualcomm AI Research have introduced PicturePerfect, a diffusion-based framework designed specifically for same-identity facial replacement. By leveraging a novel training strategy that uses distorted versions of a target face as a driving signal, the model can seamlessly swap an unflattering expression in a photo with a better one from a reference image of the same person, significantly outperforming existing face reenactment and swapping methods in identity preservation.
What Problem Does This Paper Address?
We’ve all been there: a great group photo is ruined because one person blinked or made an awkward face. While commercial features like Google’s "Best Take" attempt to solve this, the underlying academic research has largely ignored the same-identity facial replacement task.
Most existing research focuses on either face swapping (putting Person A’s face on Person B’s body) or face reenactment (using Person B’s movements to drive Person A’s face). These methods often struggle when the goal is to keep the identity perfectly consistent. Because they are designed to generalize across different people, they often rely on "bottleneck" representations like facial landmarks or low-dimensional embeddings. These bottlenecks intentionally discard fine-grained identity details to prevent the model from simply "copying" the source, but in a same-identity scenario, those discarded details are exactly what you need for a realistic result.
Methods
PicturePerfect is built on top of Stable Diffusion XL (SDXL). The core innovation lies in how the model is conditioned and trained to avoid the "trivial solution" (where the model just learns to copy the target image).
- Spatial Concatenation: Instead of using complex adapters like ControlNet, the authors found that simply concatenating the source image, a distorted driving face, and the noisy latent along the width axis yielded the best performance.
- The Distorted Driving Signal: To train the model, the authors take a target image and extract the "inner face." They then apply heavy augmentations—scaling, rotation, translation, color jittering, and even artificial relighting. The model is tasked with reconstructing the original target face using this degraded version and the original source image. This forces the model to learn the mapping of features rather than just copy-pasting pixels.
- Inner Face Segmentation: By segmenting only the inner face, the model learns to ignore the background of the driving image, ensuring the background of the original "source" photo remains untouched.
Datasets
A major hurdle for this task was the lack of a suitable dataset containing triplets of {source, driving, target} images for the same person. To solve this, the authors created the PicturePerfect Dataset:
- Scale: ~500,000 high-resolution (1024x1024) images covering 6,724 unique identities.
- Generation: They started with 25,000 neutral "source" faces and used a state-of-the-art animation model (LivePortrait) to generate 20 expressive variants for each person based on diverse driving videos.
- Diversity: The dataset captures a wide range of skin tones, lighting conditions, and "posed" expressions (like smiling for a camera) which are often missing from standard "talking head" video datasets like VoxCeleb.
Key Insights and Ideas
- Identity is in the Details: The authors argue that for same-identity tasks, intermediate representations (like landmarks) are actually a hindrance. By providing a distorted version of the actual face, the model retains high-frequency identity cues that landmarks lose.
- Relighting is Crucial: One of the biggest "tells" in face replacement is inconsistent lighting. The authors integrated a relighting module (NeuralGaffer) into their augmentation pipeline, which significantly reduced "lighting leakage" from the driving image into the final composite.
- Spatial > Channel-wise: In their ablation studies, the researchers found that spatial concatenation (placing images side-by-side in the latent space) was superior to channel-wise concatenation for maintaining fine details like teeth and eye clarity.
Key Results
PicturePerfect was evaluated in two settings: In-Distribution (ID), using synthetic test pairs, and Out-of-Distribution (OOD), using real-world photographs captured at different times and locations.
- Identity Preservation: On the ID task, PicturePerfect achieved an ArcFace CSIM score of 0.818, vastly outperforming the next best baseline, LivePortrait (0.558).
- Visual Quality: In a user study, participants judged PicturePerfect’s outputs as "real" in 59% of ID cases and 44% of OOD cases, nearly double the performance of generative baselines like FaceAdapter.
- Robustness: The model demonstrated a remarkable ability to handle extreme poses and lighting changes that caused other models to produce blurry or identity-shifted results.

Limitations and Future Work
Despite the impressive results, the authors note a few areas for improvement:
- Synthetic Bias: Because the training data was generated using LivePortrait, the model may inherit some of that model's distributional biases.
- Fine Detail Artifacts: Occasionally, artifacts appear around the eyes or in complex hair textures.
- Scale Sensitivity: The model's performance degrades if the driving face is extremely small or extremely large relative to the source, likely due to the fixed resolution of the VAE encoding.
- Cross-Identity: The model is strictly for same-identity replacement; it is not designed to (and generally fails to) perform traditional face swapping between different people.
Summary updated