TL;DR
This paper introduces polyGRPO (Polyglot Group Relative Policy Optimization), a reinforcement learning framework that treats language as a latent variable to optimize LLM reasoning. By forcing and allowing models to explore reasoning paths across multiple languages during training, the framework expands the model's internal inference pathways, significantly boosting final reasoning performance—even on English-only tasks—without requiring multilingual inputs at test time.
What Problem Does This Paper Address?
While large language models (LLMs) are rapidly improving, standard reinforcement learning (RL) methods for reasoning (like PPO or GRPO) typically rely on English-centric or English-optimized preference data. However, recent multilingual LLMs often exhibit a fascinating trait: they sometimes perform better on complex reasoning tasks when operating in non-English languages or when left completely unconstrained to choose their own internal "thinking" language.
The authors address a fundamental question: Can we leverage this "polyglot thinking" as an implicit exploration signal to optimize an LLM's core reasoning capabilities? Instead of treating different languages merely as static output mediums, this paper explores language as a latent variable that structurally modulates the model's internal inference pathways.
Methods
The authors first validate their hypothesis with a Polyglot Thinking Experiment, demonstrating that restricting a model to a single language can limit its problem-solving capacity, whereas unconstrained language settings often yield the highest accuracy.
Building on this insight, they introduce polyGRPO, an online reinforcement learning framework consisting of three core components:
- Polyglot Reasoning Generation Module (PRGM): For any given training question, the model generates a group of $n$ outputs. Crucially, one response is generated under an unconstrained language setting, while the remaining responses are randomly assigned to specific target languages.
- Reward Module: A rule-based system that scores each response. It combines an Accuracy Reward (checking the final answer) and a Format Reward (enforcing structured reasoning steps using
[Thinking]tags and a minimum length constraint of 100 characters). - Group Relative Policy Optimization Module: Following the GRPO algorithm, it optimizes the model by comparing the rewards within the generated group to compute relative advantages, completely bypassing the need for a separate, resource-heavy value function network.
Datasets
- Training: The mathematical reasoning dataset from MAPO, which contains 1,703 English questions from a subset of NumGLUE, alongside ChatGPT-translated versions in 9 languages (Bengali, Thai, Swahili, Japanese, Chinese, Russian, German, Spanish, French), totaling 18,140 training examples.
- Evaluation:
- MGSM (Multilingual Grade School Math) for in-domain evaluation.
- MATH500 and PolyMath-medium for out-of-domain mathematical reasoning.
- X-CSQA for cross-task commonsense reasoning across 16 languages.
Key Insights and Ideas
- Language as a Latent Variable: Language is more than just a translation layer; it alters the structural trajectory of an LLM's internal reasoning space.
- The Power of Unconstrained Thinking: LLMs often achieve optimal performance when they are free to choose their own internal response language, allowing them to navigate a broader, more flexible reasoning space.
- Polyglot Scaffolding: Tracking the model's behavior during RL training reveals that it naturally shifts toward English-dominant reasoning over time. However, the intermediate phase of multilingual exploration acts as a vital "scaffolding" that guides the model toward a superior, more robust final policy.
Key Results
- Reasoning Gains: polyGRPO improved the base Qwen2.5-7B-Instruct model by +6.72% absolute accuracy across four English reasoning test sets and +6.89% on their multilingual benchmarks.
- Cross-Task Generalization: Despite being trained solely on mathematical data, polyGRPO boosted performance on the English commonsense reasoning task (X-CSQA) by +4.9%. It was the only evaluated method to surpass the base LLM on this task, showcasing excellent generalization.
- Baseline Comparison: The method consistently outperformed other state-of-the-art multilingual preference optimization techniques, including LIDR, MAPO, and standard English-restricted GRPO.
Limitations and Future Work
- Coarse Reward Signals: The current reward function relies strictly on final answer correctness and coarse formatting constraints, missing out on fine-grained, step-level verification within the polyglot reasoning paths.
- Implicit Modeling: The framework does not explicitly map or model the structural and logical relationships between parallel reasoning paths across different languages.
- Language Drift at Inference: During unconstrained inference, the model's reasoning process heavily converges back toward English, even for non-English queries. While the authors mitigated this using simple test-time language prefixes to enforce user-language consistency, a more robust algorithmic solution for language control remains an open challenge.
Summary updated