Accurate Word Alignment Induction from Neural Machine Translation

Yun Chen, Yang Liu, Guanhua Chen, Xin Jiang, Qun Liu
4/30/2020
cs.CLcs.LG
transformer-attention

Official code: sufe-nlp/transformer-alignment (3 stars, Python, MIT, last commit 2023-04-04).

Abstract

Despite its original goal to jointly learn to align and translate, prior researches suggest that Transformer captures poor word alignments through its attention mechanism. In this paper, we show that attention weights DO capture accurate word alignments and propose two novel word alignment induction methods Shift-Att and Shift-AET.

Show full abstract

The main idea is to induce alignments at the step when the to-be-aligned target token is the decoder input rather than the decoder output as in previous work. Shift-Att is an interpretation method that induces alignments from the attention weights of Transformer and does not require parameter update or architecture change. Shift-AET extracts alignments from an additional alignment module which is tightly integrated into Transformer and trained in isolation with supervision from symmetrized Shift-Att alignments. Experiments on three publicly available datasets demonstrate that both methods perform better than their corresponding neural baselines and Shift-AET significantly outperforms GIZA++ by 1.4-4.8 AER points.

View on arXivView PDF

Code Implementations(1)

MIT

Code for EMNLP 2020 paper Accurate Word Alignment Induction from Neural Machine Translation

30Python, CudaApr 4, 20233 years agoMIT

Similar Papers

Cite this paper

@article{chen2020accurate,
  title  = {Accurate Word Alignment Induction from Neural Machine Translation},
  author = {Yun Chen and Yang Liu and Guanhua Chen and Xin Jiang and Qun Liu},
  year   = {2020},
  eprint = {2004.14837},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.14837}
}

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/2004.14837.svg)](https://codeofpaper.com/paper/2004.14837)

Discussion