Source-linked AI summary

Sparse MLLM Anchors, Dense Adaptation: Breaking the Self-Referential Loop in Wild Test-Time Adaptation

Zhenbin Wang, Lei Zhang, Lituan Wang, Yan Wang, Zhao Zhang, Wei Huang

arXiv:2609.17040v1cs.AI

TL;DR

WTTA adapts online from small, shifting, potentially imbalanced unlabeled batches, while many methods rely on evidence from the model being adapted. MASA uses sparse frozen-MLLM semantic descriptions to guide adaptation, and reports state-of-the-art ImageNet-C performance across limited-batch, mixed-domain, and time-varying label-shift protocols with ResNet and ViT.

Abstract

from arXiv · show

Wild test-time adaptation (WTTA) updates a source model online under small test batches, concurrent distribution shifts, and time-varying class imbalance. Most WTTA methods derive their adaptation signals, including predictive uncertainty, sample reliability, and local feature geometry, from the model being adapted. When the source model is unreliable under shift, these signals can reinforce its own errors, forming a self-referential loop. We introduce MASA (Multimodal-LLM-Anchored Semantic Adaptation), which complements model-internal evidence with structured semantic descriptions from a frozen multimodal large language model (MLLM). To limit inference cost, MASA queries the MLLM only for a small set of diverse, reliability-ranked anchors. The resulting descriptions capture the object family and nuisance factors such as style, viewpoint, and occlusion. MASA encodes these descriptions, propagates them to neighboring test samples, and stores the resulting visual-semantic information in an online prototype memory. Descriptor-aware retrieval from this memory provides an auxiliary target for lightweight adaptation of normalization-affine parameters. We evaluate MASA on the WTTA ImageNet-C benchmark under limited-batch, mixed-domain, and imbalanced-label-shift settings with ResNet and ViT backbones.

Introduction

WTTA must adapt from small, shifting, potentially imbalanced unlabeled batches, yet many methods judge reliability using evidence from the model being adapted. MASA adds sparse frozen-MLLM descriptions to guide online adaptation, and the paper reports state-of-the-art ImageNet-C performance across its evaluated protocols and backbones.

Introduction

  • WTTA faces small batches, co-occurring shifts, and time-varying class imbalance, leaving each online update to rely on little and potentially unreliable evidence.The setting uses an unlabeled test stream without labels or continued access to source training data.Source: Introduction · p. 1
  • Many WTTA methods derive reliability and adaptation targets from model predictions and representations, whether they operate on predictions, selected samples, or local regions.Examples include entropy minimization, sample selection, online-statistic or class-center stabilization, and neighborhood regularization.Source: Introduction · p. 1
  • When the shifted model is unreliable, its entropy, sharpness, sensitivity, and region confidence can misguide updates, creating a self-referential loop that reinforces errors.The passage notes that this can matter especially in small batches and imbalanced streams, where a few updates have disproportionate influence.Source: Introduction · p. 1
  • MASA queries a frozen MLLM for sparse, diverse, reliability-ranked anchors, propagates object and nuisance descriptors through local feature neighborhoods, and stores them for descriptor-aware retrieval.Retrieved prototypes provide auxiliary consistency targets; the source classifier needs no image–text alignment, and only selected normalization-affine parameters are updated.Source: Figure 1 · p. 1, Introduction · p. 2
  • MASA achieves state-of-the-art performance on ImageNet-C across limited-batch, mixed-domain, and time-varying label-shift protocols with ResNet and ViT.The reported performance spans both backbone families and all three protocols.Source: Introduction · p. 2

Method

The Method section describes how MASA combines regional evidence with sparse MLLM descriptions propagated from reliable, diverse anchors and retained in a prototype memory. It specifies descriptor-aware retrieval and normalization-affine adaptation, including how the memory supports reliable clusters and preserves causal prediction and update ordering.

Problem Setup and Overview

  • MASA makes one stream pass, updating only selected normalization-layer affine parameters while keeping the classifier head and other parameters fixed.It follows a predict-then-adapt protocol: each batch is predicted before its update can affect subsequent batches.Source: Problem Setup and Overview · p. 2

