Improving Rare Word Translation With Dictionaries and Attention Masking
2024-08-17Code Available0· sign in to hype
Kenneth J. Sible, David Chiang
Code Available — Be the first to reproduce this paper.
ReproduceCode
- github.com/kennethsible/dictionary-attentionOfficialIn paperpytorch★ 1
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. 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.