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

In-Context Learning 创建任务向量

In-Context Learning Creates Task Vectors

Tel Aviv University(特拉维夫大学);Google DeepMind(谷歌DeepMind);Google(谷歌)

Roee Hendel, Mor Geva, Amir Globerson

AI总结:

该研究揭示了大型语言模型中上下文学习(ICL)的机制,表明ICL通过将训练集压缩为单个任务向量来调制transformer产生输出,并通过多模型多任务实验验证了这一结论。

摘要:

大型语言模型(LLMs)中的上下文学习(ICL)已成为一种强大的新学习范式。然而,其底层机制仍不甚明了。特别是,很难将其映射到“标准”机器学习框架中,在该框架中,人们使用训练集 $S$ 在某个假设类中寻找最佳拟合函数 $f(x)$。在此,我们在该问题上取得了进展,表明 ICL 学习到的函数通常具有非常简单的结构:它们对应于 transformer LLM,其唯一输入是查询 $x$ 和从训练集计算出的单个“任务向量”。因此,ICL 可以被视为将 $S$ 压缩为单个任务向量 $\oldsymbolθ(S)$,然后使用该任务向量调制 transformer 以产生输出。我们通过跨一系列模型和任务的综合实验支持了上述主张。

英文摘要:

In-context learning (ICL) in Large Language Models (LLMs) has emerged as a powerful new learning paradigm. However, its underlying mechanism is still not well understood. In particular, it is challenging to map it to the "standard" machine learning framework, where one uses a training set $S$ to find a best-fitting function $f(x)$ in some hypothesis class. Here we make progress on this problem by showing that the functions learned by ICL often have a very simple structure: they correspond to the transformer LLM whose only inputs are the query $x$ and a single "task vector" calculated from the training set. Thus, ICL can be seen as compressing $S$ into a single task vector $\boldsymbolθ(S)$ and then using this task vector to modulate the transformer to produce the output. We support the above claim via comprehensive experiments across a range of models and tasks.

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

↑