arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.11465cs.LGcs.CL
收藏

重新审视上下文学习线性函数

Re-examining learning linear functions in context

Institut de Recherche en Informatique de Toulouse, IRIT France(图卢兹信息研究所,IRIT法国);Université de Toulouse, France(图卢兹大学,法国);CNRS, France(法国国家科学研究中心)

Omar Naim, Guilhem Fouilhé, Nicholas Asher

AI总结:

本研究通过对从头训练的类GPT-2 transformer模型开展受控实验,质疑了transformer以算法方式进行线性函数上下文学习的主流观点,指出其分布外泛化能力存在局限,并提出相关数学假设。

摘要:

上下文学习(ICL)已成为一种能轻松让大语言模型(LLM)适配各类任务的强大范式,但人们对其工作原理的理解仍十分有限。我们在采用合成训练数据的受控设置中探索一种简单的ICL模型,以研究单变量线性函数的上下文学习。我们对一系列从头训练的类GPT-2 transformer模型开展实验。研究结果对“transformer采用线性回归等算法方法在上下文中学习线性函数”的主流观点提出了质疑。这些模型无法在训练分布之外泛化,凸显出其推断抽象任务结构的能力存在根本局限。基于实验,我们提出了一个关于模型可能在学习什么的数学精确假设。

英文摘要:

In-context learning (ICL) has emerged as a powerful paradigm for easily adapting Large Language Models (LLMs) to various tasks. However, our understanding of how ICL works remains limited. We explore a simple model of ICL in a controlled setup with synthetic training data to investigate ICL of univariate linear functions. We experiment with a range of GPT-2-like transformer models trained from scratch. Our findings challenge the prevailing narrative that transformers adopt algorithmic approaches like linear regression to learn a linear function in-context. These models fail to generalize beyond their training distribution, highlighting fundamental limitations in their capacity to infer abstract task structures. Our experiments lead us to propose a mathematically precise hypothesis of what the model might be learning.

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

↑