Improving Rare Word Translation With Dictionaries and Attention Masking

Kenneth J. Sible, David Chiang
8/17/2024
2 citations
cs.CLcs.LG

Official code: kennethsible/dictionary-attention (1 star, Python, MIT, last commit 2025-03-25).

Abstract

In machine translation, rare words continue to be a problem for the dominant encoder-decoder architecture, especially in low-resource and out-of-domain translation settings. Human translators solve this problem with monolingual or bilingual dictionaries.

Show full abstract

In this paper, we propose appending definitions from a bilingual dictionary to source sentences and using attention masking to link together rare words with their definitions. We find that including definitions for rare words improves performance by up to 1.0 BLEU and 1.6 MacroF1.

View on arXivView PDF

Code Implementations(1)

MIT

Improving Rare Word Translation with Dictionaries and Attention Masking

10PythonDec 20, 20231 years agoMIT
bilingual-dictionarymachine-translationmasked-attention

Similar Papers

Cite this paper

@article{sible2024improving,
  title  = {Improving Rare Word Translation With Dictionaries and Attention Masking},
  author = {Kenneth J. Sible and David Chiang},
  year   = {2024},
  eprint = {2408.09075},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.09075v2}
}

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

Discussion