Preliminaries and Two-Stage Evidence Selection

  • MASA combines ReCAP regional confidence with DeYO patch sensitivity, applying the cheaper regional-entropy test before shuffled-image PLPD to select samples for regional adaptation.A separate reliability gate also informs anchor ranking, prototype adaptation, and memory admission; an empty selected set yields a differentiable zero regional loss.Source: Preliminaries and Two-Stage Evidence… · pp. 2–3

Reliability-Guided Semantic Anchors

  • At refresh, MASA ranks buffered observations by clipped regional statistics, confidence margin, and prediction stability, then uses feature-space farthest-point sampling to select diverse anchors.Refresh can occur at initialization, periodically, or when feature drift or retrieval coverage signals stale semantics.Source: Reliability-Guided Semantic Anchors · pp. 3–4

Semantic Grounding and Propagation

  • A frozen MLLM receives image-only, task-agnostic queries for anchors and returns open-vocabulary object and nuisance descriptions; MASA propagates descriptor estimates through visual neighborhoods.The descriptions include object family, scene, style shift, viewpoint, and occlusion; classifier predictions and source-class names are not included in the query.Source: Semantic Grounding and Propagation · p. 4

Visual–Semantic Prototype Memory

  • MASA consolidates visual, predictive, and semantic evidence in bounded prototypes, retrieves reliable matches using visual and descriptor agreement, and uses accepted prototypes as adaptation targets.Retrieval supplies fixed visual and predictive targets, while semantic evidence affects matching; memory writes follow adaptation and use detached pre-update features and predictions.Source: Visual–Semantic Prototype Memory · pp. 4–5
  • Clusters are committed after reaching minimum support and reliability thresholds; if memory exceeds capacity, utility ranking favors reliable, supported clusters while discounting stale or drifting ones.Promotion and eviction occur after precomputed assignments are consumed, and anchor-seeded clusters are available for retrieval after maintenance.Source: Visual–Semantic Prototype Memory · p. 6

Adaptation Objective and Online Procedure

  • Regional and prototype losses address complementary failure modes, and MASA updates only normalization-affine parameters while returning logits computed before the update.The regional loss selects structurally reliable observations within the batch; the prototype loss regularizes against evidence accumulated across the stream.Source: Adaptation Objective and Online… · p. 6
  • When the exponential moving average of the adaptation objective falls below the recovery threshold, MASA restores initialization states and clears its windows, anchors, memory, and associated histories.The recovery average is then uninitialized so the next batch follows its initialization branch.Source: Adaptation Objective and Online… · p. 6
  • Anchor refresh precedes retrieval, ordinary cluster writes use detached pre-optimization features and predictions, and the post-append window and final states advance unless recovery occurs.Source: Adaptation Objective and Online… · p. 6

Experiments

On ImageNet-C, MASA outperforms ReCAP across limited-batch, time-varying label-shift, and mixed-domain protocols with ResNet and ViT backbones. Ablations show gains from prototype regularization and complementary predictive and semantic cues.

Experimental setup

  • The evaluation uses ImageNet-C limited-batch, mixed-domain, and time-varying label-shift protocols with ResNet50-GN and ViT-Base-LN.MASA adapts normalization-affine parameters once per batch and uses frozen Qwen2-VL-2B and CLIP ViT-B/16 without a classifier hint.Source: Experiments · p. 6

Main results

  • MASA exceeds ReCAP by 2.0/0.8 points (ResNet/ViT) in limited-batch, 2.4/1.0 under label shift, and 1.0/0.4 in mixed-domain evaluation.The comparisons cover severity-5 limited-batch and label-shift settings and mixed-domain evaluation.Source: Table 1 · p. 7, Table 2 · p. 7, Table 3 · p. 7

Limited-batch adaptation

  • With batch size one, MASA ranks first on 13 of 15 corruptions for both backbones, reaching 48.4%/66.5% accuracy on ResNet/ViT.The reported exceptions include zoom blur, where ResNet drops by 1.1 points.Source: Experiments · p. 7, Table 1 · p. 7

Time-varying label shift

  • Under time-varying label shift, MASA ranks first on 13 ResNet corruptions and 12 ViT corruptions, with positive mean gains across all four corruption families.Shot noise improves by 9.5 points over ReCAP on ViT but remains 0.7 points below SAR.Source: Experiments · p. 7, Table 2 · p. 7

