Prototype-Based Continual Learning with Label-free Replay Buffer and Cluster Preservation Loss

Agil Aghasanli, Yi Li, Plamen AngelovWorkshops @ CVPR 2025

Introduction

Artificial neural networks frequently encounter the challenge of catastrophic forgetting, where learning new tasks leads to the erasure of previously acquired knowledge. While experience replay—storing and re-showing old data—is a common countermeasure, it often relies on labeled data, posing privacy risks and increasing storage requirements. This paper introduces a novel framework that shifts the focus from raw data to the geometry of the latent space. By utilizing a label-free replay buffer and a Cluster Preservation Loss, the proposed method maintains the integrity of learned categories across Class-Incremental and Domain-Incremental learning scenarios, occasionally even outperforming traditional offline training.

Methodology

The authors propose two variants: iSL-LRCP (incremental Supervised Learning) and iUL-LRCP (incremental Unsupervised Learning). The architecture leverages a frozen DINOv2 backbone for feature extraction, followed by a trainable linear layer that projects features into a 512-dimensional latent space.

Overview of the iSL-LRCP architecture and the prototype-based classification pipeline.

The approach is built upon three core components:

  1. Label-free Replay Buffer: Instead of raw images, the system stores class prototypes (cluster centers) and support samples (points representing cluster spread, selected via $\sigma$-band sampling). This preserves the "shape" of the data distribution without needing explicit labels.
  2. Cluster Preservation Loss ($\mathcal{L}_{preserve}$): Utilizing Maximum Mean Discrepancy (MMD), this loss minimizes the distributional shift of old clusters, ensuring that prototypes do not drift as the model updates for new tasks.
  3. Push-Away and Pull-Toward Mechanisms: In class-incremental settings, a Push-Away loss ($\mathcal{L}_{push}$) prevents overlap between new data and old prototypes. In domain-incremental settings, a Pull-Toward loss ($\mathcal{L}_{pull}$) aligns new representations with existing prototypes to maintain consistency across varying environments.

Classification is performed using a nearest prototype classifier, which avoids the scaling issues associated with traditional softmax layers in incremental settings.

Experimental Setup

The framework was evaluated on several benchmarks:

  • Class-Incremental (CI): SplitCIFAR100, SplitImageNet32, SplitTinyImageNet, and SplitCaltech256.
  • Domain-Incremental (DI): R-MNIST (rotated digits) and CORe50 (objects in varying conditions).

Results and Discussion

The proposed method demonstrates superior performance in both accuracy and memory retention. A key finding is that the spatial arrangement of clusters in the latent space is more critical for memory than the labels themselves. By replaying the "structure" of a class, the model maintains clear decision boundaries.

Performance comparison on SplitTinyImageNet. The iSL-LRCP method maintains high accuracy and exhibits significantly lower forgetting than competing methods, even surpassing the offline baseline.

On SplitTinyImageNet, iSL-LRCP achieved 84.63% accuracy, surpassing the offline baseline of 82.13%. Similarly, on CORe50, the model reached 97.71% accuracy, outperforming the 95.33% offline baseline. The method also showed the lowest Backward Transfer (BWT)—a metric for forgetting—across nearly all datasets. For instance, on SplitCIFAR100, BWT was only -6.68%, compared to -19.12% for the ER-AML baseline.

The unsupervised variant (iUL-LRCP) also proved highly effective, outperforming several supervised baselines like iCaRL. This suggests that ground-truth labels for incoming data are not strictly necessary for building functional continual learners if the latent structure is preserved.

Conclusion and Future Work

While the results are promising, the reliance on a powerful, frozen backbone like DINOv2 suggests that performance might vary if the backbone requires fine-tuning. Additionally, the domain-incremental variant still requires labels for the current task to facilitate the Pull-Toward mechanism. Future research will focus on making the domain-incremental process entirely unsupervised and testing the framework on larger, non-curated data streams.

Summary updated

BibTeX
@inproceedings{aghasanli2025prototype,
  author = {Agil Aghasanli and Yi Li and Plamen Angelov},
  title = {{Prototype-Based Continual Learning with Label-free Replay Buffer and Cluster Preservation Loss}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure