NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Hard-Negative Prototype-Based Regularization for Few-Shot Class-Incremental Learning

Seongbeom Park, Hyunju Yun, Daewon Chae, Sungyoon Kim, Suhong Moon, Minwoo Kang, Seunghyun Park, Jinkyu KimTMLR 2025

Abstract

Few-shot class-incremental learning (FSCIL)---involving abundant base training data followed by novel classes with limited labeled samples---poses challenges such as catastrophic forgetting and overfitting, leading to significant performance degradation across incremental sessions. As a remedy, recent work focuses on minimizing the interference of embeddings between base and incremental classes. However, previous studies have not explicitly considered variation in discriminative difficulty across samples and classes, leaving room for improvement: we observe that hard-negative (i.e., difficult to discriminate from the label) samples and classes significantly affect FSCIL performance, whereas easy ones have little impact. To this end, we propose a hard-negative prototype-based regularization approach that enhances discrimination between similar classes by imposing a penalty margin between each sample and its most similar class prototypes based on cosine similarity. To select hard-negative prototypes, we explore two distinct mining strategies: dynamic selection that leverages the model's decision boundary, and static selection that utilizes a pre-defined class-wise similarity matrix derived from external sources such as pre-trained models. We evaluate our approach on three widely used benchmarks, miniImageNet, CIFAR100, and CUB200, achieving state-of-the-art performance on each. Comprehensive analyses demonstrate that our proposed method enhances intra-class cohesion and inter-class separability of embeddings, both of which are crucial for FSCIL to better accommodate novel classes.

Introduction

Few-Shot Class-Incremental Learning (FSCIL) is a challenging paradigm where a model must continuously learn new classes from very few examples after being trained on a large base dataset. The primary obstacles are catastrophic forgetting—where new knowledge overwrites old—and overfitting—where the model fails to generalize from limited novel samples.

Recent research has focused on preserving the embedding space for future classes. However, a critical observation often overlooked is that not all samples contribute equally to performance degradation. This paper identifies that "hard-negative" samples—those easily confused with other classes—are the primary drivers of forgetting, while "easy" samples remain relatively stable.

Methodology: Hard-Negative Prototype-Based Regularization (HNPR)

To address the interference caused by hard-negative samples, we propose Hard-Negative Prototype-Based Regularization (HNPR). The core idea is to explicitly "push" samples away from the most confusing class prototypes during the base training session.

Conceptual comparison between the baseline and our proposed HNPR method. HNPR pushes hard samples away from confusing prototypes to create sufficient space for novel classes.

Angular Margin and Prototype Regularization

HNPR operates in an angular margin space. It calculates the cosine similarity between a sample's feature vector and the prototypes (representative vectors) of all classes. Instead of a uniform penalty, HNPR applies an additional margin penalty specifically to the $k$ most similar (hard-negative) prototypes. This creates a "repulsive force" that clears the neighborhood around each class, enhancing inter-class separability and leaving "breathing room" for future incremental classes.

Mining Strategies

We explore two strategies for identifying these hard-negative prototypes:

  1. Dynamic Selection: Confusing classes are identified on-the-fly during training based on the model's current decision boundaries. This stochasticity helps the model generalize better.
  2. Static Selection: Uses a pre-defined similarity matrix from external sources (e.g., a pre-trained CLIP model) to identify classes that are inherently similar, such as different breeds of dogs.

Key Insights: The Role of Hard Samples

Our analysis confirms that performance degradation in FSCIL is concentrated in hard samples. As shown in the experimental results, "easy" samples (those close to their class center) maintain high accuracy even after multiple incremental sessions. In contrast, hard samples are where the baseline models fail most significantly, and where HNPR provides the most substantial gains.

Accuracy comparison for hard vs. easy samples at $k=20\%$. While easy samples are consistently well-classified, HNPR significantly improves performance on hard samples compared to the baseline.

Experimental Results

We evaluated HNPR on three major benchmarks: miniImageNet, CIFAR100, and CUB200. Our method achieved state-of-the-art (SOTA) performance across all datasets:

  • miniImageNet: Final accuracy of 59.96%.
  • CIFAR100: Final accuracy of 55.98%.
  • CUB200: Final accuracy of 61.98%, a significant improvement over previous methods on this fine-grained dataset.

Furthermore, HNPR consistently showed a lower Performance Drop (PD) between the first and last sessions, indicating superior retention of base knowledge.

Conclusion

HNPR offers a simple yet effective regularization strategy for FSCIL by focusing on the most discriminative challenges. By penalizing similarities with hard-negative prototypes, the model develops a more robust embedding space with enhanced intra-class cohesion and inter-class separability. This approach not only mitigates catastrophic forgetting but also provides the necessary flexibility to incorporate novel classes with minimal data.

This paper was published in Transactions on Machine Learning Research (11/2025).

Summary updated

BibTeX
@article{park2025hard,
  author = {Seongbeom Park and Hyunju Yun and Daewon Chae and Sungyoon Kim and Suhong Moon and Minwoo Kang and Seunghyun Park and Jinkyu Kim},
  title = {{Hard-Negative Prototype-Based Regularization for Few-Shot Class-Incremental Learning}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=xKn7O0vDaR},
}
Figure