Mask-Align: Self-Supervised Neural Word Alignment

Chi Chen, Maosong Sun, Yang Liu
12/13/2020
cs.CL
contrastive-ssl

Official code: THUNLP-MT/Mask-Align (59 stars, Python, BSD-3-Clause, last commit 2021-05-10).

Abstract

Word alignment, which aims to align translationally equivalent words between source and target sentences, plays an important role in many natural language processing tasks. Current unsupervised neural alignment methods focus on inducing alignments from neural machine translation models, which does not leverage the full context in the target sequence.

Show full abstract

In this paper, we propose Mask-Align, a self-supervised word alignment model that takes advantage of the full context on the target side. Our model masks out each target token and predicts it conditioned on both source and the remaining target tokens. This two-step process is based on the assumption that the source token contributing most to recovering the masked target token should be aligned. We also introduce an attention variant called leaky attention, which alleviates the problem of unexpected high cross-attention weights on special tokens such as periods. Experiments on four language pairs show that our model outperforms previous unsupervised neural aligners and obtains new state-of-the-art results.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Code for our paper "Mask-Align: Self-Supervised Neural Word Alignment" in ACL 2021

5920Python, ShellMay 10, 20215 years agoBSD-3-Clause
machine-translationself-supervised-learningword-alignment

Similar Papers

Cite this paper

@article{chen2020maskalign,
  title  = {Mask-Align: Self-Supervised Neural Word Alignment},
  author = {Chi Chen and Maosong Sun and Yang Liu},
  year   = {2020},
  eprint = {2012.07162},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.07162}
}

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

Discussion