Skip to main content
QUICK REVIEW

[Paper Review] Forward Compatible Few-Shot Class-Incremental Learning

Da-Wei Zhou, Fuyun Wang|arXiv (Cornell University)|Mar 14, 2022
Domain Adaptation and Few-Shot LearningComputer Science15 citations
TL;DR

This paper proposes ForwArd Compatible Training (Fact), a novel framework for few-shot class-incremental learning that enhances forward compatibility by pre-assigning virtual prototypes in the embedding space to reserve room for future classes. By optimizing these virtual prototypes and generating virtual instances via instance mixture, Fact enables the model to remain robust to catastrophic forgetting and efficiently incorporate new classes with minimal performance drop, achieving state-of-the-art accuracy on benchmark datasets.

ABSTRACT

Novel classes frequently arise in our dynamically changing world, e.g., new users in the authentication system, and a machine learning model should recognize new classes without forgetting old ones. This scenario becomes more challenging when new class instances are insufficient, which is called few-shot class-incremental learning (FSCIL). Current methods handle incremental learning retrospectively by making the updated model similar to the old one. By contrast, we suggest learning prospectively to prepare for future updates, and propose ForwArd Compatible Training (FACT) for FSCIL. Forward compatibility requires future new classes to be easily incorporated into the current model based on the current stage data, and we seek to realize it by reserving embedding space for future new classes. In detail, we assign virtual prototypes to squeeze the embedding of known classes and reserve for new ones. Besides, we forecast possible new classes and prepare for the updating process. The virtual prototypes allow the model to accept possible updates in the future, which act as proxies scattered among embedding space to build a stronger classifier during inference. FACT efficiently incorporates new classes with forward compatibility and meanwhile resists forgetting of old ones. Extensive experiments validate FACT's state-of-the-art performance. Code is available at: https://github.com/zhoudw-zdw/CVPR22-Fact

Motivation & Objective

  • To address catastrophic forgetting in few-shot class-incremental learning (FSCIL), where new classes are learned with limited examples.
  • To improve model robustness and generalization by enabling forward compatibility, rather than relying solely on backward compatibility.
  • To proactively reserve embedding space for future classes during the base learning phase, ensuring the model remains expandable without disrupting old class representations.
  • To forecast potential future classes using virtual instances and prototypes, enhancing the model's readiness for incremental updates.
  • To achieve state-of-the-art performance in FSCIL by combining embedding space reservation with robust generalization through virtual data augmentation.

Proposed method

  • Pre-assign virtual prototypes in the embedding space during the base session to reserve room for future classes, making the model growable.
  • Optimize virtual prototypes by minimizing intra-class variance and maximizing inter-class margin, using a contrastive loss with a trade-off hyperparameter γ.
  • Generate virtual instances via manifold mixup to simulate potential future classes, enabling the model to become provident to future updates.
  • Use virtual prototypes as informative basis vectors during inference to build a stronger, incremental classifier without retraining the backbone.
  • Integrate virtual prototypes into the classification head, allowing the model to classify both known and new classes using a unified, compact representation.
  • Train the model end-to-end with a combined loss combining cross-entropy, contrastive loss on real and virtual prototypes, and a regularization term for stability.

Experimental results

Research questions

  • RQ1Can forward compatibility be effectively achieved in FSCIL by reserving embedding space for future classes during the base learning phase?
  • RQ2How does the use of virtual prototypes and virtual instances improve model performance and generalization in few-shot incremental learning?
  • RQ3To what extent does forward compatibility reduce catastrophic forgetting compared to traditional backward-compatible approaches?
  • RQ4How sensitive is the model's performance to hyperparameters such as the number of virtual prototypes and the trade-off between losses?
  • RQ5Does the choice of instance mixture method (e.g., manifold mixup, CutMix) significantly affect the model's ability to generalize to unseen classes?

Key findings

  • Fact achieves state-of-the-art performance on CUB200 and miniImageNet, outperforming existing methods like Decoupled-Cosine and CEC in both old and new class accuracy.
  • The model shows superior performance on new classes, with a harmonic mean accuracy of 78.6% on CUB200, demonstrating strong forward compatibility.
  • Increasing the number of virtual prototypes (V) improves performance up to V=40, after which gains become marginal, suggesting V=40 is optimal for most settings.
  • The model is robust to different instance mixture methods, with manifold mixup (α=0.5) yielding the best results and maintaining high performance across settings.
  • Performance improves with higher shot numbers (K), but the gain becomes negligible beyond K=20, indicating diminishing returns for large-shot settings.
  • The optimal hyperparameter setting is γ=0.01 and V=NB (number of new classes), which balances representation compactness and generalization.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.