Introduction
Llama-3 has established itself as a state-of-the-art open-source model. However, its performance in non-English languages, particularly Chinese, remains a challenge. Direct fine-tuning often leads to catastrophic forgetting of original reasoning capabilities or an "alignment tax" where the Instruct version underperforms the base model. Researchers from Geely AI Lab and Beihang University address these issues through a systematic approach to Continual Pre-Training (CPT).
Methodology: The Efficient Frontier
The primary challenge in CPT is balancing the Additional Language Mixture Ratio (ALMR)—the proportion of new language data—with the Learning Rate (LR). Through extensive experimentation on Llama-3 8B, the authors discovered that validation loss is an unreliable metric for benchmark performance. Instead, they identified an "Efficient Frontier" that maximizes benchmark scores.
The relationship was formalized into a logarithmic scaling law: $$ALMR = 116.67 \log(LR) + 1085.00$$ Using this formula, an optimal configuration of 33% ALMR at a $1.0e-9$ learning rate was selected for the 70B model, which was then trained on 1.7 trillion tokens.
Training Pipeline
The post-training process follows a three-stage pipeline:
- CPT: 1.7T tokens of mixed English, Chinese, and technical data.
- Supervised Fine-Tuning (SFT): Focused on dialogue, math, and general QA.
- Direct Preference Optimization (DPO): Aligning the model with human values using preference datasets.
Key Results and Analysis
The resulting C-SFT and C-DPO models demonstrated significant improvements across various benchmarks. Notably, the CPT process acted as a "rising tide," enhancing not just Chinese language skills but also domain-specific reasoning in math and coding. This suggests that high-quality CPT can "awaken" or strengthen underlying reasoning capabilities.
Key findings include:
- Benchmark Gains: Llama-3 70B CPT improved significantly on domain tasks, notably jumping from 7.19 to 8.97 on LCSTS (Chinese summarization) and 79.38 to 81.40 on GSM8K (Math).
- Mitigating the Alignment Tax: While official Llama-3-Instruct models often struggle to respond in Chinese, the C-DPO version maintained a 77.3% Chinese response rate compared to the official model's 9%.
- Empathy and EQ: A specialized "Empathy" version achieved a 79.4% win rate against GPT-4 in human evaluations of Chinese conversational flow and emotional intelligence.
Conclusion
This work provides a systematic framework for scaling CPT to large models like Llama-3 70B. By identifying the logarithmic relationship between data mixture and learning rate, the researchers successfully enhanced multilingual and domain-specific capabilities without sacrificing the model's core strengths. Future work will explore the interaction of different domain-specific data types within this frontier.
Summary updated