arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2310.12680cs.LGmath.OCstat.ML
收藏

关于多头注意力的优化与泛化

On the Optimization and Generalization of Multi-head Attention

University of British Columbia(不列颠哥伦比亚大学);University of California, Santa Barbara(加州大学圣巴巴拉分校)

Puneesh Deora, Rouzbeh Ghaderi, Hossein Taheri, Christos Thrampoulidis

AI总结:

针对多头注意力优化与泛化研究不足的问题,本文推导了单层多头自注意力模型在梯度下降训练下的收敛与泛化保证,并验证了初始化条件在简单模型上的满足性。

摘要:

Transformer核心机制即Attention机制的训练与泛化动力学仍研究不足。此外,现有分析主要聚焦于单头注意力。受训练全连接网络时过参数化所展现优势的启发,我们研究了使用多个注意力头在优化与泛化方面的潜在优势。为此,在数据满足适当可实现性条件下,我们推导了单层多头自注意力模型梯度下降训练的收敛与泛化保证。随后,我们建立了初始化的初始条件以确保可实现性成立。最后,我们证明了这些条件对于一个简单的tokenized-mixture模型是满足的。我们预期该分析可扩展至各种数据模型与架构变体。

英文摘要:

The training and generalization dynamics of the Transformer's core mechanism, namely the Attention mechanism, remain under-explored. Besides, existing analyses primarily focus on single-head attention. Inspired by the demonstrated benefits of overparameterization when training fully-connected networks, we investigate the potential optimization and generalization advantages of using multiple attention heads. Towards this goal, we derive convergence and generalization guarantees for gradient-descent training of a single-layer multi-head self-attention model, under a suitable realizability condition on the data. We then establish primitive conditions on the initialization that ensure realizability holds. Finally, we demonstrate that these conditions are satisfied for a simple tokenized-mixture model. We expect the analysis can be extended to various data-model and architecture variations.

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

↑