A mixture of h - 1 heads is better than h heads

28Citations
Citations of this article
177Readers
Mendeley users who have this article in their library.

Abstract

Multi-head attentive neural architectures have achieved state-of-the-art results on a variety of natural language processing tasks. Evidence has shown that they are overparameterized; attention heads can be pruned without significant performance loss. In this work, we instead “reallocate” them-the model learns to activate different heads on different inputs. Drawing connections between multi-head attention and mixture of experts, we propose the mixture of attentive experts model (MAE). MAE is trained using a block coordinate descent algorithm that alternates between updating (1) the responsibilities of the experts and (2) their parameters. Experiments on machine translation and language modeling show that MAE outperforms strong baselines on both tasks. Particularly, on the WMT14 English to German translation dataset, MAE improves over “transformer-base” by 0.8 BLEU, with a comparable number of parameters. Our analysis shows that our model learns to specialize different experts to different inputs.

Cite

CITATION STYLE

APA

Peng, H., Schwartz, R., Li, D., & Smith, N. A. (2020). A mixture of h - 1 heads is better than h heads. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (pp. 6566–6577). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2020.acl-main.587

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free