Order-Aware Test-Time Adaptation: Leveraging Temporal Dynamics for Robust Streaming Inference
Young Kyung Kim, Oded Schlesinger, Qiangqiang Wu, J. Matías Di Martino, Guillermo Sapiro
TL;DR
OATTA addresses distribution shifts in streaming inference by explicitly modeling temporal dynamics through a learned transition matrix that regularizes predictions via recursive Bayesian updates. It operates as a lightweight, gradient-free wrapper that can be attached to existing TTA baselines, and it optionally uses a likelihood-ratio gate to safely revert to the base predictor when temporal structure is weak. The key contributions are the online transition estimation mechanism, the temporal prior fusion, and the LLR gate that balances temporal evidence with order-agnostic baselines. Empirically, OATTA improves robustness across image, sensor, and language domains, with gains up to $6.35\%$ on highly temporal streams and additive improvements when combined with baselines like TTAug, demonstrating the practical value of leveraging temporal dynamics in streaming inference.
Abstract
Test-Time Adaptation (TTA) enables pre-trained models to adjust to distribution shift by learning from unlabeled test-time streams. However, existing methods typically treat these streams as independent samples, overlooking the supervisory signal inherent in temporal dynamics. To address this, we introduce Order-Aware Test-Time Adaptation (OATTA). We formulate test-time adaptation as a gradient-free recursive Bayesian estimation task, using a learned dynamic transition matrix as a temporal prior to refine the base model's predictions. To ensure safety in weakly structured streams, we introduce a likelihood-ratio gate (LLR) that reverts to the base predictor when temporal evidence is absent. OATTA is a lightweight, model-agnostic module that incurs negligible computational overhead. Extensive experiments across image classification, wearable and physiological signal analysis, and language sentiment analysis demonstrate its universality; OATTA consistently boosts established baselines, improving accuracy by up to 6.35%. Our findings establish that modeling temporal dynamics provides a critical, orthogonal signal beyond standard order-agnostic TTA approaches.
