Continual Variational Autoencoder via Continual Generative Knowledge Distillation

Fei Ye, Adrian G. Bors

Abstract

Task-Free Continual Learning (TFCL) presents a significant challenge for generative models, which must learn from an unlabeled, non-stationary data stream without suffering from catastrophic forgetting. This paper proposes a novel framework utilizing a dual-memory architecture: an expanding ensemble of 'Teacher' experts to capture long-term knowledge and a compact 'Student' Variational Autoencoder (VAE) for efficient representation. By employing a Knowledge Incremental Assimilation Mechanism (KIAM) based on Fréchet Inception Distance (FID) and a data-free Continual Generative Knowledge Distillation (CGKD) process, the model achieves state-of-the-art performance on complex benchmarks while maintaining model efficiency through expert pruning.

Introduction

In the field of artificial intelligence, "catastrophic forgetting" remains a primary obstacle to achieving true lifelong learning. When a neural network is trained on new information, it tends to overwrite weights associated with previously learned tasks. While Continual Learning (CL) seeks to mitigate this, most standard approaches rely on explicit task labels to signal distribution shifts.

This research addresses the more demanding Task-Free scenario, where data arrives in a continuous, unlabeled stream. Traditional dynamic expansion models, which add capacity as needed, often suffer from uncontrolled growth or fail to ensure that new components learn distinct, non-redundant information. The authors propose a balanced approach that maintains a high-capacity ensemble for memory while distilling that knowledge into a compact, unified student model.

Methodology

The proposed framework is built upon three core pillars designed to manage model expansion and knowledge retention efficiently.

1. Knowledge Incremental Assimilation Mechanism (KIAM)

KIAM serves as the system's expansion trigger. It monitors a Short-Term Memory (STM) buffer and utilizes the Fréchet Inception Distance (FID) to compare the current data distribution against the existing knowledge held by the Teacher ensemble. If the FID exceeds a specific threshold, the system identifies a novel concept and initializes a new expert (a VAE or GAN component) within the ensemble.

2. Continual Generative Knowledge Distillation (CGKD)

To ensure the final model remains computationally efficient, knowledge is transferred from the expanding Teacher ensemble to a single, compact Student VAE. This distillation process is "data-free," meaning the Student learns by reconstructing samples generated by the Teacher ensemble. This ensures the Student can represent all previously encountered domains within a single, unified latent space.

3. Expert Pruning

To prevent the Teacher ensemble from growing indefinitely, a pruning strategy is employed. The system calculates a "discrepancy matrix" based on the Student's latent space to identify experts with overlapping or redundant knowledge. By removing these redundant components, the model maintains a lean and diverse memory of the data stream.

Overview of the CGKD framework, showing the Teacher ensemble expansion and distillation to the Student VAE.

Experimental Evaluation

The framework was evaluated on several challenging benchmarks, including MSFIRC (a stream of MNIST, SVHN, Fashion-MNIST, IFashion, RMNIST, and CIFAR10) and CelebA-Chair, which tests cross-domain interpolation between celebrity faces and 3D furniture models.

Key Results

The proposed CGKD-GAN (utilizing GANs as Teacher experts) demonstrated significant improvements over existing state-of-the-art methods:

  • Generative Quality: On the MSFIRC benchmark, CGKD-GAN achieved an average FID of 43.1, significantly outperforming CN-DPM (104.8) and Reservoir sampling (154.2).
  • Model Efficiency: Through the pruning mechanism, the model achieved these results using only 7 experts, compared to the 18 experts required by the CN-DPM baseline.
  • Latent Space Continuity: Qualitative analysis showed that the Student model successfully learned a continuous representation, enabling "zero-shot" interpolations between disparate domains, such as transitioning a chair into a human face.
Qualitative comparison of generated samples across the MSFIRC dataset stream.

Discussion and Insights

The research highlights several critical findings for the future of TFCL. First, using probabilistic distances like FID for expansion triggers is more robust than traditional likelihood checks for capturing true distribution shifts. Second, the Student VAE acts as an effective "compressor," unifying the disparate knowledge of the Teacher ensemble into a single latent space.

However, limitations remain. The pruning mechanism currently relies on a predefined expert count, which could be improved with adaptive thresholds. Additionally, while GAN-based experts produce sharper images, the computational overhead of training an expanding ensemble before pruning is a factor to consider in resource-constrained environments.

Conclusion

By combining an expanding ensemble of experts with a compact student model through generative distillation, this framework provides a robust solution for Task-Free Continual Learning. It effectively balances the need for model capacity with the requirement for efficiency, offering a path toward generative models that can learn indefinitely from unlabeled data streams.

Summary updated

BibTeX
@inproceedings{ye2023continual,
  author = {Fei Ye and Adrian G. Bors},
  title = {{Continual Variational Autoencoder via Continual Generative Knowledge Distillation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i9.26294},
}
Figure