Analyzing the Attention Heads for Pronoun Disambiguation in Context-aware Machine Translation Models

Paweł Mąka, Yusuf Can Semerci, Jan Scholtes, Gerasimos Spanakis
12/15/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: Pawel-M/context-mt-attention-analysis (0 stars, Apache-2.0, last commit 2025-05-16).

Abstract

In this paper, we investigate the role of attention heads in Context-aware Machine Translation models for pronoun disambiguation in the English-to-German and English-to-French language directions. We analyze their influence by both observing and modifying the attention scores corresponding to the plausible relations that could impact a pronoun prediction. Our findings reveal that while some heads do attend the relations of interest, not all of them influence the models' ability to disambiguate pronouns. We show that certain heads are underutilized by the models, suggesting that model performance could be improved if only the heads would attend one of the relations more strongly. Furthermore, we fine-tune the most promising heads and observe the increase in pronoun disambiguation accuracy of up to 5 percentage points which demonstrates that the improvements in performance can be solidified into the models' parameters.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
00PythonAug 9, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{mka2024analyzing,
  title  = {Analyzing the Attention Heads for Pronoun Disambiguation in Context-aware Machine Translation Models},
  author = {Paweł Mąka and Yusuf Can Semerci and Jan Scholtes and Gerasimos Spanakis},
  year   = {2024},
  eprint = {2412.11187},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.11187v1}
}

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

Discussion