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

上下文崩溃:上下文学习与模型崩溃

Context Collapse: In-Context Learning and Model Collapse

Technical University of Munich(慕尼黑工业大学);TUM School of Computation, Information and Technology(慕尼黑工业大学计算、信息与技术学院)

Josef Ott

AI总结:

本研究探讨了大型语言模型中上下文学习与模型崩溃现象,通过数学分析揭示了上下文长度与模型稳定性之间的关系。

摘要:

本论文研究了大型语言模型(LLMs)中的两个关键现象:上下文学习(ICL)和模型崩溃。我们研究了在线性Transformer中训练于线性回归任务的权重绑定模型中的ICL,并证明最小化上下文损失会导致学习参数出现相变。在临界上下文长度之上,解会发展出斜对称成分。我们通过将线性Transformer的前向传递在权重绑定下减少为预条件梯度下降,然后分析最优预条件器来证明这一点。该预条件器包含斜对称成分,这会诱导梯度方向的旋转。对于模型崩溃,我们使用鞅和随机游走理论分析简化设置——线性回归和高斯拟合——在替换和累积数据模式下。我们通过证明几乎必然收敛来加强现有结果,证明崩溃发生除非数据以足够快的速度增长或在时间中保留。最后,我们引入了上下文崩溃的概念:在长时间生成过程中上下文的退化,尤其是在思维链推理中。这一概念将ICL的动力学与生成模型中的长期稳定性挑战联系起来。

英文摘要:

This thesis investigates two key phenomena in large language models (LLMs): in-context learning (ICL) and model collapse. We study ICL in a linear transformer with tied weights trained on linear regression tasks, and show that minimising the in-context loss leads to a phase transition in the learned parameters. Above a critical context length, the solution develops a skew-symmetric component. We prove this by reducing the forward pass of the linear transformer under weight tying to preconditioned gradient descent, and then analysing the optimal preconditioner. This preconditioner includes a skew-symmetric component, which induces a rotation of the gradient direction. For model collapse, we use martingale and random walk theory to analyse simplified settings - linear regression and Gaussian fitting - under both replacing and cumulative data regimes. We strengthen existing results by proving almost sure convergence, showing that collapse occurs unless the data grows sufficiently fast or is retained over time. Finally, we introduce the notion of context collapse: a degradation of context during long generations, especially in chain-of-thought reasoning. This concept links the dynamics of ICL with long-term stability challenges in generative models.

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

↑