Few-Shot Class-Incremental Learning via Class-Aware Bilateral Distillation

Linglan Zhao, Jing Lu, Yunlu Xu, Zhanzhan Cheng, Dashan Guo, Yi Niu, Xiangzhong FangCVPR 2023

Abstract

Few-Shot Class-Incremental Learning (FSCIL) aims to continually learn novel classes based on only few training samples, which poses a more challenging task than the well-studied Class-Incremental Learning (CIL) due to data scarcity. While knowledge distillation, a prevailing technique in CIL, can alleviate the catastrophic forgetting of older classes by regularizing outputs between current and previous model, it fails to consider the overfitting risk of novel classes in FSCIL. To adapt the powerful distillation technique for FSCIL, we propose a novel distillation structure, by taking the unique challenge of overfitting into account. Concretely, we draw knowledge from two complementary teachers. One is the model trained on abundant data from base classes that carries rich general knowledge, which can be leveraged for easing the overfitting of current novel classes. The other is the updated model from last incremental session that contains the adapted knowledge of previous novel classes, which is used for alleviating their forgetting. To combine the guidances, an adaptive strategy conditioned on the class-wise semantic similarities is introduced. Besides, for better preserving base class knowledge when accommodating novel concepts, we adopt a two-branch network with an attention-based aggregation module to dynamically merge predictions from two complementary branches. Extensive experiments on 3 popular FSCIL datasets: mini-ImageNet, CIFAR100 and CUB200 validate the effectiveness of our method by surpassing existing works by a significant margin.

Introduction: The Dual Challenge of FSCIL

In the field of machine learning, Class-Incremental Learning (CIL) focuses on models that can learn new concepts over time. However, standard CIL is plagued by catastrophic forgetting, where the model abruptly loses its ability to recognize old classes while learning new ones.

Few-Shot Class-Incremental Learning (FSCIL) introduces an even more rigorous constraint: learning new classes from only a handful of labeled images (e.g., 5 images per class). This data scarcity introduces a second major hurdle: overfitting. Because the training data is so limited, models tend to memorize specific samples rather than learning generalizable features, leading to poor performance on unseen data. Standard knowledge distillation techniques used in CIL help with forgetting but often ignore this overfitting risk.

Methodology: Class-Aware Bilateral Distillation

To address both forgetting and overfitting simultaneously, this paper introduces Class-Aware Bilateral Distillation (CABD). Unlike standard distillation that uses a single teacher (the model from the previous session), CABD utilizes two complementary teachers:

  1. The Base Model: Trained on the initial, large-scale dataset, this teacher provides "rich general knowledge" that acts as a regularizer, preventing the student model from overfitting to the tiny novel datasets.
  2. The Previous Model ($t-1$): This teacher helps prevent the forgetting of recently learned novel classes by preserving the adapted knowledge from the last incremental session.

To intelligently combine these guidances, the framework employs an adaptive weighting strategy based on semantic similarity. If a new class (e.g., "Husky") is semantically close to a base class (e.g., "Dog"), the model draws more heavily from the base model's general knowledge.

Overview of the proposed BiDistFSCIL architecture, featuring the Class-Aware Bilateral Distillation (CABD) and Attention-based Aggregation (AGGR) modules.

Attention-based Prediction Aggregation (AGGR)

The architecture employs a two-branch network to manage the stability-plasticity trade-off. One branch is specialized for base classes and remains frozen to ensure zero forgetting of initial concepts. The other is a "novel branch" that adapts to new classes. An attention-based aggregation module dynamically merges predictions from both branches during inference, ensuring the model utilizes the most relevant features for a given input image.

Experimental Results

The researchers evaluated their method, BiDistFSCIL, on three standard benchmarks: mini-ImageNet, CIFAR100, and CUB200 (a fine-grained bird species dataset).

As shown in the performance curves below, BiDistFSCIL consistently outperforms state-of-the-art (SOTA) methods like FACT and CEC across all incremental sessions. On mini-ImageNet, it achieved a final session accuracy of 52.22%, a significant improvement over previous benchmarks. The method proved particularly robust on the fine-grained CUB200 dataset, where visual similarity between classes makes the FSCIL task exceptionally difficult.

Accuracy comparison across incremental sessions on CIFAR100 and CUB200 datasets, demonstrating the superior performance of the proposed method (Ours) against state-of-the-art baselines.

Conclusion

BiDistFSCIL effectively bridges the gap between stability and plasticity in few-shot scenarios. By leveraging the base model as a "general knowledge anchor" and using semantic similarity to guide distillation, the framework mitigates both catastrophic forgetting and overfitting. While the two-branch approach introduces a slight computational overhead, the substantial gains in accuracy across diverse datasets establish it as a powerful new baseline for incremental learning research.

Summary updated

BibTeX
@inproceedings{zhao2023few,
  author = {Linglan Zhao and Jing Lu and Yunlu Xu and Zhanzhan Cheng and Dashan Guo and Yi Niu and Xiangzhong Fang},
  title = {{Few-Shot Class-Incremental Learning via Class-Aware Bilateral Distillation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=41cY6k5WXG},
}
Figure