TL;DR
This paper explores how to adapt moderately-sized (7B parameter) Large Language Models (LLMs) for document-level machine translation (DocMT). The authors demonstrate that through specialized fine-tuning and optimal prompting, these smaller models can match or even surpass GPT-4 in translation quality, though they remain vulnerable to "off-target" translation errors during long-form decoding.
What Problem Does This Paper Address?
Most machine translation research focuses on sentence-level tasks (SenMT), where each sentence is translated in isolation. However, real-world documents rely on context—pronouns, terminology consistency, and discourse flow—that spans multiple sentences. Document-level machine translation (DocMT) aims to capture this context.
While massive models like GPT-4 show promise in DocMT, they are computationally expensive and often closed-source. Conversely, smaller specialized models often struggle to maintain coherence over long passages. The authors set out to bridge this gap by investigating how to effectively adapt 7B-parameter open-source LLMs (like Llama-2 and BLOOM) to handle the nuances of document-level context.
Methods
The researchers employed a two-stage training strategy:
- Monolingual Fine-Tuning: To improve target language proficiency, models were first fine-tuned on 100M tokens of monolingual data per language from the CulturaX corpus.
- Parallel Document Fine-Tuning: Models were then trained on document-level parallel corpora, where each sentence is conditioned on the three preceding sentence pairs as context.
They compared two fine-tuning techniques:
- Parameter-Efficient Fine-Tuning (PEFT/LoRA): Updating only a tiny fraction (~0.1%) of parameters.
- Full Fine-Tuning (FFT): Updating all model parameters.
Additionally, they conducted a preliminary study on prompting strategies, testing how context structure and natural language instructions impact performance. They found that a combination of structured sentence pairs and clear instructions (Prompt 4 in the paper) yielded the best results.
Datasets
- IWSLT2017: The primary benchmark, covering 18 translation tasks across nine language pairs (English to/from Arabic, German, French, Italian, Japanese, Korean, Dutch, Romanian, and Chinese).
- CulturaX: Used for the monolingual fine-tuning stage.
- WMT2023 Test Sets: Used to evaluate out-of-domain generalization and mitigate risks of data leakage from the models' original pre-training.
- Contrastive Test Sets: Specifically used to evaluate discourse phenomena like pronoun resolution.
Key Insights and Ideas
- Prompting is Paramount: Even after fine-tuning, the way context is presented to the LLM significantly affects quality. A structured "parallel context" format outperformed simpler concatenations.
- The "Off-Target" Trap: A major failure mode for these models is translating into the wrong language (e.g., outputting English when the target is German). This is often caused by "error propagation"—one bad token in the context leads the model astray for the rest of the document.
- Base Models > Instruction Models: Interestingly, base LLMs (like Llama-2-7B) often served as better backbones for translation fine-tuning than their instruction-tuned counterparts (like Vicuna-7B), especially for zero-shot cross-lingual transfer.
- Exceptional Data Efficiency: The authors found that FFT is incredibly data-efficient, requiring only about 1% of the parallel dataset to reach peak performance, whereas LoRA required roughly 10%.
Key Results
- Surpassing the Giants: In several bilingual and multilingual tasks, the fine-tuned 7B models outperformed GPT-4-Turbo in terms of BLEU and COMET scores.
- Multilingual vs. Bilingual: LoRA was generally superior for bilingual tasks (single language pair), while Full Fine-Tuning (FFT) was necessary to capture the complexity of multilingual settings.
- Error Analysis: Using GPT-4 as an evaluator, the authors found that their adapted models actually produced fewer context-dependent errors (like cohesion and coherence issues) compared to standard document-level baselines.
Limitations and Future Work
The primary limitation is model scale; the study was restricted to 7B parameter models due to resource constraints. The authors also noted instability in training, where some fine-tuning runs failed to converge or showed inconsistent performance.
The most pressing technical challenge remains off-target translation. While the researchers introduced a "REGEN" (re-generation) inference strategy to mitigate this by re-generating context for each sentence, it is computationally expensive (4x slower). Future work will likely focus on more efficient decoding strategies to prevent error propagation without sacrificing speed.
Summary updated