Abstract
Conditional diffusion models have demonstrated impressive performance in image manipulation tasks. The general pipeline involves adding noise to the image and then denoising it. However, this method faces a trade-off problem: adding too much noise affects the fidelity of the image while adding too little affects its editability. This largely limits their practical applicability. In this paper, we propose a novel framework, Selective Diffusion Distillation (SDD), that ensures both the fidelity and editability of images. Instead of directly editing images with a diffusion model, we train a feedforward image manipulation network under the guidance of the diffusion model. Besides, we propose an effective indicator to select the semantic-related timestep to obtain the correct semantic guidance from the diffusion model. This approach successfully avoids the dilemma caused by the diffusion process. Our extensive experiments demonstrate the advantages of our framework.
Introduction
Image manipulation using diffusion models typically follows a "noise-then-denoise" pipeline, such as SDEdit. While effective, this approach suffers from a fundamental trade-off between image fidelity and editability. Adding excessive noise allows for significant semantic changes (high editability) but often destroys the original identity and structure (low fidelity). Conversely, insufficient noise preserves the original image but fails to implement the requested edits.
Furthermore, different semantic attributes are modified at different stages of the diffusion process. For instance, changing hair color requires a different noise level than altering a facial expression. Standard methods often fail to find the optimal balance, resulting in edits that either ignore the prompt or produce entirely different subjects.
Methods
The proposed Selective Diffusion Distillation (SDD) framework avoids direct iterative denoising for manipulation. Instead, it utilizes a diffusion model as a "teacher" to train a lightweight "student" network, referred to as the Manipulator.
The Manipulator
The manipulator is a feedforward network consisting of a StyleGAN backbone and a trainable 4-layer MLP latent mapper. This architecture ensures that the generated outputs remain within the manifold of realistic images, maintaining high visual quality.
Selective Guidance via Hybrid Quality Score (HQS)
The core innovation of SDD is the Hybrid Quality Score (HQS). The authors observed that the gradient of the diffusion loss serves as a confidence map for semantic guidance. By analyzing the entropy (measuring guidance concentration) and the $L_1$ norm (measuring the magnitude of change) of these gradients, the HQS identifies the most semantically relevant timesteps $t$.
During training, the manipulator only learns from these "expert" timesteps where the diffusion model provides the clearest semantic guidance. This selective approach prevents the introduction of noise from irrelevant stages of the diffusion process.
Results and Discussion
SDD was evaluated on CelebA-HQ, AFHQ-cat, and LSUN-car datasets.
Performance and Quality
SDD achieved a significantly lower FID (6.066) compared to SDEdit (16.761) in face manipulation tasks, indicating superior image realism. It also outperformed baselines in CLIP similarity, demonstrating better alignment with text prompts. Notably, SDD handles complex structural changes, such as head pose adjustments, which are often challenging for CLIP-based methods like StyleCLIP.
Efficiency
By shifting to a distillation-based approach, SDD offers a massive speedup. For a batch of 100 images across 10 prompts, SDD was approximately 15 times faster (148 seconds) than standard diffusion methods (2215 seconds), even accounting for the initial mapper training time. Once trained, the manipulator can process images almost instantaneously.
Conclusion
Selective Diffusion Distillation (SDD) successfully addresses the fidelity-editability trade-off in diffusion-based image manipulation. By identifying and utilizing only the most relevant diffusion timesteps through the Hybrid Quality Score, SDD produces high-quality, semantically accurate edits at a fraction of the computational cost of traditional methods. While currently dependent on pre-trained GAN backbones, the HQS-based selection strategy is backbone-agnostic and holds potential for broader applications in image-to-image translation and large-scale model fine-tuning.
Summary updated