[Paper Review] Test time Adaptation through Perturbation Robustness
This paper proposes a test-time adaptation method that enhances model robustness to distribution shifts by enforcing prediction consistency across perturbations of the test input. By applying consistency regularization during inference using data augmentations, the method achieves state-of-the-art or competitive performance on CIFAR-10-C, CIFAR-100-C, and VisDA-C benchmarks without requiring target domain data at training time.
Data samples generated by several real world processes are dynamic in nature extit{i.e.}, their characteristics vary with time. Thus it is not possible to train and tackle all possible distributional shifts between training and inference, using the host of transfer learning methods in literature. In this paper, we tackle this problem of adapting to domain shift at inference time extit{i.e.}, we do not change the training process, but quickly adapt the model at test-time to handle any domain shift. For this, we propose to enforce consistency of predictions of data sampled in the vicinity of test sample on the image manifold. On a host of test scenarios like dealing with corruptions (CIFAR-10-C and CIFAR-100-C), and domain adaptation (VisDA-C), our method is at par or significantly outperforms previous methods.
Motivation & Objective
- Address domain shift in real-world dynamic data where training and inference distributions differ.
- Develop a lightweight, test-time adaptation method that does not require labeled target data during training.
- Improve model robustness to corruptions and domain shifts without modifying the pre-trained model.
- Enable fast adaptation at inference time using only the test sample and its perturbations.
- Achieve strong performance across diverse test-time scenarios, including image corruptions and domain shift benchmarks.
Proposed method
- Apply data augmentations (e.g., RandAugment, AugMix) to the input test sample to generate perturbed views.
- Enforce prediction consistency across these augmented views using a consistency loss (e.g., cross-entropy or MSE between predictions).
- Optimize the model’s head parameters via stochastic gradient descent (SGD) on the consistency loss during inference.
- Use a two-term loss function: one for consistency across augmentations and another for minimizing the prediction loss on the original test sample.
- Limit the number of SGD steps to maintain efficiency while allowing effective adaptation.
- Apply the method without updating the backbone weights, focusing only on the head for fast, lightweight adaptation.
Experimental results
Research questions
- RQ1Can enforcing prediction consistency across perturbations of a test sample improve robustness to distribution shifts?
- RQ2How does the choice of augmentation strategy (e.g., RandAugment vs. AugMix) affect test-time adaptation performance?
- RQ3What hyperparameters (learning rate, batch size, number of SGD steps) most significantly impact adaptation performance?
- RQ4Does consistency regularization during inference outperform existing test-time adaptation methods like Tent?
- RQ5Is the method robust to varying levels of augmentation intensity, and does lower intensity yield better results?
Key findings
- The proposed method achieves 67.1% accuracy on VisDA-C, outperforming the baseline (44.08%) and matching or exceeding Tent across all corruption types on CIFAR-10-C and CIFAR-100-C.
- Performance improves significantly when the baseline model has low accuracy, indicating strong adaptation capability under poor initial conditions.
- The method is robust to learning rate variations, with optimal performance around 10^-4, and shows stable performance across a wide range of learning rates.
- Lower augmentation intensity (fewer augmentations) leads to better performance, suggesting that perturbations closer to the original image manifold are more effective.
- The method requires a minimum batch size of 16 for stable normalization layer updates, indicating a practical constraint on deployment with limited hardware.
- Combining the consistency loss and prediction loss yields the best performance, with the consistency-only variant already surpassing Tent on VisDA-C.
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.