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

注意力机制Token选择中的良性过拟合

Benign Overfitting in Token Selection of Attention Mechanism

Department of Computer Science, The University of Tokyo, Tokyo, Japan(东京大学计算机科学系)

Keitaro Sakamoto, Issei Sato

AI总结:

该研究聚焦带标签噪声分类任务中注意力机制的token选择问题,理论证明其可借助信噪比表征实现良性过拟合,还发现过拟合后延迟泛化的现象,并通过合成与真实数据集实验验证了结论。

摘要:

注意力机制是Transformer模型的核心组成部分,对Transformer的成功至关重要。但目前关于注意力如何学习选择token的理论认知仍处于新兴研究阶段。本文研究了带标签噪声的分类问题下,注意力机制的训练动力学与泛化能力。研究表明,借助信噪比(SNR)的表征,注意力机制的token选择可实现良性过拟合,即即便拟合了标签噪声,仍能保持高泛化性能。本研究还发现了一个有趣的现象:模型在初始过拟合阶段后,会延迟获得泛化能力。最后,我们通过合成数据集与真实世界数据集开展实验,验证了上述理论分析。

英文摘要:

Attention mechanism is a fundamental component of the transformer model and plays a significant role in its success. However, the theoretical understanding of how attention learns to select tokens is still an emerging area of research. In this work, we study the training dynamics and generalization ability of the attention mechanism under classification problems with label noise. We show that, with the characterization of signal-to-noise ratio (SNR), the token selection of attention mechanism achieves benign overfitting, i.e., maintaining high generalization performance despite fitting label noise. Our work also demonstrates an interesting delayed acquisition of generalization after an initial phase of overfitting. Finally, we provide experiments to support our theoretical analysis using both synthetic and real-world datasets.

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

↑