Conformal Uncertainty Indicator for Continual Test-Time Adaptation

Fan Lyu, hanyu zhao, Ziqi Shi, Ye Liu, Fuyuan Hu, Zhang Zhang, Liang Wang · Submission to ICLR 2026 · Withdrawn

TL;DR

Continual Test-Time Adaptation (CTTA) enables neural networks to adapt to sequentially shifting test environments, but self-training on pseudo-labels often leads to runaway error accumulation. This paper introduces the Conformal Uncertainty Indicator (CUI) under a "Calibration-aided CTTA" setting, which maintains a tiny reference buffer of source data to dynamically adjust Conformal Prediction (CP) thresholds. By accounting for both data shift and model drift, CUI restores valid coverage guarantees and uses prediction set sizes to selectively adapt models only on confident samples.

What Problem Does This Paper Address?

In safety-critical applications like autonomous driving or medical imaging, deep models encounter non-stationary, sequentially changing environments. CTTA methods update models online without ground-truth labels, but they are vulnerable to catastrophic error accumulation when the model adapts to incorrect pseudo-labels.

Evaluating prediction reliability is essential to prevent this failure mode. While Conformal Prediction (CP) provides statistically principled uncertainty quantification via prediction sets with guaranteed error rates, it relies fundamentally on data exchangeability. Under continual domain shift, exchangeability breaks down, causing a severe coverage gap where the true label rarely falls inside the predicted set. Moreover, traditional CTTA forbids access to any source data, leaving models without any reference point to calibrate uncertainty.

Methods

The authors relax the strict source-free assumption to Calibration-aided CTTA (CCTTA), storing a small, static calibration buffer from the source domain (e.g., 50–500 samples). They propose a plug-and-play framework consisting of:

  1. Joint Domain Shift Estimation: Previous non-exchangeable CP methods rely solely on the adapting model to estimate distribution shifts, which fails when the model drifts. CUI represents each sample $x$ by concatenating the probability distributions from both the frozen source model $\theta_{\text{src}}$ and the adapting model $\theta_{\text{crt}}$: $$p(x) = \text{softmax}(\text{concat}(\pi_{\theta_{\text{src}}}(x), \pi_{\theta_{\text{crt}}}(x)))$$ The domain shift $\rho$ is then measured using the symmetric Jensen–Shannon (JS) divergence between the test batch and the calibration buffer.

  2. Quantile Threshold Compensation: To close the coverage gap, CUI scales the standard conformal threshold $\tau^*$ by the estimated shift score: $$\hat{\tau} = \tau^* + \beta \cdot \rho$$ where $\beta$ is a tunable scaling factor. Larger domain shifts widen the prediction set to restore coverage.

  3. CUI-Guided Adaptation (CPAda): The size of prediction set $|P(x)|$ acts as a direct measure of predictive uncertainty. The authors design a batch-normalized sample-weighting scheme $\gamma(x)$ where confident samples ($|P(x)| = 1$) receive maximal weight, while ambiguous (large set) or rejected ($|P(x)| = 0$) samples are downweighted or ignored during backpropagation.

       Test Sample x ───► [ Source Model & Current Model ]
                                    │
                                    ▼
       Source Buffer ───► [ JS Divergence Shift Score ρ ]
                                    │
                                    ▼
       Calibrated Threshold ──► [ Quantile Compensation: τ* + β·ρ ]
                                    │
                                    ▼
                 Prediction Set Size |P(x)| (Uncertainty)
                                    │
                                    ▼
               Adaptive Sample Weighting γ(x) for Model Update

Datasets

The authors evaluated CUI across multiple sequential domain adaptation benchmarks:

  • CIFAR10-to-CIFAR10C (WideResNet-28; 50 calibration samples)
  • CIFAR100-to-CIFAR100C (ResNeXt-29; 100 calibration samples)
  • ImageNet-to-ImageNetC (ResNet-50; 500 calibration samples)
  • DomainNet-126 (ResNet-50 across real, clipart, painting, and sketch domains)

Each corrupted benchmark features 15 distinct corruption types evaluated at the highest severity level (level 5) in an online continual stream.

Key Insights and Ideas

  • Measuring both model drift and data shift: Relying solely on the test-time model to gauge domain gap creates a vicious cycle: as the model accumulates errors, its shift estimates degrade. By evaluating test representations jointly through both the anchor (source) model and the evolving student model, CUI prevents drift from blinding the uncertainty estimator.
  • Set size as a natural adaptation filter: Unlike scalar confidence scores (e.g., softmax entropy), which easily become overconfident under out-of-distribution data, conformal set sizes provide a mathematically grounded indicator: singleton sets indicate actionable confidence, whereas multi-class sets signal ambiguity.
  • Calibration beats raw rehearsal: Storing a tiny buffer for conformal calibration outperforms using the exact same buffer for experience replay, proving that error-filtering at test time is more effective than naive sample rehearsal in CTTA.

Key Results

  • Restoring Conformal Coverage: On CIFAR100C at target error level $\alpha = 0.1$ (nominal 90% coverage), standard CP (THR) drops to 37.25% coverage, and prior non-exchangeable methods (QTC) achieve only 55.56%. CUI restores empirical coverage to 86.41%–89.02%.
  • Universal Adaptation Gains: Integrating CPAda across multiple CTTA algorithms (Tent, CoTTA, SATA, RDumb, C-CoTTA, RMT) consistently lowers error rates. On CIFAR100C with Tent, error drops dramatically from 60.93% to 49.87%; on ImageNetC with CoTTA, error decreases from 62.70% to 61.22%.
  • Efficiency: While calibration forward passes add minor runtime overhead, selective adaptation actually reduces backpropagation memory requirements compared to vanilla baseline updates.

Limitations and Future Work

  • Source Buffer Requirement: CCTTA requires storing source domain samples, which may violate strict privacy policies or storage-limited edge deployments.
  • Instance-Level Focus: The method is currently formulated for whole-image classification and does not directly extend to structured or dense prediction tasks like semantic segmentation or object detection.
  • Future Directions: Developing online, privacy-preserving calibration without raw source samples, and adapting set-valued conformal risk control to dense vision tasks.

Summary updated

BibTeX
@misc{lyu2025conformal,
  author = {Fan Lyu and hanyu zhao and Ziqi Shi and Ye Liu and Fuyuan Hu and Zhang Zhang and Liang Wang},
  title = {{Conformal Uncertainty Indicator for Continual Test-Time Adaptation}},
  year = {2025},
  eprint = {2502.02998},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.02998},
}
Figure