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

Historical Test-time Prompt Tuning for Vision Foundation Models

About

Test-time prompt tuning, which learns prompts online with unlabelled test samples during the inference stage, has demonstrated great potential by learning effective prompts on-the-fly without requiring any task-specific annotations. However, its performance often degrades clearly along the tuning process when the prompts are continuously updated with the test data flow, and the degradation becomes more severe when the domain of test samples changes continuously. We propose HisTPT, a Historical Test-time Prompt Tuning technique that memorizes the useful knowledge of the learnt test samples and enables robust test-time prompt tuning with the memorized knowledge. HisTPT introduces three types of knowledge banks, namely, local knowledge bank, hard-sample knowledge bank, and global knowledge bank, each of which works with different mechanisms for effective knowledge memorization and test-time prompt optimization. In addition, HisTPT features an adaptive knowledge retrieval mechanism that regularizes the prediction of each test sample by adaptively retrieving the memorized knowledge. Extensive experiments show that HisTPT achieves superior prompt tuning performance consistently while handling different visual recognition tasks (e.g., image classification, semantic segmentation, and object detection) and test samples from continuously changing domains.

Jingyi Zhang, Jiaxing Huang, Xiaoqin Zhang, Ling Shao, Shijian Lu• 2024

Related benchmarks

TaskDatasetResultRank
Semantic segmentationCityscapes (test)
mIoU44.7
1154
Semantic segmentationCityscapes
mIoU52.4
658
Image ClassificationStanford Cars (test)--
316
Fine-grained visual classificationFGVC-Aircraft (test)
Top-1 Acc26.9
312
Image ClassificationFGVC-Aircraft (test)--
305
Image ClassificationDTD (test)
Accuracy48.9
257
Image ClassificationOxford-IIIT Pets (test)
Mean Accuracy89.1
172
Image ClassificationCaltech101 (test)--
159
Image ClassificationFlowers-102 (test)
Top-1 Accuracy71.2
152
Image ClassificationEuroSAT (test)--
141
Showing 10 of 26 rows

Other info

Follow for update