Manuscript Offprint
arXiv:2608.29920Continual Test-Time Adaptation via Entropy Sensitivity-Guidance in Strict Online Setting
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Test-time adaptation (TTA) promises robustness under distribution shift by updating a pretrained model on unlabeled test data, but strict online TTA with batch size one and no access to source data is especially prone to drift or collapse. We introduce Sensitivity-Guided Erasing Adaptation (SEGA), a method for strict online continual TTA (CTTA) on corruption-style streams. SEGA uses a small number of structured erasures to probe how predictive entropy changes as information is removed, and uses the resulting per-sample sensitivity trajectories to coordinate recovery and sample selection rather than relying on raw entropy or batch statistics. This yields a practical feedback signal for long-horizon batch-size-one adaptation without periodic resets or model reservoirs. In experiments on ImageNet-C, CIFAR10/100-C, and corruption-generated aquaculture streams treated as controlled corruption-style proxies, SEGA yields consistent robustness and stability gains over strong CTTA baselines while reducing backward passes through sensitivity-based gating.
1. Introduction
In strict online continual test-time adaptation (CTTA), a deployed model processes unlabeled test samples one by one with no access to source data or past samples. This regime is especially prone to drift or collapse over long horizons [20, 21, 25], yet much of the TTA literature is developed for short streams, moderate batches, or auxiliary stabilization machinery [16, 29, 31, 34]. When B=1, batch-dependent normalization becomes unstable or uninformative in practice, and entropy-based adaptation becomes markedly more fragile [14, 19, 20, 36]. Methods that rely on teacher averaging, replay, or domain reservoirs also step outside the strict no-replay regime studied here [16, 27, 31]. With B=1, each gradient step is noisy and sample-specific, so without batch averaging or memory buffers to regularize updates, per-sample overfitting can accumulate into model collapse over thousands of steps, where the network becomes overly confident in a small subset of predictions [6, 21, 25]. This failure mode is relevant to streaming monitoring systems such as aquaculture, where frames arrive under changing lighting, weather, and fouling conditions [1], but in this paper we study it through corruption-generated proxy streams that enable controlled long-horizon evaluation of collapse and recovery under B=1 [1, 9]. Our goal is to isolate long-horizon update instability in a controlled proxy regime rather than to reproduce the full complexity of real deployments. Prior single-image and extremely small-batch TTA studies likewise argue that batching assumptions can fail under on-demand or resource-limited inference [11, 19, 36]. Unlike standard TTA with moderate batches, the model cannot average gradients across a mini-batch before updating. Unlike replay-or memory-based CTTA, it cannot revisit earlier samples or route inputs to stored domain experts. In this regime, adaptation quality is inseparable from collapse control, because every update is immediate, local, and effectively irreversible until a recovery rule intervenes. SEGA targets this collapse-control problem within online adaptation rather than the full universal TTA problem. Figure 1 shows that SAR [20] and RDUMB [21] spend a large fraction of time in the high-entropy “unreliable” zone and occasionally collapse, whereas SEGA maintains lower entropy and fewer errors.
Early TTA methods [7, 26, 29, 34] show that unlabeled updates can improve robustness but are mostly studied with short horizons and moderate batch sizes. CTTA methods add continual machinery such as stochastic restoration, prompts, masked reconstruction, and domain memories [2, 6, 15, 16, 30, 31, 35], while stability-focused methods such as SAR, RDumb, and ReservoirTTA [20, 21, 27] use reliable-entropy filtering, periodic resets, and domain reservoirs. These approaches rely on raw entropy and

(a) SAR [20]

(b) RDUMB [21]

