TL;DR
Continually training diffusion models using standard generative replay leads to a severe loss of denoising capability, turning generated samples into blurry, featureless blobs. To fix this, the authors introduce generative distillation, which distils the entire reverse denoising trajectory of a teacher model into the student network rather than just replaying generated endpoint samples. This simple modification retains sharp image details and sample diversity across incremental tasks with only a minimal increase in computation (a single extra forward pass).
What Problem Does This Paper Address?
Diffusion models are among the most capable generative models available today, but training them from scratch requires vast datasets and immense compute. If we want them to learn new domains or classes incrementally, they encounter catastrophic forgetting—rapidly overwriting past knowledge upon training on new data.
A classic, privacy-friendly approach to continual learning without storing raw data is generative replay (GR): a frozen copy of the model from the previous task synthesizes samples that are mixed into the current task’s training pipeline. However, generating samples via standard DDPM requires hundreds to thousands of steps, making on-the-fly replay prohibitively slow. Fast approximations like DDIM allow rapid sampling with fewer steps, but the slight sampling inaccuracies accumulate exponentially over successive tasks. Consequently, previous task knowledge degenerates rapidly into smooth, low-detail artifacts, causing a catastrophic breakdown in the network's denoising capabilities.
Methods
In standard generative replay, knowledge from the teacher model $\epsilon_{\hat{\theta}_{i-1}}$ is transferred to the student $\epsilon_{\theta_i}$ strictly at the terminal endpoint of the generation process:
- The teacher generates an image sample using DDIM.
- Gaussian noise $\epsilon$ is re-added at timestep $t$.
- The student is trained to predict the injected noise $\epsilon$.
The authors hypothesize that endpoint replay forces the student to learn trajectories that lead directly to imperfect approximations, accelerating error propagation.
To overcome this, Generative Distillation (GD) aligns the student's denoising trajectory directly with the teacher's at every timestep:
- The teacher synthesizes an approximate image using DDIM.
- Noise is added to obtain an intermediate state $x_t$ at timestep $t$.
- Instead of matching the ground-truth injected noise, the student’s objective is to match the teacher’s noise prediction: $$\mathcal{L}_{\text{distil}}(\theta_i) = \mathbb{E}_{t, x_t} \left[ \|\epsilon_{\hat{\theta}_{i-1}}(x_t, t) - \epsilon_{\theta_i}(x_t, t)\|_2^2 \right]$$
- The total loss balances the current task's standard diffusion loss $\mathcal{L}_{\text{simple}}$ and the distillation loss $\mathcal{L}_{\text{distil}}$ using an incremental task-weighting ratio $r = 1/i$ and a scaling hyperparameter $\lambda$.
This requires only one extra forward pass through the frozen teacher network per replay sample, leaving the memory footprint identical to standard generative replay.
Datasets
The authors benchmarked their framework on two 5-task split datasets (2 classes per task):
- Split Fashion-MNIST: Grayscale $32 \times 32$ images; teacher uses 2 DDIM sampling steps for replay.
- Split CIFAR-10: Color $32 \times 32$ images; teacher uses 10 DDIM sampling steps for replay.
No new benchmarks were created; evaluations relied on established continual learning splits.
Key Insights and Ideas
- Denoising vs. Generative Failure: Continual diffusion models preserve coarse semantic outlines (e.g., maintaining the silhouette of a shirt or cat) but catastrophically lose the high-frequency denoising ability required to resolve texture and fine structure.
- Trajectory Alignment Over Endpoint Matching: Teaching the student to replicate the teacher's noise prediction across intermediate timesteps anchors the reverse trajectory, preventing compounding generative error.
- Extreme Distillation Baselines: Distilling over pure Gaussian noise ($0$ DDIM steps) or current task inputs avoids blurriness but causes mode collapse toward recently seen classes. Actual synthetic image inputs are essential to maintain class diversity.
Key Results
Generative distillation consistently and significantly outperformed standard generative replay across all metrics, coming close to the joint-training upper bound:
- FID (Fréchet Inception Distance):
- Fashion-MNIST: Dropped from 211.8 (Generative Replay) to 23.5 with Generative Distillation (Joint training achieved 15.5).
- CIFAR-10: Dropped from 96.4 (Generative Replay) to 42.3 with Generative Distillation (Joint training achieved 31.9).
- KLD (Class Diversity Metric): GD achieved $13.56\times$ lower KLD on Fashion-MNIST ($0.25$ vs. $3.39$) and $4.93\times$ lower on CIFAR-10 ($0.15$ vs. $0.74$), confirming that the model retains balanced coverage across past tasks.
- Downstream Classifier Evaluation: When replayed diffusion samples were used to continually train a downstream image classifier, models trained with GD yielded substantially higher classification accuracies (Fashion-MNIST: $0.72$ vs. $0.50$; CIFAR-10: $0.31$ vs. $0.26$).
- Computational Overhead: The empirical training wall-time per iteration only increased by $1.13\times$ on Fashion-MNIST ($747.9\text{ ms}$ vs. $664.3\text{ ms}$) and $1.06\times$ on CIFAR-10 ($1992.7\text{ ms}$ vs. $1881.8\text{ ms}$).
Limitations and Future Work
- Hyperparameter Tuning: The balance factor $\lambda$ between standard and distillation loss was tuned via a grid search evaluated on the entire task sequence, which violates strict continual learning constraints in dynamic real-world settings.
- Scale of Datasets: Experiments were constrained to smaller, lower-resolution datasets ($32 \times 32$ resolution on CIFAR-10 and Fashion-MNIST) with relatively fewer update iterations (157k steps) due to compute restrictions. Validation on high-resolution, complex benchmarks remains future work.
- Advanced Samplers: While DDIM was the primary testbed, newer high-order ODE solvers (e.g., DPM-Solver) or Consistency Models could theoretically yield better synthetic replay samples in fewer steps.
Summary updated