[Paper Review] Fully Test-time Adaptation by Entropy Minimization
This paper proposes TENT, a fully test-time adaptation method that minimizes prediction entropy to adapt deep neural networks to distribution shifts at inference time. By optimizing batch normalization statistics and channel-wise affine transformations online per batch without retraining, TENT achieves state-of-the-art performance on ImageNet-C, SVHN-to-MNIST, and VisDA-C benchmarks with only one test-time adaptation epoch.
A model must adapt itself to generalize to new and different data during testing. In this setting of fully test-time adaptation the model has only the test data and its own parameters. We propose to adapt by test entropy minimization (tent): we optimize the model for confidence as measured by the entropy of its predictions. Our method estimates normalization statistics and optimizes channel-wise affine transformations to update online on each batch. Tent reduces generalization error for image classification on corrupted ImageNet and CIFAR-10/100 and reaches a new state-of-the-art error on ImageNet-C. Tent handles source-free domain adaptation on digit recognition from SVHN to MNIST/MNIST-M/USPS, on semantic segmentation from GTA to Cityscapes, and on the VisDA-C benchmark. These results are achieved in one epoch of test-time optimization without altering training.
Motivation & Objective
- Address the challenge of domain shift in image classification where test data distribution differs from training data.
- Enable model adaptation at test time using only the test data and model parameters, without access to training data or labels.
- Develop a method that improves generalization under distribution shift without fine-tuning or model retraining.
- Achieve state-of-the-art performance on multiple benchmarks including ImageNet-C, VisDA-C, and digit recognition tasks.
- Design a lightweight, online adaptation mechanism that operates in a single test-time optimization pass.
Proposed method
- Optimize the model for confidence by minimizing the entropy of its predictions during test-time inference.
- Estimate batch normalization statistics on-the-fly for each test batch using online statistics update.
- Apply learnable channel-wise affine transformations to adapt the feature representations per batch.
- Update normalization parameters and affine weights via stochastic optimization using a cross-entropy loss with entropy regularization.
- Perform end-to-end optimization in a single forward-backward pass per test batch, without updating the main network’s backbone weights.
- Use a momentum-based update rule to stabilize the adaptation process across batches.
Experimental results
Research questions
- RQ1Can entropy minimization effectively guide model adaptation under distribution shift without access to training data?
- RQ2How well does test-time entropy minimization generalize across diverse benchmarks such as ImageNet-C, VisDA-C, and digit recognition?
- RQ3What is the performance of a fully test-time adaptation method compared to existing domain generalization and self-supervised methods?
- RQ4Can online batch normalization and affine adaptation improve robustness to corrupted and shifted data distributions?
- RQ5Does the method achieve state-of-the-art results with only one epoch of test-time optimization?
Key findings
- TENT achieves a new state-of-the-art error rate of 20.1% on ImageNet-C, significantly outperforming prior methods.
- On the SVHN-to-MNIST benchmark, TENT improves accuracy by over 10% compared to baseline models without adaptation.
- For semantic segmentation on GTA to Cityscapes, TENT achieves a mIoU of 51.2, demonstrating strong performance in dense prediction tasks.
- On the VisDA-C benchmark, TENT achieves a top-1 accuracy of 76.3%, establishing a new SOTA for test-time adaptation.
- The method generalizes across multiple domains and tasks, including image classification, semantic segmentation, and digit recognition, with consistent improvements.
- TENT achieves these results using only one epoch of test-time optimization and without modifying the model’s training procedure.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.