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

寻找多头注意力的支柱

Finding the Pillars of Strength for Multi-Head Attention

Nanyang Technological University(南洋理工大学)

Jinjie Ni, Rui Mao, Zonglin Yang, Han Lei, Erik Cambria

AI总结:

针对多头注意力冗余与过参数化问题,提出分组头注意力与投票保留剪枝,以最小资源聚焦代表性特征,在三个任务上提升性能并压缩参数。

摘要:

近期研究揭示了多头注意力(MHA)的一些问题,如冗余和过参数化。具体而言,MHA的头最初设计用于从不同的表示子空间获取信息,而先前研究发现一些注意力头可能学习到相似的特征,并且可以在不损害性能的情况下被剪枝。受最小冗余特征选择的启发,我们假设以最少的资源关注最具代表性和独特性的特征可以缓解上述问题,并导致更有效和高效的多头注意力。特别地,我们提出了分组头注意力(Grouped Head Attention),通过自监督的分组约束训练注意力头,其中每个组关注一个必要但独特的特征子集。我们另外提出了一种投票保留(Voting-to-Stay)程序来移除冗余头,从而实现更轻权重的Transformer。此外,我们的方法在三个成熟任务上取得了显著的性能提升,同时大幅压缩了参数。

英文摘要:

Recent studies have revealed some issues of Multi-Head Attention (MHA), e.g., redundancy and over-parameterization. Specifically, the heads of MHA were originally designed to attend to information from different representation subspaces, whereas prior studies found that some attention heads likely learn similar features and can be pruned without harming performance. Inspired by the minimum-redundancy feature selection, we assume that focusing on the most representative and distinctive features with minimum resources can mitigate the above issues and lead to more effective and efficient MHAs. In particular, we propose Grouped Head Attention, trained with a self-supervised group constraint that group attention heads, where each group focuses on an essential but distinctive feature subset. We additionally propose a Voting-to-Stay procedure to remove redundant heads, thus achieving a transformer with lighter weights. Moreover, our method achieves significant performance gains on three well-established tasks while considerably compressing parameters.

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

↑