paper-with-me

Papers

Prompt-aligned Gradient for Prompt Tuning

2022-05-30 · ICCV 2023 1 · Beier Zhu, Yulei Niu, Yucheng Han, Yue Wu, Hanwang Zhang

Thanks to the large pre-trained vision-language models (VLMs) like CLIP, we can craft a zero-shot classifier by "prompt", e.g., the confidence score of an image being "[CLASS]" can be obtained by using the VLM provided similarity measure between the image and the prompt sentence "a photo of a [CLASS]". Therefore, prompt shows a great potential for fast adaptation of VLMs to downstream tasks if we fine-tune the prompt-based similarity measure. However, we find a common failure that improper fine-tuning may not only undermine the prompt's inherent prediction for the task-related classes, but also for other classes in the VLM vocabulary. Existing methods still address this problem by using traditional anti-overfitting techniques such as early stopping and data augmentation, which lack a principled solution specific to prompt. We present Prompt-aligned Gradient, dubbed ProGrad, to prevent prompt tuning from forgetting the the general knowledge learned from VLMs. In particular, ProGrad only updates the prompt whose gradient is aligned (or non-conflicting) to the "general direction", which is represented as the gradient of the KL loss of the pre-defined prompt prediction. Extensive experiments demonstrate the stronger few-shot generalization ability of ProGrad over state-of-the-art prompt tuning methods. Codes are available at https://github.com/BeierZhu/Prompt-align.

📄 PDF Abstract BibTeX arXiv:2205.14865

Code (1)

beierzhu/prompt-align 공식 구현 pytorch

Tasks

Domain AdaptationFew-Shot LearningGeneral KnowledgeSentence

Methods 이 논문이 사용한 방법론

CLIP Contrastive Language-Image Pre-training (CLIP), consisting of a simplified version of ConVIRT trained from scratch, is an efficient method of image representation learning…

Similar Papers 제목 키워드 기반

Generating Synthetic Datasets for Few-shot Prompt Tuning

2024-10-08 · Xu Guo, Zilin Du, Boyang Li, Chunyan Miao

A major limitation of prompt tuning is its dependence on large labeled training datasets. Under few-shot learning settings, prompt tuning lags far behind full-model fine-tuning, limiting its scope of application. In this…

Few-Shot LearningMRPCQQPSentence+2

Craft: Cross-modal Aligned Features Improve Robustness of Prompt Tuning

2024-07-22 · Jingchen Sun, Rohan Sharma, Vishnu Suresh Lokhande, Changyou Chen

Prompt Tuning has emerged as a prominent research paradigm for adapting vision-language models to various downstream tasks. However, recent research indicates that prompt tuning methods often lead to overfitting due to l…

cross-modal alignment

Gradient-Regulated Meta-Prompt Learning for Generalizable Vision-Language Models

2023-03-12 · ICCV 2023 1 · Juncheng Li, Minghe Gao, Longhui Wei, Siliang Tang 외

Prompt tuning, a recently emerging paradigm, enables the powerful vision-language pre-training models to adapt to downstream tasks in a parameter -- and data -- efficient way, by learning the ``soft prompts'' to conditio…

Domain GeneralizationFew-Shot LearningMeta-LearningPrompt Learning+1

Can Gradient Descent Simulate Prompting?

2025-06-26 · Eric Zhang, Leshem Choshen, Jacob Andreas

There are two primary ways of incorporating new information into a language model (LM): changing its prompt or changing its parameters, e.g. via fine-tuning. Parameter updates incur no long-term storage cost for model ch…

Meta-Learning

GrIPS: Gradient-free, Edit-based Instruction Search for Prompting Large Language Models

2022-03-14 · Archiki Prasad, Peter Hase, Xiang Zhou, Mohit Bansal

Providing natural language instructions in prompts is a useful new paradigm for improving task performance of large language models in a zero-shot setting. Recent work has aimed to improve such prompts via manual rewriti…