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

基于动态值注意力的Transformer重构

Transformer Reconstructed with Dynamic Value Attention

College of Artificial Intelligence(人工智能学院);China University of Petroleum (Beijing)(中国石油大学(北京))

Xiaowei Wang

AI总结:

本文提出动态值注意力(DVA)方法,通过动态分配值减少冗余头和前馈网络,提升Transformer的训练效率和学习能力。

摘要:

自从2017年Transformer首次发表以来,已有若干工作试图对其进行优化。然而,Transformer的主要结构保持不变,忽略了其一个主要内在限制,即每个头中的每个查询使用相同的静态值。Transformer本身试图通过实现多头注意力来解决这个问题,但头的数量受到复杂性的限制。我提出了一种方法,为每个查询动态决定一个值,这可以减少所有冗余的头,只保留一个。因此,后续的前馈网络可以完全去除,因为每个修改后的嵌入已经获取了足够有用的值,远超上下文范围。结果表明,在Transformer中只需要一个头的动态值注意力(DVA)。根据实验,DVA可能比原始Transformer节省37.6%的训练时间,同时提高学习能力。

英文摘要:

Since transformer was firstly published in 2017, several works have been proposed to optimize it. However, the major structure of transformer remains unchanged, ignoring one of its main intrinsic limitations, which is the same static value is used for every query in a head. Transformer itself tries to solve this problem by implementing multi-head attentions, yet the number of heads is limited by complexity. I propose a method to decide a value for each query dynamically, which could cut down all the redundant heads, keeping only one. Consequently, the following feed forward network could be cut down entirely, as each revised embedding has already fetched enough useful values far beyond the context. As a result, a single-head Dynamic Value Attention (DVA) is all you need in a transformer. According to the experiment, DVA may save 37.6% training time than the original transformer meanwhile increasing the learning capability.

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

↑