Class Incremental Learning with Multi-Teacher Distillation

Haitao Wen, Lili Pan, Yu Dai, Heqian Qiu, Lanxiao Wang, Qingbo Wu, Hongliang Li

Introduction

Class Incremental Learning (CIL) presents a significant challenge in computer vision: training a model to recognize new classes sequentially without forgetting previously learned ones. This phenomenon, known as "catastrophic forgetting," is typically mitigated through Knowledge Distillation (KD). In standard KD-based CIL, a "student" model (the current learner) mimics a "teacher" model (the model from the previous task). However, relying on a single teacher provides a narrow perspective on the feature space. This paper introduces Multi-Teacher Distillation (MTD), a framework that leverages an ensemble of diverse virtual teachers to provide more robust guidance to the student.

The MTD Framework

The primary hurdle for multi-teacher approaches in CIL is the computational cost of training and storing multiple full-scale models. MTD overcomes this by generating diverse teachers from a single base model using three key mechanisms:

  1. Lightweight Branching: Instead of duplicating the entire network, teachers are implemented as small branches consisting of the final layers and the classifier, all sharing a common feature-extraction backbone.
  2. Weight Permutation: To ensure diversity, the parameters of the teacher branches are "teleported" to different regions of the loss landscape. This is achieved through weight permutation—swapping neuron orders in a way that preserves the mathematical output but changes the optimization trajectory during fine-tuning.
  3. Feature Perturbation and Diversity Regularization: To prevent the branches from collapsing into identical solutions, Gaussian noise is added to the inputs of the teacher branches (Feature Perturbation). Furthermore, a Diversity Regularization loss ($L_{dr}$) encourages the branches to produce orthogonal embeddings, forcing them to capture distinct aspects of the data.
Overview of the MTD framework, showing the generation of diverse teacher branches through weight permutation and feature perturbation.

Experimental Results

The MTD framework was evaluated on standard benchmarks, including CIFAR-100, ImageNet-100, and the full ImageNet-1000 dataset. When integrated into existing state-of-the-art methods like PODNet and AFC, MTD consistently yielded performance gains.

On CIFAR-100, MTD improved the average incremental accuracy of PODNet by 2.57% in a 5-step setting. On the large-scale ImageNet-1000 benchmark, the improvement was even more pronounced, with a 3.57% gain over PODNet in a 25-step configuration. The results demonstrate that the proposed method effectively narrows the gap between standard CIL and an "Oracle" ensemble that has access to multiple independent models.

Accuracy vs. Task on CIFAR-100. The proposed method (PFT) significantly outperforms the PODNet baseline, narrowing the gap to the Oracle ensemble.

Key Insights

  • Diversity vs. Accuracy: Preliminary experiments with "Oracle" teachers revealed that the effectiveness of distillation depends on both the accuracy of the teachers and their diversity. Simply adding more teachers is insufficient if they lack diverse prediction mechanisms.
  • Optimal Ensemble Size: Interestingly, the authors found that using two teachers (the original and one permuted branch) provided the best balance. Increasing the number of teachers beyond two led to slight performance degradation, likely due to the limitations of simple logit averaging in combining too many divergent perspectives.
  • Geometric Separation: Visualization of the loss landscape confirms that weight permutation successfully moves models into distinct low-loss basins separated by high-loss ridges, facilitating the capture of diverse knowledge.

Conclusion

Multi-Teacher Distillation offers a practical and efficient way to enhance CIL performance. By using permutation and perturbation to create a "virtual" ensemble from a single model, MTD provides the student with a richer set of features to learn from, significantly reducing catastrophic forgetting with minimal overhead. Future work may explore more sophisticated ensembling techniques and data-driven permutation strategies to further unlock the potential of multi-teacher systems.

Summary updated

BibTeX
@inproceedings{wen2024class,
  author = {Haitao Wen and Lili Pan and Yu Dai and Heqian Qiu and Lanxiao Wang and Qingbo Wu and Hongliang Li},
  title = {{Class Incremental Learning with Multi-Teacher Distillation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02687},
}
Figure