Abstract
Continual Learning (CL) aims to enable artificial intelligence models to learn from a continuous stream of data without forgetting previously acquired knowledge. While "Experience Replay" (ER) methods—which store a subset of old data—are currently dominant, they are often impractical due to privacy regulations and memory constraints. This paper introduces Prototype-Sample Relation Distillation (PRD), a novel replay-free framework. PRD leverages current task data as a relational "anchor" to maintain the structural integrity of old class prototypes in the embedding space. Experimental results across benchmarks like Split-CIFAR100 and ImageNet32 demonstrate that PRD achieves state-of-the-art performance, often outperforming replay-based methods without storing any past samples.
Introduction
In the field of Continual Learning, the primary obstacle is catastrophic forgetting: the tendency of neural networks to overwrite weights associated with previous tasks when learning new ones. To mitigate this, many researchers rely on storing a buffer of past data to periodically retrain the model. However, in real-world applications—such as medical imaging or personal finance—storing sensitive data is often legally or ethically prohibited. Furthermore, as the number of tasks grows, the memory required for even a small buffer per class becomes prohibitive.
PRD addresses these challenges by proposing a method that preserves the model's internal "memory" of old classes without requiring the physical storage of old data. By focusing on the relational geometry between class prototypes and incoming samples, PRD maintains a stable representation space throughout the learning process.
Methodology
The PRD framework is built upon three synergistic components designed to balance stability (preserving old knowledge) and plasticity (learning new information).
1. Supervised Contrastive Learning ($L_{SC}$)
Rather than relying on standard cross-entropy classification, PRD utilizes a supervised contrastive loss. This approach maps images into an embedding space where samples of the same class are clustered together while different classes are pushed apart. This creates a more robust and discriminative feature space that is naturally more resistant to the representational drift that causes forgetting.
2. Prototype Learning ($L_p$)
For every class encountered, the model maintains a "prototype"—a representative vector in the latent space. PRD employs a "contrast-free" loss to update these prototypes. A critical element here is the use of stop-gradient operations; this ensures that prototypes follow the evolving representation rather than forcing the representation to warp to fit static prototypes, which significantly reduces inter-task interference.
3. Relation Distillation ($L_d$)
This component is the core innovation of the paper. When the model begins a new task, it calculates the similarity between the existing (old) prototypes and the new incoming data. During training, a distillation loss is applied to ensure that these relative similarities remain consistent. By using the new data as a "ruler" or "anchor," the model can detect if the old prototypes are drifting in the embedding space and correct their positions relative to the new data points. This preserves the "constellation" of class representations without needing the original samples.
Experimental Evaluation
Benchmarks
The researchers evaluated PRD on a variety of rigorous benchmarks:
- Split-CIFAR100 & Split-MiniImageNet: Standard benchmarks consisting of 20 sequential tasks with 5 classes each.
- ImageNet32: A large-scale benchmark involving a sequence of 200 tasks, testing the model's long-term resilience.
- CLAD-C: A real-world domain-incremental dataset using dashcam footage, characterized by severe class imbalances and environmental shifts (e.g., day to night transitions).
Performance Highlights
- Superiority over Replay: On Split-CIFAR100, PRD (storing zero samples) outperformed standard Experience Replay (ER) even when ER was permitted to store 20 samples per class.
- Long-Sequence Stability: In the 200-task ImageNet32 experiment, PRD maintained remarkably stable accuracy. In contrast, other popular replay-free methods like Learning without Forgetting (LwF) and Elastic Weight Consolidation (EWC) saw their performance collapse as the task sequence extended.
- State-of-the-Art Results: PRD established new performance benchmarks for replay-free methods in both task-incremental and class-incremental settings.
Discussion and Insights
The success of PRD suggests that the relative geometry of the embedding space is a powerful proxy for actual data. By maintaining the relationship between new samples and old prototypes, the model effectively "remembers" the boundaries of old classes. This approach provides a high degree of plasticity, allowing the model to learn new tasks quickly, while providing stability that rivals or exceeds buffer-based methods.
Limitations
Despite its performance, PRD has certain limitations. Like many contrastive learning approaches, it benefits significantly from a strong initial feature extractor. Additionally, calculating the similarities between every sample in a mini-batch and the growing bank of prototypes introduces a computational overhead during the training phase. Finally, as the number of classes scales into the thousands, the management of the prototype bank may require more complex architectural optimizations.
Conclusion
Prototype-Sample Relation Distillation (PRD) represents a significant step forward for replay-free continual learning. By demonstrating that relational anchors can replace physical data storage, PRD offers a privacy-preserving and memory-efficient path toward AI systems that can learn indefinitely in dynamic, real-world environments.
Summary updated