Memory-Efficient Continual Learning with Prototypical Exemplar Condensation

M.-Duong Nguyen, Thien-Thanh Dao, Le-Tuan Nguyen, Dung D. Le, Kok-Seng Wong

TL;DR

Rehearsal-based continual learning typically requires maintaining a large buffer of past images to prevent "catastrophic forgetting," which is highly memory-intensive and poses privacy risks. This paper introduces ProtoCore, a framework that uses model inversion to condense past knowledge into just a few highly representative, synthetic "prototypical exemplars" per class. By pairing these condensed images with a prototype perturbation technique, ProtoCore achieves state-of-the-art performance on long task sequences while drastically reducing the model's memory footprint.

What Problem Does This Paper Address?

Deep learning models excel at learning from static datasets, but when forced to learn new tasks sequentially—a paradigm known as Continual Learning (CL)—they suffer from catastrophic forgetting. The model overwrites previously acquired knowledge to accommodate new data.

The most common remedy is rehearsal, where a small buffer of original images from past tasks is saved and replayed during training. However, to keep performance stable, standard methods typically require storing at least 20 samples per class (SPC). As the number of tasks scales up, this buffer grows unsustainably large, making it impractical for resource-constrained edge devices or autonomous systems. Furthermore, storing raw user data introduces severe privacy concerns.

While dataset distillation techniques attempt to compress this data into synthetic images, they frequently suffer from representation shift: as the model's feature extractor updates over time, the synthetic images lose their meaning to the network.

Methods

The authors propose ProtoCore (Prototypical Coreset Condensation), which replaces raw image storage with highly optimized synthetic exemplars. The framework consists of three main pillars:

  1. Prototypical Exemplar Generation via Model Inversion: Instead of training a separate, computationally heavy generative model (like a GAN), ProtoCore uses model inversion to synthesize images directly. It optimizes a latent variable so that the resulting image's embedding closely matches the true class prototype. The optimization balances three distinct losses: aligning with the current task's prototypes, maintaining consistency with previous tasks' synthetic exemplars, and a regularization term ($L_{shift}$) that uses stored real prototype vectors as anchors to prevent representation drift.
  2. Contrastive Prototypical Loss: Standard prototypical networks can yield overlapping, poorly separated class clusters. ProtoCore swaps this out for a class-level contrastive objective, explicitly forcing the network to pull similar samples together and push different classes apart, creating highly distinct prototypes.
  3. Task-Head Learning via Prototype Perturbation: Training a classifier on only 1 to 5 samples per class normally causes severe overfitting. To circumvent this, ProtoCore applies controlled Gaussian noise perturbations to the learned prototypes during training. This generates a diverse cloud of synthetic latent representations on the fly, effectively simulating a full dataset from a single exemplar.

Datasets

The authors evaluated ProtoCore across three widely used computer vision benchmarks, configured with challenging long-task sequences:

  • S-CIFAR-100: Split into 10 and 50 sequential tasks.
  • S-TinyImageNet: Split into 20 sequential tasks.
  • S-ImageNet-1K: A large-scale benchmark split into 100 sequential tasks.

Key Insights and Ideas

  • Bypassing Generative Models: Most generative replay methods require backpropagating through a complex generator network during training, which incurs massive computational overhead. ProtoCore generates fixed-size synthetic images ($C \times H \times W$) directly via model inversion, making it far more efficient.
  • Real Prototypes as Low-Cost Anchors: Storing a single, low-dimensional real prototype vector alongside each synthetic image adds virtually zero memory overhead, yet it provides a permanent anchor that prevents synthetic data from drifting as the feature extractor evolves.
  • Contrastive Separation is Crucial: The "aha moment" for the loss function was realizing that standard prototypical loss doesn't separate classes cleanly enough. Introducing contrastive learning ensures that the prototypes are distinct enough to tolerate heavy noise perturbations without bleeding into adjacent classes.

Key Results

ProtoCore demonstrates an exceptional balance between accuracy and memory efficiency, particularly in long-task scenarios.

Figure 2. Last accuracy on tasks observed so far in the test set of S-CIFAR-100 (10, 50 tasks), S-TinyImageNet (20 tasks), and S-ImageNet- 1K (100 tasks).
  • Superior Scaling: On the massive 100-task S-ImageNet-1K benchmark, ProtoCore storing just 5 samples per class achieved a final accuracy of 9.03%, outperforming established methods like iCaRL (5.05%) and DER++ (4.17%) which required 20 samples per class.
  • Drastic Memory Savings: As shown in the paper's computational analysis, ProtoCore achieves the second-lowest memory footprint among all baselines, requiring a mere 0.26 MB of maximum HDD storage on CIFAR-100, compared to the 6.20 MB demanded by standard coreset and replay methods.
  • Rapid Convergence: Visualizations show that the synthetic features rapidly align with the real data distribution in fewer than 40 epochs.
t-SNE visualization showing synthetic features (dots) converging onto real prototypes (stars) over 30 steps.

Limitations and Future Work

Despite its strong performance, the authors note a few key limitations:

  • Simplistic Noise Perturbations: The prototype augmentation mechanism relies on isotropic Gaussian noise. This assumption fails to capture the true, complex geometric boundaries of real-world class clusters, which are rarely perfectly spherical.
  • Exemplar Fidelity vs. Computation: Generating high-quality synthetic exemplars for every single task still introduces an optimization overhead during the task-transition phase. Balancing this computational cost with exemplar fidelity remains an open challenge.

For future work, the authors plan to explore margin-based objectives to further widen the gaps between different classes in the embedding space.

Summary updated

BibTeX
@inproceedings{nguyen2026memory,
  author = {M.-Duong Nguyen and Thien-Thanh Dao and Le-Tuan Nguyen and Dung D. Le and Kok-Seng Wong},
  title = {{Memory-Efficient Continual Learning with Prototypical Exemplar Condensation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=00cNzNHUwY},
}
Figure