Condensed Prototype Replay for Class Incremental Learning

Jiangtao Kong, Zhenyu Zong, Tianyi Zhou, Huajie ShaoarXiv 2023 · DOI

Introduction

Deep neural networks excel at learning from static datasets but struggle with Class-Incremental Learning (CIL), where new classes are introduced sequentially. The primary challenge in CIL is catastrophic forgetting: as the model learns new information, it tends to overwrite the weights necessary to recognize previously learned classes.

Traditional solutions often rely on "exemplar-based" methods, which maintain a memory buffer of raw data samples from old classes. While effective, these methods raise privacy concerns and are impractical for memory-constrained devices. Conversely, "non-exemplar" methods store only class statistics (prototypes), but often suffer from lower accuracy due to class interference and poor representation of complex class boundaries. This paper introduces YONO (You Only Need to replay One condensed prototype per class) and its enhanced version YONO+, which bridge this performance gap by replaying a single, optimized prototype per class.

The YONO Framework

The YONO approach moves beyond simple class centroids by focusing on high-density feature regions and synthetic data generation.

Overview of the YONO and YONO+ frameworks, highlighting Memory Condensation (a) and Data Synthesis (b).

Attentional Mean-Shift (Memory Condensation)

Standard non-exemplar methods typically use the mean of feature vectors as a class prototype. However, simple averages are sensitive to outliers and may not represent the most discriminative part of the feature space. YONO employs an attentional mean-shift algorithm to find the highest-density region in the feature space. This "condensed" prototype serves as a more robust anchor for the model's memory of old classes.

Cluster Compaction via Arcface Loss

To minimize interference between old and new classes, YONO utilizes an Arcface loss function. This objective forces samples to cluster tightly around their respective prototypes, maximizing the angular margin between different categories. By creating compact, well-separated clusters, the model preserves "room" in the feature space for future classes, significantly reducing forgetting.

YONO+: Advanced Data Synthesis

While YONO replays only the single condensed prototype, YONO+ introduces a data synthesis module to better approximate the original data distribution. It uses a high-dimensional rotation matrix combined with Gaussian noise to generate "proxy" samples. These synthetic features maintain the same angular relationship to the prototype as the original data, providing the model with a richer "reminder" of old classes without the need to store actual images.

Experimental Evaluation

The researchers evaluated YONO and YONO+ on two standard benchmarks: CIFAR-100 (100 classes) and TinyImageNet (200 classes). These were tested in incremental settings with 5 and 10 learning phases.

Key Results

The experimental results demonstrate that replaying a single optimized prototype can rival or even exceed the performance of storing dozens of actual images.

Comparison of average accuracy vs. buffer size across various CIL methods. YONO+ achieves state-of-the-art performance in the non-exemplar category.
  • Superiority over Non-Exemplar Baselines: YONO+ significantly outperformed existing methods like PASS and SSRE. On the TinyImageNet 10-phase benchmark, YONO+ achieved an average accuracy of 58.42%, a substantial improvement over PASS's 40.15%.
  • Competitive with Exemplar Methods: Remarkably, YONO+ often outperformed exemplar-based methods (such as iCaRL) that store 20 actual images per class. This suggests that the quality of the replayed information is more critical than the quantity.
  • Reduced Forgetting: Metrics showed that YONO+ consistently maintained lower "Average Forgetting" scores, validating the effectiveness of its cluster compaction and synthesis strategies in protecting prior knowledge.

Conclusion

YONO and YONO+ represent a significant advancement in Class-Incremental Learning. By shifting the focus from storing raw data to replaying condensed, high-density prototypes and synthetic proxies, these methods achieve state-of-the-art performance without the privacy and memory overhead of traditional buffers. Future work may involve extending this prototype-based approach to more complex domains such as object detection and natural language processing, or integrating more advanced generative models for even more realistic data synthesis.

Summary updated

BibTeX
@misc{kong2023condensed,
  author = {Jiangtao Kong and Zhenyu Zong and Tianyi Zhou and Huajie Shao},
  title = {{Condensed Prototype Replay for Class Incremental Learning}},
  year = {2023},
  eprint = {2305.16143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.16143},
}
Figure