Monitoring Risks in Test-Time Adaptation
Mona Schirmer, Metod Jazbec, Christian A. Naesseth, Eric Nalisnick
TL;DR
The paper addresses the problem of performance degradation under distribution shift when deploying models that perform test-time adaptation (TTA). It introduces a risk-monitoring framework based on sequential testing with time-uniform confidence sequences to detect when the running test risk $\bar{R}_t(p_{1:t})$ exceeds the source risk $R_0(p_0)$ by at least $\epsilon_{tol}$, even without test labels. A key contribution is an unsupervised lower bound $L_t^b$ on the running risk derived from a loss proxy $u_k=g({\bm{x}}_k,p_k)$ and online-threshold calibration, enabling an alarm $\Phi_t^b$ with provable false-alarm control. The method is validated across diverse datasets and TTA methods, demonstrating reliable risk detection and the ability to identify TTA collapse, while remaining robust to various shift types; it thus enables safer deployment of adaptive models in dynamic environments where labeled feedback is scarce.
Abstract
Encountering shifted data at test time is a ubiquitous challenge when deploying predictive models. Test-time adaptation (TTA) methods address this issue by continuously adapting a deployed model using only unlabeled test data. While TTA can extend the model's lifespan, it is only a temporary solution. Eventually the model might degrade to the point that it must be taken offline and retrained. To detect such points of ultimate failure, we propose pairing TTA with risk monitoring frameworks that track predictive performance and raise alerts when predefined performance criteria are violated. Specifically, we extend existing monitoring tools based on sequential testing with confidence sequences to accommodate scenarios in which the model is updated at test time and no test labels are available to estimate the performance metrics of interest. Our extensions unlock the application of rigorous statistical risk monitoring to TTA, and we demonstrate the effectiveness of our proposed TTA monitoring framework across a representative set of datasets, distribution shift types, and TTA methods.
