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

通过梯度下降训练的Transformer可以证明性地学习某一类教师模型

Transformers Trained via Gradient Descent Can Provably Learn a Class of Teacher Models

The University of Hong Kong(香港大学);University of California, Los Angeles(加州大学洛杉矶分校)

Chenyang Zhang, Qingyue Zhao, Quanquan Gu, Yuan Cao

AI总结:

本文研究了通过Transformer学习各类教师模型的理论基础,证明单层Transformer能恢复教师模型的所有参数块并达到最优损失,同时展示其在分布外数据上的泛化能力。

摘要:

Transformer在广泛应用中取得了巨大成功,但其理论基础仍待探索。本文理论研究了利用Transformer作为学生模型学习某一类教师模型的可能性。分析的教师模型包括卷积层、图卷积层以及多种经典统计学习模型,如稀疏令牌选择模型和组稀疏线性预测器。当学习此类教师模型时,证明单层Transformer使用简化版的'位置-only'注意力机制可以恢复教师模型的所有参数块,从而达到最优总体损失。基于训练好的Transformer对教师模型的高效模仿,进一步证明其在轻度假设下能良好泛化到广泛分布外数据。分析的关键是识别各种学习任务中共享的基本双线性结构,从而为将这些任务视为教师模型时建立统一的学习保证。

英文摘要:

Transformers have achieved great success across a wide range of applications, yet the theoretical foundations underlying their success remain largely unexplored. To demystify the strong capacities of transformers applied to versatile scenarios and tasks, we theoretically investigate utilizing transformers as students to learn from a class of teacher models. Specifically, the teacher models covered in our analysis include convolution layers with average pooling, graph convolution layers, and various classic statistical learning models, including a variant of sparse token selection models [Sanford et al., 2023, Wang et al., 2024] and group-sparse linear predictors [Zhang et al., 2025]. When learning from this class of teacher models, we prove that one-layer transformers with simplified "position-only'' attention can successfully recover all parameter blocks of the teacher models, thus achieving the optimal population loss. Building upon the efficient mimicry of trained transformers towards teacher models, we further demonstrate that they can generalize well to a broad class of out-of-distribution data under mild assumptions. The key in our analysis is to identify a fundamental bilinear structure shared by various learning tasks, which enables us to establish unified learning guarantees for these tasks when treating them as teachers for transformers.

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

↑