Attribute-Preserving Pseudo-Labeling for Diffusion-Based Face Swapping

Jiwon Kang, Yeji Choi, JoungBin Lee, Wooseok Jang, Jinhyeok Choi, Taekeun Kang, Yongjae Park, Myungin Kim, Seungryong Kim

TL;DR

APPLE (Attribute-Preserving Pseudo-Labeling) is a novel diffusion-based teacher-student framework that solves the long-standing problem of attribute loss (such as lighting, skin tone, and makeup) in face swapping. By replacing traditional face-masking techniques with conditional deblurring and attribute-aware noise inversion, APPLE generates high-fidelity pseudo-labels that train a student model to achieve state-of-the-art attribute preservation while maintaining excellent identity transfer.

What Problem Does This Paper Address?

Face swapping aims to seamlessly transplant a source face's identity onto a target face. The core challenge lies in a difficult balancing act: you must completely change the identity while perfectly preserving the target's attributes—including pose, expression, lighting, skin tone, and makeup.

Because ground-truth data for face swapping does not exist (we don't have real images of Person A perfectly mimicking Person B's expression and lighting environment), models must be trained using self-supervised proxies. Recent diffusion-based methods typically frame this as a conditional inpainting task, where the target face is completely masked out to prevent identity leakage.

However, this harsh masking obliterates crucial appearance cues. The model is forced to guess the target's original skin tone, lighting, and fine-grained makeup details, often leading to outputs that look plausible but fail to match the target's original context.

Comparison between conditional inpainting and the proposed conditional deblurring strategy.

Methods

To overcome the limitations of masked inpainting, the authors introduce APPLE, a fully diffusion-based teacher-student framework structured into three main phases:

  1. Teacher Learning via Conditional Deblurring: Instead of masking the target face during training, the authors apply a low-pass filter by downsampling the face to $8 \times 8$ pixels and upsampling it back. This conditional deblurring formulation effectively erases high-frequency identity details while preserving low-frequency global attributes like illumination and skin tone. They also enrich the condition with eye landmarks (for gaze) and glass segmentation masks.
  2. Pseudo-Label Generation with Attribute-Aware Inversion: During inference, the teacher model generates high-quality face-swapped images to serve as "pseudo-labels." To capture fine-grained details like makeup, they use a specialized diffusion inversion strategy. By performing inversion under attribute-only conditioning, they capture target-specific textures within the latent noise without introducing target identity bias.
  3. Student Learning via Pseudo-Triplets: Finally, a student diffusion model is trained on clean, unmasked pseudo-labels generated by the teacher. Because the student is trained on pristine images under a direct image-editing objective rather than degraded masked inputs, it learns to preserve fine-grained attributes much more effectively.
Overall architecture of the APPLE framework showing teacher training, pseudo-label generation, and student training.

Datasets

  • Training: The model is trained on the VGGFace2-HQ dataset, filtered using an automated Aesthetic Predictor (AES) with a threshold of 5.1 to ensure high visual quality.
  • Evaluation: Evaluation is conducted on the FFHQ dataset, using 1,000 source faces and 1,000 target faces to generate 1,000 face-swapped evaluation images.

Key Insights and Ideas

  • Blurring beats Masking: Masking completely isolates the face from its environment. Deblurring acts as a smart information filter, allowing global context (like a golden-hour glow or pale skin tone) to guide the diffusion process safely without leaking the target's facial structure.
  • Exploiting Inversion "Imperfections": In typical image editing, researchers try to force inverted noise to be perfectly Gaussian to maximize editability. APPLE turns this on its head: they intentionally exploit the residual semantic information left behind in the inversion noise to anchor fine-grained details like makeup and accessories.
  • The Sweet Spot of Conditioning: Through PCA visualization, the authors show that inverting with attribute-only conditioning yields noise rich in target semantics but free of identity bias, avoiding the visual artifacts that occur when full conditioning is used during inversion.
PCA visualization of different inversion noise configurations and their corresponding face-swapping results.

Key Results

APPLE achieves state-of-the-art performance on the FFHQ benchmark, outperforming both GAN-based and diffusion-based baselines:

  • Image Fidelity: The student model achieves a Frechet Inception Distance (FID) of 2.18, significantly lower than competing diffusion models like DiffSwap (6.84) and FaceAdapter (13.03), indicating much higher photorealism.
  • Attribute Preservation: It achieves the lowest pose error (1.85) and expression error (0.64) across all baselines, proving that the teacher-student framework successfully retains the target's original state.
  • Qualitative Superiority: As shown in the qualitative evaluations, APPLE faithfully preserves challenging details such as tongue-out expressions, complex makeup styles, and eyeglasses, where other models either erase the attributes or introduce unnatural artifacts.
Qualitative comparison of APPLE against various state-of-the-art face-swapping methods on the FFHQ dataset.

Limitations and Future Work

The authors do not include a dedicated limitations section, but they note the inherent, delicate trade-off between identity transfer and attribute preservation. While APPLE achieves a highly optimized balance, extremely aggressive identity matching can still occasionally conflict with fine-grained attribute retention. Additionally, as a two-stage teacher-student framework built on top of large diffusion backbones (like FLUX.1), the computational overhead during the training phase is substantial.

Summary updated

BibTeX
@inproceedings{kang2026attribute,
  author = {Jiwon Kang and Yeji Choi and JoungBin Lee and Wooseok Jang and Jinhyeok Choi and Taekeun Kang and Yongjae Park and Myungin Kim and Seungryong Kim},
  title = {{Attribute-Preserving Pseudo-Labeling for Diffusion-Based Face Swapping}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=D56KvejgD0},
}
Figure