Lune

NeurIPS2024Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Monitoring Risks in Test-Time Adaptation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Monitoring Risks in Test-Time Adaptation cites Improving robustness against common corruptions by covariate shift adaptation
  • Monitoring Risks in Test-Time Adaptation cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • On the Learnability of Test-Time Adaptation: A Recovery Complexity Perspective cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • On the Learnability of Test-Time Adaptation: A Recovery Complexity Perspective cites Test-Time Training with Self-Supervision for Generalization under Distribution Shifts
  • Class-aware Domain Knowledge Fusion and Fission for Continual Test-Time Adaptation cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Class-aware Domain Knowledge Fusion and Fission for Continual Test-Time Adaptation cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • Test-time Adaptation for Cross-modal Retrieval with Query Shift cites Tent: Fully Test-Time Adaptation by Entropy Minimization
  • Test-time Adaptation for Cross-modal Retrieval with Query Shift cites Test-Time Training with Self-Supervision for Generalization under Distribution Shifts
  • Improving robustness against common corruptions by covariate shift adaptation cites The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalization
  • Testing For Distribution Shifts with Conditional Conformal Test Martingales cites Monitoring Risks in Test-Time Adaptation
  • Tent: Fully Test-Time Adaptation by Entropy Minimization cites Improving robustness against common corruptions by covariate shift adaptation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Monitoring Risks in Test-Time AdaptationMona Schirmer, Metod Jazbec, Christian Andersson Naesseth, Eric T. NalisnickNeurIPS 2025 · 10 citations
  2. 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
  3. 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
  4. Testing For Distribution Shifts with Conditional Conformal Test MartingalesShalev Shaer, Yarin Bar, Drew Prinster, Yaniv RomanoICML 2026 · 1 citation
  5. Test-time Adaptation for Cross-modal Retrieval with Query ShiftHaobin Li, Peng Hu, Qianjun Zhang, Xi Peng et al.ICLR 2025

Builds on26

  1. 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
  2. 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
  3. Tent: Fully Test-Time Adaptation by Entropy MinimizationDequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno A. Olshausen et al.ICLR 2021 · 1,731 citations
  4. 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
  5. Improving robustness against common corruptions by covariate shift adaptationSteffen Schneider, Evgenia Rusak, Luisa Eck, Oliver Bringmann et al.NeurIPS 2020 · 688 citations

Related papers

  1. Test-Time Training with Masked AutoencodersYossi Gandelsman, Yu Sun, Xinlei Chen, Alexei A. EfrosNeurIPS 2022 · 283 citations
  2. Active Test-Time Adaptation: Theoretical Analyses and An AlgorithmShurui Gui, Xiner Li, Shuiwang JiICLR 2024 · 26 citations
  3. Adaptive Test-Time Training for Predicting Need for Invasive Mechanical Ventilation in Multi-Center CohortsXiaolei Lu, Shamim NematiICLR 2026
  4. Test Time Adaptation via Conjugate Pseudo-labelsSachin Goyal, Mingjie Sun, Aditi Raghunathan, J. Zico KolterNeurIPS 2022 · 152 citations
  5. Bayesian Adaptation for Covariate ShiftAurick Zhou, Sergey LevineNeurIPS 2021 · 40 citations
Dusk over the sea between two cliffs drawn in fine vertical lines