Manuscript Offprint
arXiv:2611.02003MIRA: Mutual Information guided calibration for Reliable Test-Time Adaptation
Abstract
Test-time adaptation (TTA) updates a deployed model using only unlabeled target data, but standard entropy-based methods often rely on deterministic confidence and can reinforce overconfident errors under distribution shift. We propose MIRA, Mutual Information guided calibration for Reliable Test-Time Adaptation, a source-free online adaptation method that uses lightweight last-layer Gaussian perturbations to probe prediction reliability. For each target batch, MIRA reuses a single feature extraction pass and samples perturbed classifiers around the source classifier, forming an efficient local predictive distribution. Rather than fitting a Bayesian posterior, MIRA treats the perturbation scale as a local probing radius and selects a batch-specific scale using mutual information (MI) and prediction agreement. The resulting perturbation-sensitivity signal identifies predictions that are confident and locally stable under classifier perturbations, while suppressing brittle predictions with high stochastic disagreement. MIRA then performs adaptation with an MI-confidence weighted entropy loss, which down-weights perturbation-sensitive or low-confidence samples before they drive entropy minimization. This weighted loss reduces the influence of brittle predictions that can otherwise cause harmful adaptation under distribution shift. The method requires no source data, retraining, model ensembles, or offline posterior fitting, and can be applied as a plug-and-play modification to entropy-minimization TTA. Experiments on distribution-shift benchmarks show improvements in accuracy, calibration, and negative log-likelihood, suggesting that mutual-information-guided perturbation probing and weighted adaptation yield more robust online TTA than deterministic confidence.
1 Introduction
Deep neural networks perform well under i.i.d. training and test sampling from [6, 11, 18]. Deployment often violates this assumption [13]. Under covariate shift, with unchanged label space and task semantics [32]. Such shifts, including corruptions from weather, sensor noise, styles, or acquisition conditions, degrade both accuracy and calibration [30]. Confident errors are especially problematic. Training-time domain generalization also seeks robustness to unseen domains, including through content–style disentanglement and style mixing [16].
These authors contributed equally to this work.
Corresponding author.
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
Complementing these training-time strategies, test-time adaptation (TTA) adapts a pre-trained model on unlabeled target data during inference, without access to source data or target labels [36, 38, 41, 26, 14, 15, 35]. Existing methods improve robustness through normalization updates, entropy minimization, sample filtering, or consistency regularization [38, 28, 40, 43].
Despite this progress, most entropy-based TTA methods remain deterministic. They adapt from a single prediction of a single maximum a posteriori (MAP) network and often treat confidence as reliability. Under distribution shift, however, high confidence may reflect overconfidence rather than correctness [10, 30]. Entropy minimization explicitly sharpens target predictions [2]; while useful when predictions are correct, it can also reinforce erroneous predictions and worsen overconfidence under severe shift [2, 44]. Thus, reliable TTA requires more than confidence maximization.
Recent uncertainty-aware TTA methods estimate target reliability, filter updates, or incorporate stochasticity into adaptation [46, 23, 37, 4, 47]. However, many obtain reliability through mechanisms that complicate online deployment, such as ensembles [46], repeated stochastic forward passes [23], source-dependent posterior fitting [46, 4], uncertainty-specific regularizers [37], or oracle feedback with reinforcement-learning-based adaptation [24]. PETAL fits a SWAG-diagonal posterior during source training and uses its log density to regularize lifelong teacher–student adaptation without revisiting source data [4]. These costs conflict with the practical requirements of TTA: source-freeness, low overhead, immediacy, and plug-and-play deployment.
A related line of work studies efficient uncertainty estimation for neural networks [17, 8]. Last-layer Laplace approximations place a lightweight distribution around the final classifier of a deterministic MAP network [17, 5], avoiding full Bayesian neural networks, ensembles, and full-network curvature estimation. Post-hoc Bayesianization methods such as ABNN instead attach Bayesian adaptation layers to normalization layers and fine-tune pretrained models [8]. Yet these methods are typically offline post-hoc uncertainty estimators that rely on source data, validation data, or posterior fitting, making them unsuitable for online source-free TTA. At the same time, recent results such as ICLA show that useful uncertainty behavior can arise from simple isotropic approximations when the perturbation scale is chosen appropriately [45]. This suggests a more pragmatic question: can a lightweight perturbation scale be selected directly from the current unlabeled target batch, and can the resulting stochastic predictions be used to weight adaptation?
We propose MIRA, a lightweight source-free online TTA framework that perturbs only the last-layer classifier of a deployed MAP network and uses stochastic predictions to identify reliable target samples. MIRA selects an informative perturbation scale per batch and applies an MI-confidence weighted entropy loss, promoting stable high-confidence predictions while down-weighting perturbation-sensitive samples. Figure 1 summarizes the probe and reliability-weighted update. Because backbone features are computed once and reused across classifier samples, MIRA is efficient and plug-and-play. Across covariate-shift benchmarks, it improves accuracy, calibration, and NLL without source data, posterior fitting, ensembles, full-network stochastic inference, Hessian estimation, or retraining.
-
We present an MI-confidence weighted loss that treats MI as perturbation-induced disagreement and down-weights perturbation-sensitive or low-confidence samples before entropy minimization.
-
We demonstrate consistent gains in accuracy and calibration across distribution-shift benchmarks, while keeping computation low through cached last-layer Monte Carlo sampling.
2 Background
2.1 Test-Time Adaptation and Uncertainty
Test-time adaptation (TTA) updates a source-trained model during inference using only unlabeled target samples [36, 38, 26, 41]. We consider the standard source-free covariate-shift setting, where while the label space and task semantics remain unchanged.

Figure 1: MIRA overview. (a) Cached features support Gaussian classifier probes with shared noise across candidate radii. At the selected , fresh Monte Carlo samples supply detached MI-confidence weights and a stochastic entropy update through one backward pass. (b) Fixed-scale annotations report measured results; MI/agreement curves and eligibility bars schematically illustrate radius selection. HE and EH denote entropy of the mean prediction and mean predictive entropy.
Given an incoming target batch , most TTA methods adapt the model by updating normalization statistics, minimizing prediction entropy, enforcing consistency, or selecting reliable samples for update [25, 38, 28, 29, 43]. A representative objective is entropy minimization,
which encourages confident predictions on the target batch. While effective, this deterministic objective can treat confidence as reliability. Under severe shift, incorrect but low-entropy predictions may be reinforced, leading to overconfident or poorly calibrated adaptation.
Recent methods address this issue by incorporating uncertainty into TTA. EATA and SAR filter unreliable samples or unstable updates [28, 29]; EATA-C models data and model uncertainty for calibration [37]; AETTA uses dropout-based disagreement to estimate adaptation quality without labels [23]; SSA stabilizes online adaptation through time-varying covariance [21]; and BACS and PETAL introduce Bayesian or probabilistic formulations of adaptation [46, 4]. Uncertainty-constrained pseudo-label refinement also supports volumetric self-training in cross-modality medical domain adaptation [33]. Our goal is to obtain a lightweight predictive distribution directly from each target batch and use it to guide adaptation, without source data, offline posterior fitting, or repeated full-network sampling.
2.2 Perturbation-Based Reliability Probing
Predictive reliability can be probed through disagreement under stochastic predictors or controlled perturbations. Monte Carlo dropout, deep ensembles, MEMO, and weight-space Bayesian methods capture uncertainty through stochastic subnetworks, independently trained models, input augmentations, or parameter distributions [9, 20, 43, 3, 30]. These approaches may require repeated full-network inference, multiple models, source-side training, or additional fitting. Self-supervised representation learning can structure features through disentanglement [22], and pretrained feature spaces can support auxiliary self-supervision and consistency objectives [34]. MIRA uses the deployed representation for reliability probing: it perturbs only the last-layer classifier and reuses cached backbone features within each batch, following cached-feature uncertainty estimators [5] and evidence that simplified perturbation scales can yield useful uncertainty behavior [45]. From the current unlabeled target batch, MIRA selects a Gaussian perturbation scale. MI measures perturbation-induced predictive disagreement, while prediction agreement checks class-identity stability. MIRA uses these perturbation responses to regulate sample-wise adaptation, directly linking predictive reliability to test-time optimization.
3 Motivation & Observation
Deterministic entropy-based TTA sharpens target predictions by minimizing the entropy of the model's own outputs. This is effective when predictions are correct, but it treats low entropy


