Abstract
Continual Learning (CL) aims to enable neural networks to learn a sequence of tasks without suffering from catastrophic forgetting. In the challenging Class Incremental Learning (CIL) setting, models must classify samples from all seen tasks without knowing the task identity at inference. This paper introduces MORE (Multi-head model for continual learning via OOD REplay), a novel framework that treats memory replay data as out-of-distribution (OOD) samples. By training task-specific heads to act as expert OOD detectors, MORE effectively defines task boundaries and enables accurate multi-head classification in a CIL context. Experimental results demonstrate that MORE outperforms existing state-of-the-art methods while maintaining high robustness to limited memory resources.
Introduction
The primary challenge in Continual Learning is Catastrophic Forgetting (CF), where learning new information leads to the erasure of previously acquired knowledge. Class Incremental Learning (CIL) is particularly difficult because the model lacks a task ID during testing, requiring it to distinguish between all classes encountered throughout its lifetime. Traditional replay-based methods often struggle with "drift" when memory buffers are small. MORE addresses this by shifting from a single-head global classifier to a multi-head architecture where each head is trained to recognize its specific task classes while rejecting others as OOD.
Methodology
MORE leverages a multi-head architecture combined with a pre-trained Vision Transformer (ViT) backbone. The core innovation lies in how memory replay is utilized.
Replay as OOD Training
Instead of using saved samples solely to refresh old knowledge, MORE treats samples from previous tasks (stored in a memory buffer) as OOD data when training a new task head. For Task $k$, the head is trained to assign high probabilities to its own classes and a specific "OOD" label to samples from Tasks $1$ to $k-1$. This turns each head into an expert discriminator for its respective task.
Adapters and Hard Attention Masking
To maintain parameter efficiency and prevent interference, MORE inserts small, trainable adapter modules into the ViT layers. Following the Hard Attention Task (HAT) approach, binary masks are applied to these adapters to "lock" the circuits used by previous tasks, ensuring that updates for new tasks do not degrade existing performance.
Back-Updating and Inference
As new tasks are learned, the OOD detection capabilities of previous heads are refined through "back-updating" using the new task data. At inference, the model evaluates an input across all task heads. A combination of softmax probabilities and Mahalanobis distance-based scores is used to determine the final class, effectively selecting the head that least rejects the input as OOD.
Experimental Results
The performance of MORE was evaluated on standard benchmarks including CIFAR-10, CIFAR-100, and Tiny-ImageNet.
Accuracy and Resilience
On CIFAR-100 (10 tasks), MORE achieved an average accuracy of 70.23%, surpassing competitive baselines like DER++ (69.73%) and PASS (68.90%). Notably, MORE exhibits exceptional resilience to memory constraints; reducing the memory buffer size results in minimal performance degradation compared to traditional replay methods like iCaRL.
Conclusion
MORE introduces a paradigm shift in CIL by repurposing memory replay for OOD detection within a multi-head framework. By combining parameter-efficient adapters with hard attention masking, the model achieves superior accuracy and robustness. While back-updating introduces some computational overhead, the benefits in terms of memory efficiency and classification performance make MORE a compelling solution for real-world continual learning scenarios.
Summary updated