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

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

TL;DR

Existing diffusion-based test-time adaptation (TTA) methods often amplify low-frequency corruptions like frost or fog because they rely on rigid frequency filtering and noisy pixel-space gradients. SteeringTTA solves this by using Feynman-Kac (FK) steering and Sequential Monte Carlo (SMC) to guide a multi-particle diffusion process using a derivative-free pseudo-label reward. This allows an off-the-shelf classifier to guide image restoration toward its plausible semantic classes without updating model weights or injecting high-frequency gradient artifacts.

What Problem Does This Paper Address?

When deep neural networks encounter corrupted or out-of-distribution inputs at test time (such as blur, weather, or sensor noise), their accuracy plummets. Input-only TTA methods attempt to "purify" corrupted images before feeding them to a frozen classifier, frequently using pretrained diffusion models.

However, existing approaches—such as Diffusion-Driven Adaptation (DDA)—rely heavily on preserving low-frequency components to retain object identity. This strategy backfires when corruptions themselves reside in low-frequency bands (e.g., frost patterns): the diffusion model simply reinforces the corruption, confusing the downstream classifier even further. Furthermore, alternative methods that guide diffusion via gradient ascent directly in pixel space are brittle; they amplify label noise and inject high-frequency artifacts into the restored images.

Methods

SteeringTTA introduces a derivative-free, inference-only input adaptation pipeline combining diffusion models with Sequential Monte Carlo (SMC) steering:

  1. Multi-Particle Reverse Diffusion: Instead of a single trajectory, the method maintains $K$ parallel image trajectories (particles) initialized by lightly noising the corrupted test input.
  2. Intermediate State Estimation: At each reverse diffusion step $t$, the clean image $\hat{x}_t$ is estimated using Tweedie’s formula without backpropagation.
  3. Adaptive Pseudo-Label Reward: A frozen classifier evaluates $\hat{x}_t$ to compute a two-part reward:
  4. Cumulative Candidate Set Log-Sum: Restricts attention to an adaptive set of classes $\mathcal{C}(x_0)$ that constitute the top 70% cumulative probability on the initial corrupted image. This anchors the diffusion process within the classifier's original confusion set and prevents jumps to unrelated categories.
  5. Entropy Minimization: Penalizes uncertainty across the classes in the candidate set to push the model toward a confident prediction.
  6. Annealing Schedule: A linear weight $\alpha(t)$ shifts the objective from exploration (maximizing total candidate probability) at early diffusion steps to exploitation (minimizing entropy) near the final clean image.
  7. Feynman-Kac Reweighting & Resampling: Particles that produce higher reward improvements receive higher weights. When particle diversity drops below a threshold (Effective Sample Size $\text{ESS} < K/2$), multinomial resampling duplicates high-reward particles and prunes dead ends.
  8. Ensemble Prediction: The final output label is determined by averaging the classifier’s predictive distributions over the original input and the best restored particle.
Corrupted Image x0 ──► Forward Noise (xN)
                            │
               ┌────────────┴────────────┐
               ▼                         ▼
         Particle 1                 Particle K
               │                         │
         Denoise Step              Denoise Step
               │                         │
         Estimate x̂t-1             Estimate x̂t-1
               │                         │
               └────────────┬────────────┘
                            ▼
              Classifier Pseudo-Label Reward
           (Confusion Set Sum + Annealed Entropy)
                            │
            Feynman-Kac Weighting & Resampling
         (Prune poor paths, replicate promising ones)
                            │
                            ▼
                 Final Best Particle x0*
                            │
         Ensemble Prediction: f(x0) + f(x0*)

Datasets

The authors evaluated SteeringTTA on ImageNet-C, benchmarked at severity level 5 across 15 standard corruptions categorized into:

  • Blur (Defocus, Glass, Motion, Zoom)
  • Digital (Contrast, Elastic, JPEG, Pixelate)
  • Noise (Gaussian, Impulse, Shot)
  • Weather (Brightness, Fog, Frost, Snow)

Following the standard evaluation protocol, tests were conducted across five disjoint 100-class subsets (1,500 images per split) using a frozen ResNet-50 classifier and an unconditional $256 \times 256$ diffusion model pretrained on ImageNet-1K. No source training data or new benchmarks were introduced.

Key Insights and Ideas

  • Filtering without Gradients Prevents Artifacts: Unlike gradient-guided diffusion (Grad-DDA), which perturbs pixels directly and creates noticeable high-frequency noise when pseudo-labels are inaccurate, FK steering operates at the trajectory level via reweighting and resampling.
  • Dynamic Exploration-to-Exploitation Scheduling: Coarse diffusion timesteps naturally determine global semantics, while later steps resolve fine textures. Matching this with a reward schedule (first stabilizing the plausible confusion set, then sharpening entropy onto a single class) mirrors the natural generative hierarchy.
  • Particle Diversity Overcomes Low-Frequency Deception: When corruptions mimic true object textures (e.g., frost resembling spider webs), multiple particles explore alternative semantic hypotheses, allowing the classifier reward to guide the trajectories away from dead ends.

Key Results

  • Overall ImageNet-C Gains: SteeringTTA achieves 31.57% average Top-1 accuracy at severity 5, outperforming standard DDA (31.07%) and the unadapted baseline (18.41%).
  • Failure of Gradient Guidance: Gradient-guided DDA (Grad-DDA) achieves 31.00%, showing that simply injecting classifier gradients into the diffusion trajectory degrades performance under severe corruptions.
  • Robustness Across Categories: SteeringTTA provides its largest gains on high-severity noise corruptions (+1.73% over DDA, reaching 52.20%) and weather corruptions (+0.40% over DDA).
  • Upper Bound Potential: When guided by ground-truth labels (SteeringTTA GT), performance climbs to 33.45% (a +2.39% jump over DDA, and up to +7.33% on noise), indicating substantial headroom as pseudo-label quality improves.

Limitations and Future Work

  • Computational Overhead: Maintaining $K = 4$ particles multiplies the number of diffusion backbone evaluations (NFEs), requiring ~13.2 seconds per image on an NVIDIA A100 compared to ~8.0 seconds for single-trajectory Grad-DDA.
  • Flat Performance on Digital Shifts: Gains on digital distortions (e.g., JPEG, pixelation) were virtually flat (+0.00% over DDA), suggesting that existing low-pass proposals already saturate performance for certain digital artifacts.
  • Future Directions: The authors suggest investigating adaptive resampling frequencies to reduce compute, engineering richer domain-specific reward objectives, and testing the framework across real-world distribution shifts beyond synthetic corruptions.

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