paper-with-me

홈 › Papers

Context-aware Prompt Tuning: Advancing In-Context Learning with Adversarial Methods

2024-10-22 · Tsachi Blau, Moshe Kimhi, Yonatan Belinkov, Alexander Bronstein, Chaim Baskin

Fine-tuning Large Language Models (LLMs) typically involves updating at least a few billions of parameters. A more parameter-efficient approach is Prompt Tuning (PT), which updates only a few learnable tokens, and differently, In-Context Learning (ICL) adapts the model to a new task by simply including examples in the input without any training. When applying optimization-based methods, such as fine-tuning and PT for few-shot learning, the model is specifically adapted to the small set of training examples, whereas ICL leaves the model unchanged. This distinction makes traditional learning methods more prone to overfitting; in contrast, ICL is less sensitive to the few-shot scenario. While ICL is not prone to overfitting, it does not fully extract the information that exists in the training examples. This work introduces Context-aware Prompt Tuning (CPT), a method inspired by ICL, PT, and adversarial attacks. We build on the ICL strategy of concatenating examples before the input, but we extend this by PT-like learning, refining the context embedding through iterative optimization to extract deeper insights from the training examples. We carefully modify specific context tokens, considering the unique structure of input and output formats. Inspired by adversarial attacks, we adjust the input based on the labels present in the context, focusing on minimizing, rather than maximizing, the loss. Moreover, we apply a projected gradient descent algorithm to keep token embeddings close to their original values, under the assumption that the user-provided data is inherently valuable. Our method has been shown to achieve superior accuracy across multiple classification tasks using various LLM models.

📄 PDF Abstract BibTeX arXiv:2410.17222

Code (0)

등록된 구현이 없습니다.

Tasks

Few-Shot LearningIn-Context Learning

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Prompt-based Context- and Domain-aware Pretraining for Vision and Language Navigation

2023-09-07 · Ting Liu, Yue Hu, Wansen Wu, Youkai Wang 외

Pretrained visual-language models have extensive world knowledge and are widely used in visual and language navigation (VLN). However, they are not sensitive to indoor scenarios for VLN tasks. Another challenge for VLN i…

Contrastive Learningcross-modal alignmentVision and Language NavigationWorld Knowledge

Context-Aware Robust Fine-Tuning

2022-11-29 · Xiaofeng Mao, Yuefeng Chen, Xiaojun Jia, Rong Zhang 외

Contrastive Language-Image Pre-trained (CLIP) models have zero-shot ability of classifying an image belonging to "[CLASS]" by using similarity between the image and the prompt sentence "a [CONTEXT] of [CLASS]". Based on …

Domain GeneralizationSentence

LaiDA: Linguistics-aware In-context Learning with Data Augmentation for Metaphor Components Identification

2024-08-10 · Hongde Liu, Chenyuan He, Feiyang Meng, Changyong Niu 외

Metaphor Components Identification (MCI) contributes to enhancing machine understanding of metaphors, thereby advancing downstream natural language processing tasks. However, the complexity, diversity, and dependency on …

Data AugmentationDiversityGraph AttentionIn-Context Learning

DeMPT: Decoding-enhanced Multi-phase Prompt Tuning for Making LLMs Be Better Context-aware Translators

2024-02-23 · Xinglin Lyu, Junhui Li, Yanqing Zhao, Daimeng Wei 외

Generally, the decoder-only large language models (LLMs) are adapted to context-aware neural machine translation (NMT) in a concatenating way, where LLMs take the concatenation of the source sentence (i.e., intra-sentenc…

DecoderMachine TranslationNMTSentence

Context-Aware Prompt Tuning for Vision-Language Model with Dual-Alignment

2023-09-08 · Hongyu Hu, Tiancheng Lin, Jie Wang, Zhenbang Sun 외

Large-scale vision-language models (VLMs), e.g., CLIP, learn broad visual concepts from tedious training data, showing superb generalization ability. Amount of prompt learning methods have been proposed to efficiently ad…

Language ModelingLanguage ModellingPrompt Learningzero-shot-classification+1