Figure 2: Online accuracy and confidence during TENT and TENT+MIRA on ImageNet-C fog (severity 5, EMA coefficient 0.01). MIRA narrows the gap in both (a) the overconfident ResNet-34 and (b) the underconfident EfficientNet-B0. Shading and bars show the absolute accuracy–confidence gap, rather than ECE.
as evidence of reliability without testing whether the resulting confidence is actually supported. Consequently, confidence is not anchored to accuracy during adaptation. Figure 2 illustrates this on ImageNet-C fog: under TENT, confidence stays above accuracy for ResNet-34, whereas it stays below accuracy for EfficientNet-B0. In both cases, the gap persists throughout the stream rather than closing as adaptation proceeds.
These observations motivate an additional reliability signal for adaptation. Entropy minimization can reinforce the model's current prediction even when it is incorrect. A single deterministic confidence score does not reveal whether that prediction is sensitive to small changes in the classifier. We therefore ask whether prediction stability under controlled classifier perturbations can provide an additional signal for regulating adaptation.
To examine this, we sweep fixed perturbation scales on CIFAR-100-C snow at severity 5 with ResNeXt (Figure 1(b)). Starting from a deployed MAP classifier, we perturb only the last-layer weights,
Here has the same shape as and specifies the base perturbation scale for each weight; denotes element-wise multiplication. Section 4 specifies the corresponding weight and bias scale factors and , with construction details in Appendix D.4. We sweep the perturbation scale on the incoming target stream. Larger induces stronger classifier stochasticity. This sweep is not intended to recover a Bayesian posterior; it probes how the target model responds as the classifier is gradually perturbed.
The sweep reveals two key observations.
-
Perturbation scale can control confidence and calibration. When is very small, perturbed classifiers are nearly identical to the deterministic MAP model, so overconfident predictions remain unchanged. As increases, perturbation averaging lowers confidence for predictions unstable under classifier perturbations. In an intermediate regime, this reduces unsupported confidence while preserving most predictions, improving ECE and NLL. If becomes too large, perturbed classifiers cross decision regions, causing confidence collapse and degraded probabilistic metrics.
-
Perturbation search can also improve adaptation accuracy. The useful regime is not merely a confidence-smoothing region. During TTA, the perturbation scale also changes the adaptation signal: brittle MAP predictions contribute less, while perturbation-stable predictions have greater influence. This can suppress erroneous high-confidence updates and improve accuracy. Thus, even without posterior fitting, searching a lightweight perturbation family can reveal scales that improve accuracy, calibration, or both.
These observations motivate MIRA. They suggest viewing not as a posterior variance but as a local probing radius around the deployed classifier. A useful radius should be large enough to expose locally sensitive predictions, yet small enough to preserve class identity for stable samples; Appendix A formalizes this through local margin crossings. Rather than fixing or pre-fitting the perturbation scale, MIRA searches each unlabeled target batch for this stable perturbation-response regime using MI and perturbation agreement, and uses the resulting stochastic predictions to compute MI–confidence weights for adaptation (Section 4).
4 Method
MIRA performs source-free online test-time adaptation using lightweight Gaussian perturbations of the final classifier. Given a source-trained model, we decompose the prediction into a feature extractor and a linear classifier,
where denotes the backbone representation and W, b denote the last-layer classifier. MIRA updates only the parameters adapted by the underlying TTA method, such as normalization affine parameters, while W, b remain fixed. The perturbations serve two roles: they define a stochastic adaptation objective and provide a reliability signal for weighting it.
4.1 Last-Layer Gaussian Reliability Probe
For an incoming target batch , MIRA first computes the backbone features once, . It then samples perturbed last-layer classifiers for each perturbation scale :
Here and are fixed-rule scale factors (see Appendix D.4), so only the scalar radius is selected online. Within each batch, the same noise is shared across all scales, so candidate classifiers at different lie along the same perturbation directions and differ only in radius. This coupling helps reduce Monte Carlo variability in comparisons across candidate scales.
For each sampled classifier, MIRA computes
From these stochastic predictions, MIRA computes predictive entropy, expected entropy, and perturbation-induced mutual information:
Here HE measures uncertainty of the averaged stochastic prediction, EH measures the average uncertainty of individual sampled classifiers, and MI measures disagreement induced by perturbation. MIRA also computes prediction agreement,
which checks whether sampled classifiers preserve the same class identity as the Monte Carlo mean prediction.
4.2 Mutual-Information-Guided Scale Selection
The perturbation scale controls how strongly the local classifier neighborhood is probed. As increases, sampled classifiers deviate more from the deployed classifier and their predictions begin to disagree. A moderate rise in mutual information can reveal local prediction sensitivity that deterministic confidence misses. However, excessive disagreement is undesirable: when is too large, sampled classifiers frequently cross decision regions, and the resulting disagreement reflects predictive collapse rather than useful sensitivity. MIRA therefore selects a batch-specific scale from by seeking disagreement that remains class-consistent.
For each , MIRA computes the batch-level mutual information and prediction agreement,
Here measures perturbation-induced disagreement and compares sampled top-1 classes with the Monte Carlo mean. Let and . MIRA selects the earliest informative, high-agreement candidate:
The MI condition seeks an informative response relative to the observed MI range, while the agreement condition checks whether the candidate remains class-consistent. The complete selection procedure, including interpolation between grid points and the case in which no candidate satisfies both conditions, is given in Appendix D.6. When both conditions hold, bounds the batch-average empirical disagreement on the selection samples; it does not guarantee correctness, preservation of the unperturbed MAP class, or agreement after fresh sampling. The selected is a probing radius rather than a posterior variance. Fresh Monte Carlo samples at this radius provide the adaptation loss below.
4.3 Reliability-Gated Adaptation
After selecting , MIRA uses the stochastic predictions at this scale to decide which target samples should drive adaptation. Standard entropy minimization treats low entropy as reliable evidence and therefore reinforces the model's current predictions. MIRA instead asks whether this confidence is stable under controlled classifier perturbations. A sample with low entropy but high perturbation-induced MI is locally brittle under the chosen perturbation geometry: its confidence depends strongly on the particular classifier sample. Such brittleness does not prove that the prediction is incorrect, but it indicates that the sample should not dominate an entropy-minimization update.
Let
MIRA first assigns each sample an MI-based weight that decreases with perturbation-induced disagreement,
This normalization gives the weights unit batch mean. Thus, predictions that remain stable across perturbed classifiers receive larger weights, while high-MI predictions are suppressed. The centering by does not change the relative weights, but stabilizes the batch-wise weighting scale. Unit-mean normalization redistributes average sample weight, but does not by itself match gradient magnitudes; Appendix B.1 provides that control.
MIRA combines this MI gate with a confidence gate computed from the Monte Carlo mean prediction,
where normalizes the batch mean weight to one. The final sample weight is
where stops gradients through the reliability estimate. The MI term down-weights perturbation-sensitive samples, while the confidence term down-weights low-evidence samples. Together, these factors favor samples that are confident and low-disagreement under the selected probing radius.
The adaptation loss is
We use the common default ; coefficient sensitivity is reported in Appendix B.6. The HE term performs entropy minimization on the stochastic predictive mean, and the EH term encourages low entropy across the sampled predictions. If , this reduces to the unweighted stochastic objective , which provides the main adaptation signal; the MI-confidence weight complements it by biasing the update away from predictions that are sensitive to last-layer perturbations or have low confidence. This does not guarantee pseudo-label correctness; it assumes that perturbation-stable predictions are more likely to be correct, and reduces the influence of brittle predictions that pose a higher risk of harmful entropy-minimization updates under distribution shift.
4.4 Efficient Cached Last-Layer Sampling
MIRA is efficient because all Monte Carlo sampling is confined to the last-layer reliability probe. Unlike dropout-based or full-network stochastic methods, MIRA does not resample the backbone or perform repeated full forward passes. For each target batch, it computes features once, , and reuses them for all classifier samples and all candidate scales. The stochastic logits are computed only by final-layer operations:
MIRA selects a probing scale using the MI/agreement criteria (Appendix D.6), then adapts with a reliability-weighted stochastic entropy objective using fresh Monte Carlo samples. All sampling uses cached features and the final classifier, without source/validation data or posterior fitting.
5 Experiments
We evaluate source-free online MIRA along three axes: accuracy and calibration, MI-based reliability signals, and the efficiency of cached last-layer sampling.
5.1 Experimental Setup
Datasets and models. We evaluate MIRA on CIFAR-100-C and ImageNet-C, each with 15 corruption types and five severity levels. We use WideResNet-40-2 and ResNeXt on CIFAR-100-C, and ResNet-34 and ResNet-50 on ImageNet-C. To assess generalization beyond conventional CNN classifiers, we additionally evaluate ViT-B/16 [7] on ImageNet-C and CLIP ViT-B/16 [31] on CIFAR-10-C and CIFAR-100-C. Unless otherwise specified, adaptation is performed without access to source samples or target labels.
Baselines. We compare against the source model without adaptation, TENT, EATA, SAR, and ROID [38, 28, 29, 27], and uncertainty-aware TTA methods in the extended comparisons. We also include perturbation- or uncertainty-estimation baselines when applicable to separate the effect of stochastic prediction from online adaptation.
Metrics. We report classification accuracy for predictive performance and ECE and NLL for calibration and probabilistic prediction quality. We also report mean maximum confidence (MMC) to distinguish genuine calibration improvement from simple confidence sharpening. For reliability analysis, we compare batch accuracy at matched predictive entropy.
Implementation. MIRA perturbs only the final classifier, using Monte Carlo samples per batch. Cached backbone features are reused across samples and candidate scales, so probing requires only last-layer operations. Unless otherwise specified, batch size, optimizer, update parameters, and online protocol match each TTA baseline. Appendix D provides baseline configurations, metric definitions, perturbation construction, and hyperparameters.
5.2 Calibration with MI & Agreement-Guided Scale Selection
Figure 3 places adapted models in the confidence–accuracy plane. (a) Across architectures, MIRA reaches higher accuracy than TENT while lying closer to the diagonal. (b) On ImageNet-C, every base method is overconfident; MIRA raises accuracy and narrows the gap for all four. (c) All variants stay within 2 points of the diagonal and above TENT's accuracy.
We use MI and prediction agreement to select an informative probing scale and to check its class consistency. The earliest candidate satisfying both criteria is selected. This scale-selection role is separate from MI-based loss weighting, which we assess below. Additional reliability analyses are provided in Appendix E.
Joint , entropy-coefficient, and scale-grid sensitivity are reported in Appendices B.5–B.7. For CIFAR-100-C, accuracy spans only 0.16 percentage points in the threshold sweep, while ECE ranges from 0.0294 to 0.0675. Coarsening the scale grid reduces ImageNet-C accuracy by 0.985 points and raises ECE by 0.0429. Thus, the default is a common operating choice rather than a universally optimal setting. Appendix B.8 reports an HE-only cross-architecture snow diagnostic.

