Researchers from the University of Maryland have demonstrated a novel approach to improving machine translation (MT) by leveraging the rewriting capabilities of Large Language Models (LLMs). Presented at NAACL 2024, this study explores how LLaMA-2 models can be transformed into effective "post-editors" when guided by external error annotations.
The Challenge: Bridging MT and LLMs
While traditional supervised MT systems are highly accurate, they often produce "translationese"—stiff, overly literal phrasing. Conversely, LLMs excel at fluent rewriting but can struggle with translation accuracy from scratch. This research investigates whether LLMs can provide the "best of both worlds" by refining the output of supervised MT systems based on specific quality feedback.
Methodology: Feedback Granularity and Model Training
The core of the approach involves providing the LLM with varying levels of feedback to guide its editing process. The researchers categorized this feedback into three levels of granularity:
- Generic: A simple instruction to "Improve the translation."
- Score-based: Providing a scalar quality score (e.g., 0-100).
- Fine-grained: Identifying specific error spans, error types (e.g., mistranslation, grammar), and severity levels.
The study utilized LLaMA-2 (7B and 13B) models, testing them through both zero-shot/few-shot prompting and instruction fine-tuning using QLoRA. Feedback was sourced from human experts (MQM) and automatic tools like InstructScore and xCOMET.
Key Insights
- Fine-tuning is Essential: While prompting offers marginal gains, fine-tuning is required for the model to truly utilize detailed, fine-grained feedback like specific error spans.
- Reducing Translationese: Fine-tuned LLMs do more than just fix errors; they often rewrite entire sentences to sound more natural, effectively reducing the mechanical feel of standard MT outputs.
- Multilingual Generalization: Training a single model on multiple language pairs (Multilingual FT) often outperformed language-specific models, suggesting that the ability to edit based on feedback is a transferable skill across languages.
- Severity Matters: Interestingly, knowing the severity of an error was often as effective as having the full span and type of the error.
Quantitative Results
Fine-tuning led to significant improvements across multiple metrics and language pairs, including Chinese-English (Zh-En), English-German (En-De), and English-Russian (En-Ru). On average, the models achieved a +0.07 increase in BLEU, a +0.08 increase in COMET, and a 0.21-point reduction in Translation Edit Rate (TER).
Human evaluations confirmed these findings, with annotators consistently rating the fine-tuned, post-edited translations as superior to the original machine outputs.
Conclusion and Future Directions
This work highlights the potential of LLMs as sophisticated post-editors for MT. While high-quality human annotations remain expensive, the success of automatic feedback tools like xCOMET points toward a future where systems might automatically generate their own feedback loops to continuously improve translation quality. Future research will likely focus on mitigating the risk of "over-editing" correct translations and refining the consistency of automatic feedback.
Summary updated