MiMo: Unlocking the Reasoning Potential of Language Model -- From Pretraining to Posttraining

TL;DR

MiMo-7B employs multi-stage data mixing and multi-token prediction to enhance reasoning, trained on 25 trillion tokens, with post-training on 130K problems, outperforming larger models.

cs.CL 🔴 Advanced 2025-05-12 47 views
LLM-Core Xiaomi : Bingquan Xia Bowen Shen Cici Dawei Zhu Di Zhang Gang Wang Hailin Zhang Huaqiu Liu Jiebao Xiao Jinhao Dong Liang Zhao Peidian Li Peng Wang Shihua Yu Shimao Chen Weikun Wang Wenhan Ma Xiangwei Deng Yi Huang Yifan Song Zihan Jiang Bowen Ye Can Cai Chenhong He Dong Zhang Duo Zhang Guoan Wang Hao Tian Haochen Zhao Heng Qu Hongshen Xu Jun Shi Kainan Bao Kai Fang Kang Zhou Kangyang Zhou Lei Li Menghang Zhu Nuo Chen Qiantong Wang Shaohui Liu Shicheng Li Shuhao Gu Shuhuai Ren Shuo Liu Sirui Deng Weiji Zhuang Weiwei Lv Wenyu Yang Xin Zhang Xing Yong Xing Zhang Xingchen Song Xinzhe Xu Xu Wang Yihan Yan Yu Tu Yuanyuan Tian Yudong Wang Yue Yu Zhenru Lin Zhichao Song Zihao Yue
large language models reasoning pretraining posttraining reinforcement learning

Key Findings

Methodology

This work integrates diverse high-quality data preprocessing, a three-stage data mixing strategy, and multi-token prediction (MTP) to unlock reasoning potential. Pretraining on approximately 25 trillion tokens includes synthetic reasoning data to enrich reasoning patterns. Post-training involves curating 130K verifiable math and coding problems, employing a difficulty-driven reward scheme and strategic data resampling to stabilize RL training. The architecture is based on a decoder-only Transformer with Grouped-Query Attention, pre-RMSNorm, SwiGLU activation, and Rotary Positional Embedding. MTP modules, with multiple layers during inference, accelerate long-text generation. Training uses AdamW with dynamic learning rate schedules and batch sizes. Evaluation across reasoning, math, coding, and long-context tasks shows MiMo-7B surpasses larger models, with RL fine-tuning further boosting performance, exceeding OpenAI o1-mini.

Key Results

  • MiMo-7B-Base achieves 75.2 on BBH, outperforming comparable open-source models. Its performance on SuperGPQA and GSM8K demonstrates strong reasoning and problem-solving skills. The RL-tuned MiMo-7B-RL surpasses OpenAI o1-mini in math (AIME 2025: 55.4) and code (LiveCodeBench v5: 32.9). The model supports 32K context length, enabling advanced long-text reasoning. Results validate the effectiveness of high-quality data, synthetic reasoning, and multiToken prediction in boosting reasoning abilities.
  • The model exhibits broad adaptability across tasks, especially in complex reasoning, long-context understanding, and code generation. It maintains competitive performance in diverse scenarios, indicating robust generalization. The infrastructure enables efficient training, reducing costs and time, facilitating practical deployment.
  • Overall, the findings highlight that data and mechanism innovations can compensate for smaller parameter sizes, paving the way for accessible high-performance reasoning models. The open-source release fosters community development and industrial applications.

Significance

This research demonstrates that with optimized data pipelines, synthetic reasoning augmentation, and multiToken prediction, small to medium-sized models can achieve reasoning capabilities comparable to or exceeding larger models. It addresses the high cost and scalability issues of current large models, making advanced AI reasoning more accessible. The approach offers a scalable pathway for deploying intelligent systems in education, coding, scientific research, and beyond. By outperforming larger models in key benchmarks, MiMo-7B sets a new standard, emphasizing the importance of data quality and training strategies over sheer size. The open-source nature accelerates community-driven innovation, fostering broader adoption and further research into efficient reasoning models.

