Self-Chosen Anchors for Long-Horizon Test-Time Adaptation

A model deployed on a shifting stream of unlabeled data can keep improving by making its own predictions more confident. This is entropy minimization: nudge a few normalization parameters so that the output distribution over classes becomes sharper. Over long horizons it fails badly. The model grows confident in its own mistakes and drifts toward predicting one class for everything, until it is worse than if it had never adapted. The most reliable fix known today is crude. RDumb resets the model to its original weights every 1,000 steps. The reset interval is a hand-picked constant, and each reset discards whatever the model had learned about the current domain.

We propose that the stream itself can tell the adapter when it is collapsing and which samples are worth learning from. The model keeps a small, continually refreshed buffer of test samples chosen to cover the stream's feature space, much as diversity-based data curation picks a representative subset of a large corpus. The buffer has two jobs. Only buffer members drive entropy updates, so redundant near-duplicates do not pile up gradients in one direction. The most central buffer members, the "hubs," also act as a self-discovered probe set. When the adapted model starts assigning the same class to hubs that sit in clearly different regions of feature space, it is collapsing, and it resets. The fixed reset clock is replaced by a check against anchors that no human chose.

Core Claim

The claim is that collapse in long-horizon test-time adaptation can be detected from loss of prediction diversity on a coverage-selected anchor set, and that this detection is specifically better than monitoring the overall predicted-class histogram when the label distribution of the stream is itself skewed. The reason is structural. Facility location selection picks points that cover the feature space regardless of how often each region occurs. Its hubs therefore stay spread across classes even when the stream is dominated by one class, while the raw prediction histogram legitimately skews. The second, weaker claim is that restricting updates to coverage-selected samples reduces the rate of drift beyond what simply making fewer updates achieves. This would settle the open question, raised by the CCC results in RDumb, of whether long-run collapse comes partly from what the model ingests rather than only from the objective.

Relation to Prior Work

The proposal draws on three groups of work, each playing a different role.

The first group supplies the evidence for the gap. Tent introduced entropy minimization over normalization scale and shift parameters, which is the update we keep. RDumb showed on its 7.5-million-image Continually Changing Corruptions (CCC) benchmark that Tent, CoTTA and SLR collapse while periodic resets survive. Its own open problem, the arbitrary interval $T$, is exactly what we target. SaTeen proves that imbalanced predictions induce collapse under entropy minimization. That result motivates monitoring prediction diversity, and our contribution is making the monitor robust to imbalance that is legitimate rather than pathological.

The second group constrains the design. Less is More (PLF) filters pseudo-labels with self-adaptive per-class confidence thresholds plus a class-prior alignment term. It reports that its benefits fade over long sequences and that it depends on the source head's calibration. We therefore avoid confidence as the selection signal. ZeroSiam prevents collapse architecturally with an asymmetric stop-gradient predictor, but it processes every sample and does no selection. Our mechanism is orthogonal to it and can be stacked on top. PROGRAM builds per-batch graphs linking test samples to class prototypes taken from the source classifier weights. It differs from us in two ways: it anchors to source weights rather than to data-chosen points, and it keeps no memory across batches.

The third group supplies the method. Unsupervised visual alignment with similarity graphs replaced a manually chosen seed image with automatically found similarity hubs, the most central nodes of a pairwise-similarity graph. It worked offline on SIFT features, and it warns that hubs become unreliable when features are badly distorted. That warning is a risk we test directly. The experimental design framework of Bhatt et al. showed that facility location in a pretrained model's representation space selects instruction subsets that match twice as much random data, and that uncertainty-only selection picks redundant outliers. SHED and D4 make the same quality-over-quantity case with Shapley valuation and de-duplication. All three are offline and supervised or validation-dependent. We move only the label-free piece, facility location, into a streaming setting.

Research Program

The adapter maintains a buffer $S$ of $k$ samples, with $k$ around 64 to 256, drawn from a sliding window $W$ of recent test inputs. Similarity is measured in the frozen source model's penultimate features. The buffer is kept close to the maximizer of the facility location objective

$$f(S) = \sum_{i \in W} \max_{j \in S} \mathrm{sim}(z_i, z_j),$$

where $z_i$ is the frozen feature of input $i$ and $\mathrm{sim}$ is cosine similarity. A standard streaming swap rule maintains it: a new point replaces a buffer member only if the swap raises $f$. Each update costs $O(k)$ similarity evaluations, which is negligible next to a forward pass and works at batch size one.

Entropy-minimization steps on the normalization affine parameters are computed only on samples admitted to the buffer. The update count is logged so that every comparison can be matched on number of gradient steps.

The hubs are the $m$ buffer members with the highest mean similarity to the rest of the window, following the centrality criterion of the similarity-graph alignment work. After every update, the adapter computes the effective number of classes the adapted model predicts on the hubs, $D_t = \exp(H(\bar p_t))$. Here $\bar p_t$ is the histogram of predicted classes over the hubs at step $t$, and $H$ is Shannon entropy. The model resets to source weights when $D_t$ falls below a fraction $\rho$ of its value at the last reset. Because the trigger is relative, $\rho$ is scale-free, and we will report sensitivity across a wide range rather than tuning it per benchmark.

