Dynamic Expansion Diffusion Learning for Lifelong Generative Modelling

Fei Ye, Adrian G. Bors, Kun Zhang

Abstract

Lifelong generative modeling aims to learn from a continuous stream of data without forgetting previously acquired knowledge. Standard diffusion models suffer from catastrophic forgetting when updated sequentially. We present the Dynamic Expansion Diffusion Model (DEDM), the first framework for Online Task-Free Continual Learning (OTFCL) in diffusion models. DEDM dynamically expands its architecture by adding new diffusion experts upon detecting novel data distributions and prunes redundant ones to maintain efficiency. By leveraging the forward diffusion process for efficient novelty detection and distilling knowledge into a unified student model, DEDM achieves state-of-the-art performance across various benchmarks, including high-resolution image generation.

Introduction

Most state-of-the-art diffusion models, such as Stable Diffusion, are trained on static datasets. In real-world applications, data often arrives in a continuous stream. Updating these models with new data typically leads to catastrophic forgetting, where the model loses its ability to generate samples from earlier distributions. While Continual Learning (CL) methods exist, they often rely on known task boundaries. This paper introduces the Dynamic Expansion Diffusion Model (DEDM) to address the more challenging Online Task-Free Continual Learning (OTFCL) scenario, where the model must autonomously detect distribution shifts and adapt its architecture without explicit task labels.

Methodology: The DEDM Framework

DEDM employs a mixture-of-experts (MoE) architecture composed of multiple Denoising Diffusion Probabilistic Model (DDPM) components. The framework operates through four key stages:

  1. Dynamic Expansion: As new data batches arrive, the system evaluates their novelty relative to existing experts.
  2. Efficient Novelty Detection: To avoid the high computational cost of generating images for comparison, DEDM utilizes the forward diffusion process. By adding noise, complex data distributions are mapped to approximate Gaussians. The model then calculates the Jensen-Shannon (JS) divergence between these approximations to trigger the creation of a new diffusion expert if the novelty exceeds a threshold $\gamma$.
  3. Component Discarding (Pruning): To maintain efficiency and prevent unbounded growth, DEDM periodically evaluates the correlation between experts. If two components capture redundant information, the less diverse expert is removed.
  4. Teacher-Student Distillation: The mixture of diffusion experts acts as a collective Teacher. Its knowledge is distilled into a single VAE Student module. This distillation process provides a compact, unified latent space suitable for downstream tasks like cross-domain reconstruction and interpolation.
The DEDM pipeline illustrating the dynamic expansion, training, and distillation processes.

Experimental Evaluation

The authors evaluated DEDM across diverse benchmarks, including class-incremental (Split MNIST, CIFAR10), domain-incremental (CelebA-to-ImageNet), and high-resolution tasks (CelebA-HQ at 256x256).

Quantitative Performance

On the Split CIFAR10 benchmark, DEDM achieved an FID of 82.12, significantly outperforming the Reservoir-DDPM baseline (107.25) and GAN-based continual learners (112.29). In reconstruction tasks, DEDM maintained superior fidelity with an average PSNR of 20.62 and SSIM of 0.90, surpassing existing VAE and GAN-based lifelong learning methods.

High-Resolution Stability

DEDM demonstrates remarkable stability at higher resolutions. While GAN-based methods often suffer from training instability in continual settings, DEDM scaled to 256x256 images on CelebA-HQ, achieving an FID of 61.52—a substantial improvement over the nearest competitor, CGKD-GAN, which recorded an FID of 168.52.

Sensitivity analysis of the expansion threshold and the progression of component expansion over training steps.

Discussion and Conclusion

A key insight of this work is that the forward diffusion process provides a mathematically tractable and computationally efficient mechanism for novelty detection in online learning. By prioritizing diversity over quantity through its pruning mechanism, DEDM ensures that the model evolves rather than just grows.

While DEDM sets a new standard for OTFCL in generative modeling, challenges remain regarding inference complexity and the reliance on a small episodic memory buffer. Future research may focus on automating the tuning of the expansion threshold $\gamma$ and moving toward entirely memory-less systems. Nonetheless, DEDM represents a significant step toward robust, autonomous generative agents capable of learning indefinitely from a changing world.

Summary updated

BibTeX
@inproceedings{ye2025dynamic,
  author = {Fei Ye and Adrian G. Bors and Kun Zhang},
  title = {{Dynamic Expansion Diffusion Learning for Lifelong Generative Modelling}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i21.34363},
}
Figure