arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.02102cs.CLcs.AI
收藏

针对上下文学习的任务特定提示词的可证明益处

Provable Benefits of Task-Specific Prompts for In-context Learning

University of California, Riverside(加州大学河滨分校);University of Michigan(密歇根大学);Bilkent University(比尔肯特大学)

Xiangyu Chang, Yingcong Li, Muti Kara, Samet Oymak, Amit K. Roy-Chowdhury

AI总结:

研究在全局任务分布划分为条件分布的设定下,使用任务特定提示词和预测头通过单层注意力模型学习先验信息,证明其能实现协方差与均值解耦,且联合训练提示词和注意力权重优于预训练后微调。

摘要:

现代语言模型的上下文学习能力激发了对序列模型更深入的数学理解。近期的一系列工作表明,线性注意力模型能够模拟投影梯度下降迭代,从而从上下文窗口提供的数据中隐式学习任务向量。在本研究中,我们考虑了一种新颖的设定,即全局任务分布可以被划分为条件任务分布的并集。随后,我们探讨了使用任务特定提示词和预测头,通过单层注意力模型来学习与条件任务分布相关的先验信息。我们关于损失景观的结果表明,任务特定提示词促进了协方差-均值解耦,其中提示词微调解释了分布的条件均值,而方差则通过上下文学习来学习/解释。引入任务特定头通过完全解耦均值和方差分量的估计进一步促进了这一过程。这种协方差-均值视角同样解释了,与预训练后的微调相比,联合训练提示词和注意力权重如何在可证明层面上提供帮助。

英文摘要:

The in-context learning capabilities of modern language models have motivated a deeper mathematical understanding of sequence models. A line of recent work has shown that linear attention models can emulate projected gradient descent iterations to implicitly learn the task vector from the data provided in the context window. In this work, we consider a novel setting where the global task distribution can be partitioned into a union of conditional task distributions. We then examine the use of task-specific prompts and prediction heads for learning the prior information associated with the conditional task distribution using a one-layer attention model. Our results on loss landscape show that task-specific prompts facilitate a covariance-mean decoupling where prompt-tuning explains the conditional mean of the distribution whereas the variance is learned/explained through in-context learning. Incorporating task-specific head further aids this process by entirely decoupling estimation of mean and variance components. This covariance-mean perspective similarly explains how jointly training prompt and attention weights can provably help over fine-tuning after pretraining.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