DreamID: High-Fidelity and Fast diffusion-based Face Swapping via Triplet ID Group Learning
Fulong Ye, Miao Hua, Pengze Zhang, Xinghui Li, Qichao Sun, Songtao Zhao, Qian He, Xinglong Wu
TL;DR
DreamID tackles the lack of explicit supervision in diffusion-based face swapping by introducing Triplet ID Group Learning, which constructs triplets ($A_1$, $\tilde{B}$, $A_2$) using a GAN proxy to provide near-ground-truth supervision. Paired with SD Turbo single-step diffusion, this approach enables end-to-end training with image-space losses, while an architecture of SwapNet, FaceNet, and ID Adapter fuses pixel-level and semantic-level identity cues. The method achieves state-of-the-art results on FFHQ-style data, delivering high identity similarity and attribute preservation with 1-step inference in about $0.6$ seconds at $512\times512$, and demonstrates robustness to challenging lighting, angles, and occlusions. This combination of explicit supervision and fast diffusion inference advances practical, high-fidelity face swapping with fine-grained attribute control.
Abstract
In this paper, we introduce DreamID, a diffusion-based face swapping model that achieves high levels of ID similarity, attribute preservation, image fidelity, and fast inference speed. Unlike the typical face swapping training process, which often relies on implicit supervision and struggles to achieve satisfactory results. DreamID establishes explicit supervision for face swapping by constructing Triplet ID Group data, significantly enhancing identity similarity and attribute preservation. The iterative nature of diffusion models poses challenges for utilizing efficient image-space loss functions, as performing time-consuming multi-step sampling to obtain the generated image during training is impractical. To address this issue, we leverage the accelerated diffusion model SD Turbo, reducing the inference steps to a single iteration, enabling efficient pixel-level end-to-end training with explicit Triplet ID Group supervision. Additionally, we propose an improved diffusion-based model architecture comprising SwapNet, FaceNet, and ID Adapter. This robust architecture fully unlocks the power of the Triplet ID Group explicit supervision. Finally, to further extend our method, we explicitly modify the Triplet ID Group data during training to fine-tune and preserve specific attributes, such as glasses and face shape. Extensive experiments demonstrate that DreamID outperforms state-of-the-art methods in terms of identity similarity, pose and expression preservation, and image fidelity. Overall, DreamID achieves high-quality face swapping results at 512*512 resolution in just 0.6 seconds and performs exceptionally well in challenging scenarios such as complex lighting, large angles, and occlusions.