Figure 3: Confidence–accuracy plane; the diagonal marks confidence = accuracy. (a) Architectures, (b) MIRA on base TTA methods, (c) variants of MIRA on ImageNet-C / ResNet-50.
5.3 Loss Design: MI as a Reliability Gate
MIRA provides the entropy of the Monte Carlo mean prediction HE, the expected entropy of sampled classifiers EH, and their difference . The entropy terms provide adaptation objectives: HE sharpens the averaged stochastic prediction,
Table 1: Loss ablation on ImageNet-C / ResNet-34: three-run mean sample SD (seeds 1, 2, and 3); accuracy is a fraction. Stochastic variants retain MI-based scale selection. Green: Full MIRA; bold: best means.
| Method | Loss | Acc. | MMC | ECE | NLL |
|---|---|---|---|---|---|
| Source | - | 0.1840.0015 | 0.3742.0007 | 0.1903.0009 | 5.4870.0057 |
| TENT | H | 0.3421.0019 | 0.4053.0009 | 0.0642.0013 | 3.4602.0022 |
| TENT | 2H | 0.3660.0021 | 0.4388.0012 | 0.0734.0012 | 3.2892.0026 |
| MIRA | HE | 0.3408.0020 | 0.3661.0010 | 0.0412.0008 | 3.4498.0031 |
| MIRA | EH | 0.3392.0020 | 0.3644.0009 | 0.0412.0008 | 3.4637.0030 |
| MIRA | MI | 0.2977.0016 | 0.3094.0002 | 0.0373.0003 | 3.8173.0075 |
| MIRA | HE + EH | 0.3637.0024 | 0.3961.0013 | 0.0442.0011 | 3.2806.0055 |
| MIRA | 0.3425.0021 | 0.3675.0010 | 0.0415.0007 | 3.4387.0021 | |
| MIRA | 0.3658.0023 | 0.3971.0014 | 0.0441.0010 | 3.2681.0007 | |
| MIRA | 0.3699.0024 | 0.3992.0011 | 0.0435.0020 | 3.2421.0208 |
while EH encourages individual perturbed classifiers to remain confident. MI instead measures perturbation-induced disagreement. Table 1 shows why it should not be the sole optimization target: direct MI minimization lowers MMC and ECE but substantially reduces accuracy and worsens NLL. A low ECE alone therefore does not imply a better predictor. Neither HE nor EH alone improves accuracy over TENT, whereas their combination increases accuracy to 36.37% and reduces NLL to 3.2806. This highlights the benefit of jointly optimizing the mean prediction and individual stochastic predictions.
The joint stochastic loss HE + EH accounts for a substantial part of the improvement over standard entropy minimization. MI weighting down-weights perturbation-sensitive predictions, while the confidence gate suppresses low-evidence samples. Applying to HE+EH changes mean accuracy from 36.37% to 36.58%, with little change in ECE; Full MIRA reaches 36.99% and lower NLL. These modest differences should be interpreted relative to seed variation and support gating as a complementary mechanism. This ablation concerns loss weighting; MI-based scale selection remains active in all stochastic variants. Gradient-matched controls are reported in Appendix B.1. Even under gradient-matched updates, Full MIRA improves accuracy over unweighted HE + EH by 0.28 and 0.04 percentage points on CIFAR-10-C and CIFAR-100-C, respectively (Appendix B.1).
The deterministic 2H control shows why loss strength and calibration must be assessed together. Doubling TENT's entropy objective raises accuracy to 36.60%, but MMC increases to 0.4388 and ECE to 0.0734. Full MIRA instead reaches 36.99% with MMC 0.3992 and ECE 0.0435, so its accuracy gain accompanies a smaller confidence–accuracy gap. This comparison supports evaluating adaptation strength and calibration jointly. It does not isolate the gate by itself, because stochastic prediction, scale selection, and weighting change together; the gradient-matched comparisons in Appendix B.1 address the separate question of sample weighting at a common update norm. NLL complements this comparison by penalizing confident mistakes, whereas MMC records the direction of confidence change and must be interpreted relative to accuracy.
5.4 Calibration Plug-and-Play MI Gating
Beyond using MIRA as a standalone TTA method, we evaluate whether its mutual-information signal can be attached to existing adaptation rules. Many TTA methods differ in their sample-selection strategy or adaptation loss. MIRA provides an orthogonal reliability signal: low perturbation-induced MI indicates
Table 2: Plug-and-play evaluation: three-run means with accuracy ± SD. SDs for all metrics of MIRA are reported in Table 12. Bold: best accuracy, ECE, and NLL per dataset. Protocols: Appendix D.1–D.2.
| Method | CIFAR-100-C / ResNeXt | ImageNet-C / ResNet-50 | ||||||
|---|---|---|---|---|---|---|---|---|
| Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ | |
| MAP | 53.55 | 0.7463 | 0.2109 | 2.4944 | 17.89 | 0.3322 | 0.1535 | 5.2161 |
| TENT | 67.84±0.05 | 0.7461 | 0.0693 | 1.2547 | 36.62±0.12 | 0.4089 | 0.0478 | 3.2549 |
| MIRATENT | 68.69±0.15 | 0.7305 | 0.0452 | 1.1940 | 39.45±0.14 | 0.4053 | 0.0361 | 3.0205 |
| EATA | 65.37±0.14 | 0.7039 | 0.0559 | 1.3515 | 40.02±0.29 | 0.4507 | 0.0549 | 2.9796 |
| MIRAEATA | 68.47±0.04 | 0.7217 | 0.0399 | 1.1921 | 43.18±0.12 | 0.4802 | 0.0533 | 2.7547 |
| SAR | 67.55±0.11 | 0.7357 | 0.0630 | 1.2574 | 36.72±0.15 | 0.3935 | 0.0355 | 3.2487 |
| MIRASAR | 68.61±0.10 | 0.7348 | 0.0500 | 1.2001 | 39.28±0.56 | 0.3886 | 0.0290 | 3.0494 |
| ROID | 69.16±0.01 | 0.7644 | 0.0735 | 1.1931 | 44.91±0.20 | 0.5231 | 0.0758 | 2.6526 |
| MIRAROID | 69.21±0.12 | 0.7407 | 0.0497 | 1.1674 | 45.37±0.25 | 0.4847 | 0.0383 | 2.5916 |
stable predictions, whereas high MI indicates brittle predictions that should be down-weighted. Thus, MIRA can be used as a lightweight plug-and-play gate without modifying the core update rule of the base method.
Table 2 shows lower ECE and NLL with method-dependent accuracy gains. Small accuracy differences, particularly ROID on CIFAR-100-C, should be read relative to seed variation. MIRA improves SAR's ImageNet-C accuracy from 36.72% to 39.28% while reducing ECE and NLL.
The effect on confidence is not unidirectional, which is expected because the MI gate is not designed to monotonically sharpen or soften predictions. MMC decreases for TENT, SAR, and ROID but increases for EATA on both benchmarks. What is consistent is the absolute accuracy–confidence gap: every base method in Table 2 is overconfident, and attaching MIRA narrows this gap in all eight settings. For EATA, MMC rises, but accuracy rises even more, so the gap still shrinks. This distinguishes MIRA from confidence-driven TTA, which typically pushes predictions to become sharper regardless of calibration. By controlling which target samples influence adaptation, MIRA acts as a general reliability module for online TTA.
5.5 Generalization and Comparison with Uncertainty Estimation Methods
Generalization beyond conventional classifiers. Table 3 extends MIRA to ViT-B/16 on ImageNet-C and CLIP ViT-B/16 on CIFAR-10-C and CIFAR-100-C. Attaching MIRA to TENT improves accuracy, ECE, and NLL in all three settings. For CLIP, class text embeddings serve as the effective classifier and are perturbed only for reliability probing. The released CLIPTTA's TENT implementation [19] uses ten updates per batch; the modified one-step comparison and implementation details are given in Appendices C.5 and D.7.
Table 3: ViT/CLIP generalization results.
| Dataset | Method | Acc. (%) ↑ | ECE ↓ | NLL ↓ |
|---|---|---|---|---|
| ImageNet-C | TENT | 42.03 | 0.1141 | 3.0312 |
| MIRATENT | 45.17 | 0.0529 | 2.8159 | |
| CIFAR-10-C | TENT | 56.38 | 0.3629 | 3.5747 |
| MIRATENT | 58.65 | 0.3362 | 3.3509 | |
| CIFAR-100-C | TENT | 31.28 | 0.4814 | 6.5500 |
| MIRATENT | 35.27 | 0.4066 | 5.5736 |
Continual, dynamic, and computationally realistic adaptation. MIRA also improves continual CoTTA on CIFAR-100-C from 64.16% to 65.20% accuracy, with ECE decreasing from 0.0529 to 0.0342. Under a dynamic PTTA stream [42], RoTTA improves from 74.89% to 75.67%, with ECE decreasing from 0.0842 to 0.0674. Under the computationally realistic protocol, TENT accuracy improves from 38.97% to 39.92% on ImageNet-C and from 40.74% to 41.13% on ImageNet-R, with lower ECE and NLL on both. These results and their full comparisons are given in Appendix C, including the alternative PTTA protocol, where accuracy and ECE improve but NLL worsens.
These extensions test accumulated adaptation, changing target distributions, and time-limited update opportunities. Their accuracy–calibration trade-offs complement the conventional corruption-stream comparison. The alternative PTTA result illustrates why lower ECE alone does not establish better probabilistic prediction: NLL worsens despite higher accuracy. We consequently assess each protocol using accuracy, ECE, and NLL together.
Comparison with uncertainty-estimation methods. We compare against deep ensembles, last-layer Laplace approximation (LLLA), a simplified Laplace-style variant (ICLA), and Bayesian neural-network baselines (BBB, ABNN) in Table 4.
These baselines use uncertainty to form predictions, whereas MIRA uses local perturbation responses to guide online adaptation. MIRA achieves the highest accuracy and lowest NLL on both benchmarks, and the lowest ECE on CIFAR-100-C. On ImageNet-C, Laplace-style methods attain slightly lower ECE, but substantially lower accuracy and higher NLL. Together with the loss ablation, these results support stochastic adaptation complemented by reliability weighting while delimiting the gate's incremental contribution.
Table 4: Uncertainty-estimation comparison. Accuracy is a fraction; values are retained single-run results.
| Method | CIFAR-100-C | ImageNet-C | ||||||
|---|---|---|---|---|---|---|---|---|
| WRN-40-2 | ResNet-50 | |||||||
| Acc ↑ | MMC | ECE ↓ | NLL ↓ | Acc ↑ | MMC | ECE ↓ | NLL ↓ | |
| MAP | 0.5389 | 0.7041 | 0.1653 | 2.0589 | 0.2084 | 0.2246 | 0.0584 | 4.6490 |
| Deep Ens. | 0.5811 | 0.6269 | 0.0504 | 1.6998 | 0.2532 | 0.1874 | 0.0750 | 4.1725 |
| LLLA | 0.5304 | 0.6282 | 0.0978 | 1.9300 | 0.2140 | 0.1948 | 0.0431 | 4.4985 |
| ICLA | 0.5389 | 0.4449 | 0.0956 | 1.8801 | 0.2143 | 0.1879 | 0.0468 | 4.5034 |
| BBB | 0.3445 | 0.5445 | 0.2001 | 3.7816 | 0.2057 | 0.3079 | 0.1035 | 4.8407 |
| ABNN | 0.5179 | 0.6568 | 0.1389 | 2.2254 | 0.2326 | 0.2968 | 0.0634 | 4.2755 |
| MIRATENT | 0.6391 | 0.6701 | 0.0390 | 1.3505 | 0.3726 | 0.3303 | 0.0512 | 3.2092 |
uracy and higher NLL. Together with the loss ablation, these results support stochastic adaptation complemented by reliability weighting while delimiting the gate's incremental contribution.
5.6 Efficiency of Last-Layer Probing
MIRA computes backbone features once per target batch and reuses them for all Gaussian classifier samples and candidate scales. Thus, probing adds classifier-level matrix multiplications rather than repeated backbone inference. Table 5 reports moderate runtime overhead over TENT, with runtime in the same range as SAR and ROID in the evaluated settings. Memory can increase more: the ImageNet ratio is the source model, compared with for TENT. Ablations on perturbation scope and the Monte Carlo sampling budget are provided in Appendix B.
Table 5: Efficiency comparison. Runtime and memory are relative to the source model.
| Method | CIFAR100WRN | ImageNetResNet34 | ||
|---|---|---|---|---|
| Runtime | Memory | Runtime | Memory | |
| Source | ||||
| TENT | ||||
| EATA | ||||
| SAR | ||||
| ROID | ||||
| MIRATENT | ||||
6 Conclusion
We proposed MIRA, a source-free online TTA method that estimates reliability with last-layer Gaussian perturbations. MIRA uses mutual information and prediction agreement, rather than a Bayesian posterior or deterministic confidence, to identify stable predictions. By suppressing brittle high-confidence updates while preserving entropy-based adaptation, MIRA improves the accuracy–calibration trade-off; confining Monte Carlo sampling to the final classifier keeps it an efficient plug-and-play reliability module.
Across conventional classifiers, ViT, and CLIP, a local stochastic probe supported adaptation without repeated backbone evaluations. Loss controls separate stochastic entropy from reliability weighting, and continual, dynamic, and time-constrained evaluations test the signal beyond conventional streams. These findings suggest a role for MI alongside confidence: MI sets the probing scale, agreement checks class consistency, and sensitivity helps determine which predictions influence the update. Future work should simplify scale selection and extend the probe to richer adaptation modules.
Limitations. MIRA adds a scale grid, thresholds , entropy coefficient , and sampling budget . Calibration remains sensitive to these choices and to grid density. The agreement bound holds only when both selection conditions are met; under the default thresholds, the MI criterion alone often determines the scale. Stochastic entropy accounts for much of the accuracy gain, and the gate's additional benefit is setting-dependent. The probe is not calibrated Bayesian posterior uncertainty and cannot fully correct severe feature-level misalignment. Adapting to unrepresentative unlabeled streams may also reinforce existing bias, so confidence improvements do not establish fairness or safe deployment across subpopulations.
Acknowledgments and Disclosure of Funding
This work was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No. RS-2025-16070382, RS-2025-02215070, RS-2025-02217919, RS-2024-00436680), Artificial Intelligence Graduate School Program at Yonsei University (RS 2020-II201361), the Korea Institute of Science and Technology (KIST) Institutional Program under Grant 26E0170.
Competing Interests. The authors declare no competing interests.
References
[1] Motasem Alfarra, Hani Itani, Alejandro Pardo, Shyma Yaser Alhuwaider, Merey Ramazanova, Juan Camilo Perez, Zhipeng Cai, Matthias Müller, and Bernard Ghanem. Evaluation of test-time adaptation under computational time constraints. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 976–991, 2024.
[2] Fin Amin and Jung-Eun Kim. The over-certainty phenomenon in modern test-time adaptation algorithms. arXiv preprint arXiv:2404.16168, 2024.
[3] Charles Blundell, Julien Cornebise, Koray Kavukcuoglu, and Daan Wierstra. Weight uncertainty in neural network. In International Conference on Machine Learning, pages 1613–1622. PMLR, 2015.
[4] Dhanajit Brahma and Piyush Rai. A probabilistic framework for lifelong test-time adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3582–3591, 2023.
[5] Erik Daxberger, Agustinus Kristiadi, Alexander Immer, Runa Eschenhagen, Matthias Bauer, and Philipp Hennig. Laplace redux—effortless Bayesian deep learning. Advances in Neural Information Processing Systems, 34:20089–20103, 2021.
[6] Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. ImageNet: A large-scale hierarchical image database. In 2009 IEEE Conference on Computer Vision and Pattern Recognition, pages 248–255. IEEE, 2009.
[7] 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 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations, 2021.
[8] Gianni Franchi, Olivier Laurent, Maxence Leguery, Andrei Bursuc, Andrea Pilzer, and Angela Yao. Make me a BNN: A simple strategy for estimating Bayesian uncertainty from pre-trained models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12194–12204, 2024.
[9] Yarin Gal and Zoubin Ghahramani. Dropout as a Bayesian approximation: Representing model uncertainty in deep learning. In International Conference on Machine Learning, pages 1050–1059. PMLR, 2016.
[10] Chuan Guo, Geoff Pleiss, Yu Sun, and Kilian Q Weinberger. On calibration of modern neural networks. In International Conference on Machine Learning, pages 1321–1330. PMLR, 2017.
[11] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–778, 2016.
[12] Dan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath, Frank Wang, Evan Dorundo, Rahul Desai, Tyler Zhu, Samyak Parajuli, Mike Guo, Dawn Song, Jacob Steinhardt, and Justin Gilmer. The many faces of robustness: A critical analysis of out-of-distribution generalization. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pages 8340–8349, 2021.
[13] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019.
[14] Hyeongyu Kim, GeonHui Han, and Dosik Hwang. Buffer layers for test-time adaptation. In Advances in Neural Information Processing Systems, volume 38, pages 156540–156562, 2025.
[15] Hyeongyu Kim, Geonhui Han, and Dosik Hwang. ActTA: Rethinking test-time adaptation via dynamic activation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 22217–22226, 2026.
[16] Hyeongyu Kim, Yejee Shin, and Dosik Hwang. DiMix: Disentangle-and-mix based domain generalizable medical image segmentation. In Medical Image Computing and Computer Assisted Intervention – MICCAI 2023, pages 242–251. Springer, 2023.
[17] Agustinus Kristiadi, Matthias Hein, and Philipp Hennig. Being Bayesian, even just a bit, fixes overconfidence in ReLU networks. In International Conference on Machine Learning, pages 5436–5446. PMLR, 2020.
[18] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009.
[19] Marc Lafon, Gustavo Vargas Hakim, Clément Rambour, Christian Desrosiers, and Nicolas Thome. CLIPTTA: Robust contrastive vision-language test-time adaptation. In Advances in Neural Information Processing Systems, volume 38, 2025.
[20] Balaji Lakshminarayanan, Alexander Pritzel, and Charles Blundell. Simple and scalable predictive uncertainty estimation using deep ensembles. Advances in Neural Information Processing Systems, 30, 2017.
[21] Jae-Hong Lee. Bayesian weight enhancement with steady-state adaptation for test-time adaptation in dynamic environments. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 32889–32906, 2025.
[22] Jeong Ryong Lee, Geonhui Son, and Dosik Hwang. FeDi: Feature disentanglement for self-supervised learning. Pattern Recognition, 172:112619, 2026.
[23] Taeckyung Lee, Sorn Chottananurak, Taesik Gong, and Sung-Ju Lee. AETTA: Label-free accuracy estimation for test-time adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 28643–28652, 2024.
[24] Taeckyung Lee, Sorn Chottananurak, Junsu Kim, Jinwoo Shin, Taesik Gong, and Sung-Ju Lee. Test-time adaptation with binary feedback. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 33005–33024, 2025.
[25] Yanghao Li, Naiyan Wang, Jianping Shi, Xiaodi Hou, and Jiaying Liu. Adaptive batch normalization for practical domain adaptation. Pattern Recognition, 80:109–117, 2018.
[26] Jian Liang, Ran He, and Tieniu Tan. A comprehensive survey on test-time adaptation under distribution shifts. International Journal of Computer Vision, 133(1):31–64, 2025.
[27] Robert A Marsden, Mario Döbler, and Bin Yang. Universal test-time adaptation through weight ensembling, diversity weighting, and prior correction. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pages 2555–2565, 2024.
[28] Shuaicheng Niu, Jiaxiang Wu, Yifan Zhang, Yaofo Chen, Shijian Zheng, Peilin Zhao, and Mingkui Tan. Efficient test-time model adaptation without forgetting. In International Conference on Machine Learning, pages 16888–16905. PMLR, 2022.
[29] Shuaicheng Niu, Jiaxiang Wu, Yifan Zhang, Zhiquan Wen, Yaofo Chen, Peilin Zhao, and Mingkui Tan. Towards stable test-time adaptation in dynamic wild world. arXiv preprint arXiv:2302.12400, 2023.
[30] Yaniv Ovadia, Emily Fertig, Jie Ren, Zachary Nado, David Sculley, Sebastian Nowozin, Joshua Dillon, Balaji Lakshminarayanan, and Jasper Snoek. Can you trust your model's uncertainty? evaluating predictive uncertainty under dataset shift. Advances in Neural Information Processing Systems, 32, 2019.
[31] Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, and Ilya Sutskever. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 8748–8763, 2021.
[32] Hidetoshi Shimodaira. Improving predictive inference under covariate shift by weighting the log-likelihood function. Journal of Statistical Planning and Inference, 90(2):227–244, 2000.
[33] Hyungseob Shin, Hyeongyu Kim, Sewon Kim, Yohan Jun, Taejoon Eo, and Dosik Hwang. SDC-UDA: Volumetric unsupervised domain adaptation framework for slice-direction continuous cross-modality medical image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7412–7421, 2023.
[34] Geonhui Son, Jeong Ryong Lee, and Dosik Hwang. HP-GAN: Harnessing pretrained networks for GAN improvement with FakeTwins and discriminator consistency. Neural Networks, 199:108666, 2026.
[35] Youngjun Song, Hyeongyu Kim, and Dosik Hwang. CD-Buffer: Complementary dual-buffer framework for test-time adaptation in adverse weather object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15050–15059, 2026.
[36] 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.
[37] Mingkui Tan, Guohao Chen, Jiaxiang Wu, Yifan Zhang, Yaofo Chen, Peilin Zhao, and Shuaicheng Niu. Uncertainty-calibrated test-time model adaptation without forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2025.
[38] Dequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno Olshausen, and Trevor Darrell. Tent: Fully test-time adaptation by entropy minimization. arXiv preprint arXiv:2006.10726, 2020.
[39] Haohan Wang, Songwei Ge, Zachary Lipton, and Eric P. Xing. Learning robust global representations by penalizing local predictive power. In Advances in Neural Information Processing Systems, volume 32, 2019.
[40] Qin Wang, Olga Fink, Luc Van Gool, and Dengxin Dai. Continual test-time domain adaptation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 7201–7211, 2022.
[41] Zixin Wang, Yadan Luo, Liang Zheng, Zhuoxiao Chen, Sen Wang, and Zi Huang. In search of lost online test-time adaptation: A survey. International Journal of Computer Vision, 133(3):1106–1139, 2025.
[42] Longhui Yuan, Binhui Xie, and Shuang Li. Robust test-time adaptation in dynamic scenarios. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15922–15932, 2023.
[43] Marvin Zhang, Sergey Levine, and Chelsea Finn. MEMO: Test time robustness via adaptation and augmentation. Advances in Neural Information Processing Systems, 35:38629–38642, 2022.
[44] Qingyang Zhang, Yatao Bian, Xinke Kong, Peilin Zhao, and Changqing Zhang. COME: Test-time adaptation by conservatively minimizing entropy. In International Conference on Learning Representations, 2025.
[45] Maksim Zhdanov, Stanislav Dereka, and Sergey Kolesnikov. Identity curvature Laplace approximation for improved out-of-distribution detection. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pages 7019–7028. IEEE, 2025.
[46] Aurick Zhou and Sergey Levine. Bayesian adaptation for covariate shift. Advances in Neural Information Processing Systems, 34:914–927, 2021.
[47] Lihua Zhou, Mao Ye, Shuaifeng Li, Nianxin Li, Xiatian Zhu, Lei Deng, Hongbin Liu, and Zhen Lei. Bayesian test-time adaptation for vision-language models. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 29999–30009, 2025.
A Rationale for MIRA
MIRA is based on the principle that predictions stable under controlled local classifier perturbations provide safer signals for entropy-based adaptation than locally brittle predictions. We do not interpret the resulting mutual information as calibrated Bayesian posterior uncertainty; rather, the perturbation family is used as an operational probe of local prediction stability.
To motivate the agreement criterion, consider the margin between the predicted class and a competing class ,
Under Gaussian perturbation of the final classifier, the corresponding pairwise boundary-crossing probability is
Here , is the standard-normal CDF, and conditional on the cached features and perturbation factors. This motivates top-1 stability, but MIRA measures empirical agreement with the Monte Carlo mean class; it does not guarantee preservation of the unperturbed MAP class.
Mutual information provides complementary information. Agreement only changes when the top-1 prediction crosses a decision boundary, whereas MI captures changes in the full predictive distribution before such a crossing occurs. Under a small-perturbation approximation,
Here , , and includes the scale factor. This gives perturbation-induced MI an interpretation as local predictive sensitivity.
MIRA selects the earliest scale with non-trivial MI and high agreement, balancing detectable predictive sensitivity with top-1 stability. The entropy-matched analysis in Appendix E evaluates whether MI provides reliability information beyond predictive entropy.
The exponential MI weight also follows entropy-regularized reliability reweighting. For batch probabilities with ,
The unit-mean weight is ; confidence weighting and detachment then determine the final loss. Agreement provides its empirical guard only when selection is feasible.
B Additional Ablation Studies
New loss, gradient-control, construction, threshold, coefficient, and grid analyses report mean sample SD across paired seeds 1, 2, and 3. Accuracy SD is in percentage points; MMC, ECE, and NLL use their native units. Each comparison retains its own backbone, optimizer, and stream protocol. The existing scope and Monte Carlo-budget studies remain single-run. Green highlights MIRA variants or the default configuration; bold marks the best values in directional metrics within each comparison.
B.1 Gradient-Matched Reliability Gating
Unit-mean sample weights do not ensure equal gradient norms. To control uniform loss strengthening, we normalize the complete adaptation gradient before the optimizer step. We multiply each objective by a detached reciprocal of the complete adaptation gradient's global L2 norm, targeting norm 1 before the optimizer step. The original optimizer and learning rate are retained; the maximum recorded norm error is below . CIFAR-10-C uses WRN AugMix, Adam at , , and Gaussian noise, snow, fog, and pixelation. CIFAR-100-C uses ResNeXt AugMix, SGD at , , and 15 corruptions. Both protocols reset between corruptions.
Table 6: Gradient-matched loss and gating controls on CIFAR-10-C and CIFAR-100-C: global adaptation-gradient L2 norm 1, mean ± sample SD over three seeds. Panels use distinct protocols and are separate from ordinary adaptation. Bold marks best accuracy, ECE, and NLL within each panel.
| Objective | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|
| CIFAR-10-C / WRN; Adam, four corruptions, K = 100 | ||||
| TENT | 87.79±0.05 | 0.9412±0.0005 | 0.0635±0.0006 | 0.4462±0.0025 |
| HE + EH | 88.14±0.05 | 0.9221±0.0008 | 0.0409±0.0011 | 0.3905±0.0032 |
| + MI gate | 88.34±0.10 | 0.9236±0.0007 | 0.0403±0.0015 | 0.3838±0.0027 |
| + confidence gate | 88.29±0.09 | 0.9229±0.0008 | 0.0402±0.0016 | 0.3848±0.0025 |
| Full MIRATENT | 88.42±0.07 | 0.9235±0.0007 | 0.0396±0.0011 | 0.3808±0.0023 |
| CIFAR-100-C / ResNeXt; SGD, K = 300 | ||||
| TENT | 65.97±0.11 | 0.7150±0.0004 | 0.0586±0.0005 | 1.3250±0.0029 |
| HE + EH | 66.14±0.10 | 0.6895±0.0005 | 0.0333±0.0005 | 1.2980±0.0028 |
| + MI gate | 66.27±0.12 | 0.6913±0.0005 | 0.0333±0.0005 | 1.2925±0.0033 |
| + confidence gate | 66.11±0.10 | 0.6872±0.0005 | 0.0325±0.0007 | 1.2979±0.0023 |
| Full MIRATENT | 66.18±0.11 | 0.6880±0.0005 | 0.0322±0.0009 | 1.2937±0.0025 |
Relative to unweighted stochastic entropy, Full MIRA changes accuracy by +0.278 and +0.045 percentage points on CIFAR-10-C and CIFAR-100-C, respectively, with the same direction in all paired seeds. These results support a setting-dependent contribution from reliability weighting. Gradient normalization changes the optimizer step, so the absolute accuracies in Table 6 are distinct from the main protocol.
Table 7: Unnormalized CIFAR-10-C objective and gating controls, mean ± sample SD over three seeds. The Adam/four-corruption/K = 100 protocol matches the corresponding normalized panel. Bold marks best accuracy, ECE, and NLL.
| Objective | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|
| TENT | 87.77±0.06 | 0.9407±0.0005 | 0.0634±0.0008 | 0.4449±0.0029 |
| HE + EH | 88.15±0.06 | 0.9218±0.0007 | 0.0405±0.0011 | 0.3902±0.0038 |
| + MI gate | 88.32±0.04 | 0.9231±0.0008 | 0.0401±0.0011 | 0.3834±0.0026 |
| + confidence gate | 88.30±0.10 | 0.9225±0.0008 | 0.0398±0.0016 | 0.3843±0.0023 |
| Full MIRATENT | 88.39±0.02 | 0.9232±0.0007 | 0.0396±0.0004 | 0.3800±0.0029 |
B.2 Perturbation Design Sensitivity
We additionally examine whether MIRA is sensitive to the construction of the last-layer perturbation scale. We separately vary the scale parameterization and the base perturbation rule on CIFAR-100-C at severity level 5. The WRN AugMix construction protocol uses all examples shuffled once, K = 100, SGD at , and reset between corruptions; it differs from the ResNeXt headline protocol.
Scale parameterization. We compare feature-wise, scalar, and class-wise parameterizations while keeping the remaining MIRA configuration fixed.
Table 8: Ablation on the perturbation-scale parameterization on CIFAR-100-C. Mean ± sample SD over seeds 1, 2, and 3; WRN AugMix, K = 100, SGD . Bold marks best accuracy, ECE, and NLL.
| Construction | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|
| TENT | 63.63±0.08 | 0.7184±0.0005 | 0.0824±0.0008 | 1.4078±0.0044 |
| Feature-wise | 64.33±0.10 | 0.6787±0.0001 | 0.0387±0.0009 | 1.3426±0.0061 |
| Scalar | 64.29±0.15 | 0.6589±0.0006 | 0.0296±0.0007 | 1.3414±0.0062 |
| Class-wise | 64.28±0.15 | 0.6590±0.0007 | 0.0297±0.0008 | 1.3410±0.0062 |
The mean accuracy differences between feature-wise and scalar/class-wise parameterizations are only 0.038/0.046 percentage points; scalar and class-wise variants have lower ECE. This indicates that MIRA is not highly sensitive to the exact parameterization in accuracy, while calibration still depends on it.
Base perturbation scale. We next compare He-in, fan-in, weight-magnitude, and absolute base-scale rules.
Table 9: Ablation on the base perturbation scale rule on CIFAR-100-C. Mean ± sample SD over seeds 1, 2, and 3; WRN AugMix, , SGD . Bold marks best accuracy, ECE, and NLL.
| Construction | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|
| TENT | 63.63±0.08 | 0.7184±0.0005 | 0.0824±0.0008 | 1.4078±0.0044 |
| He-in | 64.33±0.10 | 0.6787±0.0001 | 0.0387±0.0009 | 1.3426±0.0061 |
| Fan-in | 64.27±0.12 | 0.6599±0.0001 | 0.0206±0.0015 | 1.3326±0.0052 |
| Absolute | 64.19±0.15 | 0.6440±0.0001 | 0.0152±0.0006 | 1.3332±0.0050 |
| Weight magnitude | 64.23±0.13 | 0.6559±0.0003 | 0.0246±0.0009 | 1.3443±0.0047 |
The different base-scale rules yield similar accuracy while all substantially improve calibration over deterministic TENT. We therefore use the feature-wise He-in construction as the fixed default rather than tuning the perturbation rule for each dataset or model.
B.3 Perturbation Scope
We compare the default classifier-only perturbation with perturbing the last two or three layers on ImageNet-C / ResNet-34 with batch size 64.
Table 10: Effect of perturbation scope on ImageNet-C / ResNet-34 (batch size 64), retained single-run results. Bold marks the best values in directional columns.
| Scope | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ | Time (s) ↓ | VRAM (MiB) ↓ | Params |
|---|---|---|---|---|---|---|---|
| Classifier only | 37.04 | 0.4013 | 0.0458 | 3.2690 | 379.9 | 8180.4 | 513,000 |
| Last 2 layers | 37.15 | 0.3576 | 0.0519 | 3.2372 | 14,818.9 | 8212.3 | 2,872,296 |
| Last 3 layers | 37.31 | 0.3592 | 0.0649 | 3.2332 | 21,572.5 | 8212.3 | 5,231,592 |
Deeper perturbations give only small accuracy/NLL gains while worsening ECE and increasing runtime by roughly . We therefore use the final classifier as the best accuracy–calibration–efficiency trade-off.
B.4 Monte Carlo Sampling Budget
Table 11: Effect of the Monte Carlo sampling budget on ImageNet-C / ResNet-50, retained single-run results. Bold marks the best values in directional columns.
| Acc. (%) ↑ | ECE ↓ | NLL ↓ | Time (s) ↓ | Peak VRAM (MiB) ↓ | |
|---|---|---|---|---|---|
| 100 | 29.55 | 0.0410 | 3.6454 | 60 | 5,489 |
| 200 | 29.55 | 0.0408 | 3.6407 | 66 | 7,175 |
| 300 | 29.39 | 0.0420 | 3.6374 | 74 | 8,671 |
| 500 | 29.29 | 0.0443 | 3.6511 | 88 | 11,939 |
| 1000 | 29.76 | 0.0381 | 3.6387 | 116 | 22,953 |
The scope and sampling-budget studies use different backbones, so their absolute metrics should not be compared across tables. These retained single-run metrics vary non-monotonically across , while runtime and memory increase with the sampling budget. We therefore use as a conservative accuracy–efficiency trade-off.
B.5 Joint MI and Agreement Threshold Sensitivity
We evaluate and jointly, retaining the Full objective, original 16-point grid, and . The panels use the headline TENT protocols: CIFAR-100-C / ResNeXt with SGD and ImageNet-C / ResNet-50 with SGD . Default controls shared with other sweeps are counted once.
Table 12: Joint sensitivity, mean sample SD over three seeds. The common default is ; test labels are used only for evaluation. Bold marks best accuracy, ECE, and NLL within each dataset; displayed ties are included.
| Setting | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|
| CIFAR-100-C / ResNeXt | ||||
| 68.580.11 | 0.75240.0009 | 0.06750.0010 | 1.21970.0073 | |
| 68.580.12 | 0.75220.0009 | 0.06750.0012 | 1.21960.0074 | |
| 68.590.13 | 0.74990.0009 | 0.06510.0010 | 1.21590.0084 | |
| 68.640.13 | 0.73960.0011 | 0.05420.0009 | 1.20320.0083 | |
| 68.690.15 | 0.73050.0012 | 0.04520.0007 | 1.19400.0111 | |
| 68.700.16 | 0.72790.0011 | 0.04260.0009 | 1.19060.0113 | |
| 68.550.15 | 0.65760.0011 | 0.02940.0003 | 1.18530.0094 | |
| 68.540.15 | 0.65700.0011 | 0.02990.0003 | 1.18590.0093 | |
| 68.540.14 | 0.65700.0011 | 0.03000.0003 | 1.18590.0093 | |
| ImageNet-C / ResNet-50 | ||||
| 39.640.19 | 0.44350.0018 | 0.05230.0025 | 3.02610.0118 | |
| 39.640.19 | 0.44220.0016 | 0.05140.0028 | 3.02570.0101 | |
| 39.640.20 | 0.44190.0016 | 0.05120.0028 | 3.02530.0111 | |
| 39.440.16 | 0.40530.0014 | 0.03600.0020 | 3.02160.0022 | |
| 39.450.14 | 0.40530.0014 | 0.03610.0022 | 3.02050.0020 | |
| 39.440.16 | 0.40530.0014 | 0.03590.0020 | 3.02060.0022 | |
| 38.470.10 | 0.30580.0008 | 0.07910.0008 | 3.11420.0029 | |
| 38.430.10 | 0.30580.0008 | 0.07870.0009 | 3.11500.0036 | |
| 38.440.09 | 0.30580.0007 | 0.07880.0008 | 3.11470.0023 | |
At , ImageNet-C accuracy is nearly identical across . In this setting, the two conditions are jointly satisfied in at most 0.30% of batches, so the MI criterion determines and has little effect; the flat response reflects this rather than robustness to . On CIFAR-100-C, where joint satisfaction is more frequent, mainly affects calibration (Table 12). Across both benchmarks, accuracy stays within 0.2 percentage points of the default for and all tested , whereas calibration is more sensitive to : lowers CIFAR-100-C ECE but raises ImageNet-C ECE to 0.079, and ImageNet-C ECE is lowest at . We therefore recommend as the operating point and treat as a secondary setting.
B.6 Entropy-Coefficient Sensitivity
We vary only the EH coefficient in over , keeping the confidence exponent fixed at 1. The selector, optimizer, learning rate, and ordinary gradient update remain unchanged; shares the Full baseline.
Table 13: Entropy-coefficient sensitivity, mean sample SD over three seeds. The coefficient of EH changes independently of confidence weighting. Bold marks best accuracy, ECE, and NLL within each dataset.
| Setting | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|
| CIFAR-100-C / ResNeXt | ||||
| 67.910.11 | 0.71440.0006 | 0.03840.0003 | 1.22090.0064 | |
| 68.220.11 | 0.71980.0008 | 0.04020.0007 | 1.20940.0069 | |
| 68.450.12 | 0.72410.0010 | 0.04200.0006 | 1.20220.0083 | |
| 68.690.15 | 0.73050.0012 | 0.04520.0007 | 1.19400.0111 | |
| 68.870.11 | 0.73910.0011 | 0.05170.0009 | 1.19840.0064 | |
| ImageNet-C / ResNet-50 | ||||
| 37.230.10 | 0.37190.0012 | 0.03290.0013 | 3.18320.0038 | |
| 37.930.14 | 0.38210.0012 | 0.03310.0015 | 3.12750.0031 | |
| 38.520.17 | 0.39090.0013 | 0.03430.0017 | 3.08380.0031 | |
| 39.450.14 | 0.40530.0014 | 0.03610.0022 | 3.02050.0020 | |
| 40.670.19 | 0.42560.0016 | 0.03960.0026 | 2.94420.0023 | |
Increasing can improve accuracy while worsening ECE. Equal coefficients provide a common trade-off, rather than a unique metric-wise optimum.
B.7 Scale-Grid Sensitivity
We keep fixed and compare the original grid with a coarser grid, a denser grid, and an extended range (Appendix D.6). This tests scale coverage independently of the Monte Carlo-budget ablation.
Table 14: Scale-grid sensitivity, mean sample SD over three seeds. Full MIRA and the headline dataset-specific TENT protocols are fixed. Bold marks best accuracy, ECE, and NLL within each dataset.
| Grid | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|
| CIFAR-100-C / ResNeXt | ||||
| Default (16) | 68.69±0.15 | 0.7305±0.0012 | 0.0452±0.0007 | 1.1940±0.0111 |
| Coarse (9) | 68.54±0.15 | 0.6570±0.0011 | 0.0299±0.0004 | 1.1859±0.0091 |
| Dense (31) | 68.68±0.16 | 0.7317±0.0011 | 0.0463±0.0011 | 1.1938±0.0115 |
| Extended (20) | 68.56±0.17 | 0.6603±0.0014 | 0.0273±0.0010 | 1.1838±0.0093 |
| ImageNet-C / ResNet-50 | ||||
| Default (16) | 39.45±0.14 | 0.4053±0.0014 | 0.0361±0.0022 | 3.0205±0.0020 |
| Coarse (9) | 38.46±0.10 | 0.3059±0.0008 | 0.0789±0.0010 | 3.1134±0.0032 |
| Dense (31) | 39.59±0.15 | 0.4281±0.0015 | 0.0429±0.0030 | 3.0206±0.0088 |
| Extended (20) | 39.46±0.13 | 0.4045±0.0014 | 0.0366±0.0018 | 3.0196±0.0003 |
The default uses 16 candidate radii. Coarse9 reduces their density to 9; Dense31 inserts geometric midpoints to obtain 31; Extended20 adds two smaller and two larger radii (Appendix D.6). These variants test scale coverage and computational cost. Coarse9 reduces ImageNet-C accuracy by 0.985 percentage points and increases ECE by 0.0429; Dense31 increases accuracy by 0.142 points, wall time from 502.0 to 583.7 seconds, and steady allocated memory from 11.23 to 16.59 GiB. Timing includes batch loading; steady memory excludes the first corruption.
No tested grid selects its boundary. Under the default thresholds, both conditions are jointly satisfied in 22.63±0.95% of CIFAR-100-C batches and in no ImageNet-C batch; otherwise, is the first candidate satisfying the MI condition (Appendix D.6). Because the MI threshold is defined relative to the observed MI range, changing the grid also shifts the threshold.
B.8 Cross-Architecture Numerical Values
Table 15 gives the values for the cross-architecture diagnostic: ImageNet-C snow at severity 5, seed 1, 10,000 examples, , and an HE objective. The settings are listed for each backbone.
Table 15: Numerical values and selected settings for the cross-architecture diagnostic; single-run ImageNet-C snow diagnostics. Bold marks best accuracy, ECE, and NLL per backbone.
| Backbone | Method | Acc. (%) | MMC | ECE | NLL | ||
|---|---|---|---|---|---|---|---|
| VGG-19-BN | Source | - | - | 13.24 | 0.3653 | 0.2329 | 5.5392 |
| VGG-19-BN | TENT | - | - | 34.60 | 0.4578 | 0.1118 | 3.4309 |
| VGG-19-BN | MIRA | 0.10 | 0.90 | 34.69 | 0.3359 | 0.0281 | 3.3540 |
| ResNet-50 | Source | - | - | 16.95 | 0.3945 | 0.2250 | 5.2586 |
| ResNet-50 | TENT | - | - | 39.55 | 0.4350 | 0.0395 | 2.9735 |
| ResNet-50 | MIRA | 0.01 | 0.90 | 39.67 | 0.4231 | 0.0266 | 2.9709 |
| ResNet-34 | Source | - | - | 15.47 | 0.4018 | 0.2471 | 5.5277 |
| ResNet-34 | TENT | - | - | 37.47 | 0.4299 | 0.0553 | 3.1236 |
| ResNet-34 | MIRA | 0.01 | 0.80 | 37.50 | 0.4171 | 0.0430 | 3.1211 |
| WRN-101-2 | Source | - | - | 22.24 | 0.4501 | 0.2277 | 4.7710 |
| WRN-101-2 | TENT | - | - | 44.78 | 0.4817 | 0.0423 | 2.7460 |
| WRN-101-2 | MIRA | 0.01 | 0.90 | 44.91 | 0.4709 | 0.0330 | 2.7411 |
C Additional Experiments
We further evaluate MIRA under continual adaptation, alternative TTA protocols, stronger distribution shifts, dynamic target streams, and computationally realistic settings. Green marks MIRA variants; bold follows each table's comparison scope.
C.1 Continual and Dynamic Adaptation
The continual comparison uses CIFAR-100-C / ResNeXt at severity 5. The dynamic comparisons follow the PTTA protocol [42], which models changing distributions and correlated target samples.
Table 16: Continual and dynamic adaptation. Bold compares each base/MIRA pair.
| Protocol | Method | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|---|
| Continual | CoTTA | 64.16 | 0.6170 | 0.0529 | 1.4173 |
| MIRACoTTA | 65.20 | 0.6787 | 0.0342 | 1.3459 | |
| Dynamic | TENT | 14.75 | 0.9675 | 0.8201 | 17.6335 |
| MIRATENT | 15.16 | 0.9650 | 0.8134 | 17.0462 | |
| Dynamic | RoTTA | 74.89 | 0.8331 | 0.0842 | 0.8933 |
| MIRARoTTA | 75.67 | 0.8241 | 0.0674 | 0.8622 |
MIRA improves accuracy, ECE, and NLL for all three base-method pairs. A separate reset-based ImageNet-C / ResNet-50 comparison under the PTTA protocol (batch size 64, 10,000 examples) increases accuracy from 37.50% to 40.67% and decreases ECE from 0.0284 to 0.0278, while NLL increases from 2.7080 to 2.9286.
C.2 Computationally Realistic Adaptation
We additionally evaluate MIRA on ImageNet-C and ImageNet-R [12] using ResNet-50 and batch size 64 under the time-constrained protocol of Alfarra et al. [1]. The stream arrival rate is , where is the forward-pass rate of the non-adapted model. The recorded conventional and realistic settings use and , respectively. In the conventional setting, every batch can be used for adaptation regardless of processing time. In the realistic setting, batches arrive at a constant rate, so a slower method receives fewer adaptation opportunities.
Table 17: Evaluation under conventional () and computationally realistic () TTA protocols. Bold compares each dataset and realistic regime.
| Dataset | Method | Realistic | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ |
|---|---|---|---|---|---|---|
| ImageNet-C | TENT | No | 42.71 | 0.5203 | 0.0935 | 2.9071 |
| MIRATENT | No | 45.02 | 0.5007 | 0.0573 | 2.7948 | |
| TENT | Yes | 38.97 | 0.4444 | 0.0572 | 3.0884 | |
| MIRATENT | Yes | 39.92 | 0.4412 | 0.0484 | 3.0072 | |
| ImageNet-R | TENT | No | 41.84 | 0.5834 | 0.1649 | 3.2015 |
| MIRATENT | No | 44.10 | 0.5771 | 0.1361 | 2.9875 | |
| TENT | Yes | 40.74 | 0.5404 | 0.1330 | 3.2062 | |
| MIRATENT | Yes | 41.13 | 0.5405 | 0.1292 | 3.1631 |
MIRA improves accuracy, ECE, and NLL in both conventional and computationally realistic settings. Although the gains become smaller under the realistic protocol, they remain consistent across the evaluated metrics.
C.3 Accuracy–Cost Trade-off
Finally, we compare MIRA with TENT and computationally heavier TTA methods under the same hardware setting. Table 18 reports classification performance, runtime, and peak memory for the single-run CIFAR-100-C / ResNeXt comparison.
Table 18: Single-run accuracy–cost comparison on CIFAR-100-C / ResNeXt (batch size 64). Bold marks the best values in directional columns.
| Method | Acc. (%) ↑ | MMC | ECE ↓ | NLL ↓ | Time (s) ↓ | VRAM (MiB) ↓ |
|---|---|---|---|---|---|---|
| TENT | 67.10 | 0.7474 | 0.0779 | 1.2873 | 125 | 2338 |
| CoTTA | 64.16 | 0.6170 | 0.0529 | 1.4173 | 1142 | 3062 |
| PETAL | 62.30 | 0.5816 | 0.0582 | 1.5059 | 1586 | 3930 |
| MIRATENT | 67.75 | 0.7310 | 0.0556 | 1.2401 | 157 | 2494 |
Compared with TENT, MIRA introduces moderate additional runtime and memory overhead while improving accuracy, ECE, and NLL. It remains substantially more efficient than CoTTA and PETAL, supporting the practicality of cached last-layer Monte Carlo sampling.
C.4 Repeated Evaluation under Representation Shift
ImageNet-Sketch [39] tests a stronger representation shift. Table 19 uses ResNet-50, learning rate , and seeds 0, 1, and 2. MIRA improves mean accuracy by 1.35 percentage points and reduces ECE and NLL.
Table 19: ImageNet-Sketch / ResNet-50, mean sample SD over seeds 0, 1, and 2. Bold marks best accuracy, ECE, and NLL.
| Method | Acc. (%) | MMC | ECE | NLL |
|---|---|---|---|---|
| Source | ||||
| TENT | ||||
| MIRATENT |
C.5 Modified One-Step CLIP Evaluation
Table 20: CLIP ViT-B/16 TENT-component comparison: one update per batch with a shared released learning rate. Bold compares each dataset pair.
| Method | Acc. (%) | MMC | ECE | NLL |
|---|---|---|---|---|
| CIFAR-10-C | ||||
| TENT | 52.74 | 0.9443 | 0.4170 | 4.6682 |
| MIRA_TENT | 54.13 | 0.9387 | 0.3977 | 4.5456 |
| CIFAR-100-C | ||||
| TENT | 27.83 | 0.8382 | 0.5603 | 8.9705 |
| MIRA_TENT | 32.71 | 0.8047 | 0.4784 | 7.5339 |
D Experimental and Implementation Details
D.1 Experimental Setup
We use corruption severity 5 unless otherwise stated. Source training, preprocessing, and target streams are matched within each base/MIRA comparison. All experiments are conducted on NVIDIA RTX A6000 GPUs.
For the TENT pairs in Table 2, both benchmarks use 15 severity-5 corruptions, batch size 64, and 10,000 shuffled examples per corruption. Model and optimizer are reset between corruptions, and each base/MIRA pair receives the same ordered streams. MIRA uses the feature-wise He-in construction in Appendix D.4 and the defaults in Appendix D.5.
The loss, construction, and sensitivity comparisons use paired seeds 1, 2, and 3. Scope, budget, architecture diagnostics, and most stream/ViT/CLIP extensions are single-run.
D.2 Evaluation Metrics
We report classification accuracy, mean maximum confidence (MMC), expected calibration error (ECE), and negative log-likelihood (NLL).
Let denote the predictive probability for sample , , and . Accuracy is the fraction of correct top-1 predictions, while measures average predictive confidence.
ECE uses 10 equal-width confidence bins [10], and NLL uses the probability assigned to the correct class:
(20)
with probabilities lower-bounded by for numerical stability. Each metric is computed over the evaluated examples of each corruption and then macro-averaged across corruptions.
For three-run results, we report sample standard deviation (SD), , rather than the standard error . Table 1 reports accuracy and its SD as fractions; accuracy columns labeled (%) use percentages, with SD in percentage points. MMC, ECE, and NLL use their native units. Run variability includes target-stream order, batch composition, Gaussian sampling, and cuDNN nondeterminism. SD describes variability rather than establishing statistical significance.
D.3 Baseline Implementation Details
We retain each base method’s optimizer settings. For the TENT pairs in Table 2, SGD uses a learning rate of on CIFAR-100-C / ResNeXt and on ImageNet-C / ResNet-50, with seeds 1, 2, and 3 on both benchmarks. CIFAR-100-C EATA and ROID use a learning rate of and seeds 1, 2, and 3; their ImageNet-C counterparts use seeds 2, 4, and 6. We use momentum 0.9 and zero weight decay unless otherwise specified. When MIRA is integrated with a base TTA method, we retain the optimizer and learning rate of that method rather than returning them.
The ImageNet-C / ResNet-34 loss ablation in Table 1 uses SGD at , K = 300, 15 severity-5 corruptions, and reset between corruptions.
For EATA, we additionally use Fisher regularization of 1.0, with the Fisher information matrix estimated from 2000 source samples. Fisher estimation is a source-dependent component of the EATA baseline; attaching MIRA introduces no additional source-data requirement.
We also compare against uncertainty-estimation baselines including Deep Ensemble (DE), LLLA, ICLA, BBB, and ABNN. DE averages predictions from independently trained source models. LLLA follows the official Laplace implementation, while the remaining methods follow their released implementations or published settings using the same backbone and evaluation protocol whenever possible.
D.4 Perturbation Scale Construction
Let denote the final classifier weight and the cached feature of target sample . All headline experiments use a He-style base scale with a feature-wise, batch-dependent factor:
(21)
where is shared across output classes. The He-style factor accounts for classifier input dimension, while the feature-wise factor adapts the perturbation geometry to the current target representation. Neither factor is tuned per dataset or model; only the global perturbation radius is selected online.
D.5 Hyperparameter Settings
Full MIRA uses the common defaults
For all headline experiments, we use the fixed candidate scale set
The same Monte Carlo noise samples are reused across candidate scales within each target batch. Since the backbone features are cached, scale evaluation requires only repeated final-layer operations.
No corruption-specific or dataset-specific tuning is performed.
D.6 Scale Selection
At each grid candidate we compute batch-average MI and agreement using shared Gaussian draws. The implementation forms and selects the first candidate satisfying and . When the preceding candidate lies below and both interval endpoints meet the agreement condition, MI is interpolated linearly along . If no candidate satisfies both conditions, is the first candidate satisfying the MI condition, which always exists for ; the disagreement bound does not apply to such selections. The MI-range minimum need not equal the first candidate's MI in a numerically non-monotone curve. After selection, independent Gaussian draws are used for the loss and prediction at .
Default16 is the candidate set specified above. Coarse9 is
Dense31 inserts the geometric midpoint between each pair of default candidates; Extended20 adds to Default16. All grid comparisons keep and identical common-noise shape.
For deployment, increase when probes repeatedly remain weak, and reduce when perturbations frequently change class predictions. The agreement bound applies only to selections that satisfy both conditions. Appendix B.5 reports the joint sweep.
D.7 CLIP Implementation and Configuration
CLIP ViT-B/16 uses the released CLIPTTA [19] architecture, data pipeline, and TENT component. Logits are similarities between normalized image features and class-specific text embeddings. The text-embedding matrix is treated as the effective classifier and receives Gaussian perturbations only for reliability probing; the unperturbed embeddings remain fixed. Adaptation updates visual encoder normalization parameters, not the text embeddings.
Table 3 uses the released ten-update-per-batch TENT-component configuration, with identical optimization settings for TENT and MIRA and no MIRA-specific tuning. The modified comparison in Table 20 uses one update and a shared learning-rate multiplier. The effective similarity classifier is not a learned linear head, and these comparisons assess the TENT component rather than the complete CLIPTTA method.
E Reliability Analysis
Across CIFAR-10-C, CIFAR-100-C, and ImageNet-C, Figure 4 relates predictive entropy and perturbation-induced MI to batch accuracy. These empirical diagnostics complement the fixed-scale example in Figure 1(b).
CIFAR10-C

