Abstract
Online Continual Learning (OCL) requires models to learn from a non-stationary data stream in a single pass without catastrophic forgetting. This paper identifies "shortcut learning"—where models rely on biased, non-semantic features—as a primary failure mode in OCL. We propose Online Prototype Learning (OnPro), a framework that maintains a discriminative equilibrium using class prototypes. OnPro adaptively reinforces boundaries between confused classes, achieving state-of-the-art accuracy on benchmarks like CIFAR and TinyImageNet, even in low-memory regimes.
Introduction
The goal of Online Continual Learning is to enable models to learn continuously from a stream of data where each sample is seen only once. A significant hurdle in this setting is Shortcut Learning. Due to the sequential nature of data, models often learn "lazy" features (e.g., identifying an airplane by the blue sky) rather than robust semantic representations. Previous replay-based methods often inadvertently distill these biased features, leading to poor generalization when new, similar classes appear.
The OnPro Framework
OnPro addresses these challenges through two primary mechanisms: Online Prototype Equilibrium (OPE) and Adaptive Prototypical Feedback (APF).
Online Prototype Equilibrium (OPE)
OPE calculates "online prototypes"—the mean representation of a class within a mini-batch. It employs a contrastive loss to pull prototypes of the same class together while pushing different class prototypes apart. This creates a dynamic equilibrium that prevents the feature space of old classes from collapsing as new ones are introduced.
Adaptive Prototypical Feedback (APF)
To handle varying levels of class difficulty, APF monitors the distance between prototypes to identify confused classes. It then uses a sampling-based mixup strategy to adaptively select more samples from these classes, reinforcing their decision boundaries and mitigating forgetting.
Experimental Results
OnPro was evaluated on CIFAR-10, CIFAR-100, and TinyImageNet. It consistently outperformed 13 baseline methods, including OCM, SCR, and DER++.
Mitigating Shortcut Learning
A key advantage of OnPro is its ability to learn robust features. Visualization using Grad-CAM++ demonstrates that while baseline methods like Experience Replay (ER) often focus on background elements (like grass or sky), OnPro focuses accurately on the objects themselves.
Quantitative Performance
On CIFAR-10 with a buffer size of 200, OnPro achieved 65.5% average accuracy, significantly higher than the next best method, OCM (59.6%). On TinyImageNet (buffer size 4k), OnPro reached 22.1% accuracy. Furthermore, OnPro demonstrated the lowest forgetting rates across CIFAR datasets, proving that the prototype equilibrium effectively anchors old knowledge.
Conclusion
OnPro provides a robust solution for Online Continual Learning by shifting the focus from individual sample distillation to maintaining a global prototype equilibrium. By effectively countering shortcut learning and adaptively managing class confusion, it sets a new standard for performance in memory-constrained online settings.
Summary updated