(c) SEGA
Figure 1. Entropy trajectories along the CTTA stream (batch size 1) on ImageNet-C using ViT-Base for SAR [20], RDUMB [21], and SEGA. The horizontal band at marks the "unreliable" entropy zone from SAR (). Under this SAR-defined cutoff applied uniformly to all three methods, SEGA has both the fewest incorrect predictions and the smallest fraction of samples in the unreliable zone (about vs. for SAR).
batch- or memory-based statistics rather than per-sample predictive-entropy sensitivity.
We propose Sensitivity-Guided Erasing Adaptation (SEGA), which uses multi-view erasing to compute a scalar operational sensitivity from the predictive-entropy trajectory under progressive masking, then uses this signal for two decisions: a trend recovery rule that resets the model when sustained upward drift in sensitivity indicates instability, and a quantile gate that skips the lowest-sensitivity samples. The same sensitivity signal therefore determines both when the model should recover and which samples should drive adaptation. We evaluate SEGA under strict CTTA with on ImageNet-C, CIFAR10/100-C, and corruption-generated aquaculture streams [1, 9]. Our contributions are: (1) we frame strict online CTTA through per-sample sensitivity for corruption-style batch-size-1 streams rather than batch statistics or raw entropy, (2) we introduce SEGA, a sensitivity-guided feedback mechanism for recovery and update selection in single-backbone online adaptation, and (3) we provide empirical evidence across multiple corruption benchmarks and backbone architectures that this design improves robustness and stability over prior CTTA baselines in this regime.
Table 1. Collapse/drift policies of CTTA methods designed for test-time stability.
| Method | Recovery | Filtering |
|---|---|---|
| RES.TTA [27] | Domain Reservoir | Style Routing |
| SAR [20] | Raw Entropy | Raw Entropy |
| RDUMB [21] | Periodic | Raw Entropy |
| M2A [4] | None | None |
| SEGA | Sensitivity | Sensitivity |
Continual Test-Time Adaptation. CTTA extends TTA to non-stationary streams. CoTTA [31] reduces drift with teacher averaging and stochastic restoration, SATA [2] anchors updates to source prototypes, ViDA [16] learns domain-specific and shared adaptation modules, Continual-MAE [15] uses masked reconstruction, and DPCore, PAID, and LCoTTA [6, 30, 35] control updates through prompt coresets, weight-structure priors, or gradient subspaces. Most still depend on batch- or memory-based statistics and auxiliary modules rather than treating each sample as the main control unit. These methods are orthogonal to the strict online setting studied here, which explicitly forbids access to past samples. Our setting is also narrower than broader universal TTA formulations that jointly vary additional deployment factors such as class-prior shift and wider online setting coverage [17].
Test-Time Stability. Normalization-based work shows the utility and fragility of batch statistics under shift [10, 11, 14, 18, 24, 32]. SAR [20] replaces BatchNorm with GroupNorm and uses reliable entropy filtering and recovery heuristics. RDumb [21] shows that periodic resets can outperform sophisticated CTTA schemes. ReservoirTTA [27] clusters style features and maintains domain-specialized model reservoirs (Table 1 summarizes these policies). M2A [4] uses progressive masking as a structured stability probe. Recent work also argues that raw entropy alone can be an unreliable control signal under shift and es-pecially at small batch sizes [13, 19, 25]. Risk monitoring is adjacent to this problem, but it focuses on when to raise an alarm rather than how to recover the model [23]. These works show that long-horizon stability depends on deciding when to update and recover, but they rely on entropy or style clustering with periodic or detector-driven resets rather than a direct per-sample sensitivity signal on a single backbone.
Across these strands, existing methods differ mainly in whether they use periodic global-entropy resets, style-based routing into domain reservoirs, or no explicit collapse policy. SEGA occupies a more specific point in this design space: a single-backbone method for strict online CTTA at B=1 on corruption-style streams, where it computes a per-sample sensitivity score from the erasing channel, enforces a stability budget through a trend rule, and selects update samples from an information-stability band. It should therefore be read as a targeted solution for strict online corruption-style CTTA rather than as a universal replacement for broader CTTA systems. Relative to SAR, the key change is replacing entropy-threshold filtering with a sensitivity signal that also drives recovery. Relative to RDumb and ReservoirTTA, SEGA avoids explicit replay, routing, and domain-specialized model storage. Relative to M2A, it does not use masking only as an adaptation loss or probe, but turns the resulting sensitivity into a shared control signal for both reset and update selection. The novelty is thus not masking alone, but reusing the resulting sensitivity as a common control variable for temporal recovery and sample-level updating.
3. Sensitivity-Guided Erasing Adaptation
Preliminaries. At test time, labels are unavailable, so SEGA measures how predictive uncertainty increases as spatial information is removed using only the model's outputs. Let for denote erasing operators that generate views . SEGA is built on the premise that when predictions rely on robust cues, entropy changes mildly under progressive erasing, whereas brittle or spurious predictions yield sharp entropy changes. We treat this as an empirically supported heuristic rather than a formally proven property. As the model drifts toward collapse and becomes overly confident on a narrow prediction set, erasing disrupts these overfit predictions more sharply, producing elevated sensitivity. SEGA operationalizes this as a scalar sensitivity score (Eq. (1)) and uses it as a useful operational proxy for collapse risk rather than as a direct uncertainty estimate.
SEGA combines a multi-view erasing-based loss with two feedback control rules: a sensitivity-trend rule that triggers resets when a running sensitivity EMA drifts above its best value, and a quantile gate that drops the lowest-sensitivity samples. The trend rule handles sustained stream-level instability, whereas the gate handles per-sample update selectivity, with both decisions driven by the same sensitivity signal. SEGA is designed for immediate per-sample control under source-free, no-replay updates, not for domain accumulation, replay, or multi-model routing. SEGA uses a randomly placed block-wise spatial erasing family (studied in the supplementary material) and the resulting per-sample sensitivity trajectory for both decisions.
Let denote the classifier, where only a subset of parameters is updated at test time. Given a target batch , the model produces logits and predictive distributions , where denotes the softmax operator and is the class-probability vector for sample over classes.
3.1. Sensitivity-trend control
SEGA replaces periodic or entropy-based reset rules [21, 27] with the trend of predictive-entropy sensitivity under erasing as its recovery signal. For each sample and erasing level , we define with , , , and for , where is the erasing step size, is the number of erasing levels, and is a spatial mask with removed area approximately , broadcast across channels. In the default ImageNet-C tuning, , reused on CIFAR-C and the aquaculture streams.
With
(1)
is SEGA's operational sensitivity score: a model-dependent finite-difference of the predictive-entropy trajectory along the erasing path. Large occurs when modest erasing causes substantial entropy changes, indicating poorly captured domain shift. Small corresponds to stable predictions under perturbation. We use sustained periods of elevated as a proxy for increased collapse risk: as the model becomes overconfident on a narrow prediction set, erasing disrupts these predictions more sharply, so rising correlates with phases where recovery improves downstream error. The sensitivity timeline in Fig. 2(a) shows this correlation qualitatively, though we do not claim a formal causal link.
SEGA monitors how sensitivity evolves over the stream and intervenes only when the trajectory indicates sustained instability. Defining the batch-mean sensitivity, its EMA,
SEGA: Sensitivity-Guided Erasing Adaptation

