[Paper Review] SITA: Single Image Test-time Adaptation
This paper proposes SITA (Single Image Test-time Adaptation), a novel framework for adapting pre-trained models to out-of-distribution test images using only a single inference pass. It introduces AugBN, which estimates target domain normalization statistics from a test image and its augmentations without backpropagation, achieving state-of-the-art performance across classification and segmentation tasks with minimal latency and no hyperparameter tuning.
In Test-time Adaptation (TTA), given a source model, the goal is to adapt it to make better predictions for test instances from a different distribution than the source. Crucially, TTA assumes no access to the source data or even any additional labeled/unlabeled samples from the target distribution to finetune the source model. In this work, we consider TTA in a more pragmatic setting which we refer to as SITA (Single Image Test-time Adaptation). Here, when making a prediction, the model has access only to the given single test instance, rather than a batch of instances, as typically been considered in the literature. This is motivated by the realistic scenarios where inference is needed on-demand instead of delaying for an incoming batch or the inference is happening on an edge device (like mobile phone) where there is no scope for batching. The entire adaptation process in SITA should be extremely fast as it happens at inference time. To address this, we propose a novel approach AugBN that requires only a single forward pass. It can be used on any off-the-shelf trained model to test single instances for both classification and segmentation tasks. AugBN estimates normalization statistics of the unseen test distribution from the given test image using only one forward pass with label-preserving transformations. Since AugBN does not involve any back-propagation, it is significantly faster compared to recent test time adaptation methods. We further extend AugBN to make the algorithm hyperparameter-free. Rigorous experimentation show that our simple algorithm is able to achieve significant performance gains for a variety of datasets, tasks, and network architectures.
Motivation & Objective
- To address the challenge of adapting pre-trained models to out-of-distribution test samples when no source data or labeled target data is available.
- To enable real-time, low-latency adaptation on edge devices or on-demand inference systems where batching is impractical.
- To develop a method that adapts each test image independently, avoiding distribution shift issues from mixed batches.
- To eliminate the need for manual hyperparameter tuning during inference, especially for batch normalization calibration.
- To ensure robustness across both source and target distribution inputs without prior knowledge of the test data distribution.
Proposed method
- AugBN estimates target domain batch normalization statistics using a single forward pass on the input image and its label-preserving augmentations.
- It combines source model statistics with statistics estimated from the test image and its augmentations via a learnable prior factor λ.
- The prior factor λ is automatically selected per sample using an entropy-based optimization strategy (OPS), making the method hyperparameter-free.
- The method is compatible with any off-the-shelf classification or segmentation model without architectural modifications.
- OPS dynamically selects the optimal λ by minimizing prediction entropy across augmented views, ensuring stable and adaptive calibration.
- The approach avoids backpropagation entirely, enabling inference speed comparable to the original model.
Experimental results
Research questions
- RQ1Can a test-time adaptation method achieve high performance on a single test image without access to source data or labeled target data?
- RQ2How can batch normalization statistics be effectively estimated from a single image to improve model robustness?
- RQ3Can a hyperparameter-free method be designed to automatically select the optimal calibration weight λ for each test instance?
- RQ4Does the proposed method outperform existing TTA approaches in both single-image and batch inference settings?
- RQ5How robust is the method when test images originate from the source distribution versus unknown target distributions?
Key findings
- AugBN achieves a 25.8% top-1 accuracy on ImageNet-C using DenseNet121, a 25.8% improvement over the source model (22.7%).
- On InceptionV3, AugBN+OPS achieves 36.2% accuracy on ImageNet-C, a 5.8% gain over the source model (30.4%).
- The method improves mIoU by 28% on the SYNTHIA→Cityscapes segmentation task, demonstrating strong gains in dense prediction tasks.
- AugBN outperforms TENT and BN-based methods even at large batch sizes, with TENT failing to scale beyond batch size 3 due to memory constraints.
- The OPS method automatically selects λ per sample, eliminating the need for manual tuning and ensuring robustness across source and target distributions.
- Performance is stable across different λ values, with 20% of the range yielding results within 1 mIoU of the best performance, indicating low sensitivity to hyperparameter choice.
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.