Two-level Graph Network for Few-Shot Class-Incremental Learning

Hao Chen, Linyan Li, Fan Lyu, Fuyuan Hu, Zhenping Xia, Fenglei XuarXiv 2023

Abstract

Few-shot class-incremental learning (FSCIL) aims to design machine learning algorithms that can continually learn new concepts from a few data points without forgetting knowledge of old classes. The difficulty lies in the fact that limited data from new classes leads to significant overfitting and exacerbates catastrophic forgetting. Existing FSCIL methods often ignore the semantic relationships between sample-level and class-level features. In this paper, we propose a two-level graph network for FSCIL named Sample-level and Class-level Graph Neural Network (SCGN). Specifically, a pseudo incremental learning paradigm is designed to optimize model parameters in advance using virtual few-shot tasks. The sample-level graph network (SGN) aggregates similar samples to obtain refined class-level features, while the class-level graph network (CGN) mitigates semantic conflict between new and old class prototypes. Experiments on three popular benchmark datasets show that SCGN significantly outperforms baselines and sets new state-of-the-art results.

Introduction

Machine learning models typically struggle with two conflicting goals: learning new concepts from very little data (Few-Shot Learning) and retaining previously acquired knowledge (Incremental Learning). In Few-Shot Class-Incremental Learning (FSCIL), a model starts with a large base dataset and must subsequently learn new classes from just a handful of examples over multiple sessions. This scenario frequently results in two major issues: overfitting to the sparse new data and catastrophic forgetting of the original base classes.

Existing methods often rely on simple class prototypes (means), which lack the descriptive power to distinguish between highly similar classes. The SCGN framework addresses this by modeling the semantic relationships between individual samples and across different class levels to bridge the gap between new and old knowledge.

Methodology: The SCGN Framework

The SCGN architecture consists of three core components designed to improve feature robustness and inter-class alignment.

The SCGN architecture, detailing the Sample-level Graph Network (SGN) and Class-level Graph Network (CGN) modules.

1. Pseudo Incremental Learning Paradigm

During the initial training phase, the model simulates the incremental learning process. By using "manifold mixup" (blending features of different classes), the system creates virtual new tasks. This meta-learning strategy teaches the model how to adapt to novel classes before it encounters real incremental sessions.

2. Sample-Level Graph Network (SGN)

Instead of simply averaging image features to find a class center, SGN constructs a graph where nodes represent individual samples. By aggregating features from neighboring nodes, the SGN "refines" the representation, making the resulting class prototype more robust against the noise inherent in small datasets.

3. Class-Level Graph Network (CGN)

To prevent new classes from interfering with the decision boundaries of old ones, CGN treats class prototypes as nodes in a higher-level graph. It employs a Transformer-based multi-head attention mechanism to calibrate new class features based on their relationship to the existing base classes. This ensures that new classes are integrated into the semantic space without distorting established knowledge.

Experimental Results

The model was evaluated on three standard benchmarks: MiniImageNet, CUB200-2011 (fine-grained bird species), and CIFAR100. In these tests, incremental classes were introduced in sessions of 5 or 10 classes at a time, with only 5 images per class.

Performance comparison of SCGN against various baseline methods across MiniImageNet, CIFAR100, and CUB200-2011 datasets.

SCGN achieved new state-of-the-art (SOTA) results across all datasets:

  • MiniImageNet: SCGN maintained a final accuracy of 52.00% after 8 incremental sessions, significantly outperforming the previous leading method, FACT (50.49%).
  • Stability: The "Performance Dropping" (PD) rate—measuring accuracy loss from the first to the last session—was notably lower for SCGN (21.25%) compared to methods like iCaRL (44.10%).
  • Feature Quality: t-SNE visualizations confirmed that SCGN creates tighter, more distinct clusters for new classes, proving the effectiveness of the SGN refinement process.

Conclusion

By leveraging dual-level graph neural networks, SCGN successfully mitigates the dual challenges of overfitting and catastrophic forgetting in FSCIL. The use of context-aware prototypes and pseudo-incremental training allows the model to maintain a clear decision boundary as it grows. Future work may focus on reducing the computational overhead of the Transformer-based graph updates to improve scalability for lifelong learning scenarios involving hundreds of incremental sessions.

Summary updated

BibTeX
@misc{chen2023two,
  author = {Hao Chen and Linyan Li and Fan Lyu and Fuyuan Hu and Zhenping Xia and Fenglei Xu},
  title = {{Two-level Graph Network for Few-Shot Class-Incremental Learning}},
  year = {2023},
  eprint = {2303.13862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13862},
}
Figure