Sensitivity
Trend
Sensitivity
Gate

(a) Sensitivity Timeline

(b) Reset Tradeoff

(c) Sample Efficiency
Figure 2. Overview of SEGA's workflow for strict online CTTA (batch size 1) on ImageNet-C with a ViT-Base backbone. The upper part visualizes the SEGA workflow: erased views are generated from the input and sensitivity is computed for the sensitivity-trend control and sensitivity-gated sample selection. The lower part shows the empirical validation of SEGA: (a) Sensitivity Timeline: overlays smoothed error and sensitivity with reset events, showing resets landing near sensitivity spikes and rising error so recovery starts before long unstable plateaus. (b) Reset Tradeoff: summarizes how the deterioration margin D in the sensitivity-trend recovery trades off reset frequency against error. (c) Sample Efficiency: summarizes how the sensitivity-gated sample selection filters around 30% of the samples while retaining most of the sensitivity signals.
and the best value observed so far as
where , is the batch-average sensitivity, is its EMA, and is the best (lowest) running value. The trend rule enforces a stability budget by requiring to stay within a deterioration margin of after enough observations. Recovery is triggered whenever
at which point the model is restored to its source-state parameters. This requires retaining the source weights (not source data) and discards adaptations accumulated since the last reset, making each recovery a fresh start rather than a partial rollback. Here is a relative deterioration margin and is a minimum activation horizon that prevents the EMA from reacting to transient spikes. We use default values . Fig. 2(b) shows how trades off frequent shallow resets against delayed recovery.
3.2. Sensitivity-gated sample selection
SEGA uses to gate which images update the model, replacing SAR-style confidence thresholds [20] and small-batch BN statistics. Low-sensitivity samples produce no useful adaptation signal because the model is already confident and stable on them. Mid-to-high-sensitivity samples carry useful gradient signal for addressing current domain shift. The trend rule handles the separate case where sensitivity remains elevated across many consecutive steps, indicating systemic drift rather than per-sample difficulty. The gate focuses updates on samples whose sensitivity lies inside a chosen quantile band, discarding a lowest-sensitivity tail. Let and with specify a sensitivity-quantile band, and let be a warm-up horizon for a reliable empirical estimate before activating the gate. After accumulating sensitivities during the first U test steps, the retained set at time is defined by
(4) where is the collection of observed sensitivities up to time and denotes the empirical -quantile. Given this retained set, SEGA performs one gradient update per batch whenever . The optimizer uses learning rate and weight decay . For , the gate is binary: with we skip roughly the lowest-sensitivity 20% of samples and update on all others. Fig. 2(c) shows that this narrow skipped tail discards many low-sensitivity samples while retaining almost all total sensitivity, whereas moving the lower quantile too high sacrifices informative samples and increases error.
3.3. Adaptation objective
Given the retained set , SEGA minimizes a multi-view consistency and entropy objective, with
(5)
where with detached soft targets. enforces pairwise predictive consistency across erasing levels, while drives confident predictions without additional labels or teacher networks. In our default setting, . Algorithm 1 summarizes the full procedure.
4. Experiments
4.1. Dataset
We evaluate on CIFAR100/10-C and ImageNet-C [9], derived from CIFAR [12] and ImageNet [3]. Each contains 15 corruption types at 5 severity levels. Following prior work [8, 15, 16, 31], we use severity level 5 and report online classification error after adaptation, with 10,000 test samples per corruption domain in CIFAR-10-C and 5,000 in ImageNet-C. To probe the same long-horizon failure mode in a domain-specific setting, we also build corruption-generated aquaculture proxy streams from FreshFish [1] by applying the same 15 synthetic corruptions at severity level 5 to the clean test split. We fine-tune a ViT-B/16 backbone on the clean dataset, obtaining 99.57% accuracy on FreshFish. This controlled proxy allows us to study batch-size-1 collapse and recovery on aquaculture imagery, although it does not fully capture real monitoring shifts such as gradual lighting changes or biofouling. It is included to test the paper's main question of whether collapse
Algorithm 1 SEGA: Sensitivity-Guided Erasing Adaptation for strict online CTTA.
Require: Source model , stream ,
Require: Erasing step , levels , , decay
Require: EMA , recovery , gate
1: Init , , ,
2: for do
3: Receive batch
4: for each in do
5: ,
6: for do
7: Sample mask with area
8:
9:
10: end for
11:
12: Append to
13: end for
14: Recovery:
15:
16:
17:
18: if and then
19: Reset
20: end if
21: Gate:
22: if then
23: quantiles of
24:
25: else
26:
27: end if
28: if then
29: Skip update
30: end if
31: Update:
32: if then
33: over
34: {decay }
35: end if
36: end for
can be detected and controlled over long horizons in the same strict online regime used on the standard corruption benchmarks. Corruption abbreviations used in figures and tables: GN=Gaussian noise, SN=Shot noise, IN=Impulse noise, DB=Defocus blur, GB=Glass blur, MB=Motion blur, ZB=Zoom blur, S=Snow, Fr=Frost, F=Fog, B=Brightness, C=Contrast, ET=Elastic transform, P=Pixelate, JC=JPEG compression.
These corruptions map to plausible aquaculture monitoring artifacts: defocus and motion blur from camera shake, Gaussian and shot noise from sensor noise, brightness and contrast shifts from variable lighting, JPEG compression from bandwidth-limited transmission, and pixelation from distant subjects.

