Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Parameter-free Online Test-time Adaptation

About

Training state-of-the-art vision models has become prohibitively expensive for researchers and practitioners. For the sake of accessibility and resource reuse, it is important to focus on adapting these models to a variety of downstream scenarios. An interesting and practical paradigm is online test-time adaptation, according to which training data is inaccessible, no labelled data from the test distribution is available, and adaptation can only happen at test time and on a handful of samples. In this paper, we investigate how test-time adaptation methods fare for a number of pre-trained models on a variety of real-world scenarios, significantly extending the way they have been originally evaluated. We show that they perform well only in narrowly-defined experimental setups and sometimes fail catastrophically when their hyperparameters are not selected for the same scenario in which they are being tested. Motivated by the inherent uncertainty around the conditions that will ultimately be encountered at test time, we propose a particularly "conservative" approach, which addresses the problem with a Laplacian Adjusted Maximum-likelihood Estimation (LAME) objective. By adapting the model's output (not its parameters), and solving our objective with an efficient concave-convex procedure, our approach exhibits a much higher average accuracy across scenarios than existing methods, while being notably faster and have a much lower memory footprint. The code is available at https://github.com/fiveai/LAME.

Malik Boudiaf, Romain Mueller, Ismail Ben Ayed, Luca Bertinetto• 2022

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet A
Top-1 Acc49.9
654
Image ClassificationImageNet-Sketch
Top-1 Accuracy44.4
407
Image ClassificationPACS (test)--
271
Image ClassificationDomainNet (test)
Average Accuracy43.2
219
Image ClassificationImageNet-R
Accuracy59
217
Image ClassificationOffice-Home (test)
Mean Accuracy66.19
199
Image ClassificationOfficeHome
Average Accuracy66.19
137
Image ClassificationCIFAR-10C Severity Level 5 (test)
Average Error Rate (Severity 5)39.5
127
Image ClassificationImageNet-C (test)--
116
Image ClassificationImageNet-C Severity 5 (test)
Mean Error Rate (Severity 5)80.9
104
Showing 10 of 87 rows
...

Other info

Code

Follow for update