Protected Test-Time Adaptation via Online Entropy Matching: A Betting Approach

Yarin Bar, Shalev Shaer, Yaniv Romano
8/14/2024
cs.LGstat.ML

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bar2024protected,
  title  = {Protected Test-Time Adaptation via Online Entropy Matching: A Betting Approach},
  author = {Yarin Bar and Shalev Shaer and Yaniv Romano},
  year   = {2024},
  eprint = {2408.07511},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2408.07511},
  url    = {http://arxiv.org/abs/2408.07511v2},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.07511.svg)](https://codeofpaper.com/paper/2408.07511)

Discussion