Technical Contribution

The study introduces a comprehensive framework combining high-quality multi-source data, a three-stage data mixing strategy, and multi-token prediction (MTP) modules. Synthetic reasoning data generated via advanced models enriches the training corpus, while difficulty-based rewards mitigate sparse reward issues. The infrastructure supports fast RL training and validation, integrating continuous rollout and asynchronous reward computation. Model architecture incorporates Grouped-Query Attention, pre-RMSNorm, and long-context support, optimized for reasoning tasks. The multi-layer MTP during inference significantly accelerates decoding, enabling efficient long output generation. These innovations collectively enable small models to surpass larger counterparts in reasoning performance, providing a new paradigm for scalable, high-quality AI reasoning systems.

Novelty

This work uniquely combines multi-source data curation, a three-stage data mixing approach, synthetic reasoning data generation, and multi-token prediction to unlock reasoning in small models. Unlike prior works relying solely on model scaling, it emphasizes data quality and mechanism design. The difficulty-driven reward scheme and infrastructure innovations further distinguish this approach, establishing a new benchmark for small-model reasoning capabilities. It is among the first to demonstrate that targeted data and training strategies can compensate for limited parameters, achieving results comparable to or better than much larger models.

Limitations

  • Despite impressive performance, the model still struggles with extremely complex or domain-specific reasoning tasks, indicating room for further data and architecture improvements.
  • High computational costs during training, especially in RL phases, limit rapid iteration and broader accessibility.
  • The model's understanding in highly specialized fields remains limited without domain-specific fine-tuning, suggesting future work in domain adaptation.

Future Work

Future directions include optimizing multiToken prediction layers for even faster inference, reducing training costs, and expanding synthetic data generation to cover more specialized domains. Enhancing model interpretability and robustness is also a priority. Integrating multi-modal inputs could further improve reasoning and generalization. Additionally, exploring more efficient RL algorithms and scalable infrastructure will facilitate broader deployment, making high-level reasoning accessible to more users and applications.

AI Executive Summary

Despite the rapid growth of large language models (LLMs) like GPT-4 and Claude 3.7, their high training costs and limited accessibility pose significant barriers. Addressing this, the present work introduces MiMo-7B, a small-to-medium-sized model designed explicitly for reasoning tasks. The core innovation lies in a multi-stage data mixing strategy, combining diverse high-quality datasets with synthetic reasoning data, and a multi-token prediction (MTP) mechanism that pre-plans token generation, significantly accelerating inference. Pretraining on 25 trillion tokens, including synthetic data, enriches the model’s reasoning patterns. Post-training involves curating 130K verifiable math and coding problems, employing a difficulty-based reward scheme and strategic data resampling to stabilize RL training. The architecture, based on a decoder-only Transformer with Grouped-Query Attention and long-context support, enables effective reasoning over extended texts. Experimental results demonstrate that MiMo-7B surpasses larger models like 32B parameter models in reasoning benchmarks such as BBH, SuperGPQA, and GSM8K. The RL fine-tuned MiMo-7B-RL further outperforms OpenAI’s o1-mini in math (AIME 2025: 55.4) and code tasks, confirming the approach’s efficacy. The infrastructure developed supports fast training and validation, reducing costs and enabling rapid iteration. Overall, this work highlights that data quality and innovative mechanisms can unlock reasoning capabilities in smaller models, democratizing access to advanced AI. The open-source release provides valuable resources for community-driven development, fostering broader adoption and further research into efficient reasoning systems.

Deep Analysis

Background