Feature-space organization

  • Compared with ReCAP, MASA produces more compact local groups with less intermingling in highlighted representation regions.The authors describe this qualitative pattern as consistent with descriptor-aware retrieval aligning compatible observations with shared prototype targets.Source: Experiments · p. 7

Ablation studies

  • Removing prototype loss causes the largest tested accuracy drop, 1.7/0.8 points on ResNet/ViT; predictive consistency and semantic agreement add 0.6/0.3 and 0.8/0.4 points.The gains are reported sequentially from visual matching under label shift.Source: Experiments · p. 7, Table 4 · p. 7

Conclusion

MASA combines sparse semantic descriptions from a frozen MLLM with model-derived evidence for WTTA, using descriptor-aware prototype retrieval to guide adaptation. Experiments show consistent improvements across three WTTA protocols and ResNet and ViT backbones.

Conclusion

  • MASA demonstrates consistent improvements across limited-batch, mixed-domain, and time-varying label-shift protocols with both ResNet and ViT backbones.The ablations support complementary roles for prototype consistency, propagation, reliability filtering, and semantic agreement.Source: Conclusion · p. 7
  • MASA selects sparse, reliability-ranked, visually diverse anchors and obtains structured object and nuisance descriptions from a frozen MLLM.It propagates descriptors through local feature neighborhoods rather than treating MLLM outputs as class labels.Source: Conclusion · p. 7
  • A bounded prototype memory consolidates visual, predictive, and semantic evidence, and descriptor-aware retrieval supplies auxiliary targets for normalization-affine adaptation.Source: Conclusion · p. 7
  • MASA is designed to address error reinforcement that can arise when adaptation relies only on evidence from the shifted model.Source: Conclusion · p. 7

Appendix

The appendix contains related work, the full online procedure, implementation details, additional analyses, and discussion of limitations.

Appendix

  • Appendix A reviews closely related work, while Appendix B gives the complete online procedure.Source: Appendix · p. 10
  • Appendix C specifies implementation details, and Appendix D presents additional ablations and analyses.Source: Appendix · p. 10
  • Appendix E discusses limitations.Source: Appendix · p. 10

A Related Work

Prior WTTA methods largely derive adaptation evidence from the model being adapted, while MASA uses explicit descriptions of image content and nuisance factors. Its online procedure ranks and diversifies anchors, propagates descriptors, retrieves prototypes, and updates the model.

A.1 Wild Test-time Adaptation

  • WTTA methods filter updates, accumulate memory or prototypes, or assess local confidence, but their adaptation evidence predominantly comes from the adapted model's predictions or representations.MASA instead uses explicit descriptions of image content and nuisance factors as complementary evidence.Source: §A.1 · p. 10

A.2 MLLMs as External Semantic Knowledge

  • Unlike language-based approaches that refine text scoring or generate class labels, MASA uses sparse MLLM descriptions as persistent guidance for a closed-set classifier that need not be text aligned.Source: §A.2 · p. 10

B Complete Online Procedure

  • The online procedure ranks and diversifies anchors when semantic refresh is triggered, queries and encodes them, propagates descriptors, retrieves prototypes, and updates the model.It then writes the batch sequentially, maintains and ages memory, and applies recovery based on the updated loss history.Source: B Complete Online Procedure · p. 10

C Implementation Details

Implementation uses ResNet50-GN and ViT-Base-LN with one normalization-affine update per batch. MASA uses frozen Qwen2-VL-2B and CLIP ViT-B/16 by default, and evaluates sensitivity to three parameters under label shift.

C Implementation Details

  • The implementation uses ResNet50-GN and ViT-Base-LN with SGD momentum 0.9 and one normalization-affine update per batch.It excludes ResNet layer 4, ViT blocks 9–11, and the final normalization layer from optimization.Source: C Implementation Details · p. 10
  • The regional path uses ReCAP's fixed, backbone-specific diagonal feature statistic and does not sample or retain a calibration subset.The stated settings include ρreg = 12, λδ = 5 × 10−4, λRI = 0.5, and P = 4.Source: C Implementation Details · p. 10
  • By default, MASA uses frozen Qwen2-VL-2B and CLIP ViT-B/16 with no classifier hint, alongside stated semantic-grounding, propagation, retrieval, prototype, and memory settings.The memory capacity is capped at Kmax = 64, and the baseline results in Tables 1–3 are taken from ReCAP under the same benchmark.Source: C Implementation Details · p. 10
  • Figure 5 varies prototype-loss weight, periodic refresh interval, and memory capacity one at a time under label shift with ResNet50-GN.Red squares mark defaults, and the dashed line is the ReCAP baseline under the same protocol.Source: Figure 5 · p. 11

