arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1810.10183cs.CLcs.AI
收藏

具有分歧正则化的多头注意力

Multi-Head Attention with Disagreement Regularization

The Chinese University of Hong Kong(香港中文大学);Tencent AI Lab(腾讯人工智能实验室);University of Macau(澳门大学)

Jian Li, Zhaopeng Tu, Baosong Yang, Michael R. Lyu, Tong Zhang

摘要:

多头注意力要求能够在不同位置共同注意来自不同表示子空间的信息。在这项工作中,我们引入了一个不一致的正则化,明确鼓励多个注意头之间的多样性。具体来说,我们提出了三种类型的分歧正则化,分别鼓励子空间,参加的位置,并与每个注意头的输出表示是不同的,从其他头。在广泛使用的WMT 14英-德和WMT 17汉英翻译任务上的实验结果证明了该方法的有效性和通用性。

英文摘要:

Multi-head attention is appealing for the ability to jointly attend to information from different representation subspaces at different positions. In this work, we introduce a disagreement regularization to explicitly encourage the diversity among multiple attention heads. Specifically, we propose three types of disagreement regularization, which respectively encourage the subspace, the attended positions, and the output representation associated with each attention head to be different from other heads. Experimental results on widely-used WMT14 English-German and WMT17 Chinese-English translation tasks demonstrate the effectiveness and universality of the proposed approach.

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

↑