Protected Test-Time Adaptation via Online Entropy Matching: A Betting Approach
Yarin Bar, Shalev Shaer, Yaniv Romano
Abstract
We present a novel approach for test-time adaptation via online self-training, consisting of two components. First, we introduce a statistical framework that detects distribution shifts in the classifier's entropy values obtained on a stream of unlabeled samples. Second, we devise an online adaptation mechanism that utilizes the evidence of distribution shifts captured by the detection tool to dynamically update the classifier's parameters. The resulting adaptation process drives the distribution of test entropy values obtained from the self-trained classifier to match those of the source domain, building invariance to distribution shifts. This approach departs from the conventional self-training method, which focuses on minimizing the classifier's entropy. Our approach combines concepts in betting martingales and online learning to form a detection tool capable of quickly reacting to distribution shifts. We then reveal a tight relation between our adaptation scheme and optimal transport, which forms the basis of our novel self-supervised loss. Experimental results demonstrate that our approach improves test-time accuracy under distribution shifts while maintaining accuracy and calibration in their absence, outperforming leading entropy minimization methods across various scenarios.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 3a315879-63cc-4dcc-b807-e810ae535efdCited by top-tier papers10
- Monitoring Risks in Test-Time AdaptationMona Schirmer, Metod Jazbec, Christian Andersson Naesseth, Eric T. NalisnickNeurIPS 2025 · 10 citations
- Class-aware Domain Knowledge Fusion and Fission for Continual Test-Time AdaptationJiahuan Zhou, Chao Zhu, Zhenyu Cui, Zichen Liu et al.NeurIPS 2025 · 3 citations
- On the Learnability of Test-Time Adaptation: A Recovery Complexity PerspectiveZhi Zhou, Ming Yang, Shi-Yu Tian, Kun-Yang Yu et al.ICML 2026 · 2 citations
- Testing For Distribution Shifts with Conditional Conformal Test MartingalesShalev Shaer, Yarin Bar, Drew Prinster, Yaniv RomanoICML 2026 · 1 citation
- Test-time Adaptation for Cross-modal Retrieval with Query ShiftHaobin Li, Peng Hu, Qianjun Zhang, Xi Peng et al.ICLR 2025
Builds on26
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution GeneralizationDan Hendrycks, Steven Basart, Norman Mu, Saurav Kadavath et al.ICCV 2021 · 2,294 citations
- Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
- Test-Time Training with Self-Supervision for Generalization under Distribution ShiftsYu Sun, Xiaolong Wang, Zhuang Liu, John Miller et al.ICML 2020 · 1,220 citations
- Improving robustness against common corruptions by covariate shift adaptationSteffen Schneider, Evgenia Rusak, Luisa Eck, Oliver Bringmann et al.NeurIPS 2020 · 688 citations
Related papers
- Test-Time Training with Masked AutoencodersYossi Gandelsman, Yu Sun, Xinlei Chen, Alexei A. EfrosNeurIPS 2022 · 283 citations
- Active Test-Time Adaptation: Theoretical Analyses and An AlgorithmShurui Gui, Xiner Li, Shuiwang JiICLR 2024 · 26 citations
- Adaptive Test-Time Training for Predicting Need for Invasive Mechanical Ventilation in Multi-Center CohortsXiaolei Lu, Shamim NematiICLR 2026
- Bayesian Adaptation for Covariate ShiftAurick Zhou, Sergey LevineNeurIPS 2021 · 40 citations
- TeSLA: Test-Time Self-Learning With Automatic Adversarial AugmentationDevavrat Tomar, Guillaume Vray, Behzad Bozorgtabar, Jean-Philippe ThiranCVPR 2023