D Additional Ablations and Analyses

The additional analyses examine semantic sources and class information, then test the sensitivity of MASA to its control parameters.

D Additional Ablations and Analyses

  • The analyses extend component-removal results by examining semantic sources, class hints, and the behavior of MASA’s main control parameters.The section introduces these topics before reporting source comparisons and parameter sweeps.Source: D Additional Ablations and Analyses · p. 11

D.1 Semantic Source and Class Information

The analyses compare semantic sources and class-hint settings, finding gains from learned descriptions and showing that class information helps when correct but can feed back classifier errors when predicted.

D.1 Semantic Source and Class Information

  • Qwen2-VL-2B improves limited-batch, mixed-domain, and label-shift accuracy by 1.4/0.7/0.8 points on ResNet and 0.6/0.4/0.4 points on ViT versus no semantics.The reported gains are ordered by limited-batch, mixed-domain, and label-shift protocols.Source: Table 5 · p. 11, §D.1 · p. 11
  • Hashing changes accuracy by at most 0.2 points and slightly reduces label-shift performance on both backbones, while learned semantic sources improve consistently across six backbone–protocol combinations.The compared learned sources are BLIP-2, LLaVA-1.5-7B, and Qwen2-VL-2B.Source: §D.1 · p. 11
  • No-hint accuracy is 48.2%/64.0% on ResNet/ViT; predicted-class hints lower it by 0.3/0.2 points, while a ground-truth oracle reaches 49.1%/64.6%.MASA uses no class hint, retaining image-only semantic queries without oracle information.Source: Table 6 · p. 11, §D.1 · p. 11

D.2 Hyperparameter Sensitivity

The sensitivity sweeps identify a stable region around the defaults, while showing losses with excessive prototype weight, long refresh intervals, or very small or large memory capacity.

D.2 Hyperparameter Sensitivity

  • A prototype weight of 0.8 reduces accuracy to 47.5%, while changing the default 0.2 to 0.1 or 0.4 changes accuracy by only 0.3 or 0.2 points.The authors associate the decline at 0.8 with prototype consistency dominating the regional objective and over-constraining updates toward imperfect or stale memory entries.Source: §D.2 · pp. 11–12
  • Refreshing every 16 steps gives 48.3%, just 0.1 points above the 64-step default but with four times as many periodic refresh opportunities; intervals of 128 and 256 yield 47.8% and 47.6%.The authors suggest longer intervals leave descriptors less representative as the stream evolves.Source: §D.2 · pp. 11–12
  • Increasing memory capacity from 32 to 64 improves accuracy from 47.7% to 48.2%, while capacities of 128 and 256 yield 48.1% and 47.9%.The authors describe a saturation pattern, with small capacity limiting recurring-structure coverage and larger capacity potentially retaining redundant or outdated clusters.Source: §D.2 · pp. 11–12

E Limitations

The authors identify limits in evaluation scope, inference and memory cost, and reliance on classifier-derived signals in parts of the adaptation path.

E Limitations

  • Evaluation focuses on ImageNet-C classification and does not establish transfer to natural domain drift, open-set arrivals, or dense prediction tasks.The authors call for evaluation in these settings to assess how broadly sparse semantic grounding transfers beyond image classification.Source: E Limitations · p. 12
  • MASA requires a frozen MLLM and text encoder, adding latency and memory footprint despite sparse anchor queries amortizing query cost across neighbors.The added cost depends on hardware and model-serving choices.Source: E Limitations · p. 12
  • Anchor ranking, propagation neighborhoods, and transition statistics still use classifier predictions or feature geometry, which may be unreliable under severe representation deterioration or rapid class alternation.The authors note that class identities alternating faster than the history window can track may lead to unreliable selection or propagation.Source: E Limitations · p. 12
Loading 2609.17040v1…