Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned. Voita, E., Talbot, D., Moiseev, F., Sennrich, R., & Titov, I. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pages 5797–5808, Stroudsburg, PA, USA, 2019. Association for Computational Linguistics.
Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned [link]Paper  doi  abstract   bibtex   1 download  
Multi-head self-attention is a key component of the Transformer, a state-of-the-art architecture for neural machine translation. In this work we evaluate the contribution made by individual attention heads in the encoder to the overall performance of the model and analyze the roles played by them. We find that the most important and confident heads play consistent and often linguistically-interpretable roles. When pruning heads using a method based on stochastic gates and a differentiable relaxation of the L0 penalty, we observe that specialized heads are last to be pruned. Our novel pruning method removes the vast majority of heads without seriously affecting performance. For example, on the English-Russian WMT dataset, pruning 38 out of 48 encoder heads results in a drop of only 0.15 BLEU.
@inproceedings{Voita2019a,
abstract = {Multi-head self-attention is a key component of the Transformer, a state-of-the-art architecture for neural machine translation. In this work we evaluate the contribution made by individual attention heads in the encoder to the overall performance of the model and analyze the roles played by them. We find that the most important and confident heads play consistent and often linguistically-interpretable roles. When pruning heads using a method based on stochastic gates and a differentiable relaxation of the L0 penalty, we observe that specialized heads are last to be pruned. Our novel pruning method removes the vast majority of heads without seriously affecting performance. For example, on the English-Russian WMT dataset, pruning 38 out of 48 encoder heads results in a drop of only 0.15 BLEU.},
address = {Stroudsburg, PA, USA},
archivePrefix = {arXiv},
arxivId = {1905.09418},
author = {Voita, Elena and Talbot, David and Moiseev, Fedor and Sennrich, Rico and Titov, Ivan},
booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
doi = {10.18653/v1/P19-1580},
eprint = {1905.09418},
file = {:Users/shanest/Documents/Library/Voita et al/Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics/Voita et al. - 2019 - Analyzing Multi-Head Self-Attention Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned.pdf:pdf},
keywords = {method: attention,method: pruning},
pages = {5797--5808},
publisher = {Association for Computational Linguistics},
title = {{Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Pruned}},
url = {https://www.aclweb.org/anthology/P19-1580},
year = {2019}
}

Downloads: 1