TL;DR
Continual learning typically keeps models static during deployment, completely ignoring the continuous stream of unlabeled data encountered in production. This paper introduces DoSAPP (Double Smoothing via Affine Projected Parameters), an online student-teacher framework that leverages unsupervised test-time data to "refresh" past knowledge, slashing catastrophic forgetting without requiring an episodic replay buffer.
What Problem Does This Paper Address?
When pre-trained vision-language models like CLIP are adapted sequentially to new tasks (Class-Incremental Learning, or CIL), they suffer from catastrophic forgetting—rapidly losing performance on previously learned concepts. Traditional remedies rely on Experience Replay (storing and retraining on subsets of past data), but storing raw exemplars introduces severe privacy violations and memory bottlenecks.
Existing continual learning (CL) methods focus entirely on the supervised training phases, leaving the model frozen during evaluation. Meanwhile, conventional Test-Time Adaptation (TTA) techniques focus on mitigating covariate distribution shifts rather than preserving discrete past task identities, and standard TTA actually exacerbates forgetting when plugged into CL pipelines. This work asks: Can streaming, unlabeled test-time data be harnessed online to combat forgetting of prior tasks for free?
Methods
The authors introduce a new continual learning paradigm with interleaved test-time learning (TTL) and propose DoSAPP:
[Supervised Session] ──> Sparse Gradient Selection (1st MLP layers) ──> Dual-Momentum Teacher EMA
│
[Deployment / TTL] <── Max-Logit Pseudo-Labeling ── Sparse Mask Union Updates ┘
- Sparse Parameter Selection: Only candidate parameters within the first MLP layer of each transformer block (which act as key-value memory detectors) are updated. Using the gradient magnitude of the CLIP contrastive loss, the top 10% most sensitive parameters ($m$) are selected; all others remain frozen.
- Dual-Momentum Teacher Smoothing: A student ($M_S$) and teacher ($M_T$) architecture maintains stability. Standard Exponential Moving Average (EMA) applies a uniform momentum parameter to all weights, which causes dissonance when only sparse parameters are updated. DoSAPP introduces affine-projected dual momentum ($\gamma, \delta$): updated parameters move faster toward the student, while frozen weights update at a slower rate.
- Max-Logit Routing for Test-Time Learning: In production, unlabeled test batches arrive in an online, single-pass stream. To avoid noisy pseudo-labels, the framework treats the teacher (expert on historical tasks) and student (expert on recent tasks) as out-of-distribution detectors. The model with the higher un-normalized maximum logit determines the pseudo-label $\hat{y}$.
- Union of Masks: During TTL, updates are applied across the union of parameter masks accumulated from all past tasks ($m_u$), followed by teacher EMA smoothing with a conservative test-time momentum $\lambda$ ($\gamma < \lambda < \delta$).
Datasets
The authors evaluate using CLIP ViT-B/16 across five vision classification benchmarks split into 10-task disjoint class sequences:
- Fine-grained: FGVC Aircraft, Stanford Cars, CUB-200-2011, and Oxford Pets.
- Coarse classification: CIFAR-100.
- Out-of-distribution: German Traffic Sign Recognition Benchmark (GTSRB).
For each task, test data is divided into two distinct subsets: $D^u$ for unsupervised test-time adaptation, and $D^e$ for final holdout evaluation.
Key Insights and Ideas
- Test data as an implicit memory buffer: Instead of retaining historical training exemplars, models can reinforce previously acquired patterns simply by observing unlabelled queries during deployment.
- Why standard TTA fails in CL: Off-the-shelf TTA methods (such as RMT or entropy minimization) catastrophically destabilize representations when exposed to long sequences of expanding label spaces.
- Dual-momentum stabilization: Forcing the teacher model to smooth updated and non-updated weights at different rates prevents generic pre-trained weights from drifting uncontrollably.
- Logit margins beat softmax confidence: Un-normalized maximum logits provide far more reliable in-distribution detection than softmax probabilities, which tend to generate arbitrarily high confidence on out-of-distribution inputs.
Key Results
DoSAPP establishes a new state-of-the-art for buffer-free class-incremental learning:
- Superior Replay-Free Performance: On Stanford Cars, DoSAPP achieves 74.87% average accuracy and $-0.74\%$ forgetting (achieving positive backward transfer), compared to baseline SPU (69.41% accuracy, 16.91% forgetting) and naive fine-tuning (51.64% accuracy, 25.65% forgetting).
- Significant Gains on Coarse Datasets: On CIFAR-100, DoSAPP reaches 79.16% accuracy with 7.73% forgetting, outperforming prior parameter-isolation methods like SPU (58.80% / 26.37%).
- Competitive with Large Replay Buffers: Without storing a single exemplar, DoSAPP performs comparably to Experience Replay holding 1,000 exemplars (ER=1000). When paired with a small buffer of 200 samples, DoSAPP outperforms ER=1000 baselines on Aircraft (47.32% vs. 44.43%) and CIFAR-100 (88.41% vs. 83.99%).
Limitations and Future Work
- Sensitivity to Test Distribution Quality: If test-time streams are severely class-imbalanced (e.g., heavily skewed Dirichlet distributions), performance on rarely seen classes degrades.
- Compute Footprint: Running dual student and teacher models simultaneously during inference increases memory and compute requirements, though sparse updating alleviates backpropagation costs.
- Future Directions: Adapting the method to handle severe out-of-vocabulary open-world shifts, streaming video pipelines, and non-transformer backbones remains an open challenge.
Summary updated