Abstract
Traditional machine translation (MT) systems have historically operated on a sentence-by-sentence basis, often failing to maintain coherence across longer documents. This study investigates the capacity of Large Language Models (LLMs), specifically GPT-3.5 and GPT-4, to address these "discourse-level" challenges. By evaluating these models against industry-standard commercial systems and specialized academic models, the research identifies a paradigm shift where LLMs prioritize document-level consistency and discourse phenomena over simple word-matching metrics.
Introduction
For decades, the "goldfish memory" of machine translation has been a primary hurdle in achieving human-like translation quality. While commercial tools like Google Translate and DeepL excel at translating individual sentences, they frequently struggle with document-level coherence. Issues such as inconsistent terminology, incorrect pronoun resolution, and loss of stylistic flow are common when context from previous sentences is ignored. This paper explores whether the massive context windows and reasoning capabilities of modern LLMs can finally bridge the gap between sentence-level accuracy and document-level fluency.
The Challenge of Discourse Modeling
Discourse modeling involves tracking long-range dependencies across a text. This includes:
- Lexical Cohesion: Ensuring technical terms or names are translated consistently throughout a document.
- Pronominal Resolution: Correcting gender or number in pronouns based on antecedents found several sentences prior.
- Deixis: Handling contextual references that depend on the speaker's or listener's perspective.
The authors hypothesize that LLMs, by leveraging their ability to process entire documents simultaneously, can outperform specialized document-MT models that often rely on limited context windows.
Methodology
The researchers employed a three-tiered empirical approach to evaluate LLM performance:
- Prompt Engineering: The study compared various prompting strategies. The most effective was the P3 prompt, which provides the entire document to the model without artificial sentence boundaries, allowing the LLM to perceive the natural flow of the text.
- Comparative Evaluation: GPT-3.5 and GPT-4 were benchmarked against industry leaders (Google, DeepL, Tencent) and state-of-the-art academic models.
- Discourse Probing: To move beyond surface-level metrics, the team used "contrastive test sets." These sets require a model to choose the correct translation from a list of options that differ only by a specific discourse feature, such as a pronoun or a specific verb tense, testing the model's actual linguistic "understanding."
Data and Benchmarking
To ensure the results were not skewed by data contamination (the model having seen the test data during training), the study utilized the latest benchmarks, including WMT2022 and mZPRT (Chinese-English). Standard benchmarks like TED talks (IWSLT), News Commentary, and Europarl were also included. For probing, an English-Russian contrastive test set was used to specifically target deixis, ellipsis, and lexical cohesion.
Key Insights
The BLEU Paradox
A significant finding of the study is the discrepancy between automated metrics and human judgment. LLMs often score lower on BLEU (Bilingual Evaluation Understudy) scores compared to commercial systems. However, human evaluators overwhelmingly prefer LLM translations. This suggests that traditional metrics, which focus on local word overlaps, are insufficient for evaluating the coherence and readability of document-level translations.
The Role of Code Pre-training
An unexpected insight was that models pre-trained on computer code, such as Codex, demonstrated superior performance in document translation. The authors suggest that the strict logic and long-range dependency requirements of programming languages may help the model maintain better consistency when handling natural language documents.
GPT-4 as an Explainer
GPT-4 showed a unique ability to not only select the correct translation in probing tasks but also provide a logical explanation for its choice based on the surrounding context. This level of meta-linguistic awareness was significantly less pronounced in GPT-3.5.
Results and Performance
- Human Preference: In Chinese-to-English evaluations, GPT-4 received a "Discourse Awareness" score of 3.1/5.0, nearly doubling the scores of Google Translate (1.8) and DeepL (1.9).
- Probing Accuracy: On the English-Russian deixis task, GPT-4 achieved 85.9% accuracy, a massive improvement over GPT-3.5’s 57.9%.
- Impact of RLHF: Reinforcement Learning from Human Feedback (RLHF) was found to be critical in helping models follow complex translation instructions and maintain stylistic consistency.
Limitations and Future Directions
Despite their strengths, LLMs are not without flaws. They showed relative weakness in the Europarl dataset, likely due to the highly specialized and formal nature of parliamentary proceedings. Additionally, LLMs remain prone to occasional instability, such as omitting sentences or generating hallucinations—errors that are rarer in more constrained commercial systems.
The study concludes that while LLMs represent a new frontier for document-level translation, the industry must develop more "discourse-aware" automated metrics to accurately reflect the quality improvements these models provide.
Summary updated