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

上下文线性回归 Transformer 中瞬态结构的动力学

Dynamics of Transient Structure in In-Context Linear Regression Transformers

Gradient Institute(格雷迪安特研究所);University of Oxford(牛津大学);University of Melbourne(墨尔本大学)

Liam Carroll, Jesse Hoogland, Matthew Farrugia-Roberts, Daniel Murfet

AI总结:

本文研究了 Transformer 在上下文线性回归任务中的瞬态岭现象,发现模型会从岭回归的通用解转变为特化解,并基于贝叶斯内部模型选择理论,通过损失与复杂性的动态权衡解释了该瞬态结构。

摘要:

现代深度神经网络展现出丰富的内部计算结构。揭示支配此类结构发展的原理是深度学习科学的优先事项。本文探讨了瞬态岭现象:当 Transformer 在具有中等任务多样性的上下文线性回归任务上训练时,它们最初表现得像岭回归,随后才特化到其训练分布中的任务。这种从通用解到特化解的转变通过联合轨迹主成分分析得以揭示。此外,我们借鉴贝叶斯内部模型选择理论,基于损失与复杂性之间的动态权衡,为 Transformer 中的瞬态结构现象提出了一般性解释。我们通过测量由局部学习系数定义的 Transformer 模型复杂性,实证验证了这一解释。

英文摘要:

Modern deep neural networks display striking examples of rich internal computational structure. Uncovering principles governing the development of such structure is a priority for the science of deep learning. In this paper, we explore the transient ridge phenomenon: when transformers are trained on in-context linear regression tasks with intermediate task diversity, they initially behave like ridge regression before specializing to the tasks in their training distribution. This transition from a general solution to a specialized solution is revealed by joint trajectory principal component analysis. Further, we draw on the theory of Bayesian internal model selection to suggest a general explanation for the phenomena of transient structure in transformers, based on an evolving tradeoff between loss and complexity. We empirically validate this explanation by measuring the model complexity of our transformers as defined by the local learning coefficient.

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

↑