Gaussian Multi-head Attention for Simultaneous Machine Translation

Shaolei Zhang, Yang Feng
3/17/2022
cs.CLcs.AI
transformer-attention

Official code: ictnlp/GMA (11 stars, Python, MIT, last commit 2022-03-31).

Abstract

Simultaneous machine translation (SiMT) outputs translation while receiving the streaming source inputs, and hence needs a policy to determine where to start translating. The alignment between target and source words often implies the most informative source word for each target word, and hence provides the unified control over translation quality and latency, but unfortunately the existing SiMT methods do not explicitly model the alignment to perform the control.

Show full abstract

In this paper, we propose Gaussian Multi-head Attention (GMA) to develop a new SiMT policy by modeling alignment and translation in a unified manner. For SiMT policy, GMA models the aligned source position of each target word, and accordingly waits until its aligned position to start translating. To integrate the learning of alignment into the translation model, a Gaussian distribution centered on predicted aligned position is introduced as an alignment-related prior, which cooperates with translation-related soft attention to determine the final attention. Experiments on En-Vi and De-En tasks show that our method outperforms strong baselines on the trade-off between translation and latency.

View on arXivView PDF

Code Implementations(1)

ictnlp/GMAOfficial100%
MIT

Code for ACL 2022 findings paper "Gaussian Multi-head Attention for Simultaneous Machine Translation"

114Python, CudaMar 14, 20224 years agoMIT
machine-translationsimultaneous-translation

Similar Papers

Cite this paper

@article{zhang2022gaussian,
  title  = {Gaussian Multi-head Attention for Simultaneous Machine Translation},
  author = {Shaolei Zhang and Yang Feng},
  year   = {2022},
  eprint = {2203.09072},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09072}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.09072.svg)](https://codeofpaper.com/paper/2203.09072)

Discussion