Skip to main content
QUICK REVIEW

[論文レビュー] Test-Time Prompt Tuning for Zero-Shot Generalization in Vision-Language Models

Manli Shu, Weili Nie|arXiv (Cornell University)|Sep 15, 2022
Multimodal Machine Learning Applications被引用数 112
ひとこと要約

この論文は Test-Time Prompt Tuning (TPT) を導入し、CLIP のような視覚-言語モデルのゼロショット一般化を向上させるため、拡張ビュー間のエントロピー最小化と信頼度ベースのフィルタリングを用いて、単一のテストサンプル上でプロンプトを最適化します。

ABSTRACT

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.

研究の動機と目的

  • Enhance zero-shot generalization of CLIP without additional training data or annotations.
  • Develop a test-time objective that aligns predictions across augmented views of a single test image.
  • Introduce confidence selection to remove noisy augmentations during prompt tuning.
  • Demonstrate TPT on image classification under distribution shifts and on context-dependent visual reasoning.
  • Show that TPT matches or exceeds state-of-the-art prompt tuning that uses training data in various settings.

提案手法

  • Represent the prompt as a learnable text embedding and optimize it at test time.
  • Generate N augmented views of the test image and minimize the marginal entropy of predictions across views.
  • Apply confidence selection by discarding augmented views with high self-entropy based on a percentile threshold.
  • For Bongard-HOI visual reasoning, learn both the prompt and binary label tokens from support images without using query annotations.
  • TPT uses the CLIP framework, focusing on updating only the text prompt to preserve zero-shot abilities.
  • One-step prompt optimization with AdamW on a single test example.

実験結果

リサーチクエスチョン

  • RQ1Can test-time prompt tuning improve zero-shot CLIP performance under natural distribution shifts without any training data?
  • RQ2How does TPT compare to few-shot prompt tuning methods on cross-dataset generalization and unseen categories?
  • RQ3Can TPT be effectively extended to context-dependent visual reasoning tasks like Bongard-HOI without training data?
  • RQ4What is the impact of confidence-based view selection on prompt-tuning effectiveness?

主な発見

手法ImageNetImageNet-AImageNet-V2ImageNet-RImageNet-Sketch平均OOD平均
CLIP-RN5058.1621.8351.4156.1533.3744.1840.69
Ensemble59.8123.2452.9160.7235.4846.4343.09
CoOp63.3323.0655.4056.6034.6746.6142.43
CoCoOp62.8123.3255.7257.7434.4846.8142.82
TPT60.7426.6754.7059.1135.0947.2643.89
TPT + CoOp64.7330.3257.8358.9935.8649.5545.75
TPT + CoCoOp62.9327.4056.6059.8835.4348.4544.83
CLIP-ViT-B/1666.7347.8760.8673.9846.0959.1157.20
Ensemble68.3449.8961.8877.6548.2461.2059.42
CoOp71.5149.7164.2075.2147.9961.7259.28
CoCoOp71.0250.6364.0776.1848.7562.1359.91
TPT68.9854.7763.4577.0647.9462.4460.81
TPT + CoOp73.6157.9566.8377.2749.2964.9962.83
TPT + CoCoOp71.0758.4764.8578.6548.4764.3062.61
  • TPT improves zero-shot top-1 accuracy of CLIP by 3.6% on average over natural distribution shifts compared to hand-crafted prompts.
  • TPT matches or surpasses state-of-the-art prompt tuning methods that require downstream training data in several settings.
  • TPT achieves up to 6.9% improvement on ImageNet-A over hand-crafted prompts.
  • In cross-dataset generalization, TPT attains on-par performance with few-shot methods without using training data.
  • For Bongard-HOI visual reasoning, TPT outperforms the state-of-the-art by 4.1%.
  • Confidence selection helps suppress noisy augmentations and boosts entropy minimization efficacy.

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。