TL;DR
Researchers have developed Discretization Density Mixing (DDM), a framework that allows you to train a new diffusion or flow model from scratch using only the weights of a pretrained "teacher" model—no original training images required. By unrolling noisy trajectories online with randomized step counts, DDM enables the training of models with arbitrary architectures and sizes while saving massive amounts of storage and bypassing data privacy constraints.
What Problem Does This Paper Address?
State-of-the-art generative models like Stable Diffusion or EDM are trained on massive datasets that can reach hundreds of terabytes. This creates three major hurdles:
- Storage: Maintaining these datasets is prohibitively expensive.
- Privacy: Data is often private, unreleased, or subject to strict licensing that prevents sharing.
- Flexibility: A pretrained model might be too large for mobile deployment or use an outdated architecture.
While "data-free" distillation exists, previous methods usually required the student model to share the same architecture as the teacher or relied on storing thousands of teacher-generated images on disk. This paper asks: Can the weights of a pretrained model completely replace the dataset?
Methods
The authors introduce Discretization Density Mixing (DDM). Instead of loading images from a disk, the training process uses a "rolling pool" of noisy samples stored in GPU memory.
Key components include:
- Velocity Regression: The student model is trained to predict the "velocity" (the direction of denoising) provided by the teacher model at various noise levels.
- Online Trajectory Unrolling: Rather than performing a full, expensive generation cycle for every training step, DDM keeps a pool of samples and advances each by just one solver step per iteration.
- Randomized Step Counts ($\Omega$): To ensure the student learns across the entire noise continuum, each sample in the pool is assigned a random total number of steps. As trajectories of different lengths progress, the batch naturally spans a dense, independent, and approximately continuous range of noise levels.
Datasets
The authors validated DDM across 12 different teacher models from 6 families (including EDM, Rectified Flow, and LDM) on several standard benchmarks:
- CIFAR-10 (32x32)
- ImageNet (32x32 and 256x256)
- FFHQ (64x64 and 256x256)
- AFHQv2 (64x64)
- CelebA (64x64) and CelebA-HQ (256x256)
Key Insights and Ideas
- Weights are the new Data: The pretrained teacher's weights effectively act as a compressed, generative representation of the original dataset. DDM proves this representation is sufficient for high-fidelity training.
- Continuous-Time Flexibility: Unlike earlier methods restricted to discrete-time models (like DDPM), DDM works for continuous-time diffusion and flow models, which are the current industry standard.
- Architecture Agnostic: Because the supervision happens via velocity fields, a CNN-based student can learn from a ViT-based teacher (and vice versa).
- Storage Efficiency: For ImageNet (256x256), DDM requires only 1.8 GB for teacher weights, whereas the original dataset takes 252 GB—a 137x reduction in storage requirements.
Key Results
- Superior Small Models: On CIFAR-10, DDM actually outperforms standard training on real images when the student model is 4x smaller than the teacher.
- Competitive Fidelity: At the teacher's original size, DDM comes within 0.75 to 1.92 FID (Fréchet Inception Distance) of models trained on real data.
- Outperforming Baselines: DDM surpasses other "data-free" methods and even methods that train on pre-generated, stored teacher images (like SlimFlow).
Limitations and Future Work
- Teacher Ceiling: The student's quality is fundamentally capped by the teacher's performance. If the teacher has biases or artifacts, the student will likely inherit them.
- Training Throughput: In pixel space, evaluating the teacher at every step makes training slower than using raw images (roughly 0.2x to 0.7x the speed). However, in latent space (like LDM), DDM can actually be faster because it avoids the overhead of decoding full-resolution images during training.
- Trajectory Discrepancy: There is a slight mismatch between the teacher-guided states the student sees during training and the trajectories the student follows independently at inference time, which can lead to accumulated errors.
Future work could involve optimizing the teacher evaluation cost or exploring how to "de-bias" students during this distillation process.
Summary updated