Generating Diverse Translation by Manipulating Multi-Head Attention
Preprint
Abstract
Transformer model has been widely used on machine translation tasks and obtained state-of-the-art results. In this paper, we report an interesting phenomenon in its encoder-decoder multi-head attention: different attention heads of the final decoder layer align to different word translation candidates. We empirically verify this discovery and propose a method to generate diverse translations by manipulating heads. Furthermore, we make use of these diverse translations with the back-translation technique for better data augmentation. Experiment results show that our method generates diverse translations without severe drop in translation quality. Experiments also show that back-translation with these diverse translations could bring significant improvement on performance on translation tasks. An auxiliary experiment of conversation response generation task proves the effect of diversity as well.Keywords
All Related Versions
This publication has 19 references indexed in Scilit:
- Generating Sentences by Editing PrototypesTransactions of the Association for Computational Linguistics, 2018
- A Deep Generative Framework for Paraphrase GenerationProceedings of the AAAI Conference on Artificial Intelligence, 2018
- Diverse Beam Search for Improved Description of Complex ScenesProceedings of the AAAI Conference on Artificial Intelligence, 2018
- Understanding Back-Translation at Scale2018
- Diversity-Promoting GAN: A Cross-Entropy Based Generative Adversarial Network for Diversified Text Generation2018
- Generating More Interesting Responses in Neural Conversation Models with Distributional Constraints2018
- Linguistically-Informed Self-Attention for Semantic Role Labeling2018
- Multi-Head Attention with Disagreement Regularization2018
- Generating High-Quality and Informative Conversation Responses with Sequence-to-Sequence Models2017
- Effective Approaches to Attention-based Neural Machine Translation2015