Few-Shot Class-Incremental Learning via Relation Knowledge Distillation

Songlin Dong, Xiaopeng Hong, Xiaoyu Tao, Xinyuan Chang, Xing Wei, Yihong Gong

Abstract

Few-Shot Class-Incremental Learning (FSCIL) requires models to learn new classes from limited data while preserving performance on previously learned categories. We present the Exemplar Relation Distillation (ERDIL) framework, which addresses the stability-plasticity dilemma by focusing on relational structures rather than absolute feature positions. By preserving angular relationships between exemplars through Relation Knowledge Distillation (RKD), the model maintains the structural integrity of the feature space while allowing for the integration of new information. Our approach consistently outperforms state-of-the-art methods on standard benchmarks, including CIFAR100, miniImageNet, and CUB200.

Introduction

Standard deep learning architectures are typically static; retraining them on new data often leads to "catastrophic forgetting," where the model's weights are overwritten, erasing previously learned knowledge. FSCIL is particularly challenging due to data scarcity—new classes often provide only a few labeled examples—and the inherent tension between stability (remembering old classes) and plasticity (learning new ones). Traditional approaches often employ Individual Knowledge Distillation (IKD), which constrains the model to maintain identical outputs for specific images. However, this rigidity fails to capture the underlying structural relationships between classes, limiting the model's ability to adapt.

Methodology

The proposed ERDIL framework introduces a relational approach to knowledge distillation. It consists of three primary components:

  1. Exemplar Relation Graph (ERG): Instead of random selection, a degree-based mechanism identifies representative images that define class boundaries. These images form the nodes of a directed graph representing the class structure.
  2. Relation Knowledge Distillation (RKD): Unlike IKD, which focuses on point-to-point correspondence, RKD constrains the angular relationships between triplets of data points. This allows the feature space to shift or scale to accommodate new classes while preserving the logical "shape" of the existing knowledge.
  3. Modified Metric Learning: A margin-ranking loss is employed to distinguish new class features from "hard negatives" in the old classes, further mitigating inter-class confusion.
Comparison between Individual Knowledge Distillation (IKD) and Relation Knowledge Distillation (RKD).

Experimental Evaluation

The framework was evaluated on three benchmarks: CIFAR100, miniImageNet, and the fine-grained CUB200 dataset. A notable finding was that ERDIL often outperformed "Joint-CNN" training (training on all data simultaneously). This suggests that joint training on highly imbalanced datasets (abundant old data vs. scarce new data) may lead to overfitting on the majority classes, whereas ERDIL's relational constraints provide a more robust learning signal.

Results

ERDIL demonstrated significant improvements over existing state-of-the-art methods such as iCaRL and LUCIR. On CIFAR100, the model achieved a final accuracy of 48.23%, a 5% improvement over LUCIR. On miniImageNet, it reached 40.79% accuracy. The most substantial gains were observed on the challenging CUB200 dataset, where ERDIL achieved 52.28% accuracy, representing a 10.85% improvement over standard distillation baselines.

Experimental results on the CUB200 dataset across 11 sessions, showing the performance of ERDIL and ERDIL++ against various baselines.

Discussion and Limitations

The success of ERDIL in surpassing the theoretical "Joint-CNN" upper bound indicates that current evaluation metrics for incremental learning may require re-evaluation. While effective, the construction and maintenance of the Exemplar Relation Graph introduce additional computational complexity, which may impact deployment on resource-constrained devices. Future work will focus on scaling this relational approach to larger datasets with thousands of classes and further investigating the dynamics of relational feature spaces.

Summary updated

BibTeX
@inproceedings{dong2021few,
  author = {Songlin Dong and Xiaopeng Hong and Xiaoyu Tao and Xinyuan Chang and Xing Wei and Yihong Gong},
  title = {{Few-Shot Class-Incremental Learning via Relation Knowledge Distillation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i2.16213},
}
Figure