TRUST: Test-Time Refinement using Uncertainty-Guided SSM Traverses

Mehrdad Noori (ETS Montreal) · David OSOWIECHI (École de Technologie Supérieure, Montreal) · Gustavo Vargas Hakim (École de technologie supérieure, Université du Québec) · Ali Bahri (École de technologie supérieure, Université du Québec) · Moslem Yazdanpanah (École de technologie supérieure, Université du Québec) · Sahar Dastani (ETS/Mila) · Ismail Ayed (ETS Montreal) · Christian Desrosiers (Ecole de technologie superieure) · Samuel Barbeau (École de technologie supérieure, Université du Québec) · Herve Lombaert (ETS Montreal / Inria)
adapted weightsarchitectural propertiescausal perspectivesdistribution shiftsgeneralization performancemamba-specific parameterspseudo-labelsrobustnessstate space modelstest-time adaptationtraversal scanstrustuncertainty-guidedvision transformersvmamba

State Space Models (SSMs) have emerged as efficient alternatives to Vision Transformers (ViTs), with VMamba standing out as a pioneering architecture designed for vision tasks. However, their generalization performance degrades significantly under distribution shifts. To address this limitation, we propose TRUST (Test-Time Refinement using Uncertainty-Guided SSM Traverses), a novel test-time adaptation (TTA) method that leverages diverse traversal permutations to generate multiple causal perspectives of the input image. Model predictions serve as pseudo-labels to guide updates of the Mamba-specific parameters, and the adapted weights are averaged to integrate the learned information across traversal scans. Altogether, TRUST is the first approach that explicitly leverages the unique architectural properties of SSMs for adaptation. Experiments on seven benchmarks show that TRUST consistently improves robustness and outperforms existing TTA methods.