arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.31089cs.LGstat.ML
收藏

通过训练,具有思维链(CoT)的Transformer发现了重球加速法

Transformers with CoT Discover Heavy-Ball Acceleration Through Training

School of Computing & Data Science, The University of Hong Kong(香港大学计算与数据科学学院)

Yuxuan Cai, Yuan Cao

AI总结:

该研究探究Transformer的CoT推理能否超越模仿教师算法,发现经梯度下降教师初始监督及真实回归权重的轨迹级监督后,模型会在无重球教师监督下实现重球法并获得加速,为Transformer推理可通过训练发现新算法提供了理论实例。

摘要:

现代Transformer通常通过生成和优化中间推理步骤来解决复杂任务。为了对思维链(CoT)推理建立理论理解,Huang等人(2025)的一项重要近期研究将Transformer视为算法执行器,表明当Transformer的CoT步骤由梯度下降教师监督时,它们可以学习在上下文权重预测中实现线性回归的梯度下降。在本文中,我们研究相同的上下文权重预测任务,但探究CoT推理是否能超越仅仅模仿教师算法。我们表明,在梯度下降教师的初始监督后,使用真实回归权重的进一步轨迹级监督会使模型实现重球法,从而比原始教师实现加速。值得注意的是,这种加速算法的出现没有任何重球教师的监督。我们的结果提供了一个具体的理论例子,其中Transformer推理可以通过训练发现新算法,而不仅仅模仿用于监督的算法。

英文摘要:

Modern transformers often solve complex tasks by generating and refining intermediate reasoning steps. To develop a theoretical understanding of chain-of-thought (CoT) reasoning, a notable recent study by Huang et al. (2025) viewed transformers as algorithm executors, and showed that when transformers' CoT steps are supervised by a gradient-descent teacher, they can learn to implement gradient descent for in-context weight prediction in linear regression. In this paper, we study the same in-context weight prediction task but ask whether CoT reasoning can go beyond merely imitating the teacher algorithm. We show that, after initial supervision from a gradient-descent teacher, further trajectory-level supervision using the true regression weights leads the model to implement the Heavy-Ball method, thereby achieving acceleration over the original teacher. Notably, this accelerated algorithm emerges without supervision from any Heavy-Ball teacher. Our results provide a concrete theoretical example in which transformer reasoning can discover new algorithms through training, rather than merely imitate the algorithm used for supervision.

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

↑