Memory-Based Label-Text Tuning for Few-Shot Class-Incremental Learning

Jinze Li, Yan Bai, Yihang Lou, Xiongkun Linghu, Jianzhong He, Shaoyun Xu, Tao BaiarXiv 2022

TL;DR

This paper introduces M-FSCIL, a novel approach for few-shot class-incremental learning that leverages the often-overlooked text information of class labels. By employing a "memory prompt" and a unique "stimulation-based training strategy," M-FSCIL effectively learns new tasks while mitigating catastrophic forgetting and overfitting, achieving state-of-the-art results.

What Problem Does This Paper Address?

Deep learning models excel when trained on large, fixed datasets. However, real-world scenarios often involve continuously learning new categories with very limited data (few-shot learning) and without access to previously seen data (class-incremental learning). This combination, known as Few-Shot Class-Incremental Learning (FSCIL), presents two major challenges:

  1. Overfitting: Limited data for new tasks can cause models to memorize the training examples, leading to poor generalization on unseen data.
  2. Catastrophic Forgetting: When learning new tasks, models tend to forget knowledge acquired from previous tasks, resulting in a significant performance drop on older classes.

Existing FSCIL methods primarily rely on image data, often by storing past data samples or penalizing parameter changes. The authors argue that these methods overlook the rich, less noisy information present in class labels themselves.

Methods

The proposed M-FSCIL framework introduces two key innovations:

  1. Memory Prompt: This is a learnable module that acts as a bridge between image features and class label text embeddings. It's designed to learn new task information sequentially while simultaneously storing knowledge from previous tasks. This helps alleviate the memory consumption issue that arises when storing entire datasets of past examples.
  2. Stimulation-Based Training Strategy: To optimize the memory prompt without degrading stored knowledge, this strategy uses the "stimulation" from image embeddings. Specifically, it identifies dominant elements within image embeddings (which are considered to carry semantic information) and uses this information to guide the updates of the memory prompt. This selective update mechanism helps the prompt learn new tasks while preserving old knowledge, thus mitigating forgetting.

The overall architecture involves:

  • An image encoder (e.g., ViT) to extract image features.
  • A memory interpreter (e.g., BERT) that processes concatenated memory prompts and class text embeddings to generate class label embeddings.
  • A similarity calculation module that compares image embeddings with class label embeddings to make predictions.

Datasets

The proposed M-FSCIL method was evaluated on three standard benchmark datasets for few-shot class-incremental learning:

  • miniImageNet: A widely used dataset for few-shot learning tasks.
  • CIFAR100: Another popular dataset for image classification, adapted for incremental learning.
  • Caltech-USCD Birds-200-2011 (CUB200): A fine-grained dataset that presents a more challenging scenario due to its detailed class distinctions.

The paper also mentions an experiment where the class labels for CUB200 were augmented with "a type of bird" to demonstrate the benefit of more descriptive text.

Key Insights and Ideas

  • Textual Information is Underrated: The paper strongly advocates for the underutilization of class label text in FSCIL. They highlight that text is lightweight and less noisy than image data, making it a valuable resource for improving model performance and robustness.
  • Memory Prompt as Knowledge Anchor: The memory prompt serves as a crucial component for retaining past knowledge. Its design allows for efficient storage and retrieval of learned information, addressing the memory burden of traditional rehearsal methods.
  • Stimulation for Targeted Learning: The stimulation-based training strategy is a clever way to guide the memory prompt's learning. By focusing on the most informative parts of image embeddings, it ensures that updates are meaningful and contribute to both new learning and knowledge retention.
  • Pre-trained Models are Key: The use of pre-trained ViT and BERT models for the image encoder and memory interpreter, respectively, leverages powerful multi-modal representations, contributing significantly to the method's effectiveness.

Key Results

The M-FSCIL method demonstrated state-of-the-art performance across all three benchmark datasets.

  • On miniImageNet, the proposed method achieved significantly higher accuracy in the final session compared to other approaches.
  • On CIFAR100, M-FSCIL also outperformed existing methods, showcasing its ability to handle a larger number of classes.
  • On CUB200, while fine-grained datasets are noted as less suitable for their model's backbone, M-FSCIL still achieved competitive results. Augmenting class labels with descriptive text improved performance by approximately 2% per session.
  • Ablation studies showed that the memory prompt's length positively impacts performance, and the proposed stimulation-based training strategy is crucial for achieving superior results, especially with longer memory prompts.

Limitations and Future Work

  • Dataset Suitability: The authors note that their model's backbone, pre-trained on general image-text pairs, performs better on datasets with more semantic meaning (like miniImageNet) compared to fine-grained datasets (like CUB200). This suggests that tailoring the pre-training or architecture to specific dataset characteristics could further improve performance.
  • Memory Prompt Length: While longer memory prompts generally improve performance, there might be an optimal length to balance effectiveness and computational cost. Further exploration into optimal prompt scaling could be beneficial.
  • Stimulation Strategy Nuances: The paper mentions that for very short memory prompts (L=2), the stimulation strategy can be a hindrance. This indicates that the interaction between the prompt's capacity and the training strategy requires careful consideration. Future work could explore more adaptive ways to apply the stimulation strategy based on the memory prompt's current state.

Summary updated

BibTeX
@misc{li2022memory,
  author = {Jinze Li and Yan Bai and Yihang Lou and Xiongkun Linghu and Jianzhong He and Shaoyun Xu and Tao Bai},
  title = {{Memory-Based Label-Text Tuning for Few-Shot Class-Incremental Learning}},
  year = {2022},
  eprint = {2207.01036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.01036},
}
Figure