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

Diff-Instruct: A Universal Approach for Transferring Knowledge From Pre-trained Diffusion Models

Weijian Luo, Tianyang Hu, Shifeng Zhang, Jiacheng Sun, Zhenguo Li, Zhihua Zhang

TL;DR

Diff-Instruct is a novel framework that uses pre-trained diffusion models as "teachers" to train arbitrary generative models (like GANs or single-step samplers) without needing the original training data. By minimizing a new, robust metric called Integral Kullback-Leibler (IKL) divergence, it achieves state-of-the-art results in single-step diffusion distillation and consistently boosts the performance of existing GANs.

The Problem: The Speed Bottleneck of Diffusion Models

Diffusion Models (DMs) are currently the gold standard for image generation, but they have a major Achilles' heel: they are slow. Generating a single image typically requires dozens or hundreds of sequential denoising steps. While researchers have tried "distilling" these models into faster, single-step generators, most existing methods either require access to the original massive training datasets or are restricted to specific model architectures.

The authors of this paper ask a compelling question: Can we treat a pre-trained diffusion model as a universal fountain of knowledge? Specifically, can we use it to "instruct" any differentiable generator—regardless of its architecture—to match the data distribution the DM has learned, all without ever looking at a real training image again?

Methods: Bridging Diffusion Scores and Distribution Matching

The core of the paper is a mathematical bridge between diffusion scores and distribution matching, enabling data-free knowledge transfer.

Diff-Instruct Framework
  1. Integral Kullback-Leibler (IKL) Divergence: Standard KL divergence fails when two distributions don't overlap, which is a common problem in early generative training. The authors propose IKL, which calculates the KL divergence across the entire diffusion process (from clean data to pure noise). This makes the objective much smoother and more robust.
  2. The Diff-Instruct (DI) Algorithm: The framework uses a two-phase optimization loop:
  3. Phase 1: Train an auxiliary "student" score network to estimate the current distribution of the generator's outputs.
  4. Phase 2: Update the generator's parameters using a gradient derived from the difference between the Teacher's score (the pre-trained DM) and the Student's score.
  5. Mathematical Unified Theory: The authors prove that Score Distillation Sampling (SDS)—the technology behind 3D generation tools like DreamFusion—is actually just a special, simplified case of Diff-Instruct where the generator is deterministic.

Key Insights and Ideas

  • DMs as "Super-Discriminators": In a traditional GAN, a discriminator tries to tell real from fake. In Diff-Instruct, the pre-trained DM acts like an infinitely knowledgeable discriminator that provides a precise gradient "instruction" on how to move every pixel to make the image more "real."
  • Robustness through Noise: By integrating over the diffusion process, IKL avoids the "vanishing gradient" problems that plague GANs. Even if the generator starts by producing complete garbage, the high-noise levels of the diffusion process provide a strong signal to get it on the right track.
  • Data-Free Flexibility: Because the "knowledge" is baked into the teacher's score network, you can train a generator in a completely "data-free" fashion. This is a massive advantage for privacy-sensitive applications or scenarios where the original dataset is no longer available.

Key Results

The authors evaluated Diff-Instruct on several standard benchmarks for image synthesis, including CIFAR-10, ImageNet 64×64, and FFHQ-64.

Quantitative Results Comparison
  • SOTA Single-Step Distillation: On ImageNet 64×64, Diff-Instruct achieved an impressive FID of 5.57, outperforming other single-step methods like Consistency Models (FID 6.20) and Progressive Distillation.
  • Boosting GANs: The authors took a pre-trained StyleGAN2-ADA (already a very strong model) and refined it using Diff-Instruct. On conditional CIFAR-10, they improved the FID from 2.42 to 2.27, showing that DMs can help GANs overcome their inherent limitations like mode-collapse.
  • Efficiency: Diff-Instruct converges remarkably fast, often reaching high-quality results within just 7,000 iterations, significantly faster than training a GAN or DM from scratch.

Limitations and Future Work

While powerful, Diff-Instruct does come with trade-offs:

  • Computational Overhead: The algorithm requires maintaining an auxiliary score network during training, which increases memory usage and wall-clock time per iteration (making it about 1.5x slower than Consistency Distillation).
  • The "Data-Free" vs. "Data-Augmented" Tradeoff: While the method is data-free, the authors acknowledge that incorporating real data (when available) could likely boost performance even further, a direction they haven't yet explored.
  • Scaling Up: While results on 64x64 images are impressive, the community is eager to see how this approach scales to high-resolution (1024x1024) models like Stable Diffusion.

Summary updated

BibTeX
@inproceedings{luo2023diff,
  author = {Weijian Luo and Tianyang Hu and Shifeng Zhang and Jiacheng Sun and Zhenguo Li and Zhihua Zhang},
  title = {{Diff-Instruct: A Universal Approach for Transferring Knowledge From Pre-trained Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=MLIs5iRq4w},
}
Figure