Lifelong Generative Modelling Using Dynamic Expansion Graph Model

Fei Ye, Adrian G. Bors

Abstract

Variational Autoencoders (VAEs) suffer from degenerated performance when learning several successive tasks, a phenomenon known as catastrophic forgetting. To address this knowledge loss, VAEs typically employ either Generative Replay (GR) mechanisms or Expanding Network Architectures (ENA). In this paper, we study the forgetting behavior of VAEs using a joint GR and ENA methodology by deriving an upper bound on the negative marginal log-likelihood. This theoretical analysis provides new insights into how VAEs lose previously learned knowledge during lifelong learning, indicating that optimal performance is achieved when considering model mixtures under the ENA framework without restrictions on the number of components. However, ENA-based approaches can require an excessive number of parameters. This motivates our proposal of the Dynamic Expansion Graph Model (DEGM). DEGM expands its architecture according to the novelty associated with each new database compared to information already learned. DEGM training optimizes knowledge structuring by characterizing the joint probabilistic representations of past and recent tasks. We demonstrate that DEGM guarantees optimal performance for each task while minimizing the required number of parameters.

Introduction

Deep learning models, including VAEs, suffer from catastrophic forgetting: when trained on a sequence of new tasks, they rapidly lose the ability to perform well on previous ones. In generative modeling, this manifests as a VAE losing the ability to generate early-task data (e.g., digits) after training on later-task data (e.g., fashion items).

Existing solutions generally fall into two categories:

  1. Generative Replay (GR): The model generates "pseudo-data" from past tasks to mix with new data. However, imperfect generators lead to error accumulation over time.
  2. Expanding Network Architectures (ENA): The model adds new parameters for every task. While this prevents forgetting, it leads to parameter explosion and fails to leverage shared knowledge between similar tasks.

This paper identifies a lack of theoretical understanding regarding why VAEs lose information and proposes a model that balances performance with parameter efficiency.

Theoretical Framework: Lifelong ELBO (LELBO)

The authors derive a generalization bound for VAEs in a lifelong learning setting. They demonstrate that the error on previous tasks is bounded by the discrepancy distance—a measure of shift in data distribution—and the accumulated errors from previous training steps. This "LELBO" provides a mathematical roadmap for minimizing forgetting: keep the discrepancy distance low and the generative replay accurate.

Dynamic Expansion Graph Model (DEGM)

DEGM is a modular VAE that grows into a graph structure consisting of two types of nodes:

  • Basic Nodes: Contain general, transferable knowledge.
  • Specific Nodes: Handle task-specific "novelty" by reusing and weighting information from Basic Nodes.
The DEGM architecture showing the inference and decoding processes with Basic and Specific nodes.

When a new task arrives, DEGM calculates a novelty criterion. High novelty triggers the creation of a new Basic Node. If the task is related to existing knowledge (low novelty), a Specific Node is built as a "sub-graph," connecting to and weighting the outputs of existing Basic Nodes. This allows for transfer learning while keeping the model size manageable.

Experimental Evaluation

The authors evaluated DEGM on several benchmarks:

  • Split MNIST (S-M) & Split Fashion (S-F): Standard benchmarks where a single dataset is split into five sequential tasks.
  • COFMI: A challenging cross-domain sequence (Caltech 101, OMNIGLOT, Fashion-MNIST, MNIST, and Inverse-Fashion).
  • CCCOSCZC: A long sequence of eight diverse image datasets (CelebA, CACD, 3D-Chair, etc.) to test high-dimensional data handling.

Key Results

DEGM demonstrated superior performance across various metrics and datasets:

  • Superior Log-Likelihood: On Split MNIST, DEGM achieved a testing log-likelihood of -88.04, significantly outperforming standard Generative Replay (-98.23) and advanced baselines like CN-DPM (-95.91).
  • Cross-Domain Robustness: In the COFMI benchmark, DEGM maintained high performance across wildly different datasets, whereas standard VAEs saw performance degenerate on early tasks.
  • Efficiency: In the 8-task CCCOSCZC sequence, DEGM achieved results comparable to training eight separate VAEs but with a significantly smaller parameter footprint.
Comparison of DEGM against various baselines on Split MNIST (S-M), Split Fashion (S-F), and COFMI datasets.

Conclusion

DEGM addresses the limitations of both GR and ENA by using a graph-based expansion strategy guided by a theoretical novelty criterion. By treating the model as a graph, the inference and decoding processes can route information through the most relevant nodes, effectively performing automated multi-task learning. Future work includes extending this logic to other generative models like GANs or Diffusion Models and further automating the determination of the graph structure.

Summary updated

BibTeX
@inproceedings{ye2022lifelong,
  author = {Fei Ye and Adrian G. Bors},
  title = {{Lifelong Generative Modelling Using Dynamic Expansion Graph Model}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i8.20867},
}
Figure