English

Multi-branch Attentive Transformer

Computation and Language 2020-07-28 v2

Abstract

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}.

Keywords

Cite

@article{arxiv.2006.10270,
  title  = {Multi-branch Attentive Transformer},
  author = {Yang Fan and Shufang Xie and Yingce Xia and Lijun Wu and Tao Qin and Xiang-Yang Li and Tie-Yan Liu},
  journal= {arXiv preprint arXiv:2006.10270},
  year   = {2020}
}

Comments

17 pages

R2 v1 2026-06-23T16:25:19.466Z