arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2109.12788cs.CLcs.AI
收藏

用于语言理解的乘性位置感知Transformer模型

Multiplicative Position-aware Transformer Models for Language Understanding

AWS AI(亚马逊网络服务人工智能研究院)

Zhiheng Huang, Davis Liang, Peng Xu, Bing Xiang

摘要:

Transformer模型利用了自注意力等架构改进,在自然语言处理(NLP)任务上表现非常出色。自我注意力机制是位置不可知的。为了捕获位置排序信息,已经提出了各种风格的绝对和相对位置嵌入。然而,没有系统的分析,这些方法的贡献和全面的比较是在文献中失踪。在本文中,我们回顾了现有的主要位置嵌入方法,并使用我们自己的实现比较了它们在下游NLP任务上的准确性。我们还提出了一种新的乘法嵌入方法,导致优越的精度相比,现有的方法。最后,我们证明了我们提出的嵌入方法,作为默认绝对位置嵌入的直接替代,可以改进SQuAD1.1和SQuAD2.0数据集上的RoBERTa-base和RoBERTa-large模型。

英文摘要:

Transformer models, which leverage architectural improvements like self-attention, perform remarkably well on Natural Language Processing (NLP) tasks. The self-attention mechanism is position agnostic. In order to capture positional ordering information, various flavors of absolute and relative position embeddings have been proposed. However, there is no systematic analysis on their contributions and a comprehensive comparison of these methods is missing in the literature. In this paper, we review major existing position embedding methods and compare their accuracy on downstream NLP tasks, using our own implementations. We also propose a novel multiplicative embedding method which leads to superior accuracy when compared to existing methods. Finally, we show that our proposed embedding method, served as a drop-in replacement of the default absolute position embedding, can improve the RoBERTa-base and RoBERTa-large models on SQuAD1.1 and SQuAD2.0 datasets.

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

↑