Skip to main content
QUICK REVIEW

[Paper Review] Variational Prototype Replays for Continual Learning

Mengmi Zhang, Tao Wang|arXiv (Cornell University)|May 23, 2019
Domain Adaptation and Few-Shot LearningComputer Science38 references12 citations
TL;DR

This paper proposes Variational Prototype Replays, a continual learning method that uses variational prototypes—learned as distributions with means and variances in a latent space—to mitigate catastrophic forgetting. By replaying one representative sample per class from previous tasks and matching new embeddings to the nearest prototype distribution, the method achieves strong memory retention and generalization with minimal memory usage, outperforming state-of-the-art approaches on MNIST, CIFAR10, and miniImageNet under few-shot continual learning settings.

ABSTRACT

Continual learning refers to the ability to acquire and transfer knowledge without catastrophically forgetting what was previously learned. In this work, we consider \emph{few-shot} continual learning in classification tasks, and we propose a novel method, Variational Prototype Replays, that efficiently consolidates and recalls previous knowledge to avoid catastrophic forgetting. In each classification task, our method learns a set of variational prototypes with their means and variances, where embedding of the samples from the same class can be represented in a prototypical distribution and class-representative prototypes are separated apart. To alleviate catastrophic forgetting, our method replays one sample per class from previous tasks, and correspondingly matches newly predicted embeddings to their nearest class-representative prototypes stored from previous tasks. Compared with recent continual learning approaches, our method can readily adapt to new tasks with more classes without requiring the addition of new units. Furthermore, our method is more memory efficient since only class-representative prototypes with their means and variances, as well as only one sample per class from previous tasks need to be stored. Without tampering with the performance on initial tasks, our method learns novel concepts given a few training examples of each class in new tasks.

Motivation & Objective

  • To address catastrophic forgetting in continual learning, especially under few-shot, incremental class and domain settings.
  • To reduce memory overhead by storing only one sample per class and class-representative variational prototypes instead of full model weights or large generative models.
  • To improve generalization and retention by modeling class representations as probabilistic distributions with learned means and variances.
  • To enable efficient adaptation to new tasks with few examples, without requiring architectural changes or adding new network units.
  • To provide a scalable, parameter-efficient alternative to regularization and generative rehearsal methods in continual learning.

Proposed method

  • The method learns variational prototypes for each class as distributions in a latent space, parameterized by means and variances, to represent class-level features.
  • For each class in a new task, the model predicts embeddings and classifies them by finding the nearest prototype from the stored variational distributions.
  • To prevent forgetting, the model replays one sample per class from previous tasks and regresses the newly predicted variational distributions to match the stored prototype distributions.
  • The variance in the variational prototypes acts as a confidence measure, enabling selective forgetting of under-represented or less reliable features during new task learning.
  • The method uses a nearest-prototype classification strategy with multiple Monte Carlo samples from each variational prototype to improve robustness.
  • The model is trained end-to-end using a combination of classification loss and a prototype recall loss that encourages alignment between predicted and stored prototype distributions.

Experimental results

Research questions

  • RQ1Can modeling class representations as variational prototypes with learned means and variances improve memory retention in continual learning?
  • RQ2How does the use of probabilistic prototypes compare to single-point prototypes in preventing catastrophic forgetting?
  • RQ3Does replaying only one sample per class from previous tasks, combined with prototype matching, maintain performance on old tasks while enabling adaptation to new ones?
  • RQ4How do the dynamics of prototype means evolve across tasks, and what is their relationship to visual feature similarity?
  • RQ5Can the method generalize to new classes with only a few training examples, without architectural modifications or parameter regularization?

Key findings

  • The method achieves significant performance gains over state-of-the-art approaches on MNIST, CIFAR10, and miniImageNet under incremental class and domain protocols, with improved memory retention.
  • Replacing variance-weighted distance with uniform weighting reduces average accuracy by 1.2%, demonstrating the importance of uncertainty-aware prototype matching.
  • Replaying prototypes in reverse order (most recent first) causes a 1% performance drop, and replaying only the most recent prototypes leads to an additional 0.3% drop, indicating that older task knowledge is crucial for stability.
  • Forgetting under-represented features is mitigated by the variance component, as methods that only match means or variances perform significantly worse than those using both.
  • Increasing the latent dimension from 100 to 1000 boosts accuracy by 0.7%, while reducing it to 10 decreases performance, showing sensitivity to representation capacity.
  • The trajectory of prototype means across tasks correlates with visual feature similarity (r = 0.44), suggesting that the method develops a topologically structured latent space that preserves class separability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.