Abstract
Large Language Models (LLMs) have demonstrated remarkable capabilities in English-centric mathematical reasoning, yet a significant performance gap persists in multilingual contexts. This paper introduces MathOctopus, a suite of LLMs specifically engineered to bridge this "reasoning gap" across diverse languages. By leveraging a novel large-scale multilingual math instruction dataset, MGSM8KInstruct, and a robust verification strategy, the researchers demonstrate that multilingual training not only enhances performance in low-resource languages but also significantly boosts mathematical reasoning in English. Our results show that MathOctopus-13B outperforms ChatGPT in few-shot scenarios on the MGSM benchmark, achieving 47.6% accuracy.
Introduction
While state-of-the-art LLMs like GPT-4 excel at complex tasks, they often struggle with multi-step mathematical reasoning, particularly when moving beyond English. Most specialized mathematical models are monolingual, leaving a void for high-quality reasoning in languages such as Bengali, Swahili, or Thai. This disparity stems from a scarcity of high-quality, human-annotated multilingual math data.
The challenge is twofold: the high cost of expert annotation across multiple languages and the technical difficulty of ensuring mathematical consistency during translation. This research addresses these hurdles by automating data creation and exploring how cross-lingual training influences a model's underlying logic.
Methodology: Building the MathOctopus
The development of MathOctopus involved a sophisticated three-pronged approach designed to maximize data quality and reasoning robustness.
Automated Translation and Verification
To overcome the data scarcity problem, the researchers utilized ChatGPT to translate the established English GSM8K dataset into nine additional languages. To prevent "mathematical drift"—where the logic or numbers might be corrupted during translation—a "Verify Strategy" was implemented. This system automatically extracts and compares mathematical formulas between the source and target languages to ensure absolute consistency.
Training Paradigms
The team explored two primary fine-tuning strategies:
- Parallel-training: Both the question and the step-by-step reasoning chain are presented in the same target language.
- Cross-training: The question is provided in English, while the reasoning and final answer are generated in the target language. This approach aims to leverage the model's strong English comprehension while forcing it to reason in another tongue.
Multilingual Rejection Sampling (xRFT)
Building on English-centric techniques, the researchers introduced xRFT. This involves generating multiple reasoning paths for a single problem and filtering for those that reach the correct answer. This synthetic data serves to further refine the model's accuracy and diversity of thought.
Datasets and Benchmarks
The study introduces two pivotal resources for the research community:
- MGSM8KInstruct: A comprehensive training dataset featuring 73.6k samples across ten languages, including Bengali, Chinese, French, German, Japanese, Russian, Spanish, Swahili, and Thai.
- MSVAMP: A new out-of-domain test set comprising 10,000 samples. By translating the SVAMP dataset, the researchers created a rigorous benchmark to test how well models generalize to unfamiliar mathematical problem structures in a multilingual setting.
Results and Discussion
The performance of MathOctopus represents a significant leap over existing open-source baselines and even rivals proprietary models in specific contexts.
The Multilingual Bonus
A core finding of this research is that multilingual Supervised Fine-Tuning (SFT) is inherently superior to monolingual SFT. Training on a diverse linguistic set improved English performance on GSM8K from 42.4% to 50.8%. This suggests that exposure to different linguistic structures helps the model develop a more robust, language-agnostic "reasoning engine."
Performance Gains
MathOctopus-13B achieved an average accuracy of 47.6% on the MGSM test set, notably surpassing ChatGPT’s 46.3% in few-shot evaluations. The improvement over base models is even more stark; while the base LLaMA-2 7B model averaged 22.6% accuracy across languages, MathOctopus-7B reached 41.9%. This uplift was particularly pronounced in low-resource languages like Thai, where base models previously showed near-zero efficacy.
Observations on xRFT
Interestingly, while rejection sampling is a major booster for English-only models, its impact was more muted in the multilingual context. The authors suggest that the inherent diversity provided by seeing the same logic expressed in ten different languages already provides the "diversity of thought" that xRFT typically aims to inject.
Conclusion and Future Directions
MathOctopus demonstrates that the path to better mathematical reasoning in LLMs may lie through multilingualism. By training on a broad spectrum of languages, models develop a deeper, more generalized understanding of logic.
Future work will focus on scaling these techniques to 70B+ parameter models and exploring the integration of Reinforcement Learning from Human Feedback (RLHF) to further align reasoning paths. Additionally, investigating the "capacity bottleneck"—the point at which adding more languages might degrade performance—remains a critical area for exploration.
Summary updated