TL;DR
MiMo-7B is a compact, open-source large language model from Xiaomi optimized specifically for complex mathematical and code reasoning tasks. By combining a reasoning-focused 25-trillion-token pre-training pipeline with advanced reinforcement learning (RL) techniques—such as test-difficulty-driven rewards—MiMo-7B outperforms much larger 32B models and surpasses OpenAI's o1-mini on key reasoning benchmarks.
What Problem Does This Paper Address?
While large language models (LLMs) have made massive strides in reasoning, most state-of-the-art reasoning models (like DeepSeek-R1 or Qwen2.5-Math) rely on large base architectures (e.g., 32B parameters or larger) to achieve high performance, especially in coding. It has been widely believed that achieving simultaneous, uniform improvements in both mathematical and programming reasoning within a smaller, compute-efficient model (like 7B parameters) is exceptionally challenging.
Furthermore, post-training RL for complex coding tasks often suffers from "sparse rewards." In standard setups, a model receives zero feedback unless it passes every single test case for a difficult problem, which frequently stalls the learning process. The authors set out to prove that with the right pre-training data mixture and a dense reward structure, a 7B model can achieve top-tier reasoning capabilities.
Methods
MiMo-7B addresses these challenges through a holistic approach spanning both pre-training and post-training:
- Reasoning-Driven Pre-training: The model is trained from scratch on 25 trillion tokens. The authors developed a custom HTML/PDF extraction pipeline designed specifically to preserve mathematical formulas and code blocks from web dumps. Training follows a three-stage data mixing strategy, ramping up math/code data to ~70% in Stage 2 and incorporating synthetic reasoning data while extending the context length to 32k tokens in Stage 3.
- Multi-Token Prediction (MTP): Inspired by DeepSeek-V3, MiMo incorporates an MTP objective during pre-training. This helps the model pre-plan future tokens, which significantly accelerates inference speed via speculative decoding during deployment.
- Test-Difficulty-Driven Code Reward: To solve the sparse reward problem in RL, the authors introduce an IOI-style (International Olympiad in Informatics) scoring scheme. Test cases are clustered into difficulty levels based on pass rates from multiple models. Instead of an all-or-nothing reward, the model receives partial credit for passing easier subtasks, providing a denser gradient signal.
- Easy Data Re-sampling: As the policy improves, many problems reach a 100% pass rate, which can degrade dynamic sampling efficiency. The authors maintain an "easy data pool" and sample from it with a 10% probability to stabilize policy updates and prevent policy collapse.
- Seamless Rollout Engine: To maximize hardware efficiency, they built an RL infrastructure that integrates continuous rollout, asynchronous reward computation, and early termination, minimizing GPU idle time.
Datasets
- Pre-training: 25 trillion tokens composed of web pages, academic papers, books, programming code, and synthetic reasoning data.
- Post-training RL: A curated dataset of 130K verifiable problems (100K mathematics problems filtered to remove proof/multiple-choice questions, and 30K programming problems with robust test cases).
- Evaluation Benchmarks: Evaluated across a wide array of standard benchmarks including BBH, MMLU-Pro, GPQA Diamond, SuperGPQA, MATH500, GSM8K, AIME (2024 & 2025), LiveCodeBench (v5 & v6), HumanEval(+), and MBPP(+).
Key Insights and Ideas
- Pre-training is the Foundation of Reasoning: The authors argue that RL's success depends heavily on the inherent reasoning potential established during pre-training. By optimizing data extraction and mixing early on, a 7B model can develop an exceptionally high "upper bound" of reasoning capability before RL even begins.
- Partial Credit Matters: All-or-nothing rewards stall RL on hard coding problems. Stratifying test cases by difficulty and offering dense, fine-grained rewards allows the model to learn incrementally from partial successes.
- The Danger of "Light" SFT: The authors experimented with a lightweight SFT phase purely for format alignment before RL. Surprisingly, this "LiteSFT" approach led to worse final performance and lower reasoning potential compared to direct RL from the base model (RL-Zero) or a fully-fledged SFT phase.
- Synthetic Data Resiliency: Unlike standard natural language text, the authors found that synthetic reasoning data can be trained for an extremely high number of epochs without the risk of overfitting.
Key Results
- Benchmark Superiority: MiMo-7B-RL achieved a score of 55.4 on AIME 2025, beating OpenAI's o1-mini by 4.7 points. On LiveCodeBench v5, it scored 57.8, significantly outperforming o1-mini (53.8) and DeepSeek-R1-Zero-32B (49.1).
- Scaling Up SFT: Scaling the SFT dataset from 500K to 6M instances dramatically boosted performance. The extended model variant (MiMo-7B-RL-0530) reached 80.1 on AIME 24, achieving parity with the much larger DeepSeek-R1.
- Infrastructure Speedups: The Seamless Rollout Engine delivered a 2.29× training speedup and a 1.96× validation speedup by eliminating synchronization barriers between generation and reward phases.
- Speculative Decoding Efficiency: The MTP layers achieved a 90% acceptance rate for the first layer and over 75% for the third layer, significantly mitigating the inference speed bottleneck caused by long chain-of-thought reasoning paths.
Limitations and Future Work
- Language Mixing: During direct RL training from the base model (MiMo-7B-RL-Zero), the model suffered from language mixing issues (e.g., blending Chinese and English). Designing a robust language penalty function proved difficult because math equations and code naturally contain English characters, leading to potential reward hacking.
- Domain Interference: In the later stages of training directly from the base model, balancing math and code performance was challenging; improvements in coding sometimes led to fluctuations or declines in mathematical reasoning.
- Verifiability Constraints: The RL framework relies strictly on rule-based verifiers (like compilers or math answer matchers), meaning it is currently constrained to domains where answers can be automatically and objectively verified.
Summary updated