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

用于文本生成模型的鸟眼Transformers

Bird-Eye Transformers for Text Generation Models

University of Oxford(牛津大学)

Lei Sha, Yuhang Song, Yordan Yordanov, Tommaso Salvatori, Thomas Lukasiewicz

摘要:

Transformers在机器翻译中取得巨大成功后,已经成为文本生成模型中不可或缺的模块。以前的工作的~ Transformers的成功归因于查询键值点积注意,它提供了一个强大的电感偏置的全连接的令牌图。然而,我们发现自我注意力有严重的局限性。在预测第(i+1)个token时,自我注意只把第i个token作为信息收集器,倾向于对与自己相似的token赋予较高的注意权重。因此,在第i个令牌之前发生的大多数历史信息都没有被考虑在内。基于这一观察,在本文中,我们提出了一种新的架构,称为鸟瞰Transformer(BET),这进一步提高Transformers的性能,通过重新加权自我注意力,鼓励它更专注于重要的历史信息。我们对多个文本生成任务进行了实验,包括机器翻译(2个数据集)和语言模型(3个数据集)。这些实验结果表明,我们提出的模型实现了更好的性能比基线Transformer架构上的所有数据集。代码发布于:\url{https://sites.google.com/view/bet-transformer/home}。

英文摘要:

Transformers have become an indispensable module for text generation models since their great success in machine translation. Previous works attribute the~success of transformers to the query-key-value dot-product attention, which provides a robust inductive bias by the fully connected token graphs. However, we found that self-attention has a severe limitation. When predicting the (i+1)-th token, self-attention only takes the i-th token as an information collector, and it tends to give a high attention weight to those tokens similar to itself. Therefore, most of the historical information that occurred before the i-th token is not taken into consideration. Based on this observation, in this paper, we propose a new architecture, called bird-eye transformer(BET), which goes one step further to improve the performance of transformers by reweighting self-attention to encourage it to focus more on important historical information. We have conducted experiments on multiple text generation tasks, including machine translation (2 datasets) and language models (3 datasets). These experimental~results show that our proposed model achieves a better performance than the baseline transformer architectures on~all~datasets. The code is released at: \url{https://sites.google.com/view/bet-transformer/home}.

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

↑