arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.23911cs.CL
收藏

单个任务向量是不够的:关于上下文学习的大规模研究

One Task Vector is not Enough: A Large-Scale Study for In-Context Learning

AIRI(人工智能研究所);Skoltech(斯科尔科沃科学技术学院)

Pavel Tikhonov, Ivan Oseledets, Elena Tutubalina

AI总结:

针对现有上下文学习任务向量研究受限于小规模基准的问题,本文构建了含3,096个任务的大规模数据集QuiteAFew,通过Llama-3-8B实验发现任务向量性能在中间层达峰,且复杂任务依赖多子任务向量,揭示了分布式任务知识表示。

摘要:

上下文学习(ICL)使大型语言模型(LLM)能够利用少量示例适应新任务,其中任务向量——特定的隐藏状态激活——被假设用来编码任务信息。现有研究受限于小规模基准,限制了全面分析。我们引入了QuiteAFew,这是一个包含3,096个多样化少样本任务的新颖数据集,每个任务包含30个源自Alpaca数据集的输入-输出对。在QuiteAFew上使用Llama-3-8B进行的实验表明:(1)任务向量性能在中间层(例如第15层)达到峰值,(2)有效性因任务类型而异,且(3)复杂任务依赖于多个特定于子任务的向量而非单个向量,这表明任务知识是分布式表示的。

英文摘要:

In-context learning (ICL) enables Large Language Models (LLMs) to adapt to new tasks using few examples, with task vectors - specific hidden state activations - hypothesized to encode task information. Existing studies are limited by small-scale benchmarks, restricting comprehensive analysis. We introduce QuiteAFew, a novel dataset of 3,096 diverse few-shot tasks, each with 30 input-output pairs derived from the Alpaca dataset. Experiments with Llama-3-8B on QuiteAFew reveal: (1) task vector performance peaks at an intermediate layer (e.g., 15th), (2) effectiveness varies significantly by task type, and (3) complex tasks rely on multiple, subtask-specific vectors rather than a single vector, suggesting distributed task knowledge representation.

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

↑