(a) CIFAR100-C
(b) FreshFish-C
Figure 3. Mean classification error rates (%) on CIFAR100-C and FreshFish-C under CTTA (batch size 1) using ViT-Base. Entries report mean of three runs (seeds 1, 2, 3). Fine-grained results are available in the supplementary material.
4.2. Implementation Details
Our main experiments use a ViT-B/16 backbone [5]. Baselines are instantiated from the public implementation of Marsden et al. [17] , with RES.TTA [28] run on the SAR base model [20]. We sweep Adam and SGD with learning rates , , on ImageNet-C and report the best configuration. For SEGA: one gradient step per batch, , , , , , . These settings were tuned on ImageNet-C (Fig. 5) and frozen for all other datasets because the paper evaluates one strict online regime rather than re-optimizing for multiple deployment settings. All runs use a single AMD Instinct MI200 GPU.
4.3. Results
Benchmarks. Table 2 shows that SEGA achieves the lowest mean error on the two primary strict online CTTA benchmarks, reaching 37.1% on ImageNet-C and 10.8% on CIFAR10-C, with the largest gains over the source model at +18.7 and +17.4 pp. The main advantage is stability on hard corruptions rather than isolated wins on easy ones. On ImageNet-C, SAR spikes to 82.0% on Fog and 99.6% on Contrast, while M2A remains competitive on several groups but rises to 51.6% on Pixelate and 52.5% on JPEG. SEGA wins 8 of 15 corruptions on each dataset and keeps ImageNet-C below 56% on every corruption, which explains why it achieves the best stream mean.
Additional Benchmarks. Fig. 3 shows the same trend on CIFAR100-C and FreshFish-C, where SEGA again attains the lowest mean error. This shows that the gains are not confined to ImageNet-C and CIFAR10-C, but extend to an additional corruption benchmark and to an aquaculture stream built from the same corruption protocol.
Continual Dynamic Change. Table 3 isolates the strongest stability test by interleaving corruption groups sample-wise. In this CDC setting, SEGA is the only method with the best mean on both datasets, reaching 39.7% on ImageNet-C and 11.8% on CIFAR10-C. The gap on ImageNet-C is especially important: M2A collapses to 89.6% mean, whereas SEGA wins the noise, blur, and digital groups and remains close to RDumb on weather. On CIFAR10-C, M2A wins the blur and weather groups, but SEGA still achieves the best overall mean because its performance is more balanced across all four groups.
Efficiency and Buffering. Table 4 shows that SEGA does not win by spending a larger adaptation budget. It updates only 0.03% of parameters, matching SAR and M2A, and uses the same number of forward passes as M2A, but cuts backward passes from 1K to 0.69K on ImageNet-C and from 2K to 1.32K on CIFAR10-C. This yields lower error than M2A at similar wall-clock time. Table 5 further supports the strict online setting: even the smallest buffer, K=8, is still 5.2 pp worse than SEGA on ImageNet-C and 5.8 pp worse on CIFAR10-C, while larger buffers degrade further and runs out of memory on CIFAR10-C.
FreshFish-C Transfer. Figure 4 and Table 6 show that SEGA remains useful beyond the fixed-B=1 regime within the same corruption-style proxy family for which it was tuned. Under variable batch sizes between 1 and 128, SEGA improves monotonically across five passes on FreshFish-C from 22.5% to 11.2%, reducing the mean to 15.2%. By contrast, SAR and RDumb stay near 28.4% and 28.3%, while M2A improves gradually but still averages 24.8%. The qualitative maps in Fig. 4 are consistent with this trend, showing attention that stays concentrated on fish regions rather than drifting into the background.
Control Components. Table 8 shows that the trend rule is the main reason SEGA remains stable. On ImageNet-C, removing both controls raises error to 62.2%, which is worse than the source model at 55.8%, while keeping only the trend rule already recovers 37.7%, within 0.6 pp of full SEGA. On CIFAR10-C, the asymmetry is even sharper: removing the trend rule drives error to 67.0%, whereas trend-only reaches 11.1% and nearly matches the full model at 10.8%. The gate therefore acts mainly as a selective refinement on top of the trend rule rather than as an independent stability mechanism.
Erasing Mechanism and Hyperparameters. Table 7 shows that not all augmentations produce a useful sensitivity signal. Spatial block erasing achieves 37.1% on ImageNet-C, outperforming frequency erasing at 42.3%
https://github.com/mariodoebler/test-time-adaptation.git
Table 2. Classification error rate (%) under CTTA (batch size 1) on ImageNet-C and CIFAR10-C using ViT-Base. Mean is the average across 15 corruption domains, each with 5000 test samples. Gain is the relative improvement over the source model. Entries report mean of three runs (seeds 1, 2, 3). Fine-grained result is available in the supp. material.
| Time | t → | Mean↓ | Gain↑ | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Method | GN | SN | IN | DB | GB | MB | ZB | S | Fr | F | B | C | ET | P | JC | ||
| ImageNet-C | |||||||||||||||||
| SOURCE (2021) [5] | 53.0 | 51.8 | 52.1 | 68.5 | 78.8 | 58.5 | 63.3 | 49.9 | 54.2 | 57.7 | 26.4 | 91.4 | 57.5 | 38.0 | 36.2 | 55.8 | 0.0 |
| ROTTA (2023) [33] | 49.9 | 48.2 | 48.0 | 67.9 | 70.5 | 55.1 | 60.0 | 45.5 | 48.7 | 53.4 | 24.9 | 88.4 | 54.0 | 37.2 | 34.6 | 52.4 | +3.4 |
| RPL (2021) [22] | 46.6 | 40.6 | 40.6 | 55.7 | 55.9 | 44.6 | 51.1 | 41.0 | 42.5 | 40.9 | 23.5 | 69.0 | 64.6 | 54.9 | 54.3 | 48.4 | +7.4 |
| SANTA (2023) [2] | 46.0 | 43.2 | 44.6 | 58.7 | 64.4 | 47.7 | 54.1 | 40.0 | 46.6 | 41.9 | 23.3 | 89.5 | 49.1 | 34.7 | 33.5 | 47.8 | +8.0 |
| TENT (2021) [29] | 47.4 | 41.8 | 41.7 | 57.5 | 58.4 | 45.8 | 51.5 | 40.4 | 41.9 | 41.8 | 22.5 | 54.0 | 50.2 | 31.9 | 30.9 | 43.8 | +12.0 |
| LCOTTA (2025) [6] | 41.5 | 37.6 | 39.3 | 54.9 | 54.4 | 46.4 | 51.8 | 41.1 | 40.5 | 42.2 | 24.2 | 58.7 | 47.7 | 33.1 | 32.1 | 43.0 | +12.8 |
| RES.TTA (2025) [28] | 41.9 | 39.5 | 39.5 | 50.0 | 47.5 | 45.0 | 49.8 | 39.0 | 39.4 | 37.3 | 21.9 | 88.7 | 38.5 | 29.3 | 29.9 | 42.5 | +13.3 |
| SAR (2023) [20] | 41.4 | 38.3 | 39.4 | 54.8 | 45.3 | 42.9 | 43.2 | 39.3 | 41.5 | 82.0 | 28.7 | 99.6 | 37.9 | 27.7 | 28.8 | 46.1 | +9.7 |
| RDUMB (2023) [21] | 44.0 | 42.4 | 42.4 | 49.5 | 48.2 | 43.6 | 46.2 | 35.1 | 37.9 | 37.0 | 21.6 | 69.4 | 37.4 | 27.9 | 29.5 | 40.8 | +15.0 |
| M2A (2026) [4] | 41.2 | 35.8 | 36.2 | 49.6 | 44.9 | 38.7 | 41.1 | 34.1 | 33.7 | 32.7 | 21.2 | 64.6 | 57.4 | 51.6 | 52.5 | 42.4 | +13.4 |
| SEGA | 40.5 | 37.3 | 38.3 | 47.7 | 42.1 | 38.9 | 39.4 | 31.9 | 39.7 | 36.3 | 21.1 | 55.6 | 31.6 | 27.7 | 28.4 | 37.1 | +18.7 |
| CIFAR10-C | |||||||||||||||||
| SOURCE (2021) [5] | 60.1 | 53.2 | 38.3 | 19.9 | 35.5 | 22.6 | 18.6 | 12.1 | 12.7 | 22.8 | 5.3 | 49.7 | 23.6 | 24.7 | 23.1 | 28.2 | 0.0 |
| ROTTA (2023) [33] | 60.9 | 56.2 | 38.4 | 18.4 | 34.2 | 17.5 | 13.1 | 10.8 | 12.1 | 14.0 | 4.2 | 21.1 | 14.8 | 27.5 | 19.8 | 24.2 | +4.0 |
| TENT (2021) [29] | 59.4 | 59.0 | 30.6 | 16.7 | 35.2 | 16.8 | 12.7 | 10.7 | 12.1 | 15.6 | 4.8 | 26.7 | 16.9 | 28.6 | 20.6 | 24.4 | +3.8 |
| RPL (2021) [22] | 52.3 | 38.7 | 27.1 | 18.6 | 33.4 | 19.3 | 13.7 | 10.8 | 10.4 | 16.9 | 4.6 | 27.4 | 18.1 | 29.7 | 21.3 | 22.8 | +5.4 |
| LCOTTA (2025) [6] | 57.0 | 50.2 | 37.4 | 20.1 | 35.1 | 22.8 | 18.8 | 11.8 | 12.5 | 22.9 | 5.3 | 50.5 | 23.5 | 25.0 | 22.9 | 27.7 | +0.5 |
| RES.TTA (2025) [28] | 63.2 | 59.7 | 38.5 | 13.5 | 42.7 | 16.5 | 14.0 | 13.5 | 15.2 | 13.3 | 4.5 | 15.4 | 23.5 | 27.3 | 28.4 | 25.9 | +2.3 |
| SAR (2023) [20] | 55.0 | 49.4 | 38.0 | 19.5 | 35.1 | 22.3 | 18.3 | 12.0 | 12.7 | 22.4 | 5.3 | 41.7 | 23.1 | 24.2 | 23.0 | 26.9 | +1.3 |
| RDUMB (2023) [21] | 27.7 | 24.0 | 15.1 | 11.5 | 28.0 | 13.1 | 10.8 | 9.3 | 9.2 | 13.0 | 5.0 | 16.8 | 17.1 | 12.7 | 19.4 | 15.5 | +12.7 |
| M2A (2026) [4] | 23.4 | 13.9 | 11.7 | 9.6 | 22.9 | 9.7 | 6.3 | 7.4 | 5.9 | 8.1 | 4.3 | 6.5 | 12.4 | 10.0 | 15.6 | 11.1 | +17.1 |
| SEGA | 15.8 | 14.0 | 9.8 | 9.3 | 22.8 | 9.4 | 7.7 | 7.5 | 7.5 | 8.8 | 4.4 | 8.4 | 13.2 | 9.9 | 13.8 | 10.8 | +17.4 |

