注意力已不再是唯一所需
Attention Is Not All You Need Anymore
AI总结:
本文提出一类名为Extractor的自注意力替代组件,其中SHE可明显提升Transformer性能,简化版本HE、WE和ME在更低计算与内存复杂度下接近或优于自注意力机制,并具有更短关键路径和更快运行潜力。
摘要:
近年来,流行的Transformer架构在包括自然语言处理和计算机视觉在内的许多应用领域取得了巨大成功。许多现有工作旨在通过牺牲性能来降低Transformer中自注意力机制的计算和内存复杂度。然而,性能是Transformer持续成功的关键。本文提出了一类可直接替换Transformer中自注意力机制的组件,称为Extractor。作为示例,提出了四种类型的Extractor,即超高性能Extractor(SHE)、更高性能Extractor(HE)、值得采用的Extractor(WE)和极简Extractor(ME)。实验结果表明,用SHE替换自注意力机制可明显提升Transformer的性能,而SHE的简化版本,即HE、WE和ME,在计算和内存复杂度更低的情况下,性能接近或优于自注意力机制。此外,所提出的Extractor由于计算关键路径短得多,有潜力或能够比自注意力机制运行得更快。另外,本文使用变长离散时间马尔可夫链对文本生成背景下的序列预测问题进行了形式化描述,并基于我们的理解对Transformer进行了回顾。
英文摘要:
In recent years, the popular Transformer architecture has achieved great success in many application areas, including natural language processing and computer vision. Many existing works aim to reduce the computational and memory complexity of the self-attention mechanism in the Transformer by trading off performance. However, performance is key for the continuing success of the Transformer. In this paper, a family of drop-in replacements for the self-attention mechanism in the Transformer, called the Extractors, is proposed. Four types of the Extractors, namely the super high-performance Extractor (SHE), the higher-performance Extractor (HE), the worthwhile Extractor (WE), and the minimalist Extractor (ME), are proposed as examples. Experimental results show that replacing the self-attention mechanism with the SHE evidently improves the performance of the Transformer, whereas the simplified versions of the SHE, i.e., the HE, the WE, and the ME, perform close to or better than the self-attention mechanism with less computational and memory complexity. Furthermore, the proposed Extractors have the potential or are able to run faster than the self-attention mechanism since their critical paths of computation are much shorter. Additionally, the sequence prediction problem in the context of text generation is formulated using variable-length discrete-time Markov chains, and the Transformer is reviewed based on our understanding.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。