Analysing Coreference in Transformer Outputs

Ekaterina Lapshinova-Koltunski, Cristina España-Bonet, Josef van Genabith

Introduction

State-of-the-art Transformer models have revolutionized machine translation (MT), yet they often struggle with document-level coherence. A critical aspect of this is coreference—the ability to maintain consistent references to entities (e.g., people, objects) throughout a text. In English-to-German translation, this task is complicated by German's strict requirements for grammatical agreement in gender, number, and case. This paper investigates how different Transformer configurations handle coreference chains across different genres, moving beyond simple pronoun analysis to examine entire sequences of entity mentions.

Experimental Methodology

The researchers compared three distinct Transformer-based Neural Machine Translation (NMT) configurations to evaluate the impact of data scale and linguistic awareness:

  • S1 (Baseline): A standard Transformer model trained on a moderate dataset of 6 million parallel sentences.
  • S2 (Big Data): The same architecture trained on a significantly larger and noisier dataset of 18 million sentences, primarily leveraging ParaCrawl.
  • S3 (Coreference-Aware): Based on the S1 architecture but utilizing source text pre-processed with Stanford CoreNLP. This system injects explicit coreference metadata—such as tagging pronouns with the gender and number of their antecedents—to guide the translation process.
Table 1: Training data distribution and scaling factors for the three NMT systems.

The models were evaluated using the ParCorFull corpus, a specialized English-German parallel dataset manually annotated for coreference. This allowed the team to develop a detailed error typology covering gender, number, case, and lexical selection.

Genre-Specific Error Analysis

A key finding of the study is that coreference errors are highly dependent on the text genre. The researchers compared News (formal, noun-phrase heavy) and TED Talks (conversational, pronoun-heavy).

In TED talks, gender errors were the most prominent, accounting for 35-47% of all errors across the three systems. Models frequently defaulted to masculine forms (er) even when the context required feminine or neutral agreement. In contrast, the News genre saw a higher prevalence of "wrong word" errors in noun phrases, where the model failed to select the appropriate lexical item to maintain the coreference chain. Interestingly, the coreference-aware model (S3) showed a +1.1 BLEU point improvement in the TED genre, suggesting that explicit discourse information is most valuable in conversational contexts.

Figure 1: Distribution of coreference error types across genres (News vs. TED) and system configurations (S1, S2, S3).

Key Insights: "Translationese" and Explicitation

The analysis revealed a significant "translationese" effect. Machine-translated outputs contained approximately 30% more entity mentions and longer coreference chains than human-authored references. This suggests that MT systems tend toward explicitation—over-explaining or repeating nouns where a human would naturally use a pronoun or ellipsis.

Furthermore, the "Big Data" model (S2) often matched or exceeded the performance of the coreference-aware model (S3) in non-conversational tasks. This suggests that while structural linguistic knowledge is beneficial, sheer data volume can sometimes compensate for a lack of explicit discourse modeling by providing better lexical coverage and pattern recognition.

Conclusion and Future Directions

The study highlights that while Transformers are proficient at sentence-level translation, coreference remains a significant hurdle, particularly regarding gender bias and stylistic naturalness. The reliance on automatic tools like CoreNLP for S3 introduces potential noise; if the tool misidentifies a chain, the model learns incorrect associations. Future work should focus on exploring genres with even higher coreference density and developing more robust automated evaluation metrics for discourse quality.

Summary updated

BibTeX
@inproceedings{lapshinovakoltunski2019analysing,
  author = {Ekaterina Lapshinova-Koltunski and Cristina España-Bonet and Josef van Genabith},
  title = {{Analysing Coreference in Transformer Outputs}},
  booktitle = {DiscoMT @ EMNLP},
  year = {2019},
  doi = {10.18653/v1/d19-6501},
}
Figure