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

更精确的Transformer泛化界限

Sharper Generalization Bounds for Transformer

School of Mathematical Sciences, Capital Normal University, 100048 Beijing, China(首都师范大学数学学院);Advanced Institute of Information Technology, Peking University(北京大学信息科学技术高级研究院);Wangxuan Institute of Computer Technology, Peking University, China, 100871(北京大学王先计算机技术研究所);PKU-Wuhan Institute for Artificial Intelligence(北大-武汉人工智能研究所);Xiangjiang Laboratory, Changsha 410000, China(湘江实验室);Guanghua School of Management, Peking University, Beijing, China, 100871(北京大学光华管理学院);School of Artificial Intelligence, Beihang University, 100191 Beijing, China(北航人工智能学院)

Yawen Li, Tao Hu, Zhouhui Lian, Wan Tian, Yijie Peng, Huiming Zhang, Zhongyi Li

AI总结:

本文基于偏移Rademacher复杂性,推导了不同Transformer架构的更精确泛化界限,通过覆盖数和矩阵秩推导出最优收敛率的泛化界限,并扩展到无界特征分布。

摘要:

本文研究了Transformer模型的泛化误差界限。基于偏移Rademacher复杂性,我们推导了不同Transformer架构的更精确泛化界限,包括单层单头、单层多头和多层Transformer。我们首先将Transformer的超额风险表示为偏移Rademacher复杂性的函数。通过利用其与相应假设空间经验覆盖数的联系,我们获得了达到最优收敛率(常数因子内)的超额风险界限。然后通过上界覆盖数,利用矩阵秩和矩阵范数推导出更精确的超额风险界限。最后,我们放松了特征映射的有界假设,将理论结果扩展到无界(亚高斯)特征和厚尾分布的设置。

英文摘要:

This paper studies generalization error bounds for Transformer models. Based on the offset Rademacher complexity, we derive sharper generalization bounds for different Transformer architectures, including single-layer single-head, single-layer multi-head, and multi-layer Transformers. We first express the excess risk of Transformers in terms of the offset Rademacher complexity. By exploiting its connection with the empirical covering numbers of the corresponding hypothesis spaces, we obtain excess risk bounds that achieve optimal convergence rates up to constant factors. We then derive refined excess risk bounds by upper bounding the covering numbers of Transformer hypothesis spaces using matrix ranks and matrix norms, leading to precise, architecture-dependent generalization bounds. Finally, we relax the boundedness assumption on feature mappings and extend our theoretical results to settings with unbounded (sub-Gaussian) features and heavy-tailed distributions.

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

↑