NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DKDM: Data-Free Knowledge Distillation for Diffusion Models with Any Architecture

Qianlong Xiang, Miao Zhang, Yuzhang Shang, Jianlong Wu, Yan Yan, Liqiang Nie

Diffusion Models (DMs) have revolutionized generative AI, enabling high-fidelity image synthesis that powers tools like Stable Diffusion and DALL-E. However, these models come with a significant "data tax." Training a state-of-the-art DM typically requires billions of image-text pairs, leading to astronomical storage costs, complex data acquisition hurdles, and privacy concerns.

In their CVPR 2024 paper, "DKDM: Data-Free Knowledge Distillation for Diffusion Models with Any Architecture," researchers from the Harbin Institute of Technology and their collaborators propose a paradigm shift. Instead of training on raw, massive datasets, they introduce a method to "distill" the knowledge from existing, pretrained models into new ones without requiring any of the original training data.

Overview of the DKDM framework vs. standard training.

The Challenges of Data-Dependent Training

The current reliance on large-scale datasets presents three major bottlenecks for the research community:

  1. Storage & Infrastructure Cost: Managing petabytes of image data is feasible only for large tech companies.
  2. Privacy and Proprietary Barriers: High-quality datasets are often sensitive or proprietary, preventing public release and hindering reproducible research.
  3. Architectural Rigidity: Most existing distillation methods require the "student" model to mirror the "teacher" model's architecture. Transitioning from a Convolutional Neural Network (CNN) to a Vision Transformer (ViT) usually necessitates a complete restart using the original data.

DKDM addresses these by treating pretrained models as a "generative dataset," allowing for the training of new models with arbitrary architectures using only the teacher model as a source of knowledge.

Methodology: Redefining the Distillation Process

To make data-free distillation viable and efficient, the authors introduced two core technical innovations: the DKDM Objective and Dynamic Iterative Distillation.

1. The DKDM Objective

Standard diffusion training relies on the posterior distribution $q(x^{t-1}|x^t, x^0)$, which requires access to the clean image $x^0$. In a data-free setting, $x^0$ is unavailable. The researchers redesigned the loss function to minimize the KL divergence between the student's denoising distribution and the teacher's distribution. This ensures the student learns to predict the same noise and variance as the teacher for any given noisy input, effectively bypassing the need for ground-truth clean images.

2. Dynamic Iterative Distillation

Generating a single image from a diffusion model typically requires hundreds of steps. If a training batch required the teacher to generate full images first, training would be impossibly slow. The authors proposed Dynamic Iterative Distillation to solve this efficiency problem.

The Dynamic Iterative Distillation pipeline.
  • Iterative Step: Rather than generating a full image, the teacher performs a single denoising step. The student learns from this specific transition.
  • Shuffle Denoise: To ensure the student encounters a diverse range of noise levels in every batch, samples are "shuffled" and denoised for random intervals.
  • Dynamic Substitution: The framework maintains an enlarged "batch set" and randomly substitutes samples. This breaks the correlation between images in a batch, significantly improving the student's ability to generalize to new noise patterns.

Key Insights and Results

The researchers evaluated DKDM across standard benchmarks including CIFAR-10, CelebA, and ImageNet, as well as high-resolution latent space models like CelebA-HQ and FFHQ. Several critical insights emerged:

  • Noisy Samples as Superior Teachers: The study found that learning from intermediate noisy samples (time-domain knowledge) is more effective than learning from final, "clean" generated images. These noisy samples are more relevant to the actual optimization objective of a diffusion model.
  • The "Clean-Up" Effect: In some instances, such as CelebA-HQ 256, the student model actually outperformed the "Data-Based" baseline, achieving an FID of 8.69 compared to the original model's 9.09. This suggests the teacher model acts as a filter, providing a cleaner version of the data distribution for the student to learn from.
  • Cross-Architecture Flexibility: DKDM successfully distilled knowledge from CNN-based teachers into ViT-based students. On CIFAR-10, DKDM achieved an FID of 13.17 for a ViT student, whereas standard data-free methods lagged significantly at 44.62.
  • Efficiency Gains: The dynamic iterative method reduced the time complexity of assembling a training batch from $O(Tb)$ to $O(b)$, making the data-free training process as fast as standard data-based training.

Conclusion and Future Directions

DKDM demonstrates that high-quality diffusion models can be trained without direct access to massive datasets, provided a strong teacher model is available. While the student's performance is currently capped by the teacher's quality and the process requires higher GPU memory to run both models simultaneously, the implications for privacy-preserving AI and architectural innovation are profound. Future work may explore combining multiple teacher models to create even more robust "data-free" students for large-scale applications like text-to-video generation.

Summary updated

BibTeX
@inproceedings{xiang2025dkdm,
  author = {Qianlong Xiang and Miao Zhang and Yuzhang Shang and Jianlong Wu and Yan Yan and Liqiang Nie},
  title = {{DKDM: Data-Free Knowledge Distillation for Diffusion Models with Any Architecture}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00281},
}
Figure