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

利用胶囊网络提高多头注意力

Improving Multi-Head Attention with Capsule Networks

Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学)

Shuhao Gu, Yang Feng

摘要:

多头注意力通过在不同的子空间中计算出多个版本的注意力来推进神经机器翻译,但忽视子空间之间的语义重叠增加了翻译的难度,从而阻碍了翻译性能的进一步提高。本文利用胶囊网络对多个注意力头部的信息进行梳理,从而实现相似信息的聚类和独特信息的保留。为此,我们采用了动态路由和EM路由两种路由机制,以实现分簇和分离。我们对汉英和英德翻译任务进行了实验,并在强Transformer基线上获得了一致的改善。

英文摘要:

Multi-head attention advances neural machine translation by working out multiple versions of attention in different subspaces, but the neglect of semantic overlapping between subspaces increases the difficulty of translation and consequently hinders the further improvement of translation performance. In this paper, we employ capsule networks to comb the information from the multiple heads of the attention so that similar information can be clustered and unique information can be reserved. To this end, we adopt two routing mechanisms of Dynamic Routing and EM Routing, to fulfill the clustering and separating. We conducted experiments on Chinese-to-English and English-to-German translation tasks and got consistent improvements over the strong Transformer baseline.

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

↑