The evolution of large language models (LLMs) has revolutionized natural language understanding and generation, with models like GPT-4, LLaMA, and Qwen achieving remarkable performance. However, their reliance on massive parameters (often exceeding 100B) results in prohibitively high training costs and limited accessibility. Recent research emphasizes the importance of reasoning capabilities, especially in complex tasks like mathematics, programming, and scientific question answering. Reinforcement learning (RL) has been employed to enhance reasoning, but most successful applications depend on large base models, which are resource-intensive. Small and medium models, despite their efficiency, lag behind in reasoning performance. Prior works such as DeepSeek and Qwen have shown progress but still face limitations in scalability and inference speed. Therefore, developing methods to unlock reasoning potential in parameter-efficient models remains a critical challenge.

Core Problem

Current state-of-the-art models excel in reasoning but at the cost of enormous computational resources, limiting their deployment. Smaller models lack sufficient reasoning capacity, especially in multi-step problems requiring extended context understanding. Existing training strategies often focus on scaling parameters rather than optimizing data and mechanisms, leading to diminishing returns. The core problem is how to effectively enhance reasoning in models with limited parameters without incurring prohibitive costs. Addressing this involves improving data quality, designing mechanisms that facilitate reasoning, and developing efficient training infrastructure. The challenge is to balance model size, training efficiency, and reasoning performance, making advanced AI accessible to broader applications.

Innovation

This work introduces several key innovations: 1) a multi-source high-quality data pipeline with HTML, PDF, and synthetic data extraction, combined with a three-stage data mixing strategy to maximize reasoning pattern density; 2) the Synthetic reasoning data augmentation, generated by advanced reasoning models, to enrich training diversity; 3) the multi-token prediction (MTP) mechanism, which during inference uses multiple layers to pre-plan token generation, accelerating decoding; 4) a difficulty-based reward scheme in RL, which assigns fine-grained scores to test cases of varying difficulty, alleviating sparse reward issues; 5) a high-efficiency RL infrastructure supporting continuous rollout and asynchronous reward computation, drastically reducing training time. The architecture leverages Grouped-Query Attention, pre-RMSNorm, and long-context support, optimized for reasoning tasks. These innovations collectively enable a small model to outperform larger counterparts in reasoning benchmarks, setting a new standard for parameter-efficient reasoning systems.

Methodology

  • �� Data collection and preprocessing: develop specialized HTML and PDF extraction tools to preserve reasoning content; perform global deduplication and multi-dimensional filtering to ensure data quality. • Data mixing: implement a three-stage strategy—initially combining diverse sources, then increasing math and code data to 70%, and finally incorporating synthetic reasoning responses with extended context length to 32K tokens. • Model architecture: based on decoder-only Transformer, integrating Grouped-Query Attention, pre-RMSNorm, SwiGLU activation, and Rotary Positional Embedding. • Multi-Token Prediction (MTP): during pretraining, use a single MTP layer; during inference, replicate and fine-tune multiple layers for speculative decoding, accelerating long output generation. • Training: optimize with AdamW, gradually adjust learning rate, employ batch warmup, and incorporate a strategy re-sampling to stabilize RL training. • RL training: curate 130K problems, employ rule-based rewards, and utilize infrastructure supporting parallel evaluation and reward computation. • Evaluation: test on multiple benchmarks, including BBH, SuperGPQA, GSM8K, AIME, and code benchmarks, analyzing performance gains and ablation effects.

Experiments

The experimental setup involves training a 36-layer, 4096-hidden-dimension Transformer on 25 trillion tokens, with synthetic data augmentation and multiToken prediction. Baselines include Llama-3.1-8B, Qwen2.5-7B, and larger models. Evaluation metrics encompass accuracy, Pass@k, and F1 scores across tasks like mathematics, coding, and reasoning. Ablation studies confirm the contributions of synthetic data, multiToken prediction, and difficulty rewards. Results show MiMo-7B-Base surpasses comparable models, achieving 75.2 on BBH, and the RL-tuned MiMo-7B-RL exceeds OpenAI o1-mini in AIME (55.4) and code benchmarks, demonstrating superior reasoning and problem-solving capabilities.

Results

