Subspace Regularizers for Few-Shot Class Incremental Learning

Afra Feyza Akyürek, Ekin Akyürek, Derry Wijaya, Jacob Andreas

Instead of building complex, specialized architectures for incremental learning, recent research demonstrates that a simple geometric trick—regularizing new class weights to stay near the subspace of existing ones—can outperform state-of-the-art methods by up to 23%. By treating few-shot class incremental learning as a straightforward regularization problem, authors achieve superior results using ordinary logistic regression.

The Challenge: Learning on the Fly

Most machine learning models are static; they are trained on a fixed set of classes and deployed. In the real world, however, agents must learn new concepts on the fly (e.g., a self-driving car encountering a new type of road sign) without forgetting what they already know.

This challenge is known as Few-Shot Class Incremental Learning (FSCIL). It is notoriously difficult due to two competing problems:

  1. Catastrophic Forgetting: Updating a model on new data often "overwrites" the weights used for old classes, causing performance on original tasks to plummet.
  2. Overfitting: Because "few-shot" means having only a handful of examples (often just 1–5) for new classes, the model tends to memorize those specific images rather than learning generalizable features.

Existing solutions often rely on complex "meta-learning" frameworks or specialized architectures that are difficult to tune and reuse. This paper asks a fundamental question: Can we solve FSCIL using standard, simple classifiers?

The Solution: Subspace Regularization

The authors propose a two-step approach. First, they train a standard feature extractor (like a ResNet) on a large "base" dataset. When new classes arrive, they freeze the feature extractor and only update the final linear classification layer using novel regularization schemes.

Overview of the Few-Shot Class Incremental Learning setup and the proposed Subspace Regularization schemes.
  • Subspace Regularization: This is the core idea. The weight vectors for base classes define a "meaningful" subspace of features. When learning a new class (like "white wolf"), the model encourages its weight vector to lie close to the mathematical subspace spanned by the existing base weights (like "arctic fox" and "meerkat"). This prevents the model from picking up on spurious features unique to the tiny new dataset.
  • Semantic Subspace Regularization: If class names or descriptions are available, the model can perform even better. It pulls the weight vector of a new class toward a "semantic target"—a weighted combination of base class weights determined by the similarity of their natural language descriptions (using GloVe or Sentence-BERT embeddings).

Mathematically, this is achieved using a simple squared Euclidean distance penalty between the new weights and their projections onto the base subspace (calculated via QR decomposition).

Key Insights and Results

Evaluated on standard benchmarks like miniImageNet and tieredImageNet, this straightforward approach yielded surprising takeaways:

  • Simplicity is a Feature: Ordinary logistic regression, when properly regularized, beats specialized incremental learning models. This suggests the field may have been over-engineering solutions.
  • Massive Performance Gains: On miniImageNet, the Subspace Regularizer outperformed the previous state-of-the-art (TOPIC) by 23% in settings without a memory buffer.
  • Stability vs. Plasticity: In the final session (after learning 40 new classes), the proposed method maintained a total accuracy of ~51%, while previous specialized methods dropped to ~24%.
  • The Geometry of Knowledge: Forcing new weights into the existing geometric space maintains a "fair" competition between old and new classes, significantly reducing the bias toward the most recently seen data.
  • Language as a Bridge: Using natural language descriptions allows the model to "guess" what a new class should look like based on its similarity to known concepts, helping balance the trade-off between learning new things and remembering old ones.

Limitations and Future Work

While highly effective, the method currently freezes the convolutional backbone after initial training. While this prevents forgetting, it means the model cannot learn entirely new types of visual features. Additionally, the approach assumes that class representations live in a linear subspace; future work could explore non-linear manifolds for even more complex data. Finally, while it works well for hundreds of classes, scaling these geometric constraints to tens of thousands of classes remains an open question.

Summary updated

BibTeX
@inproceedings{akyurek2022subspace,
  author = {Afra Feyza Akyürek and Ekin Akyürek and Derry Wijaya and Jacob Andreas},
  title = {{Subspace Regularizers for Few-Shot Class Incremental Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=Crn7IiGGDCf},
}
Figure