Knowledge Adaptation Network for Few-Shot Class-Incremental Learning

Ye Wang, Yaxiong Wang, Guoshuai Zhao, Xueming QianarXiv 2024 · DOI

Introduction

Few-Shot Class-Incremental Learning (FSCIL) represents a significant challenge in computer vision, requiring models to continuously learn new classes from extremely limited data (few-shot) without suffering from "catastrophic forgetting" of previously learned information. Traditional approaches often struggle with two primary issues: weak feature representations for new classes due to data scarcity, and the "mean feature trap," where new class classifiers are initialized simply by averaging a few sample features, leading to poor discriminative power as the class count increases.

To address these challenges, we introduce KANet (Knowledge Adaptation Network). KANet leverages the robust, general-purpose representations of the CLIP foundation model and introduces a novel retrieval-inspired adaptation mechanism to maintain stability and plasticity during incremental learning.

Methodology

KANet is built upon three core technical pillars designed to optimize knowledge retention and adaptation:

1. Foundation Model Backbone

Instead of training a feature extractor from scratch, KANet utilizes the pretrained image branch of CLIP. This provides a high-quality, zero-shot-capable starting point that is less prone to the biased feature representations common in models trained on small, specific datasets.

2. The Knowledge Adapter (KA)

Inspired by Retrieval-Augmented Generation (RAG) in natural language processing, the Knowledge Adapter incorporates a Knowledge Vector Library (KVL). This library stores "class-level" tokens that encapsulate the specific features of learned classes. When processing a new image, the model employs Query-based Knowledge Fusion (QKF), using the image features as a query to retrieve and fuse relevant information from the KVL. This process refines the representation, making it more robust than raw backbone outputs.

3. Incremental Pseudo Episode Learning (IPEL)

To prepare the model for the constraints of incremental learning, we propose IPEL. This training strategy simulates future incremental tasks using the initial base data. By creating "pseudo" few-shot sessions, the model learns how to adapt the Knowledge Adapter to new, low-data contexts before it encounters actual novel classes during testing.

Experimental Setup

We evaluated KANet on several rigorous benchmarks to test its generalization and incremental learning capabilities:

  • CIFAR100: 100 classes, split into 60 base classes followed by 8 incremental sessions.
  • CUB200: A fine-grained bird classification dataset consisting of 200 classes.
  • ImageNet-R: Utilized to test generalization and mitigate potential data leakage from CLIP's original training set.
  • Cross-Domain Validation: Additional tests were conducted on miniImageNet, Oxford Flowers 102, cars196, and food101.

Key Results

KANet consistently outperformed existing state-of-the-art (SOTA) methods across all benchmarks. On CIFAR100, KANet achieved an average accuracy of 75.77%, surpassing the previous best method (CEC+) by 1.29%.

Crucially, KANet demonstrated superior resistance to forgetting. The Performance Drop (PD), which measures the decline in accuracy from the first to the last session, was only 15.45% on CIFAR100—the lowest recorded in the field. Similar trends were observed on the CUB200 dataset, where the model reached an average accuracy of 73.17% with a PD of only 12.65%.

Performance comparison on CIFAR100 across multiple incremental sessions.

Discussion and Future Work

The success of KANet highlights the potential of treating visual feature adaptation as a retrieval problem. By "looking up" class-specific knowledge, the model achieves a better balance between stability (remembering old classes) and plasticity (learning new ones).

While highly effective, KANet's performance is partially dependent on the quality of the underlying foundation model, with ViT-based CLIP backbones yielding the most significant gains. Future research will explore more efficient ways to update and scale the Knowledge Vector Library as the number of incremental classes grows into the thousands, ensuring the architecture remains scalable for real-world, long-term learning applications.

Summary updated

BibTeX
@misc{wang2024knowledge,
  author = {Ye Wang and Yaxiong Wang and Guoshuai Zhao and Xueming Qian},
  title = {{Knowledge Adaptation Network for Few-Shot Class-Incremental Learning}},
  year = {2024},
  eprint = {2409.11770},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.11770},
}
Figure