Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Efficient Test-Time Adaptation of Vision-Language Models

About

Test-time adaptation with pre-trained vision-language models has attracted increasing attention for tackling distribution shifts during the test time. Though prior studies have achieved very promising performance, they involve intensive computation which is severely unaligned with test-time adaptation. We design TDA, a training-free dynamic adapter that enables effective and efficient test-time adaptation with vision-language models. TDA works with a lightweight key-value cache that maintains a dynamic queue with few-shot pseudo labels as values and the corresponding test-sample features as keys. Leveraging the key-value cache, TDA allows adapting to test data gradually via progressive pseudo label refinement which is super-efficient without incurring any backpropagation. In addition, we introduce negative pseudo labeling that alleviates the adverse impact of pseudo label noises by assigning pseudo labels to certain negative classes when the model is uncertain about its pseudo label predictions. Extensive experiments over two benchmarks demonstrate TDA's superior effectiveness and efficiency as compared with the state-of-the-art. The code has been released in \url{https://kdiaaa.github.io/tda/}.

Adilbek Karmanov, Dayan Guan, Shijian Lu, Abdulmotaleb El Saddik, Eric Xing• 2024

Related benchmarks

TaskDatasetResultRank
Semantic segmentationCityscapes (test)
mIoU42.6
1145
Image ClassificationImageNet A
Top-1 Acc61.27
553
Image ClassificationImageNet V2--
487
Image ClassificationImageNet
Accuracy76.28
184
Image ClassificationImageNet-R
Accuracy88.41
148
Image ClassificationCIFAR-10
Accuracy91.73
74
Image ClassificationCross-domain Benchmark (AIR, CAL, CAR, DTD, EUR, FLWR, FOOD, PETS, SUN, UCF) (test)
AIR Accuracy34.7
67
Image ClassificationCIFAR-10C Severity Level 5 (test)
Average Error Rate (Severity 5)62.37
62
Image ClassificationCIFAR-100-C v1 (test)
Error Rate (Average)33.27
60
Image ClassificationTiny-ImageNet
Top-1 Accuracy90
56
Showing 10 of 36 rows

Other info

Follow for update