arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.19345cs.LGcs.CVstat.ML
收藏

揭示视觉中Transformer的良性过拟合:训练动态、收敛性与泛化性

Unveil Benign Overfitting for Transformer in Vision: Training Dynamics, Convergence, and Generalization

Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));RIKEN AIP(理化学研究所人工智能项目);University of Tokyo(东京大学)

Jiarui Jiang, Wei Huang, Miao Zhang, Taiji Suzuki, Liqiang Nie

AI总结:

本文首次从良性过拟合视角研究视觉Transformer,通过分析自注意力加全连接层在梯度下降下的训练动态,基于信噪比建立了区分小测试误差与大测试误差的清晰条件,并给出泛化性理论保证。

摘要:

Transformer在近期大型基础模型的发展中展现出强大能力。特别是,视觉Transformer(ViT)为视觉领域带来了革命性变化,在实验方面取得了显著成就。然而,它们的理论能力,尤其是在训练至过拟合训练数据时的泛化能力,仍未得到充分理解。为填补这一空白,本文深入探讨了视觉中Transformer的良性过拟合视角。为此,我们研究了由一个带softmax的自注意力层和一个全连接层组成的Transformer在某一数据分布模型上通过梯度下降进行优化的过程。通过开发应对softmax带来的挑战以及Transformer优化中多个权重相互依赖特性的技术,我们成功刻画了训练动态,并实现了训练后的泛化。我们的结果基于数据模型中的信噪比,建立了一个能够区分小测试误差阶段与大测试误差区域的清晰条件。理论结果进一步通过实验模拟得到验证。据我们所知,这是首个刻画Transformer良性过拟合的工作。

英文摘要:

Transformers have demonstrated great power in the recent development of large foundational models. In particular, the Vision Transformer (ViT) has brought revolutionary changes to the field of vision, achieving significant accomplishments on the experimental side. However, their theoretical capabilities, particularly in terms of generalization when trained to overfit training data, are still not fully understood. To address this gap, this work delves deeply into the benign overfitting perspective of transformers in vision. To this end, we study the optimization of a Transformer composed of a self-attention layer with softmax followed by a fully connected layer under gradient descent on a certain data distribution model. By developing techniques that address the challenges posed by softmax and the interdependent nature of multiple weights in transformer optimization, we successfully characterized the training dynamics and achieved generalization in post-training. Our results establish a sharp condition that can distinguish between the small test error phase and the large test error regime, based on the signal-to-noise ratio in the data model. The theoretical results are further verified by experimental simulation. To the best of our knowledge, this is the first work to characterize benign overfitting for Transformers.

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

↑