SteeringTTA: Guiding Diffusion Trajectories for Robust Test-Time-Adaptation

Jihyun Yu, Yoojin Oh, Wonho Bae, Mingyu Kim, Junhyug Noh · DOI

Abstract

Deep learning models often struggle with out-of-distribution data caused by environmental corruptions like blur, noise, or weather. SteeringTTA is a novel, inference-only framework that improves the robustness of image classifiers without requiring model retraining. By utilizing Feynman-Kac steering and Sequential Monte Carlo (SMC), the system maintains multiple parallel image reconstruction paths guided by a dynamic reward system. This approach effectively "purifies" corrupted images, even in challenging scenarios where traditional diffusion-based methods fail.

Introduction

Deep learning models are notoriously brittle; a model trained on clear photos might completely fail when faced with frost, fog, or digital noise. Test-Time Adaptation (TTA) aims to fix this "on the fly" as the model encounters new, corrupted data.

Recent "input-only" TTA methods use generative diffusion models to "purify" the corrupted image before handing it to the classifier. However, these methods have a major blind spot: low-frequency corruptions. Methods like Diffusion-Driven Adaptation (DDA) try to preserve the original image's structure by keeping its low-frequency components. But if the corruption itself is low-frequency (like the crystalline patterns of frost), DDA accidentally amplifies the corruption, leading to "semantic distortion" and incorrect predictions. Furthermore, existing methods often rely on gradient-based guidance, which can be sensitive to noise and introduce high-frequency artifacts.

Methodology: Steering via Sequential Monte Carlo

SteeringTTA moves away from simple gradient descent and instead uses a "particle filtering" approach to guide the diffusion process.

Feynman-Kac Steering and SMC

Instead of following a single path to reconstruct an image, SteeringTTA maintains $K$ parallel "particles" (candidate reconstructions). At each step of the diffusion process, these particles are re-weighted and resampled based on a dynamic "reward" signal. This allows the system to explore different "hypotheses" of what the clean image might look like, preventing the model from getting stuck on a single, incorrect guess.

Dynamic Pseudo-Label Reward

Since true labels are unknown at test time, the method uses the classifier's own output as a reward signal. The reward function operates in two phases:

  1. Exploration: Initially, it encourages the image to stay within the classifier's "confusion set" (the group of classes it thinks are plausible).
  2. Exploitation: As the process continues, an annealing schedule shifts focus toward minimizing entropy, forcing the sampler to commit to the most likely correct label.
Overview of the SteeringTTA framework (right) and qualitative comparison against Baseline and DDA methods (left).

Experimental Results

The researchers evaluated SteeringTTA on ImageNet-C, focusing on the most difficult Severity 5 corruptions.

Key Findings

  • State-of-the-Art Performance: SteeringTTA achieved an average top-1 accuracy of 31.57% on ImageNet-C, outperforming the previous leading method, DDA (31.07%).
  • Robustness to Noise: The gains were particularly impressive in the "Noise" category, where SteeringTTA beat DDA by +1.73%.
  • Qualitative Superiority: Visual results show that while DDA often produces images filled with artifacts (especially under frost corruptions), SteeringTTA recovers much cleaner, semantically accurate images.
  • Guidance vs. Gradients: The paper demonstrates that weighting samples via SMC is more robust than directly updating pixels via gradients, which often creates unreliable high-frequency artifacts that confuse the classifier.

Conclusion

SteeringTTA demonstrates that uniform restoration is often a trap; blindly preserving low-frequency information is detrimental when noise exists in those same frequencies. By selectively suppressing corruption while maintaining object semantics, SteeringTTA provides a robust, training-free solution for TTA.

While the method is computationally heavier than single-trajectory methods—taking about 13.2 seconds per image compared to 8.0 seconds for gradient-based alternatives—its accuracy gains are significant. Future work may involve adaptive resampling to reduce overhead and applying this steering framework to real-world distribution shifts in domains like medical imaging.

Summary updated

BibTeX
@inproceedings{yu2025steeringtta,
  author = {Jihyun Yu and Yoojin Oh and Wonho Bae and Mingyu Kim and Junhyug Noh},
  title = {{SteeringTTA: Guiding Diffusion Trajectories for Robust Test-Time-Adaptation}},
  booktitle = {PUT @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=iV0WBCDGcx},
}
Figure