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

基于协议协商的多头注意力信息聚合

Information Aggregation for Multi-Head Attention with Routing-by-Agreement

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

Jian Li, Baosong Yang, Zi-Yi Dou, Xing Wang, Michael R. Lyu, Zhaopeng Tu

摘要:

多头注意力因其能够从多个表征子空间中联合提取不同类型的信息而备受关注。关于信息聚合,通常的做法是使用连接,然后进行线性变换,这可能无法充分利用多头注意力的表现力。在这项工作中,我们提出了一个更强大的路由协议算法,以改善多头注意力的信息聚合。具体而言,路由算法基于部分和整体之间的一致性迭代地更新部分(即,从特定子空间学习的不同信息)应该被分配给整体(即,最终输出表示)的比例。语言探测任务和机器翻译任务的实验结果证明了先进的信息聚合比标准的线性变换的优越性。

英文摘要:

Multi-head attention is appealing for its ability to jointly extract different types of information from multiple representation subspaces. Concerning the information aggregation, a common practice is to use a concatenation followed by a linear transformation, which may not fully exploit the expressiveness of multi-head attention. In this work, we propose to improve the information aggregation for multi-head attention with a more powerful routing-by-agreement algorithm. Specifically, the routing algorithm iteratively updates the proportion of how much a part (i.e. the distinct information learned from a specific subspace) should be assigned to a whole (i.e. the final output representation), based on the agreement between parts and wholes. Experimental results on linguistic probing tasks and machine translation tasks prove the superiority of the advanced information aggregation over the standard linear transformation.

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

↑