Introduction
Continual Learning (CL)—also known as lifelong or incremental learning—requires models to learn from a sequential stream of tasks over time. A notorious hurdle in this domain is catastrophic forgetting: as a model learns a new task, its performance on previously learned tasks plummets.
Traditionally, researchers mitigated this by keeping a "memory buffer" of old data to replay during training. However, modern privacy regulations and storage constraints increasingly demand memory-free environments. To address this, recent research introduces Adaptive Retention & Correction (ARC), a novel "plug-and-play" module that tackles catastrophic forgetting during the inference (testing) phase. By identifying test samples from previous tasks and using them to dynamically re-balance the classifier, ARC achieves significant accuracy boosts without requiring any changes to the original model's training procedure.
The Root of the Problem: Classifier Bias
Recent studies suggest that for models using large pretrained backbones (like Vision Transformers), the "knowledge" within the feature extractor remains mostly intact during continual learning. The real culprit behind catastrophic forgetting is classifier bias.
As new tasks are introduced, the final linear classification layer becomes heavily skewed toward the most recent task, frequently misclassifying older data into new categories. ARC shifts the solution from training-time to test-time, leveraging the unlabeled data encountered during inference to "retrospect" and correct this classifier bias on the fly.
The ARC Framework
The authors introduce a two-step framework designed to operate entirely during the testing phase:
1. Out-of-Task Detection (OTD)
Because test samples arrive without task labels, the model must first estimate whether a sample belongs to a past task. OTD relies on two empirical assumptions:
- Assumption 1: If a sample is predicted as a past class with high confidence, it is highly likely to be a correctly classified "old" sample.
- Assumption 2: If a sample is predicted as a current class but with low confidence, it is likely an "old" sample being misclassified due to recent task bias.
2. Adaptive Retention & Correction
Once samples are categorized by the OTD module, ARC applies targeted interventions:
- Adaptive Retention: For samples identified by Assumption 1, the model performs a single online gradient update on the classifier weights using a combination of cross-entropy and entropy minimization. This quick update "reminds" the classifier of old task boundaries.
- Adaptive Correction: For samples identified by Assumption 2, the model applies a Task-based Softmax Score (TSS). This mechanism masks out the current task's logits and applies task-specific temperature scaling to the remaining logits. It effectively "re-tunes" the competition between past tasks to uncover the correct historical label.
Key Insights: The Backbone is Fine
A foundational insight of this work is that the pretrained backbone loses very little information during continual learning.
The authors prove via "linear probing" that the feature extractor's representations remain robust. As shown in the evaluations, the performance drop is almost entirely due to the classifier head's weights growing imbalanced. By recognizing that the stream of data seen during testing provides a "free" opportunity to identify and fix this bias, ARC taps into an underutilized resource.
Furthermore, unlike standard Test-Time Adaptation (TTA) methods like TENT—which adapt to all incoming data—ARC is surgical. It only adapts when it detects a sample likely belonging to a past task, preventing the model from "over-adapting" to the current test batch.
Experimental Results
The researchers evaluated ARC as a plugin for several state-of-the-art CL methods (e.g., SLCA, L2P, DualPrompt, iCaRL) across three major benchmarks: Split CIFAR-100, Split ImageNet-R, and a 5-dataset composite benchmark.
- Universal Performance Boost: ARC provided an average accuracy increase of 2.7% on CIFAR-100 and 2.6% on ImageNet-R.
- Long-Sequence Strength: Improvements were even more pronounced in long-sequence scenarios (more tasks), where classifier bias is typically most severe.
- Memory Agnostic: While designed for memory-free settings, ARC also improved methods that do use a memory buffer (like iCaRL), proving it is a versatile booster for Continual Learning.
- Outperforming TTA: ARC consistently outperformed TENT by nearly 3% in some settings, demonstrating that task-aware correction is superior to task-agnostic adaptation.
Limitations and Future Directions
While highly effective, ARC does introduce computational overhead. Because it performs a gradient update during inference (for Retention) and extra logit processing (for Correction), it increases per-sample latency during testing. Additionally, the method relies on threshold parameters to detect out-of-task samples, which may require domain-specific tuning.
Future work may explore integrating ARC with complex "prompt-based" learning methods, where bias might exist not just in the linear head, but within the prompt selection mechanism itself.
Summary updated