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

多分支有向Transformer

Multi-branch Attentive Transformer

University of Science and Technology of China(中国科学技术大学);Microsoft Research Asia(微软亚洲研究院)

Yang Fan, Shufang Xie, Yingce Xia, Lijun Wu, Tao Qin, Xiang-Yang Li, Tie-Yan Liu

摘要:

虽然多分支体系结构是计算机视觉任务成功的关键因素之一,但在自然语言处理中,特别是序列学习任务中,它还没有得到很好的研究。在这项工作中,我们提出了一个简单而有效的变形Transformer称为多分支注意Transformer(简称MAT),其中的注意层是多个分支的平均值,每个分支是一个独立的多头注意力层。我们利用两种训练技术来正则化训练:drop-branch,在训练期间随机删除单个分支,以及近端初始化,使用预训练的Transformer模型来初始化多个分支。在机器翻译、代码生成和自然语言理解方面的实验表明,这种简单的Transformer变体带来了显著的改进。我们的代码可在\url{https://github.com/HA-Transformer}上获得。

英文摘要:

While the multi-branch architecture is one of the key ingredients to the success of computer vision tasks, it has not been well investigated in natural language processing, especially sequence learning tasks. In this work, we propose a simple yet effective variant of Transformer called multi-branch attentive Transformer (briefly, MAT), where the attention layer is the average of multiple branches and each branch is an independent multi-head attention layer. We leverage two training techniques to regularize the training: drop-branch, which randomly drops individual branches during training, and proximal initialization, which uses a pre-trained Transformer model to initialize multiple branches. Experiments on machine translation, code generation and natural language understanding demonstrate that such a simple variant of Transformer brings significant improvements. Our code is available at \url{https://github.com/HA-Transformer}.

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

↑