Do Context-Aware Translation Models Pay the Right Attention?

Kayo Yin, Patrick Fernandes, Danish Pruthi, Aditi Chaudhary, André F. T. Martins +1 more
5/14/2021
cs.CLcs.AIcs.LG

Official code: neulab/contextual-mt (51 stars, Python, last commit 2025-09-22).

Abstract

Context-aware machine translation models are designed to leverage contextual information, but often fail to do so. As a result, they inaccurately disambiguate pronouns and polysemous words that require context for resolution.

Show full abstract

In this paper, we ask several questions: What contexts do human translators use to resolve ambiguous words? Are models paying large amounts of attention to the same context? What if we explicitly train them to do so? To answer these questions, we introduce SCAT (Supporting Context for Ambiguous Translations), a new English-French dataset comprising supporting context words for 14K translations that professional translators found useful for pronoun disambiguation. Using SCAT, we perform an in-depth analysis of the context used to disambiguate, examining positional and lexical characteristics of the supporting words. Furthermore, we measure the degree of alignment between the model's attention scores and the supporting context from SCAT, and apply a guided attention strategy to encourage agreement between the two.

View on arXivView PDF

Code Implementations(1)

A repository with the code related to experiments around context-aware machine translation

5110Python, Jupyter NotebookSep 2, 20201 years ago

Similar Papers

Cite this paper

@article{yin2021contextaware,
  title  = {Do Context-Aware Translation Models Pay the Right Attention?},
  author = {Kayo Yin and Patrick Fernandes and Danish Pruthi and Aditi Chaudhary and André F. T. Martins and Graham Neubig},
  year   = {2021},
  eprint = {2105.06977},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.06977}
}

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

Discussion