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

基于transformer的语言模型中的翻译不变自注意

The Case for Translation-Invariant Self-Attention in Transformer-Based Language Models

KTH Royal Institute of Technology(瑞典皇家理工学院)

Ulme Wennberg, Gustav Eje Henter

摘要:

编码位置信息的机制是基于转换器的语言模型的核心。在本文中,我们分析了现有的语言模型的位置嵌入,发现强有力的证据,翻译不变性,无论是嵌入本身和他们的自我注意的影响。翻译不变性的程度在训练过程中增加,并与模型性能呈正相关。我们的研究结果使我们提出了一种不变性自我注意(TISA),它以一种可解释的方式解释了标记之间的相对位置,而不需要传统的位置嵌入。我们的建议有几个理论上的优势,现有的位置表示方法。实验结果表明,该算法在GLUE任务上比常规ALBERT算法有了明显的改进,而位置参数的增加数量级更少。

英文摘要:

Mechanisms for encoding positional information are central for transformer-based language models. In this paper, we analyze the position embeddings of existing language models, finding strong evidence of translation invariance, both for the embeddings themselves and for their effect on self-attention. The degree of translation invariance increases during training and correlates positively with model performance. Our findings lead us to propose translation-invariant self-attention (TISA), which accounts for the relative position between tokens in an interpretable fashion without needing conventional position embeddings. Our proposal has several theoretical advantages over existing position-representation approaches. Experiments show that it improves on regular ALBERT on GLUE tasks, while only adding orders of magnitude less positional parameters.

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

↑