Empowering cross-lingual abilities of instruction-tuned large language models by translation-following demonstrations

Leonardo Ranaldi, Giulia Pucci, André Freitas

Abstract

Large Language Models (LLMs) often exhibit a significant "cross-lingual gap," performing substantially better in English than in other languages even after instruction tuning on translated datasets. This paper introduces CrossAlpaca, a method that incorporates "translation-following" demonstrations into the supervised instruction-tuning phase. By explicitly teaching models to bridge English representations with target languages, CrossAlpaca achieves substantial performance gains—averaging a 30-point accuracy jump on multilingual benchmarks—effectively narrowing the semantic alignment gap.

1. Introduction

Most state-of-the-art Large Language Models are "English-first" due to the overwhelming prevalence of English in their pre-training corpora. Consequently, these models develop superior internal representations for English concepts. A common adaptation strategy for non-English languages involves translating instruction datasets, such as Stanford Alpaca, and fine-tuning the model. However, a significant performance disparity remains. The authors identify this as a "cross-lingual gap" caused by poor semantic alignment: the model fails to map its robust English-based knowledge to the target language's linguistic structures.

2. Methodology: The CrossAlpaca Approach

The core innovation of CrossAlpaca lies in its training data composition. Rather than relying solely on translated instructions, the authors introduce "translation-following" demonstrations to force the model to align its internal representations across languages.

Overview of the CrossAlpaca training data mix, including original instructions, translated instructions, and translation-following demonstrations.

The training mix consists of:

  1. Instruction-following (Standard): The model is fine-tuned on the Stanford Alpaca dataset translated into the target language (e.g., Italian, Chinese, Arabic, Spanish, or German).
  2. Translation-following (Novel): 20,000 translation pairs are added to the training set, sourced from the news_commentary dataset. This includes 10,000 English-to-target (en-x) examples and 10,000 target-to-English (x-en) examples.

The researchers utilized LLaMA-7B as the base model and employed LoRA (Low-Rank Adaptation) for parameter-efficient fine-tuning.

3. Experimental Setup and Datasets

The models were evaluated across several key benchmarks:

  • Multilingual QA: XQUAD and MLQA were used to measure performance in question-answering tasks.
  • General Reasoning: MMLU (Massive Multitask Language Understanding) and BBH (BIG-bench Hard) were translated into target languages to assess subject knowledge and logical reasoning.

Training data included the original 52k English Alpaca instructions and their translated counterparts for five target languages (zh, ar, it, es, de), supplemented by the 20k translation demonstrations.

4. Key Results and Insights

The inclusion of translation-following tasks yielded dramatic improvements in multilingual performance:

  • Performance Surge: CrossAlpaca outperformed standard $x$-Alpaca models by an average of 30 points on MLQA and XQUAD. For instance, while a standard Italian-tuned Alpaca scored 35% on MLQA, CrossAlpaca reached 64%.
  • Reasoning Stability: The alignment tasks did not degrade the model's core reasoning abilities. Performance on MMLU and BBH improved by +8 and +4 points, respectively.
  • Directional Impact: Ablation studies revealed that English-to-target (en-x) demonstrations were more critical for downstream performance than target-to-English (x-en). This suggests that the primary challenge is projecting established English knowledge into the target language space.
  • The English Ceiling: Despite these gains, models still performed best in English, indicating that instruction-tuning can mitigate but not entirely overcome the imbalances established during pre-training.

5. Conclusion and Future Work

CrossAlpaca demonstrates that explicit translation tasks serve as the "glue" necessary to unlock an LLM's reasoning capabilities in non-English languages. By bridging the semantic alignment gap, researchers can significantly enhance the utility of models for global users. Future research will explore the scalability of this approach to larger models (e.g., 70B+ parameters) and its effectiveness for low-resource languages where high-quality translation data is less abundant.

Summary updated

BibTeX
@inproceedings{ranaldi2024empowering,
  author = {Leonardo Ranaldi and Giulia Pucci and André Freitas},
  title = {{Empowering cross-lingual abilities of instruction-tuned large language models by translation-following demonstrations}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.473},
}
Figure