Abstract
In Continual Learning (CL), models often experience a "stability gap"—a sudden, temporary drop in performance on previous tasks when learning new information. This paper investigates the underlying causes of this phenomenon, specifically disentangling the contributions of the feature-extracting backbone and the classification head. Our findings reveal that the stability gap is primarily a consequence of the linear classification head's sensitivity to task-recency bias. By replacing the linear head with a non-parametric Nearest-Mean Classifier (NMC), we demonstrate a significant reduction in the stability gap and improved overall learning stability across multiple benchmarks.
Introduction
A core challenge in Continual Learning is "catastrophic forgetting," where new gradients overwrite previously acquired knowledge. Recent research has highlighted a specific manifestation of this problem known as the stability gap: an immediate performance plummet on old tasks at the start of a new task's training, which only partially recovers. Understanding whether this instability originates in the feature representations (the backbone) or the decision-making layer (the classification head) is critical for developing robust CL algorithms.
The Stability Gap and the Classification Head
The authors hypothesize that while the backbone representations remain relatively stable, the linear classification head becomes heavily biased toward the most recent data. To test this, they introduce the Nearest-Mean Classifier (NMC) as a diagnostic and remedial tool. Unlike standard linear heads that learn a weight matrix via cross-entropy, the NMC classifies samples by finding the nearest class prototype (the average feature vector for a class) in the feature space.
Methodology
The study evaluates the stability gap using two versions of the NMC:
- Oracle NMC: An upper-bound version using all previously seen data to calculate prototypes.
- Realistic NMC: A practical version using a small memory buffer of exemplars, consistent with standard CL constraints.
These methods were tested against a standard fine-tuning baseline across four diverse datasets: CIFAR100, ImageNet100, CUB-200-2011 (Birds), and FGVC Aircrafts, split into 5 or 10 sequential tasks.
Key Empirical Findings
The results across all benchmarks indicate that the classification head is the primary source of instability.
- Stability Gap Reduction: On the CIFAR100 (5 tasks) benchmark, the Stability Gap (SG) for a standard linear head was measured at 54.02%. Utilizing the Oracle NMC reduced this gap to just 13.88%.
- Performance Gains: In realistic settings with a memory buffer, the NMC improved final accuracy on ImageNet100 (10 tasks) from 32.38% to 45.02%.
- Task-Recency Bias: Linear heads exhibit extreme Latest Task Prediction Bias (LTB), quickly optimizing for new tasks at the expense of old ones. The NMC maintains a more balanced prediction distribution, effectively mitigating this bias.
Discussion and Conclusion
The research suggests that the "brain" of the model (the backbone) preserves representations of old tasks far better than standard accuracy metrics imply. The perceived "forgetting" is largely an artifact of the linear head's inability to manage shifting feature distributions. While the NMC significantly alleviates the stability gap, it still relies on a memory buffer for prototype calculation. Future work should explore extending these insights to exemplar-free CL methods and more complex tasks beyond image classification.
In conclusion, the classification head is the primary driver of the stability gap. Shifting toward non-parametric or bias-aware classification strategies is a vital step toward achieving truly stable continual learning.
Summary updated