Abstract
Recent advancements in Large Language Models (LLMs) have shown promise in machine translation, yet achieving state-of-the-art performance through standard fine-tuning remains challenging. This paper introduces a three-stage training recipe—Secondary Pre-training, Continual Pre-training with interlinear text, and Source-Language Consistent Supervised Fine-Tuning (SFT)—to enhance cross-lingual alignment. By rethinking data presentation, specifically through a novel interlinear format, Llama2-based models (7B and 13B) significantly outperform larger specialized systems like NLLB-54B and GPT-3.5 in key translation benchmarks.
Introduction
While general-purpose LLMs like GPT-4 exhibit strong translation capabilities, optimizing smaller models for high-fidelity translation often encounters diminishing returns when using traditional parallel data during Supervised Fine-Tuning (SFT). Researchers at the Huawei Translation Services Center identify a "misuse" of parallel data as a primary bottleneck. They argue that the core challenge lies in improving cross-lingual alignment—the internal mapping between concepts across languages—prior to the final instruction-following stage.
Methodology: A Three-Stage Training Recipe
The proposed paradigm shifts the focus from simple instruction-following to deep semantic alignment through three distinct stages.
Stage 1: Secondary Pre-training (Monolingual)
To broaden the model's linguistic foundation beyond English, incremental pre-training is performed on large-scale monolingual corpora. For instance, a Chinese-Llama2 variant was developed using 120G of Chinese text to enhance vocabulary and comprehension.
Stage 2: Continual Pre-training with Interlinear Format
The most significant innovation is the use of "interlinear" documents. Instead of standard sentence pairs, bilingual parallel corpora are converted into a format where sentences from two languages are interleaved (e.g., English Sentence 1 followed by German Sentence 1). This forces the model to learn syntactic and semantic correspondences at a granular level during the pre-training phase.
Stage 3: Source-Language Consistent SFT
The final stage involves instruction-tuning. The researchers found that the language of the prompt significantly impacts performance. By using instructions written in the source language (e.g., a Chinese prompt for a Chinese-to-English task) rather than a fixed English prompt, the model remains in the appropriate linguistic "latent space," leading to more accurate translations.
Both Stages 2 and 3 utilize LoRA (Low-Rank Adaptation), ensuring computational efficiency and preventing the model from forgetting its general knowledge.
Datasets and Evaluation
The training involved approximately 1 billion tokens for Stage 2 (WMT En-De and En-Zh datasets) and 37.6k pairs for Stage 3 (newstest2017-2020). Evaluation was conducted on the WMT22 test sets across four directions: De⇒En, En⇒De, Zh⇒En, and En⇒Zh.
Key Results
The 13B parameter model demonstrated remarkable performance:
- English to Chinese (En⇒Zh): Achieved a 42.30 BLEU score, significantly outperforming GPT-3.5 (38.30) and the 54B parameter NLLB model (27.38).
- English to German (En⇒De): Reached 32.53 BLEU, surpassing GPT-3.5 (31.80).
- Efficiency: The 7B version frequently outperformed larger models from previous studies, such as ALMA-13B and BigTranslate-13B, highlighting the efficacy of the interlinear format.
Discussion and Insights
The study reveals that translation capability is primarily an alignment problem. The "interlinear" format acts as a bridge for cross-lingual transfer, even restoring performance in languages that were previously degraded by heavy monolingual tuning. Furthermore, the sensitivity of LLMs to instruction language suggests that maintaining context consistency is vital for high-quality output.
Conclusion
This three-stage recipe proves that high-quality, specifically formatted data can serve as a massive force multiplier for LLM training. While the model still slightly lags behind GPT-4 in some directions and remains susceptible to zero-shot hallucinations, the paradigm offers a robust framework for specialized translation models. Future work will explore expanding this approach to more diverse domains and a wider array of language pairs.
Summary updated