Asymptotic theory of in-context learning by linear attention

学习曲线 计算机科学 一般化 记忆 背景(考古学) 安全性令牌 任务(项目管理) 缩放比例 数学 人工智能 机器学习 认知心理学 心理学 古生物学 数学分析 经济 操作系统 生物 管理 计算机安全 几何学
作者
Yue M. Lu,Mary I. Letey,Jacob A. Zavatone-Veth,Anindita Maiti,Cengiz Pehlevan
出处
期刊:Proceedings of the National Academy of Sciences of the United States of America [National Academy of Sciences]
卷期号:122 (28)
标识
DOI:10.1073/pnas.2502599122
摘要

Transformers have a remarkable ability to learn and execute tasks based on examples provided within the input itself, without explicit prior training. It has been argued that this capability, known as in-context learning (ICL), is a cornerstone of Transformers’ success, yet questions about the necessary sample complexity, pretraining task diversity, and context length for successful ICL remain unresolved. Here, we provide a precise answer to these questions in an exactly solvable model of ICL of a linear regression task by linear attention. We derive sharp asymptotics for the learning curve in a phenomenologically rich scaling regime where the token dimension is taken to infinity; the context length and pretraining task diversity scale proportionally with the token dimension; and the number of pretraining examples scales quadratically. We demonstrate a double-descent learning curve with increasing pretraining examples, and uncover a phase transition in the model’s behavior between low and high task diversity regimes: in the low diversity regime, the model tends toward memorization of training tasks, whereas in the high diversity regime, it achieves genuine ICL and generalization beyond the scope of pretrained tasks. These theoretical insights are empirically validated through experiments with both linear attention and full nonlinear Transformer architectures.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
科研通AI6.4应助杜安采纳,获得10
刚刚
刚刚
大个应助杜安采纳,获得10
刚刚
金毛发布了新的文献求助10
刚刚
刚刚
刚刚
科研通AI6.2应助杜安采纳,获得10
刚刚
木船在写文章完成签到,获得积分20
刚刚
刚刚
北鲲居士完成签到,获得积分10
刚刚
谢某某102097完成签到,获得积分10
刚刚
trouble虫虫完成签到,获得积分10
1秒前
小蘑菇应助顷梦采纳,获得10
1秒前
nonopanda发布了新的文献求助10
1秒前
1秒前
1秒前
1秒前
地六发布了新的文献求助10
1秒前
2秒前
2秒前
翟思宇应助W23采纳,获得10
2秒前
2秒前
孙明浩完成签到 ,获得积分10
2秒前
阿北洛完成签到,获得积分10
2秒前
3秒前
3秒前
小马想毕业完成签到,获得积分0
3秒前
3秒前
白昼月亮完成签到,获得积分10
4秒前
4秒前
4秒前
4秒前
loy发布了新的文献求助10
4秒前
4秒前
4秒前
复杂鬼神发布了新的文献求助10
4秒前
4秒前
蔷薇完成签到 ,获得积分10
5秒前
mikeboying完成签到,获得积分10
5秒前
LEO完成签到,获得积分10
5秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Principles of town planning: translating concepts to applications 1000
Navigating Normative Orders. Interdisciplinary Perspectives 800
1 Peter and Christ's Descent to the Dead in Its Early Christian Reception 700
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7739677
求助须知:如何正确求助?哪些是违规求助? 9288578
关于积分的说明 20190596
捐赠科研通 7317824
什么是DOI,文献DOI怎么找? 3306203
关于科研通互助平台的介绍 2458615
邀请新用户注册赠送积分活动 2316238