Gaussian Noise
INPUT
SOURCE
SAR
RDUMB
M2A
SEGA
Figure 4. Visualization of class activation maps using GradCAM on corrupted samples from the FreshFish-C on severity level 5.
Table 3. Continual Dynamic Change (CDC) on ImageNet-C and CIFAR10-C; GN-SN, DB-ZB, S-B, and C-JC are grouped by noise, blur, weather, and digital corruptions.
| Method | ImageNet-C | CIFAR10-C | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GN-SN | DB-ZB | S-B | C-JC | Mean↓ | Gain↑ | GN-SN | DB-ZB | S-B | C-JC | Mean↓ | Gain↑ | |
| SOURCE | 49.3 | 64.4 | 45.1 | 55.7 | 53.6 | 0.0 | 50.5 | 24.2 | 13.2 | 30.3 | 29.6 | 0.0 |
| SAR | 44.5 | 46.5 | 37.5 | 47.1 | 43.9 | +9.7 | 47.5 | 23.8 | 13.1 | 28.5 | 28.2 | +1.4 |
| RDUMB | 42.7 | 47.4 | 33.9 | 41.9 | 41.5 | +12.1 | 23.0 | 16.6 | 9.5 | 17.5 | 16.7 | +12.9 |
| M2A | 78.8 | 93.8 | 99.0 | 86.8 | 89.6 | -36.0 | 18.1 | 11.7 | 7.0 | 12.9 | 12.4 | +17.2 |
| SEGA | 40.6 | 43.8 | 34.5 | 39.7 | 39.7 | +13.9 | 15.8 | 12.7 | 7.3 | 11.6 | 11.8 | +17.8 |
and geometric transforms such as crop (50.5%), rotate (63.8%), and translate (71.3%). Fig. 5 then shows that the best behavior comes from moderate settings rather than aggressive filtering: N=3 erasing levels provide a good trade-off, the 20%-100% band performs best, and a warm-up of about U=2048 is needed before gating becomes reliable.
Table 4. Adaptation efficiency on ImageNet-C and CIFAR10-C under CTTA (batch size 1) with ViT-Base on a single AMD Instinct MI200 GPU. Forward/Backward entries use K to denote 5000 samples per corruption domain (e.g., 1K, 3.41K). Note: ImageNet-C and CIFAR10-C have 5,000 and 10,000 samples per domain, respectively.
| Method | ImageNet-C | CIFAR10-C | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Param(%) | Time(s) | Forward | Backward | Error↓ | Params(%) | Time(s) | Forward | Backward | Error↓ | |
| SOURCE | 0 | 43.8 | 1K | 0 | 55.8 | 0 | 103.7 | 2K | 0 | 28.2 |
| SAR | 0.03 | 163.1 | 2K | 1.56K | 46.1 | 0.03 | 442.7 | 4K | 3.41K | 26.9 |
| RES.TTA | 0.03 | 236.8 | 3K | 1.12K | 42.5 | 0.03 | 583.1 | 6K | 2.20K | 25.9 |
| RDUMB | 0.05 | 87.13 | 1K | 0.83K | 40.8 | 0.05 | 195.3 | 2K | 1.40K | 15.5 |
| M2A | 0.03 | 231.4 | 3K | 1K | 42.4 | 0.03 | 627.7 | 6K | 2K | 11.1 |
| SEGA | 0.03 | 224.0 | 3K | 0.69K | 37.1 | 0.03 | 604.2 | 6K | 1.32K | 10.8 |
Together these results support the interpretation that SEGA is most effective on the studied corruption-style streams

