Abstract
xCoT (Cross-lingual Chain-of-Thought) is a novel framework designed to bridge the "reasoning gap" between high-resource languages like English and low-resource languages in Large Language Models (LLMs). By utilizing a combination of code-switched instruction tuning, online translation strategies, and cross-lingual distillation, xCoT enables models to "think in English" to solve complex problems presented in other languages. This approach results in a significant 15% average performance boost over existing multilingual baselines.
Introduction
Chain-of-Thought (CoT) prompting—where a model explains its step-by-step reasoning—has revolutionized how LLMs handle complex mathematical and logical tasks. However, this capability is highly uneven across languages. Because most training data is English-centric, LLMs reason effectively in English but struggle significantly in low-resource languages such as Thai, Bengali, or Swahili.
Existing solutions often rely on prompt engineering, such as asking the model to translate the query first. However, these methods do not address the underlying lack of alignment in the model's internal representations. xCoT fundamentally integrates cross-lingual reasoning into the model's supervised fine-tuning (SFT) process.
Methodology
The xCoT framework is built upon three technical pillars:
- xCoT-INSTRUCT & xICL (Cross-lingual In-Context Learning): A multilingual instruction dataset where queries are in various languages, but reasoning paths are in English. To bridge languages, "code-switching" is used in prompts—randomly replacing fragments of a sentence with translations in a target language.
- Random Online CoT (Random-CoT): During training, the model is forced to translate a query into a random intermediate language before generating the English reasoning path, aligning semantics into a shared reasoning space.
- Cross-lingual Distillation (xDistill): Knowledge distillation is used to refine the model, where the output distribution of a high-resource (English) sample supervises the training of low-resource samples to ensure logical consistency.
Datasets and Evaluation
The researchers evaluated xCoT using several key benchmarks:
- MGSM (Multilingual Grade School Math): A benchmark of 11 typologically diverse languages.
- MSVAMP: A new, challenging out-of-domain test dataset created by adapting the SVAMP math dataset into 10 languages with human correction.
- xCoT-INSTRUCT: The primary training dataset, consisting of approximately 7.4K samples per language, expanded from English grade-school math data.
Key Insights
A core finding of this work is that models do not necessarily need to reason in every language. By training the model to pivot to English for the "thinking" phase, it can leverage its vast English reasoning capabilities to solve problems in any language.
Code-switching acts as a powerful alignment tool, preventing the model from treating languages as isolated silos. Visualization via t-SNE confirms that after xCoT tuning, internal representations of different languages converge in the model's latent space.
Results
- Performance Gains: xCoT outperformed strong open-source baselines like MAmmoTH and WizardMath by an average of 15% across all tested languages.
- Model Scaling: The xCoT-tuned Llama-2-7B model frequently outperformed much larger 13B models that lacked this specific tuning.
- Efficiency: The framework achieved superior performance with only 20% of typical SFT data size, indicating high sample efficiency.
- Competitive Edge: xCoT-tuned models significantly narrowed the gap between open-source 7B models and proprietary models like GPT-3.5 in multilingual math tasks.
Limitations and Future Work
While effective, the framework relies heavily on English as the "thinking" language, which may introduce linguistic biases. Additionally, the current focus is on mathematical reasoning; future work should explore more subjective tasks like creative writing. Finally, expanding language coverage to truly zero-shot scenarios remains an area for further research.
Summary updated