Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models

By Manli Shu, Weili Nie, De-An Huang, Zhiding Yu, Tom Goldstein, Anima Anandkumar, Chaowei Xiao. Neural Information Processing Systems, 2022

552 citations recorded by the source corpus.

Pre-trained vision-language models (e.g., CLIP) have shown promising zero-shot generalization in many downstream tasks with properly designed text prompts. Instead of relying on hand-engineered prompts, recent works learn prompts using the training data from downstream tasks. While effective, training on domain-specific data reduces a model's generalization capability to unseen new domains. In this work, we propose test-time prompt tuning (TPT), a method that can learn adaptive prompts on the fly with a single test sample. For image classification, TPT optimizes the prompt by minimizing the entropy with confidence selection so that the model has consistent predictions across different augmented views of each test sample. In evaluating generalization to natural distribution shifts, TPT improves the zero-shot top-1 accuracy of CLIP by 3.6% on average, surpassing previous prompt tuning approaches that require additional task-specific training data. In evaluating cross-dataset generalization with unseen categories, TPT performs on par with the state-of-the-art approaches that use additional training data. Project page: https://azshue.github.io/TPT.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition

View Paper: https://www.semanticscholar.org/paper/12ad6e798487223f4c17aac69c9853bca8bc7830

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Fahad Shahbaz Khan
  2. Salman Hameed Khan
  3. Muzammal Naseer
  4. Ming-Hsuan Yang
  5. Peng Cui
  6. Sheng Jin
  7. Renzhe Xu
  8. Shijian Lu

In Computer Vision and Pattern Recognition

  1. Fahad Shahbaz Khan
  2. Salman Hameed Khan
  3. Ming-Hsuan Yang
  4. Luc Van Gool
  5. Martin Danelljan
  6. Muzammal Naseer
  7. Philip H. S. Torr
  8. Shijian Lu

Citations in the corpus