CIFAR100-C
Imagenet-C
Figure 4: Predictive entropy and perturbation-induced MI across CIFAR-10-C, CIFAR-100-C, and ImageNet-C (left to right); color denotes batch accuracy. MI measures local classifier disagreement, rather than calibrated Bayesian uncertainty.
To test whether MI provides information beyond predictive entropy, we compare batches with similar . Figure 5 shows that high-MI batches tend to have lower accuracy than low-MI batches at similar entropy. Thus, local perturbation sensitivity supplies a complementary reliability signal. This observational comparison supports the interpretation of MI and does not establish a causal benefit from weighting.
Matching predictive entropy makes the two groups comparable in the overall sharpness of their mean predictions. At a similar bin center, the remaining accuracy gap therefore reflects an association with perturbation sensitivity beyond the mean entropy alone. The groups approach one another in some bins, so MI is a relative reliability cue within the probed classifier neighbor-

Figure 5: Batch accuracy at matched predictive-entropy bin centers, pooling corruption types. Low-MI batches tend to be more accurate than high-MI batches.
hood, rather than a calibrated error probability. This is consistent with MIRA's detached weighting: low-MI samples receive more influence, while the confidence term separately limits updates from low-evidence predictions. The analysis therefore motivates combining the two signals instead of treating either as a complete description of reliability.