Guiding Large Language Models to Post-Edit Machine Translation with Error Annotations

Dayeon Ki, Marine Carpuat

TL;DR

This paper demonstrates how to combine the strengths of traditional supervised Machine Translation (MT) and Large Language Models (LLMs) by using external error annotations to guide LLMs in post-editing translations. By instruction fine-tuning smaller, open-source models (LLaMA-2 7B/13B), the authors show that LLMs can effectively ingest fine-grained error feedback to significantly improve translation quality and naturalness across multiple language pairs.

What Problem Does This Paper Address?

While Large Language Models (LLMs) excel at many language tasks, dedicated supervised machine translation (MT) systems still frequently outperform them, especially for diverse language pairs. However, supervised MT outputs can suffer from "translationese"—text that is grammatically correct but sounds unnatural or overly literal.

LLMs are fantastic text rewriters, making them ideal candidates for automatic post-editing (fixing another system's translation). While prior work has explored letting massive, closed-source models like GPT-4 critique and refine their own translations, this paper tackles a more practical question: Can smaller, open-source LLMs be guided by external quality feedback to reliably improve translations from arbitrary MT systems?

Methods

The authors investigate two primary strategies using LLaMA-2 (7B and 13B) models:

  1. Prompting (Zero-shot and 10-shot): They feed the LLM a source sentence, an initial machine translation, and external feedback. They experiment with three levels of feedback granularity (as illustrated in Feedback Granularity):
  2. Generic: A simple instruction to "Improve the translation."
  3. Score-based: Providing a scalar quality score (0-100).
  4. Fine-grained: Providing specific error spans, error types, and severity levels based on the Multidimensional Quality Metric (MQM) framework.
Figure 1: Guiding LLMs with external feedback en- hances MT post-editing capabilities. We categorize feed- back into different granularity: Generic, Score-based, and Fine-grained. Fine-grained feedback is annotated either by humans or automatic evaluation tools.
  1. Instruction Fine-Tuning: Interestingly, standard prompting often fails to help the model fully exploit fine-grained feedback. To fix this, the authors use Parameter-Efficient Fine-Tuning (QLoRA) to train the models to follow these error-correction instructions. They test both Bilingual setups (trained per language pair) and a Multilingual setup (combining all language pairs into a single model).

Datasets

The experiments evaluate three distinct language pairs: Chinese-English (Zh-En), English-German (En-De), and English-Russian (En-Ru).

  • Evaluation Data: 1,000 instances per language pair from the WMT-22 General MT task submissions, complete with human MQM error annotations. They also test automatic error annotations generated by tools like InstructScore and xCOMET.
  • Training Data: Human-annotated error data from the MQM dataset and DEMETR (a dataset designed for diagnosing evaluation metrics).

Key Insights and Ideas

  • Prompting is blind to granularity: In zero-shot and few-shot prompting setups, giving the model highly detailed, fine-grained error spans doesn't actually perform much better than a generic "improve this" prompt. LLMs do not naturally know how to map specific error coordinates to text edits.
  • Fine-tuning unlocks fine-grained feedback: Once the LLaMA-2 models are instruction fine-tuned, the story changes completely. Fine-tuned models successfully leverage fine-grained feedback, significantly outperforming generic prompts.
  • Cross-lingual transfer exists for error correction: The multilingual fine-tuned model frequently outperformed the bilingual models. This suggests that the ability to interpret error annotations and apply corrections generalizes across different languages.
  • Beyond fixing errors: Human evaluators noted that post-editing via fine-tuning didn't just fix the targeted errors; it rewrote sentences to flow more naturally in the target language, effectively reducing translationese.

Key Results

The quantitative impact of fine-tuning is clear across standard translation metrics (BLEU, TER, and COMET):

  • Overall Gains: Instruction fine-tuning with fine-grained feedback yielded an average increase of +0.07 BLEU, +0.08 COMET, and a substantial -0.21 reduction in Translation Edit Rate (TER) across all language pairs compared to the original MT baseline.
  • Few-Shot Bridging: In prompting-only experiments, moving from 0-shot to 10-shot learning consistently widened the performance gap over the baseline and helped the smaller 7B model perform nearly on par with the 13B model.

Limitations and Future Work

  • The "To Edit or Not to Edit" Dilemma: The authors evaluated their system separately on translations known to have errors and translations known to be perfect. In a real-world pipeline, an LLM would need to automatically decide whether a sentence even needs post-editing, as forcing edits on already-correct translations slightly degraded their quality.
  • Domain and Language Constraints: The training and testing data were drawn from similar WMT/MQM domains. How well these models generalize to low-resource languages or specialized domains (like medical or legal text) remains an open question.
  • Annotation Dependency: High-quality human error annotations are expensive and scarce. While automatic annotators (like xCOMET) help, the authors noted that their error spans are still far from perfect.

Summary updated

BibTeX
@inproceedings{ki2024guiding,
  author = {Dayeon Ki and Marine Carpuat},
  title = {{Guiding Large Language Models to Post-Edit Machine Translation with Error Annotations}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.265},
}
Figure