YoooP: You Only Optimize One Prototype per Class for Non-Exemplar Incremental Learning

Jiangtao Kong, Zhenyu Zong, Tianyi Zhou, Huajie Shao

Abstract

Incremental learning (IL) usually addresses catastrophic forgetting of old tasks when learning new tasks by replaying old tasks' raw data stored in memory, which can be limited by its size and the risk of privacy leakage. Recent non-exemplar IL methods store class centroids as prototypes and perturb them with high-dimensional Gaussian noise to generate synthetic data for replaying. Unfortunately, this approach has two major limitations. First, the boundary between embedding clusters around prototypes of different classes might be unclear, leading to serious catastrophic forgetting. Second, directly applying high-dimensional Gaussian noise produces nearly identical synthetic samples that fail to preserve the true data distribution, ultimately degrading performance. In this paper, we propose YoooP, a novel exemplar-free IL approach that can greatly outperform previous methods by only storing and replaying one prototype per class even without synthetic data replay. Instead of merely storing class centroids, YoooP optimizes each prototype by (1) shifting it to high-density regions within each class using an attentional mean-shift algorithm, and (2) optimizing its cosine similarity with class-specific embeddings to form compact, well-separated clusters. Furthermore, we extend YoooP to YoooP+ by synthesizing replay data preserving the angular distribution between each class prototype and the class's real data in history. Extensive experiments demonstrate the superiority of YoooP/YoooP+ over non-exemplar baselines.

Introduction: The Challenge of Forgetting

In Class-Incremental Learning (CIL), a model learns new classes over time. The primary obstacle is catastrophic forgetting: as the model learns new tasks, it overwrites the weights necessary to remember previous ones. While "exemplar-based" solutions store real images to remind the model, privacy regulations (like GDPR) and memory constraints often make this impossible.

Non-exemplar methods attempt to circumvent this by storing class centroids (prototypes) and adding Gaussian noise to create synthetic replay data. However, these methods suffer from two fatal flaws identified by the authors:

  1. Blurry Boundaries: Simple class averages fail to create clear decision boundaries, leading to overlap and confusion between old and new classes.
  2. The Curse of Dimensionality: In high-dimensional spaces, Gaussian noise produces synthetic samples that are nearly identical, failing to capture the actual distribution of the original data.
Comparison of prototype optimization and augmentation between previous methods and YoooP.

Proposed Methodology: YoooP and YoooP+

To address these limitations, the researchers propose YoooP (You Only Optimize One Prototype) and its augmented version, YoooP+.

The overall framework of YoooP and YoooP+ for non-exemplar incremental learning.

Prototype Optimization (YoooP)

Rather than treating prototypes as passive averages, YoooP treats them as active targets. Using a mini-batch attentional mean-shift algorithm, the model shifts each class prototype toward the highest-density region of the feature space. Simultaneously, the model optimizes the cosine similarity between samples and their prototypes. This dual approach forces the model to create tight, compact clusters with clear "no-man's-lands" between classes, significantly reducing inter-class interference.

Angular Data Augmentation (YoooP+)

To improve replay without storing real images, YoooP+ introduces a novel rotation-based synthesis technique that avoids the "Gaussian noise trap":

  • Capturing the Shape: The model saves a small histogram of the angular distances (cosine similarities) between the prototype and real data points.
  • Rotation-based Replication: During replay, the model applies a high-dimensional rotation matrix to the prototype to generate synthetic points. These points are mathematically guaranteed to match the original angular distribution, effectively "hallucinating" realistic variations of the historical data.

Experimental Evaluation

The researchers evaluated YoooP on three standard computer vision benchmarks: CIFAR-100, TinyImageNet, and ImageNet-100.

Key Results

  • Superior Accuracy: On CIFAR-100 (10 phases), YoooP+ achieved 63.30% average accuracy, outperforming the popular PASS baseline (51.94%) by a substantial margin.
  • Classifier Efficiency: YoooP consistently outperformed methods like FeCAM and ADC, proving that a standard softmax classifier is highly effective if the feature space is properly optimized.
  • Resource Efficiency: YoooP is remarkably lightweight, requiring significantly less storage than class-mean methods (e.g., storing only 128 embeddings vs. 10,000+ for some baselines).
  • Closing the Gap: YoooP+ performed competitively with exemplar methods that store raw data, effectively removing the performance penalty usually associated with privacy-preserving AI.

Conclusion and Future Directions

YoooP demonstrates that optimizing a single prototype per class is a powerful strategy for non-exemplar incremental learning. By focusing on high-density regions and angular distributions, it overcomes the limitations of traditional centroid-based methods.

While currently validated on ResNet-18, future work will explore the application of these techniques to Vision Transformers (ViTs) and larger foundation models. Additionally, combining angular augmentation with advanced generative models, such as Diffusion models, could further enhance the realism of synthetic replay data and further mitigate catastrophic forgetting.

The code for YoooP is available at https://github.com/Snowball0823/YoooP.git.

Summary updated

BibTeX
@article{kong2025yooop,
  author = {Jiangtao Kong and Zhenyu Zong and Tianyi Zhou and Huajie Shao},
  title = {{YoooP: You Only Optimize One Prototype per Class for Non-Exemplar Incremental Learning}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=FYe66NLDkO},
}
Figure