Dual-Teacher Class-Incremental Learning With Data-Free Generative Replay

Yoojin Choi, Mostafa El-Khamy, Jungwon Lee

Abstract

Class-incremental learning (CIL) aims to learn new categories sequentially without forgetting previous ones. Traditional methods rely on storing old data (exemplars) or bulky generative models, which pose privacy and memory challenges. This paper proposes a novel framework that utilizes a "dual-teacher" distillation approach and a "data-free" generative replay (DF-GR) mechanism. By synthesizing old samples from the statistics of a pre-trained model and balancing knowledge from both old and new data teachers, the proposed method achieves state-of-the-art performance in privacy-sensitive and memory-constrained scenarios.

Introduction

Deep learning models frequently suffer from catastrophic forgetting: the tendency to overwrite weights associated with previously learned tasks when trained on new data. In Class-Incremental Learning (CIL), a model must continuously expand its knowledge base. Current solutions typically involve keeping a subset of old data (exemplars) or training generative models (like GANs) to replay old classes. However, these methods are often limited by privacy regulations or the overhead of storing and transferring large generative models.

This research addresses these challenges by introducing a data-free approach where old information is recovered solely from the previously trained classification model, eliminating the need for stored data or pre-trained generators.

Methodology

The proposed framework, DT-CIL, introduces two primary innovations to mitigate forgetting and bias.

1. Data-Free Generative Replay (DF-GR)

Instead of storing a generator, the system trains a conditional generator from scratch at each new learning step. It "interrogates" the previous classification model (Teacher 0) using two key loss functions:

  • Batch Normalization Statistics (BNS) Loss: Uses the mean and variance stored in the teacher's BN layers as a proxy for the original data distribution.
  • Cross-Entropy (CE) Loss: Ensures the generator produces images that the teacher model classifies with high confidence.

2. Dual-Teacher Information Distillation (DT-ID)

To prevent the model from becoming biased toward either old or new data, the framework employs two teachers:

  • Teacher 0: The model from the previous step, representing knowledge of old classes.
  • Teacher 1: A model trained exclusively on the current batch of new data.

The Student model learns from both teachers simultaneously through distillation, maintaining a balanced unified classifier.

Overview of the Dual-Teacher CIL framework showing the interaction between Teacher0, Teacher1, and the Student model.

3. Weight Imprinting

To initialize the final layer's weights for new classes, the authors use "weight imprinting." This technique uses the average feature vector of new samples to provide a better starting point for the model before the main training phase begins.

Experimental Evaluation

The method was evaluated on three standard computer vision benchmarks: CIFAR-100, ImageNet-Subset (100 classes), and ImageNet-Full (1,000 classes). The experiments typically started with a base set of classes (e.g., 50 or 500) and added new classes in increments of 10 or 100.

Key Results

The proposed DT-CIL method consistently outperformed established baselines such as LUCIR and iCaRL across various metrics.

  • Zero-Data Performance: In scenarios where no old samples were stored ($N_R = 0$), the performance gain was most pronounced. On ImageNet-Full, the method achieved approximately 44.5% accuracy after 5 increments, compared to 41.7% for the baseline.
  • Reduced Forgetting: The "Average Forgetting" metric was significantly lower. With 20 exemplars per class on ImageNet-Full, forgetting was reduced to 14.16%, compared to the baseline's 18.83%.
Performance comparison of the proposed method against baselines on CIFAR-100, ImageNet-Subset, and ImageNet-Full.

Discussion and Insights

The core insight of this work is that a trained classifier contains sufficient information—specifically within its Batch Normalization statistics—to reconstruct recognizable synthetic images. By training generators from scratch at each step ("Zero-Transfer Generators"), the authors avoid the accumulation of errors or "forgetting" within the generator itself.

While the method is highly effective, it does come with increased computational costs due to training a generator at every step. Additionally, managing multiple teachers increases the complexity of the training pipeline. Future work may focus on improving the scalability of weight imprinting for even larger numbers of classes.

Conclusion

By combining data-free generative replay with a dual-teacher distillation strategy, this paper provides a robust solution for class-incremental learning that respects privacy and memory constraints while achieving superior performance.

Summary updated

BibTeX
@inproceedings{choi2021dual,
  author = {Yoojin Choi and Mostafa El-Khamy and Jungwon Lee},
  title = {{Dual-Teacher Class-Incremental Learning With Data-Free Generative Replay}},
  booktitle = {Workshops @ CVPR},
  year = {2021},
  doi = {10.1109/cvprw53098.2021.00393},
}
Figure