paper-with-me

Papers

On the Role of Attention in Prompt-tuning

2023-06-06 · Samet Oymak, Ankit Singh Rawat, Mahdi Soltanolkotabi, Christos Thrampoulidis

Prompt-tuning is an emerging strategy to adapt large language models (LLM) to downstream tasks by learning a (soft-)prompt parameter from data. Despite its success in LLMs, there is limited theoretical understanding of the power of prompt-tuning and the role of the attention mechanism in prompting. In this work, we explore prompt-tuning for one-layer attention architectures and study contextual mixture-models where each input token belongs to a context-relevant or -irrelevant set. We isolate the role of prompt-tuning through a self-contained prompt-attention model. Our contributions are as follows: (1) We show that softmax-prompt-attention is provably more expressive than softmax-self-attention and linear-prompt-attention under our contextual data model. (2) We analyze the initial trajectory of gradient descent and show that it learns the prompt and prediction head with near-optimal sample complexity and demonstrate how prompt can provably attend to sparse context-relevant tokens. (3) Assuming a known prompt but an unknown prediction head, we characterize the exact finite sample performance of prompt-attention which reveals the fundamental performance limits and the precise benefit of the context information. We also provide experiments that verify our theoretical insights on real datasets and demonstrate how prompt-tuning enables the model to attend to context-relevant information.

📄 PDF Abstract BibTeX arXiv:2306.03435

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Self-Prompt Tuning: Enable Autonomous Role-Playing in LLMs

2024-07-12 · Aobo Kong, Shiwan Zhao, Hao Chen, Qicheng Li 외

Recent advancements in LLMs have showcased their remarkable role-playing capabilities, able to accurately simulate the dialogue styles and cognitive processes of various roles based on different instructions and contexts…

Layer-Specific Prompt Fusion Discovery via Differentiable Search in Vision Foundation Models

2026-06-24 · Xi Xiao, Xingjian Li, Yunbei Zhang, Cheng Han 외 arxiv

Visual prompt tuning has emerged as a parameter-efficient fine-tuning approach for adapting large-scale Vision Transformers (ViTs) to downstream tasks. As its learnable prompts are applied in input and feature spaces, pr…

parameter-efficient fine-tuningVisual Prompt Tuning

Enhancing Few-Shot Transfer Learning with Optimized Multi-Task Prompt Tuning through Modular Prompt Composition

2024-08-23 · Ahmad Pouramini, Hesham Faili

In recent years, multi-task prompt tuning has garnered considerable attention for its inherent modularity and potential to enhance parameter-efficient transfer learning across diverse tasks. This paper aims to analyze an…

Transfer Learning

Do prompt positions really matter?

2023-05-23 · Junyu Mao, Stuart E. Middleton, Mahesan Niranjan

Prompt-based models have gathered a lot of attention from researchers due to their remarkable advancements in the fields of zero-shot and few-shot learning. Developing an effective prompt template plays a critical role. …

Few-Shot LearningNatural Language UnderstandingPositionPrompt Engineering

Identity-Driven Hierarchical Role-Playing Agents

2024-07-28 · Libo Sun, Siyuan Wang, Xuanjing Huang, Zhongyu Wei

Utilizing large language models (LLMs) to achieve role-playing has gained great attention recently. The primary implementation methods include leveraging refined prompts and fine-tuning on role-specific datasets. However…