Skip to main content
QUICK REVIEW

[Paper Review] Overcoming Catastrophic Forgetting in Incremental Few-Shot Learning by Finding Flat Minima

Guangyuan Shi, Jiaxin Chen|arXiv (Cornell University)|Oct 30, 2021
Domain Adaptation and Few-Shot LearningComputer Science49 citations
TL;DR

The paper shows that finding flat local minima during base training and restricting fine-tuning to that flat region effectively mitigates catastrophic forgetting in incremental few-shot learning, outperforming prior methods.

ABSTRACT

This paper considers incremental few-shot learning, which requires a model to continually recognize new categories with only a few examples provided. Our study shows that existing methods severely suffer from catastrophic forgetting, a well-known problem in incremental learning, which is aggravated due to data scarcity and imbalance in the few-shot setting. Our analysis further suggests that to prevent catastrophic forgetting, actions need to be taken in the primitive stage -- the training of base classes instead of later few-shot learning sessions. Therefore, we propose to search for flat local minima of the base training objective function and then fine-tune the model parameters within the flat region on new tasks. In this way, the model can efficiently learn new classes while preserving the old ones. Comprehensive experimental results demonstrate that our approach outperforms all prior state-of-the-art methods and is very close to the approximate upper bound. The source code is available at https://github.com/moukamisama/F2M.

Motivation & Objective

  • Demonstrate the severity of catastrophic forgetting in incremental few-shot learning (IFL) and show baseline models can outperform many prior methods.
  • Propose a base-session optimization strategy that seeks flat local minima to preserve old knowledge.
  • Develop a fine-tuning procedure within a flat region for learning new classes with few samples.
  • Provide theoretical convergence guarantees for the proposed optimization framework.
  • Empirically validate the approach on CIFAR-100, miniImageNet, and CUB-200-2011 datasets.

Proposed method

  • Define and locate a b-flat local minima of the base training objective by adding random noise to model parameters and jointly optimizing multiple loss terms.
  • Use a base loss combining cross-entropy with a prototype drift penalty to keep class prototypes fixed within the flat region.
  • During incremental sessions, fine-tune only within the flat region using a metric-based (nearest class mean) classifier with Euclidean distance.
  • Clamp embedding-network parameters to stay inside the identified flat region after each update to prevent drift.
  • Provide a convergence analysis showing that under standard SGD assumptions the expected gradient norm tends to zero.

Experimental results

Research questions

  • RQ1Can catastrophic forgetting in incremental few-shot learning be mitigated by addressing the base-training stage rather than only the incremental updates?
  • RQ2Does forcing optimization to operate in a flat local minima region improve generalization to new tasks while preserving old knowledge?
  • RQ3What is the impact of prototype drift and parameter drift on long-term performance in IFL?
  • RQ4How does the proposed F2M method compare to state-of-the-art IFL and IL baselines on standard benchmarks?
  • RQ5Is there theoretical convergence support for the proposed flat-minima-based training strategy?

Key findings

  • A simple baseline that only trains on base classes can outperform several state-of-the-art IFL methods, highlighting severe forgetting.
  • Finding a flat local minima during base training and constraining later updates within that region substantially reduces forgetting.
  • F2M consistently outperforms state-of-the-art methods and approaches the approximate upper bound (cRT) on multiple datasets.
  • Ablation studies show that adding noise to locate flat minima and fixing prototypes are important components for performance gains.
  • The method achieves near-upper-bound performance with small gap to cRT, particularly on miniImageNet.
  • Theoretical analysis supports convergence of the proposed SGD-based algorithm under standard assumptions.

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.