NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

XCOT: Cross-lingual Instruction Tuning for Cross-lingual Chain-of-Thought Reasoning

Linzheng Chai, Jian Yang, Tao Sun, Hongcheng Guo, Jiaheng Liu, Bing Wang, Xinnian Liang, Jiaqi Bai, Tongliang Li, Qiyao Peng, Zhoujun Li

Abstract

Large Language Models (LLMs) have demonstrated remarkable reasoning capabilities through Chain-of-Thought (CoT) prompting, yet this success is predominantly confined to high-resource languages like English. Low-resource languages often suffer from a "reasoning gap" where models fail to generalize logical steps. This paper presents XCOT, a novel framework designed to bridge this gap via cross-lingual instruction tuning. By employing code-switched instructions, a "think-in-English" training strategy, and cross-lingual distillation, XCOT enables the transfer of complex reasoning logic across 11 diverse languages. Experimental results on MGSM and MSVAMP benchmarks show that XCOT significantly outperforms existing open-source baselines, achieving superior performance and better internal representation alignment.

Introduction

The emergence of Chain-of-Thought (CoT) prompting has revolutionized the way Large Language Models (LLMs) handle complex multi-step reasoning tasks. However, a significant disparity exists: while models excel in English, their performance plummets in low-resource languages such as Thai, Bengali, or Swahili. This "cross-lingual gap" suggests that the model's internal reasoning logic is not effectively shared across its multilingual vocabulary.

Existing solutions often rely on simple prompt engineering, such as "translate-then-reason" strategies. While helpful, these do not address the fundamental lack of alignment in the model's internal representations. XCOT (Cross-lingual Chain-of-Thought) addresses this by integrating cross-lingual alignment directly into the model through supervised instruction fine-tuning (SFT).

Methodology

The XCOT framework introduces three core innovations to foster multilingual alignment and reasoning transfer:

  1. Cross-lingual In-Context Learning (xICL): To teach the model that semantic concepts are invariant across languages, XCOT utilizes "code-switching." By randomly substituting fragments of a source language query with translations in a target language, the model is forced to map concepts (e.g., "three books") across different linguistic tokens within a single context.
  2. Random Online CoT (Random-CoT): This strategy incentivizes the model to "think" across languages during training. When presented with a query, the model is prompted to translate it into a randomly selected intermediate language before performing the final reasoning and answering in English. This reinforces logical consistency regardless of the input language.
  3. Cross-lingual Distillation (xDistill): High-quality CoT outputs from high-resource languages (English) are used to supervise the training of low-resource languages. By minimizing the Kullback–Leibler (KL) divergence between the output distributions of different language versions of the same query, English reasoning prowess is "distilled" into other languages.
The XCOT framework overview, illustrating the generation of code-switched corpora and the subsequent cross-lingual distillation and instruction tuning process.

Experimental Setup

The researchers constructed XCOT-INSTRUCT, a multilingual instruction dataset based on the English GSM8K (Grade School Math) dataset. GSM8K was translated into 10 other languages (German, French, Spanish, Russian, Chinese, Japanese, Thai, Telugu, Bengali, and Swahili), resulting in approximately 22,000 samples per language.

Evaluation was conducted on two primary benchmarks:

  • MGSM: A multilingual version of Grade School Math covering 11 languages.
  • MSVAMP: A multilingual version of the SVAMP mathematical reasoning dataset covering 10 languages.

Results and Discussion

XCOT demonstrates substantial improvements over existing baselines. On the MGSM benchmark, an XCOT-tuned Llama-2-7B model outperformed the MathOctopus baseline by an average of 15% across all tested languages. These gains were consistent across model scales; the 13B version achieved a 51.5% average accuracy, rivaling much larger specialized models.

A key insight from the study is the role of English as a "reasoning pivot." Since LLMs are pre-trained extensively on English, they possess inherent reasoning strengths in that language. XCOT leverages this by using English as the anchor for final answers while allowing multilingual inputs.

Furthermore, XCOT improves representation convergence. Using t-SNE visualizations, the authors demonstrated that XCOT moves the internal representations of different languages closer together in the vector space compared to baseline models, effectively creating a shared "conceptual" space.

t-SNE visualizations comparing (a) Baseline and (b) XCOT language representations. XCOT demonstrates significantly tighter alignment of multilingual embeddings in the shared vector space.

Ablation studies confirmed that each component of the framework contributes to the final performance. Adding xICL alone improved scores by approximately 4.7 points, while the full suite provided the maximum performance boost. Notably, XCOT proved highly data-efficient, outperforming the standard Llama-2-7B baseline using only 20% of the training data.

Conclusion

XCOT provides a robust framework for bridging the cross-lingual reasoning gap in LLMs. By aligning language representations through code-switching and distillation, it enables low-resource languages to benefit from the reasoning capabilities typically reserved for high-resource languages. While the current method relies on English as a pivot and depends on translation quality, it opens new avenues for multilingual reasoning in complex tasks beyond mathematics, such as symbolic logic and creative writing.

Summary updated

BibTeX
@inproceedings{chai2025xcot,
  author = {Linzheng Chai and Jian Yang and Tao Sun and Hongcheng Guo and Jiaheng Liu and Bing Wang and Xinnian Liang and Jiaqi Bai and Tongliang Li and Qiyao Peng and Zhoujun Li},
  title = {{XCOT: Cross-lingual Instruction Tuning for Cross-lingual Chain-of-Thought Reasoning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i22.34524},
}
Figure