arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.12508cs.LG
收藏

理解 Transformer 中的泛化:良性与有害过拟合下的误差界与训练动态

Understanding Generalization in Transformers: Error Bounds and Training Dynamics Under Benign and Harmful Overfitting

Zhongtai Securities Institute for Financial Studies, Shandong University(山东大学中泰证券金融研究院);School of Artificial Intelligence, Beijing Normal University(北京师范大学人工智能学院);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)

Yingying Zhang, Zhenyu Wu, Jian Li, Yong Liu

AI总结:

本文研究带标签翻转噪声的两层 Transformer,在不同 SNR 下刻画良性与有害过拟合的三阶段训练动态及泛化误差界,并通过实验验证理论预测。

摘要:

Transformer 是许多成功大规模模型的基础架构,表现出过拟合训练数据同时在未见数据上保持强泛化能力的特性,这一现象被称为良性过拟合。然而,在良性过拟合背景下,关于训练动态如何影响误差界的研究仍然有限。本文通过为带有标签翻转噪声的两层 Transformer 建立泛化理论来弥补这一空白。具体而言,我们给出了在不同信噪比(SNR)下良性过拟合与有害过拟合的泛化误差界,其中训练动态被划分为三个不同阶段,每个阶段都有相应的误差界。此外,我们进行了大量实验,以识别影响 Transformer 测试误差的关键因素。实验结果与理论预测高度一致,验证了我们的发现。

英文摘要:

Transformers serve as the foundational architecture for many successful large-scale models, demonstrating the ability to overfit the training data while maintaining strong generalization on unseen data, a phenomenon known as benign overfitting. However, research on how the training dynamics influence error bounds within the context of benign overfitting has been limited. This paper addresses this gap by developing a generalization theory for a two-layer transformer with labeled flip noise. Specifically, we present generalization error bounds for both benign and harmful overfitting under varying signal-to-noise ratios (SNR), where the training dynamics are categorized into three distinct stages, each with its corresponding error bounds. Additionally, we conduct extensive experiments to identify key factors that influence test errors in transformers. Our experimental results align closely with the theoretical predictions, validating our findings.

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

↑