The analysis part of the program asks three questions. First, how early does the hub signal fire before accuracy collapses, compared with a histogram signal? Second, how often does each signal falsely fire under label-imbalanced streams? Third, does the advantage disappear when frozen source features are so corrupted that the hubs themselves are wrong, as on the most severe noise corruptions? For that last case we also test computing similarities with an exponential moving average of the adapted encoder.

Baselines

The naive reference points are the unadapted source model and plain Tent with no reset. Tent reports 44.0% error on ImageNet-C in the single-domain setting and is known to collapse on CCC-Hard. Any method must stay above the source model throughout the CCC stream.

The strongest competitor on the long-horizon question is RDumb, because it is the method that actually survives CCC. The file reports no numerical CCC accuracy for it, so no reported result was found on Lacuna for RDumb on CCC. We will rerun it with its published $T=1000$, and also with $T$ tuned on CCC-Easy and frozen elsewhere, using the same backbone, the same weighted entropy loss and the same step budget. Beating RDumb means higher average accuracy on CCC-Hard and CCC-Medium with no per-split tuning.

The strongest single-pass collapse-resistant method is ZeroSiam. It reports 52.9% average accuracy on wild ImageNet-C (imbalanced label shift, mixed shifts, batch size one), against 38.8% for SAR and 43.1% for DeYO. We compare against it alone and also stack our buffer and reset onto it. A gain from stacking would show that the mechanism is complementary rather than redundant.

The strongest selection-based competitor is PLF, which reports 59.7% error on continual ImageNet-C, 14.8% on CIFAR-10-C and 29.9% on CIFAR-100-C. We run it on the same continual sequences with the authors' threshold schedule.

Four ablations isolate the key ingredients. Random admission matches our update count but drops coverage. Confidence-ranked admission matches the count but uses confidence instead of coverage. A histogram-triggered reset applies the same relative rule to the predicted-class histogram over the whole window rather than the hubs. An oracle reset, which uses labels to reset exactly when accuracy drops, gives an upper bound. All methods share hyperparameter search budgets set on CCC-Easy only.

Why not just…?

Why not just reset periodically, as RDumb does? This is the main threat. If a single tuned $T$ transfers across CCC splits and corruption speeds, our trigger adds complexity for little gain. RDumb's authors themselves describe $T$ as an unresolved tradeoff, since frequent resets waste adaptation and rare ones permit collapse. The experiment that settles this varies the corruption-transition speed within CCC. A fixed $T$ should be mistimed at some speeds, while a data-driven trigger should follow the shifts. If RDumb with a frozen $T$ matches us across speeds, we will report that the anchor trigger is unnecessary.

Why not just filter by confidence, as PLF does? Confidence is computed by the very head that is drifting, and PLF reports its gains fading over long sequences. Bhatt et al. found that uncertainty-only selection picks redundant or noisy points, where facility location gave about a 2% gain on MMLU and BBH. That evidence comes from fine-tuning language models, not test-time adaptation, so the confidence-ranked admission ablation at a matched update count is the direct test here.

Why not just watch the overall class histogram for collapse? This is the simplest competitor to the hub idea, and it may work equally well on class-balanced streams. Our claim is narrower: under label-imbalanced streams a skewed histogram is legitimate, so a histogram trigger should fire falsely and reset too often, while hubs chosen for coverage stay class-diverse. If histogram triggering matches hub triggering on the wild imbalanced ImageNet-C setting of ZeroSiam, the hub component should be dropped.

Why not just update fewer times? Some of any gain from selection could come purely from taking fewer gradient steps. The random-admission ablation at an identical step count isolates coverage from frequency.

Proposed Experiments

We will use ResNet-50 and ViT-Base backbones on CCC-Easy, CCC-Medium and CCC-Hard, on continual ImageNet-C with fifteen corruptions at severity five, on the wild ImageNet-C protocol with batch size one and imbalanced labels, and on CIFAR-10-C and CIFAR-100-C continual sequences. We will also run Places365-C, where SaTeen reports that its patch-shuffling anchor fails; our data-chosen anchors make no assumption about object shape. The metrics are accuracy averaged over the full stream, worst-window accuracy, the number of resets, and accuracy lost within 10,000 steps after each reset.

Three checks are decisive. The first is whether hub-triggered reset beats a frozen-$T$ RDumb on CCC-Hard without per-split tuning. The second is whether hub triggering beats histogram triggering, in false resets and in accuracy, specifically on imbalanced streams. The third is whether coverage admission beats random admission at matched update counts. If the first fails but the third holds, the contribution narrows to curated updates. If the hub signal degrades on the heaviest noise corruptions, that confirms the similarity-graph alignment work's warning about distorted features and sets the method's limits.