TL;DR
Updating a neural network on the fly at deployment—known as Test-Time Adaptation (TTA)—can rescue its accuracy when real-world data looks different from training data, or it can make the model confidently spiral into total failure with zero warning. This paper introduces Dynamic Duos, a framework that pairs a large model with a cheap, smaller "sidekick" and uses a label-free gating mechanism to dynamically trust whichever model is staying sane. If one model collapses, the Duo seamlessly leans on its partner while resetting the failing model back to its original weights—giving you reliable adaptation without flying blind.
What Problem Does This Paper Address?
Imagine deploying a vision model trained on crisp, curated photographs into a snowy autonomous driving scenario or a foggy security feed. Because you don't have ground-truth labels in real time, Test-Time Adaptation (TTA) updates the model on the fly using unlabeled test batches—typically by tweaking normalization layers to make the model's predictions more confident (minimizing entropy).
Here is the catch: rewarding confidence regardless of correctness is dangerous. A model can easily reinforce its own mistakes until it predicts just a handful of classes for everything, dropping its accuracy well below where it started. This silent, catastrophic failure is called collapse, and it is virtually guaranteed over long, changing data streams ("continual TTA"). Worse yet, standard TTA gives no signal that collapse is happening, and periodically resetting a single model throws away good adaptation right along with the bad.
Methods
The authors build upon Asymmetric Duos (prior work that averages logits from a large model and a small, architecturally distinct "sidekick" scaled by fixed temperatures). While standard Duos are static, Dynamic Duos adapt both models and dynamically adjust how they are combined, adding no extra forward passes and working with any off-the-shelf TTA rule (like Tent, ETA, or SAR).
Here is what is new under the hood:
- Held-out Temperature Scaling (TS): Instead of calibrating the static baseline temperatures on clean data—which over-trusts models that turn out to be fragile under shift—they fit temperatures once on held-out corruptions prior to deployment.
- Label-Free Reliability Proxy & Gate: On every batch of 256 images, the system evaluates each model's prediction matrix using its normalized nuclear norm. Because collapsing models remain confident, confidence alone can't spot failure; the nuclear norm measures both confidence and dispersity (class diversity), dropping sharply when predictions clump onto a few classes. A sigmoid gate compares the two models' scores and smoothly shifts weight toward the healthier model.
- Independent vs. Joint Adaptation: Models either adapt separately on their own losses (Independent DD) or together on the loss of the gated prediction (Joint DD).
- Dynamic Duos that Reset: For continual streams, an Exponentially Weighted Moving Average (EWMA) change detector watches each model's proxy score. If a fast moving average drops significantly below a slow moving average, that specific model is flagged as collapsed and reset to its pretrained source weights while its partner seamlessly handles predictions.
Datasets
- ImageNet-1K: Models use standard pretrained
torchvisionweights (ViT-B/16paired with eitherResNet-50orConvNeXt-T), with clean validation data used for baseline calibration. - ImageNet-C: Evaluated at maximum corruption (severity 5, 50,000 images per shift) across 15 test corruptions (e.g., fog, frost, snow, zoom blur). Four separate held-out corruptions (speckle noise, spatter, Gaussian blur, saturate) are used strictly for hyperparameter tuning and Held-out TS. Evaluations cover both episodic (resetting at known shift boundaries) and continual (15 shifts back-to-back without boundary knowledge) protocols. No new datasets are introduced.
Key Insights and Ideas
- Cheap sidekicks punch above their weight—even frozen: Adding a
ResNet-50sidekick to aViT-B/16costs only ~25% extra forward FLOPs, yet boosts frozen ImageNet-C accuracy by 5.7 percentage points because their different architectures make complementary errors. - Clean calibration lies under shift: On clean data,
ConvNeXt-TbeatsViT-B/16(82.5% vs. 81.1%), tricking clean temperature scaling into trusting it more. Under corruption,ConvNeXt-Tcraters to 29.8%, dragging the Duo down with it—a trap easily fixed by calibrating on held-out shifts. - Confidence proxies get fooled by collapse; diversity catches it: Because entropy-minimizing TTA actively inflates confidence during collapse, only hybrid proxies like the nuclear norm (which penalizes concentrated, non-diverse predictions) reliably catch a dying model.
- Decoupled recovery: Single-model reset schemes force a trade-off—resetting wipes the model's memory, causing an accuracy dip while it re-adapts. In a Duo, one model acts as a life raft while the other reboots.
Key Results
- Rescuing unstable Duos (Episodic): When
ConvNeXt-Tcollapses under Tent, Dynamic Duos gain +2.6 points (Independent) and +5.5 points (Joint) over fixed temperatures, surging by up to +27.6 points on snow. Where adaptation is already stable, Independent DD is remarkably safe, never losing more than 0.2 points on any corruption. - Beating single models across the board (Continual): On continual ImageNet-C (
ViT-B/16+ResNet-50), Independent DD beats its best individual member across every TTA method and reset rule by 2.3 to 9.7 points. - Smarter resets: Dynamic Duos that Reset achieve top accuracy under Tent (54.5%) and ETA (59.8%), beating un-reset baselines by over 4 points and outperforming random resets of the exact same frequency by up to 2.9 points—proving when you reset matters, not just how often.
Limitations and Future Work
- Fixed gate sharpness ($\beta$): The hyperparameter controlling how aggressively the gate shifts weight is kept fixed, though the optimal value varies across shifts and model pairs; adapting $\beta$ online is a natural next step.
- Blindness to slow drift: The EWMA detector excels at catching abrupt collapses (typical of
ViT-B/16), but triggers late when a model degrades very gradually (likeResNet-50), or when Joint DD causes both models to degrade in tandem. - Scope of TTA and shifts: Experiments focus solely on batch-wise entropy minimization methods and synthetic ImageNet-C corruptions, leaving non-entropy TTA updates, longer streams, and natural distribution shifts to future work.
Summary updated