(a) Erasing ratio
(b) Erasing levels
(c) Quantile level
(d) Loss coeff.

(e) Warm-up steps
(f) Deter. margin
(g) Min. act. steps
(h) Batch size
Figure 5. Hyperparameter ablations on SEGA with ImageNet-C under CTTA (batch size 1) using ViT-Base. Each panel shows the effect of a single SEGA hyperparameter (erasing ratio steps , erasing levels , quantile level , loss coefficient , warm-up steps , deterioration margin , minimum activation steps , and batch size) on classification error across corruptions. Extended ablation results in supplementary material.
Table 5. Buffer-based adaptation vs. SEGA (). Error (%), avg. seeds 1/2/3. SEGA: 37.1% (ImageNet-C), 10.8% (CIFAR10-C). “-” = OOM.
| Dataset | K=8 | K=16 | K=32 | K=64 |
|---|---|---|---|---|
| ImageNet-C | 42.3 | 50.1 | 51.0 | 49.7 |
| CIFAR10-C | 16.6 | 18.8 | - | - |
Table 6. Variable batch size (random between 1 to 128 per time step) under extended CTTA on FreshFish-C using ViT-Base. Entries report error rate (%).
| Method | FreshFish-C | ||||||
|---|---|---|---|---|---|---|---|
| Pass 1 | Pass 2 | Pass 3 | Pass 4 | Pass 5 | Mean↓ | Gain↑ | |
| SOURCE | 28.9 | 28.9 | 28.9 | 28.9 | 28.9 | 28.9 | 0.0 |
| SAR | 28.4 | 28.4 | 28.2 | 28.5 | 28.4 | 28.4 | +0.5 |
| RDUMB | 27.8 | 27.7 | 27.8 | 29.1 | 29.1 | 28.3 | +0.6 |
| M2A | 27.7 | 26.0 | 24.4 | 23.4 | 22.4 | 24.8 | +4.1 |
| SEGA | 22.5 | 16.9 | 13.5 | 12.0 | 11.2 | 15.2 | +13.7 |
Table 7. Augmentation comparison on ImageNet-C, CTTA (B=1), ViT-Base. Error (%), avg. seeds 1/2/3.
| Augmentation | Mean Error↓ |
|---|---|
| Random Crop | 50.5 |
| Random Rotate | 63.8 |
| Random Translate | 71.3 |
| Random Erasing (Frequency) | 42.3 |
| Random Erasing (Spatial) | 37.1 |
and backbones when erasing creates a smooth information-reduction channel that separates more stable from less stable samples.
Table 8. Ablation on SEGA with ImageNet-C and CIFAR10-C under CTTA (B=1). Entries report mean of three runs (seeds 1, 2, 3). Note: SEGA* and M2A (from Table 2) does not have the same error because SEGA and M2A were individually tuned in learning rates and optimizer to find each methods best result at B=1.
| Method | ImageNet-C | CIFAR10-C | ||||||
|---|---|---|---|---|---|---|---|---|
| Sens. Trend | Sens. Gate | Error↓ | Gain↑ | Sens. Trend | Sens. Gate | Error↓ | Gain↑ | |
| SOURCE | ✕ | ✕ | 55.8 | 0.0 | ✕ | ✕ | 28.2 | 0.0 |
| SEGA* | ✕ | ✕ | 62.2 | -6.4 | ✕ | ✕ | 17.4 | +10.8 |
| SEGA | ✕ | ✓ | 49.0 | +6.8 | ✕ | ✓ | 67.0 | -38.8 |
| SEGA | ✓ | ✕ | 37.7 | +18.1 | ✓ | ✕ | 11.1 | +17.1 |
| SEGA | ✓ | ✓ | 37.1 | +18.7 | ✓ | ✓ | 10.8 | +17.4 |
5. Conclusion
In this work we presented strict online continual test-time adaptation, where the key decisions are when to recover and which samples should update the model. Our results show that per-sample sensitivity under multi-view erasing provides a practical feedback signal for single-backbone strict online CTTA on corruption-style streams, yielding more stable adaptation, lower long-horizon error, and better efficiency than entropy- and reset-based schemes across standard corruption benchmarks and corruption-generated aquaculture streams. The sensitivity gate further reduces unnecessary backward updates, and the trend rule prevents long-horizon collapse. The strongest evidence supports corruption-style streaming shifts and architectures for which erasing produces a useful sensitivity signal, especially transformer-style backbones. A limitation is that reset-to-source discards cross-domain adaptations, and exploring partial rollback or weight interpolation could extend SEGA to settings where knowledge accumulation across domains is essential.
References
[1] Subir Biswas, Debendra Muduli, Md Ariful Islam, Anuradha Shantanu Kanade, Abu Taha Zamani, Shantanu Pandurang Kanade, and Nikhat Parveen. Empirical evaluation of deep learning techniques for fish disease detection in aquaculture systems: A transfer learning and fusion-based approach. IEEE Access, 2024. 1, 2, 5
[2] Goirik Chakrabarty, Manogna Sreenivas, and Soma Biswas. Sata: Source anchoring and target alignment network for continual test time adaptation. Transactions on Machine Learning Research, 2023. 1, 2, 7
[3] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 248–255. Ieee, 2009. 5
[4] Chandler Timm Cagmat Doloriel, Yunbei Zhang, Yeonguk Yu, Taki Hasan Rafi, Muhammad salman siddiqui, Tor Kristian Stevik, Fadi Al Machot, Kristian Hovde Liland, and Habib Ullah. Family matters: A systematic study of spatial vs. frequency masking for continual test-time adaptation. Transactions on Machine Learning Research, 2026. 2, 7
[5] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021. 6, 7
[6] Dexin Duan, Rui Xu, Peilin Liu, and Fei Wen. Lifelong test-time adaptation via online learning in tracked low-dimensional subspace. In Conference on Neural Information Processing Systems (NeurIPS), 2025. 1, 2, 7
[7] Jin Gao, Jialing Zhang, Xihui Liu, Trevor Darrell, Evan Shelhamer, and Dequan Wang. Back to the source: Diffusion-driven adaptation to test-time corruption. 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11786–11796, 2023. 1, 2
[8] Jisu Han, Jaemin Na, and Wonjun Hwang. Ranked entropy minimization for continual test-time adaptation. International Conference on Machine Learning (ICML), 2025. 5
[9] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, 2018. 1, 2, 5
[10] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. International Conference on Machine Learning, abs/1502.03167, 2015. 2
[11] Ansh Khurana, S. Paul, Piyush Rai, Soma Biswas, and Gaurav Aggarwal. Sita: Single image test-time adaptation. ArXiv, abs/2112.02355, 2021. 1, 2
[12] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. Toronto, ON, Canada, 2009. 5
[13] Jonghyun Lee, Dahuin Jung, Saehyung Lee, Junsung Park, Juhyeon Shin, Uiwon Hwang, and Sungroh Yoon. Entropy
is not enough for test-time adaptation: From the perspective of disentangled factors. ICLR, 2024. 3
[14] Hyesu Lim, Byeonggeun Kim, Jaegul Choo, and Sungha Choi. Ttn: A domain-shift aware batch normalization in test-time adaptation. International Conference on Learning Representations, 2023. 1, 2
[15] Jiaming Liu, Ran Xu, Senqiao Yang, Renrui Zhang, Qizhe Zhang, Zehui Chen, Yandong Guo, and Shanghang Zhang. Continual-mae: Adaptive distribution masked autoencoders for continual test-time adaptation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024. 1, 2, 5
[16] Jiaming Liu, Senqiao Yang, Peidong Jia, Ming Lu, Yandong Guo, Wei Xue, and Shanghang Zhang. Vida: Homeostatic visual domain adapter for continual test time adaptation. In International Conference on Learning Representations, 2024. 1, 2, 5
[17] Robert A. Marsden, Mario Döbler, and Bin Yang. Universal test-time adaptation through weight ensembling, diversity weighting, and prior correction. 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2024. 2, 6
[18] Zachary Nado, Shreyas Padhy, D. Sculley, Alexander D'Amour, Balaji Lakshminarayanan, and Jasper Snoek. Evaluating prediction-time batch normalization for robustness under covariate shift. ArXiv, abs/2006.10963, 2020. 2
[19] A. Tuan Nguyen, Thanh Nguyen-Tang, Ser-Nam Lim, and Philip H.S. Torr. Tipi: Test time adaptation with transformation invariance. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 24162–24171, 2023. 1, 2, 3
[20] Shuaicheng Niu, Jiaxiang Wu, Yifan Zhang, Zhiquan Wen, Yaofo Chen, Peilin Zhao, and Mingkui Tan. Towards stable test-time adaptation in dynamic wild world. In International Conference on Learning Representations, 2023. 1, 2, 4, 6, 7
[21] Ori Press, Steffen Schneider, Matthias Kümmerer, and Matthias Bethge. Rdumb: A simple approach that questions our progress in continual test-time adaptation. Neural Information Processing Systems, 2023. 1, 2, 3, 7
[22] Evgenia Rusak, Steffen Schneider, George Pachitariu, Luisa Eck, Peter Gehler, Oliver Bringmann, Wieland Brendel, and Matthias Bethge. If your data distribution shifts, use self-learning. Trans. Mach. Learn. Res., 2022, 2021. 7
[23] Mona Schirmer, Metod Jazbec, Christian Andersson Naesseth, and Eric Nalisnick. Monitoring risks in test-time adaptation. Advances in Neural Information Processing Systems, abs/2507.08721, 2025. 3
[24] Steffen Schneider, Evgenia Rusak, Luisa Eck, Oliver Bringmann, Wieland Brendel, and Matthias Bethge. Improving robustness against common corruptions by covariate shift adaptation. Neural Information Processing Systems, abs/2006.16971, 2020. 2
[25] Skyler Seto, Barry-John Theobald, Federico Danieli, Navdeep Jaitly, and Dan Busbridge. Realm: Robust entropy adaptive loss minimization for improved single-sample test-time adaptation. 2024 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 2051–2060, 2023. 1, 3
[26] Yu Sun, Xiaolong Wang, Zhuang Liu, John Miller, Alexei Efros, and Moritz Hardt. Test-time training with self-supervision for generalization under distribution shifts. In International conference on machine learning, pages 9229–9248. PMLR, 2020. 1, 2
[27] Guillaume Vray, Devavrat Tomar, Xufeng Gao, Jean-Philippe Thiran, Evan Shelhamer, and Behzad Bozorgtabar. Reservoirtta: Prolonged test-time adaptation for evolving and recurring domains. In Conference on Neural Information Processing Systems (NeurIPS), 2025. 1, 2, 3
[28] Guillaume Vray, Devavrat Tomar, Xufeng Gao, Jean-Philippe Thiran, Evan Shelhamer, and Behzad Bozorgtabar. Reservoirtta: Prolonged test-time adaptation for evolving and recurring domains. The Thirty-ninth Annual Conference on Neural Information Processing Systems, abs/2505.14511, 2025. 6, 7
[29] Dequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen, and Trevor Darrell. Tent: Fully test-time adaptation by entropy minimization. In International Conference on Learning Representations, 2021. 1, 2, 7
[30] Kunyu Wang, Xueyang Fu, Yuanfei Bao, Chengjie Ge, Chengzhi Cao, Wei Zhai, and Zheng-Jun Zha. PAID: Pairwise angular-invariant decomposition for continual test-time adaptation. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025. 1, 2
[31] Qin Wang, Olga Fink, Luc Van Gool, and Dengxin Dai. Continual test-time domain adaptation. In Proceedings of Conference on Computer Vision and Pattern Recognition, 2022. 1, 2, 5
[32] Yuxin Wu and Justin Johnson. Rethinking "batch" in batch-norm. ArXiv, abs/2105.07576, 2021. 2
[33] Longhui Yuan, Binhui Xie, and Shuangliang Li. Robust test-time adaptation in dynamic scenarios. 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023. 7
[34] Marvin Zhang, Sergey Levine, and Chelsea Finn. Memo: Test time robustness via adaptation and augmentation. Advances in Neural Information Processing Systems, 2022. 1, 2
[35] Yunbei Zhang, Akshay Mehra, Shuaicheng Niu, and Jihun Hamm. DPCore: Dynamic prompt coreset for continual test-time adaptation. In Forty-second International Conference on Machine Learning, 2025. 1, 2
[36] Shiji Zhao, Shao-Yuan Li, and Sheng-Jun Huang. Nanoadapt: Mitigating negative transfer in test time adaptation with extremely small batch sizes. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, IJCAI 2024, Jeju, South Korea, August 3-9, 2024, 2024. 1, 2