arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.01098stat.MLcond-mat.dis-nncs.LG
收藏

上下文回归的缩放定律理论:深度、宽度、上下文与时间

Theory of Scaling Laws for In-Context Regression: Depth, Width, Context and Time

Center for Mathematical Sciences and Applications(数学科学与应用中心);John A. Paulson School of Engineering and Applied Sciences(约翰·A·保罗森工程与应用科学学院);Kempner Institute for the Study of Natural and Artificial Intelligence(自然与人工智能研究学院);Harvard University(哈佛大学)

Blake Bordelon, Mary I. Letey, Cengiz Pehlevan

AI总结:

该研究针对深度线性自注意力模型的线性回归上下文学习,分析三种设置下的缩放渐近行为,发现深度的作用依设置而异,提出同时依赖Transformer宽深的可解玩具模型,可预测最优形状与幂律关系。

摘要:

我们研究深度线性自注意力模型中线性回归的上下文学习(In-Context Learning, ICL),刻画性能如何依赖多种计算与统计资源(宽度、深度、训练步数、批量大小及每个上下文的数据量)。在数据维度、上下文长度与残差流宽度成比例缩放的联合极限下,我们分析三种ICL设置的极限渐近行为:(1)各向同性协变量与任务(ISO),(2)固定结构化协方差(FS),以及(3)协方差经随机旋转且结构化的情况(RRS)。对于ISO和FS设置,我们发现仅当上下文长度受限时,深度才会提升ICL性能。而在协方差随上下文变化的RRS设置中,即便上下文长度为无穷大,增加深度仍能带来ICL性能的显著提升。这提供了一个新的可解神经缩放定律玩具模型,该模型同时依赖Transformer的宽度与深度,并能预测作为计算量函数的最优Transformer形状。该玩具模型可计算风险的精确渐近值,还能推导ICL任务在源/容量条件下的幂律关系。

英文摘要:

We study in-context learning (ICL) of linear regression in a deep linear self-attention model, characterizing how performance depends on various computational and statistical resources (width, depth, number of training steps, batch size and data per context). In a joint limit where data dimension, context length, and residual stream width scale proportionally, we analyze the limiting asymptotics for three ICL settings: (1) isotropic covariates and tasks (ISO), (2) fixed and structured covariance (FS), and (3) where covariances are randomly rotated and structured (RRS). For ISO and FS settings, we find that depth only aids ICL performance if context length is limited. Alternatively, in the RRS setting where covariances change across contexts, increasing the depth leads to significant improvements in ICL, even at infinite context length. This provides a new solvable toy model of neural scaling laws which depends on both width and depth of a transformer and predicts an optimal transformer shape as a function of compute. This toy model enables computation of exact asymptotics for the risk as well as derivation of powerlaws under source/capacity conditions for the ICL tasks.

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

↑