arXiv:2611.02003cs.LGNov 2026

Manuscript Offprint

arXiv:2611.02003

MIRA: Mutual Information guided calibration for Reliable Test-Time Adaptation

Hyeongyu Kim, Mingyeong Jang, Youngjun Song, GeonHui Han, Dosik Hwang

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 p(x,y)p(x,y) [6, 11, 18]. Deployment often violates this assumption [13]. Under covariate shift, psrc(x)≠ptgt(x)p_{\mathrm{src}}(x) \neq p_{\mathrm{tgt}}(x) 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.

†^{\dagger}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.

References (42)