MiMo-7B-Base outperforms 32B models on reasoning benchmarks, with 75.2 on BBH and strong performance on SuperGPQA and GSM8K. The RL-finetuned MiMo-7B-RL surpasses OpenAI o1-mini, achieving 55.4 on AIME 2025 and 32.9 on LiveCodeBench v5. The model supports 32K context length, enabling advanced long-context reasoning and retrieval tasks. Ablation results highlight the importance of synthetic data, multiToken prediction, and difficulty-based rewards. Overall, the approach demonstrates that data and mechanism innovations can compensate for smaller size, achieving state-of-the-art reasoning performance.

Applications

该模型适用于数学教育、自动编程、法律分析、科研辅助等领域,尤其在需要长文本理解和多步骤推理的场景中表现优异。工业界可以利用其强大的推理能力提升自动问答、智能助手、自动编码等应用的效率。未来,结合多模态信息,模型有望实现跨领域的智能推理与决策支持,推动智能系统的普及和升级。

Limitations & Outlook

模型在极端复杂推理或超专业知识领域仍有限,部分任务表现不及超大模型。训练成本较高,RL阶段对硬件要求大,限制了广泛应用。模型在某些特定领域的知识掌握不足,需引入更多专业数据进行微调。未来需优化机制和架构,降低成本,提升鲁棒性和可解释性,增强模型的泛化能力。

Plain Language Accessible to non-experts

想象你在一个工厂里工作,工厂里有很多不同的机器,每台机器都能完成不同的任务。为了让工厂变得更聪明、更高效,工程师们不断改造这些机器,教它们更聪明的操作方法。这个研究就像是在改造一台“超级机器”,让它能像人一样思考、推理。科学家们用大量的“原料”——比如书、网页和题目——来“喂养”这台机器,让它学会理解数学、写代码,甚至理解长篇文章。为了让它更快地做出答案,他们还设计了一种“提前猜测”的方法,让机器在回答问题时可以提前规划下一步。经过这些努力,这台“超级机器”变得非常聪明,不仅能解答复杂的数学题,还能写出高质量的代码,甚至理解长长的故事。未来,这样的机器会变得越来越厉害,帮助我们学习、工作,解决很多以前难以想象的问题。

ELI14 Explained like you're 14

想象你有一台超级聪明的机器人,它可以帮你解数学题、写代码,还能理解很长的故事。可是,要让它变得更聪明,不仅仅是让它变大,而是教它用更聪明的方法学习。科学家们用很多不同的书、网页和题目来“喂养”这台机器人,让它学会推理和解决问题。为了让它更快地回答问题,他们还设计了一种特别的预测方法,让机器人在思考时可以提前“猜测”下一步的答案,就像你在猜谜一样。经过这些努力,这台机器人变得非常厉害,不仅能在数学和编程比赛中获奖,还能理解长长的文章,比以前的模型更聪明、更快。它就像是一个超级助手,可以帮你学习、工作,甚至解决一些以前很难的问题!未来,这样的机器人会变得越来越聪明,帮助我们做更多事情!

Abstract

We present MiMo-7B, a large language model born for reasoning tasks, with optimization across both pre-training and post-training stages. During pre-training, we enhance the data preprocessing pipeline and employ a three-stage data mixing strategy to strengthen the base model's reasoning potential. MiMo-7B-Base is pre-trained on 25 trillion tokens, with additional Multi-Token Prediction objective for enhanced performance and accelerated inference speed. During post-training, we curate a dataset of 130K verifiable mathematics and programming problems for reinforcement learning, integrating a test-difficulty-driven code-reward scheme to alleviate sparse-reward issues and employing strategic data resampling to stabilize training. Extensive evaluations show that MiMo-7B-Base possesses exceptional reasoning potential, outperforming even much larger 32B models. The final RL-tuned model, MiMo-7B-RL, achieves superior performance on mathematics, code and general reasoning tasks, surpassing the performance of OpenAI o1-mini. The model checkpoints are available at https://github.com/xiaomimimo/MiMo.

cs.CL cs.AI cs.LG