Reading + AI

MiMo-V2-Flash Technical Report

LLM-Core Xiaomi

arXiv:2601.02780v2 · This workspace stays on this version. Check arXiv for newer versions

Some source details need review 7 to check

Original formulas, table values and figures are preserved. Comparison can miss differences; use the original PDF to check details.

Reading view checked: 141 math expressions, 0 rendering failures; 18 of 18 images available.

Compared 115 of 115 source passages against 31 of 31 PDF pages.

  • Additional source conflicts need review; automatic escalation was bounded to four.

HTML block S1_p1_1 says “[Kimi Team, 2025a]”, while the original PDF page 4 visibly says “Kimi Team, 2025b”; the PDF contradicts the HTML. Check PDF page 4

HTML S1_p3_1 says “Kimi Team, 2025b”; the original PDF page 4 shows “Kimi Team, 2025c”. Check PDF page 4

HTML block S2_SS1_p1_1 cites “[Kimi Team, 2025c]”, while the original PDF page 5 says “Kimi Team, 2025a”. Check PDF page 5

The original PDF shows “SWE-Bench (Jimenez et al., 2024a),” while the HTML says “SWE-Bench ([Jimenez et al., 2024b]).” Check PDF page 11

The Jimenez et al. citation year-letter differs. Check PDF page 18

The Kimi Team citation year-letter differs. Check PDF page 20

18 of 18 figure, table and graphic images captured. Open original PDF

Abstract

We present MiMo-V2-Flash, a Mixture-of-Experts (MoE) model with 309B total parameters and 15B active parameters, designed for fast, strong reasoning and agentic capabilities. MiMo-V2-Flash adopts a hybrid attention architecture that interleaves Sliding Window Attention (SWA) with global attention, with a 128-token sliding window under a 5:1 hybrid ratio. The model is pre-trained on 27 trillion tokens with Multi-Token Prediction (MTP), employing a native 32k context length and subsequently extended to 256k. To efficiently scale post-training compute, MiMo-V2-Flash introduces a novel Multi-Teacher On-Policy Distillation (MOPD) paradigm. In this framework, domain-specialized teachers (e.g., trained via large-scale reinforcement learning) provide dense and token-level reward, enabling the student model to perfectly master teacher expertise. MiMo-V2-Flash rivals top-tier open-weight models such as DeepSeek-V3.2 and Kimi-K2, despite using only 1/21/2 and 1/31/3 of their total parameters, respectively. During inference, by repurposing MTP as a draft model for speculative decoding, MiMo-V2-Flash achieves up to 3.6 acceptance length and 2.6×\times decoding speedup with three MTP layers. We open-source both the model weights and the three-layer MTP weights to foster open research and community collaboration.

Figure 1
Figure 1: Benchmark performance of MiMo-V2-Flash.

Recent progress towards Artificial General Intelligence (AGI) is increasingly propelled by two frontiers: advanced reasoning chains and autonomous agentic workflows (Google DeepMind, 2025; Liu et al., 2025; Kimi Team, 2025a), grounded in large-scale Reinforcement Learning (RL). Yet building scalable reasoners and agents hits a common critical bottleneck, where long-context modeling must be simultaneously fast and strong.

In this work, we introduce MiMo-V2-Flash, an efficient and cost-effective Large Language Model (LLM) that delivers strong reasoning and agentic performance. MiMo-V2-Flash is a 309B-parameter MoE with 15B activated per token. To alleviate the quadratic complexity of full attention, MiMo-V2-Flash adopts a hybrid attention mechanism that interleaves local sliding window and global attention. The sliding window size is 128-token and the hybrid local:global ratio is 5:1, yielding nearly a 6× reduction in KV-cache storage and attention computation for long contexts. With the help of learnable attention sink bias (Agarwal et al., 2025), the hybrid architecture maintains strong modeling capability even in long-context scenarios, despite the aggressive sliding window size and hybrid ratio. MiMo-V2-Flash also incorporates Multi-Token Prediction (MTP) to enhance training performance and accelerate inference decoding. In particular, MTP has strong potential to boost RL rollout speed, which helps to scale LLMs towards greater intelligence. With a lightweight dense Feed-Forward Network (FFN) and sliding window attention, our MTP block delivers substantial decoding speedups in practice at high acceptance rates.

The pre-training recipe of MiMo-V2-Flash largely follows that of MiMo-7B (Xia et al., 2025), with several enhancements. Training is conducted using FP8 mixed-precision, enabling efficient large-scale training over 27T tokens. The model is initially pre-trained with a native 32K context and later extended to 256K. The resulting pretrained model, MiMo-V2-Flash-Base, has been evaluated against leading open-source base models such as Kimi-K2-Base (Kimi Team, 2025b) and DeepSeek-V3.2-Exp-Base (Liu et al., 2025). MiMo-V2-Flash-Base achieves competitive performance across general benchmarks and surpasses peer models on reasoning-focused tasks. For long-context retrieval, our hybrid attention architecture achieves nearly 100% success rates across context lengths from 32K to 256K. On the extreme long-context reasoning benchmark GSM-Infinite (Zhou et al., 2025), MiMo-V2-Flash demonstrates robust performance with minimal degradation when scaling from 16K to 128K.

In post-training, we focus on efficiently scaling RL compute to improve reasoning and agentic capabilities. To this end, MiMo-V2-Flash introduces a novel post-training paradigm termed Multi-Teacher On-Policy Distillation (MOPD). This framework addresses both learning inefficiency and capability imbalance through a three-stage process: (1) general Supervised Fine-Tuning (SFT); (2) specialized RL/SFT to train domain-specific teacher models; (3) MOPD, wherein the student model learns from two complementary signals: dense, token-level rewards from specialized teachers trained across diverse domains, and a verifiable, outcome-based reward. By integrating diverse expert knowledge in this manner, MiMo-V2-Flash simultaneously masters the peak capabilities of domain teachers while benefiting from stable and efficient learning dynamics.

MiMo-V2-Flash achieves performance comparable to that of Kimi-K2-Thinking and DeepSeek-V3.2-Thinking on most reasoning benchmarks. In long-context evaluations such as LongBench V2 and MRCR, MiMo-V2-Flash consistently surpasses larger full-attention models, confirming the robustness of its hybrid SWA architecture. Notably, the model attains 73.4% on SWE-Bench Verified and 71.7% on SWE-Bench Multilingual, establishing it as the leading open-source model for software engineering tasks. The model weights (with 3-layer MTP weights) are available at https://github.com/XiaomiMiMo/MiMo-V2-Flash.

As illustrated in Figure 2, MiMo-V2-Flash follows a standard Transformer (Vaswani et al., 2017) backbone augmented with MoE (Shazeer et al., 2017) and hybrid attention (Brown et al., 2020; Gemma Team, 2024; Gemma Team, 2025; Li et al., 2025; Qwen Team, 2025; Kimi Team, 2025c). MiMo-V2-Flash is mainly composed of repeated hybrid blocks that interleave Local Sliding Window Attention (SWA) and Global Attention (GA). It stacks M=8M=8 hybrid blocks, each structured with N=5N=5 consecutive SWA blocks followed by an GA block. The only exception is the very first Transformer block, which uses global attention with a dense Feed-Forward Network (FFN) to stabilize early representation learning. The sliding window size WW used in MiMo-V2-Flash is 128128. Both the SWA block and the GA block utilize the sparse MoE FFN. Each MoE layer comprises 256 experts in total, with 8 activated per token, and contains no shared experts.

MiMo-V2-Flash also integrates MTP (Gloeckle et al., 2024; Liu et al., 2024; Xia et al., 2025) to improve model performance (both quality and efficiency). Worth noting, the MTP block uses dense FFN instead of MoE and applies SWA rather than GA, making it lightweight for speculative decoding. The number of parameters for each MTP block is only 0.33B.

Figure 2
Figure 2: An illustration of MiMo-V2-Flash model architecture. The model comprises M=8M=8 Hybrid Blocks, where each Hybrid Block interleaves N=5N=5 Sliding Window Attention (SWA) blocks with one Global Attention (GA) block. Both are equipped with a sparse MoE FFN. The only exception is the first block, which uses GA with a dense FFN. The MTP blocks employ SWA and a dense FFN.
Table 1
BlockConfigurationValue
Main BlockLayers (Total/SWA/GA)48/39/948/39/9
SWA Heads (Q/KV)64/864/8
Sliding Window Size128128
GA Heads (Q/KV)64/464/4
Head Dimensions (QK/V)192/128192/128
Experts (Total/Activated)256/8256/8
MTP BlockSWA Heads (Q/KV)64/864/8
Sliding Window Size128128
Head Dimensions (QK/V)192/128192/128
# Parameters0.330.33B
Table 1: Detailed model configuration of MiMo-V2-Flash.
View original tableOriginal Table 1

Table 1 summarizes detailed configurations of MiMo-V2-Flash. The model consists of 39 SWA layers and 9 GA layers. Both SWA and GA utilize Grouped-Query Attention (GQA) (Ainslie et al., 2023). Specifically, SWA has 64 query heads and 8 key-value heads, while GA has 64 query heads and 4 key-value heads. The per-head dimensions are the same for SWA and GA (192 for queries and keys, and 128 for values). Rotary Positional Embedding (RoPE, Su et al. (2024)) is partially applied to the first 64 dimensions query and key. Following recent best practices, we adopt an FP8 mixed-precision framework similar to DeepSeek-V3 (Liu et al., 2024). Specifically, we retain BF16 precision for the attention output projections, as well as for the embedding and output head parameters, while maintaining FP32 precision for the MoE router parameters. This mixed-precision configuration improves numerical stability without materially impacting training efficiency or memory footprint.

Sliding window attention (Beltagy et al., 2020) restricts each token’s attention scope to a local window rather than the entire sequence, thereby reducing both computational and memory complexity dramatically. This naturally motivates hybrid attention architectures that interleave sliding window attention with global attention. However, prior work has shown that overly aggressive use of SWA, such as very small sliding window sizes or high SWA:GA ratios, can lead to substantial degradation in model performance (Gemma Team, 2025), especially in long-context tasks. Recently, the introduction of learnable attention sink bias, which allows the model to assign little or no attention to tokens when needed, has substantially enhanced the modeling capacity of SWA-based architectures (Agarwal et al., 2025). While the precise theoretical underpinnings of the attention sink mechanism remain an active research area (Xiao et al., 2023; Gu et al., 2024b; Qiu et al., 2025; Sun et al., 2024), we empirically observed that learnable attention sinks bias dramatically enhance the performance of hybrid SWA models, matching or even surpassing baselines with fully GA layers.

In MiMo-V2-Flash, our implementation follows the design used in gpt-oss (Agarwal et al., 2025), where a learnable attention sink bias sink∈Rsink\in\mathbb{R} is applied to the denominator of softmax for each attention head. Specifically, let the attention logits between token ii and jj of one single head be:

aij=qikj⊤d,a_{ij}=\frac{q_{i}k_{j}^{\top}}{\sqrt{d}},
(1)

where qiq_{i} and kjk_{j} denote the query of token ii and key of token jj, respectively, and dd is the head dimension. The attention weights are then given by:

sij=exp⁡(aij−mi)exp⁡(sink−mi)+∑j′exp⁡(aij′−mi),s_{ij}=\frac{\exp\left(a_{ij}-m_{i}\right)}{\exp\left(sink-m_{i}\right)+\sum_{j^{\prime}}\exp\left(a_{ij^{\prime}}-m_{i}\right)},
(2)
mi=max⁡(max⁡jaij,  sink).m_{i}=\max\left(\max_{j}a_{ij},\;sink\right).
(3)

Finally, the attention output for query ii is obtained as a weighted sum over the values:

oi=∑j=1nsijvj.o_{i}=\sum_{j=1}^{n}s_{ij}v_{j}.
(4)

To validate the effectiveness of our design choice, we conduct exploratory and empirical studies on a 32B dense model, maintaining the query–key dimensions and rotary embedding configurations consistent with those described above.

Table 2
ModelMMLUBBHTriviaQAGSM8KMATHCMMLUMBPP
All GA57.354.753.234.29.550.354.7
Hybrid SWA(W=128W=128, w/o sink)54.952.452.836.98.9--
Hybrid SWA(W=128W=128, w/ sink)58.356.153.736.910.353.356.3
Hybrid SWA(W=512W=512, w/ sink)58.354.954.937.910.052.353.2
Table 2: General benchmark results for different attention configurations.
View original tableOriginal Table 2
Table 3
ModelGSM-InfiniteNoLiMaRULER-32kMRCR
All GA12.349.789.432.5
Hybrid SWA(W=128W=128, w/ sink)17.351.289.434.4
Hybrid SWA(W=512W=512, w/ sink)17.238.584.719.6
Table 3: Long-context benchmark results for different attention configurations.
View original tableOriginal Table 3
Table 4
ModelAIME24/25LiveCodebenchGPQA-DiamondAverage
All GA45.540.041.742.4
Hybrid SWA(W=128W=128, w/ sink)47.143.948.146.3
Table 4: Complex reasoning benchmark results for different attention configurations.
View original tableOriginal Table 4

We evaluate four model architecture variants in a comparative setting. These include an all global attention (All GA) baseline, a hybrid SWA model with a 128-token window without attention sinks bias, and two hybrid SWA models augmented with attention sinks bias using window sizes of 128 and 512, respectively. All variants share the same training pipeline: pre-training on 250B tokens with an 8,192 sequence length, long context extension to 32,768 over an additional 40B tokens, followed by long-context SFT and reasoning SFT with chain-of-thought supervision. We evaluate model variants across benchmarks covering general capability, long-context understanding, and complex reasoning. General-domain results (Table 2) are obtained from pre-trained base models without long-context extension, evaluating general knowledge and reasoning on MMLU Hendrycks et al. (2021a), BBH (Suzgun et al., 2023), TriviaQA (Joshi et al., 2017), GSM8K (Cobbe et al., 2021), MATH (Hendrycks et al., 2021b), CMMLU (Li et al., 2023), and MBPP (Austin et al., 2021). Long-context results (Table 3) evaluate long-context–extended base models on GSM-Infinite (Zhou et al., 2025), NoLiMa (Modarressi et al., 2025), and RULER-32k (Hsieh et al., 2024), and long-context SFT models on MRCR (Vodrahalli et al., 2024). For GSM-Infinite and Nolima, we construct internal few-shot benchmarks to assess base models under controlled long-context settings. Complex reasoning results (Table 4) evaluate the reasoning SFT models on AIME24&25 (MAA, 2024), LiveCodeBench (Jain et al., 2024), and GPQA-Diamond (Rein et al., 2024).

We highlight our key empirical findings below:

As shown in Table 2, hybrid SWA (W=128W=128, w/o sink) suffers noticeable performance degradation across general benchmarks, whereas introducing attention sink bias consistently recovers or improves performance relative to the all-GA baseline. Thus, in our further experiments, we assume that the attention sink bias is applied by default.

Hybrid SWA (W=128W=128) and Hybrid SWA (W=512W=512) appear to perform similarly on general benchmarks (Table 2). However, after long-context extension and long-context SFT, hybrid SWA (W=128W=128) surpasses the all-GA baseline, whereas SWA (W=512W=512) experiences significant degradation (Table 3).

As shown in Table 4, hybrid SWA (W=128W=128) surpasses the all-GA baseline across different challenging reasoning benchmarks, showing clear improvements on complex reasoning abilities.

Our experiments show that hybrid SWA (W=128W=128) not only outperforms hybrid SWA (W=512W=512) but can also surpass the all-GA baseline, which may seem counterintuitive. We hypothesize that this arises from a combination of better regularization and effective sparsity. Smaller windows force the model to focus on local context, serving as an inductive bias that mitigates overfitting on spurious patterns. Moreover, a tighter window (W=128W=128) compels SWA to model local information while delegating long-range dependencies to the global attention layers, resulting in a clearer division of labor with more accurate and efficient learning. In contrast, a larger window (W=512W=512) can blur this distinction, causing SWA to partially handle long-range dependencies itself, which dilutes the separation between local and global information and leads to suboptimal performance.

We emphasize that these observations and findings are empirical and derived from our specific experimental settings, including model scale, datasets, and training procedures. Nonetheless, we hope these observations contribute an additional perspective to the ongoing discussion of efficient attention architectures in the era of reasoning and agentic AI models, and motivate further community-wide investigation into efficient architecture.

Prior work demonstrates that MTP is a powerful training objective that enhances training efficiency and model quality (Gloeckle et al., 2024; Liu et al., 2024; Xia et al., 2025). Beyond these training benefits, we place stronger emphasis on exploiting MTP as a native draft model for self-speculative decoding to deliver real-deployment speedup. In the following, we elaborate on how MTP accelerates inference from two perspectives: general LLM decoding speedup and RL training acceleration.

LLM decoding is inherently memory-bound due to low arithmetic intensity. Batch-level parallelism is commonly used to increase FFN arithmetic intensity but does not benefit attention computation, as each request maintains its own KV cache. In contrast, MTP lifts the arithmetic intensity of both FFN and attention by generating multiple draft tokens, which the main model then verifies in parallel. This approach enables token-level parallelism without increasing KV cache I/O.

MTP acceleration is particularly well-suited for RL training (RadixArk Team, 2025), where the rollout phase consistently emerges as the dominant bottleneck due to the inference and decoding costs. MTP addresses two key challenges in RL training:

  • •

    It enables efficient and effective RL with small batches. Current RL training relies on large-batch, off-policy algorithms to maximize throughput (Schulman et al., 2017; Zheng et al., 2025; Liu et al., 2025). However, on-policy training is generally more stable and effective, yet its small batches underutilize GPU resources. MTP mitigates this limitation by scaling token-level parallelism instead of batch size, making small-batch, on-policy RL training more practical.

  • •

    It mitigates GPU idleness from long-tail stragglers. As the rollout phase progresses, long-tail stragglers that process long sequences with small batch sizes (often approaching 1) can cause significant GPU idleness (Zhong et al., 2025; Gao et al., 2025). In such scenarios, MTP enhances the computational efficiency of both attention and FFN, substantially reducing overall latency.

In MiMo-V2-Flash, the MTP block is deliberately kept lightweight to prevent it from becoming a new inference bottleneck. We use a small dense FFN rather than MoE to limit parameter count, and employ SWA instead of Global Attention (GA) to reduce KV cache and attention computation costs. During pre-training, only a single MTP head is attached to the model to avoid extra training overhead. In post-training, this head is replicated KK times to form a KK-step MTP module, and all heads are jointly trained for multi-step prediction. Each head receives the main-model hidden state and token embedding as input, providing richer predictive information. Despite its lightweight design, the MTP module remains highly effective and achieves a high acceptance rate. Detailed results are presented in Section 5.

The MiMo-V2-Flash pre-training corpus consists of 27 trillion tokens drawn from a diverse collection of high-quality sources, including public web content, books, academic papers, code, mathematics, and broader STEM materials. Our data processing pipeline largely follows that of MiMo-7B (Xia et al., 2025), with a deliberate shift toward data exhibiting long-range dependencies. In particular, we emphasize long-form web documents and carefully curated code corpora such as repository-level code, pull requests, issues, and commit histories to strengthen the model’s ability to capture extended contextual relationships and perform complex, multi-step reasoning.

The pre-training of MiMo-V2-Flash is organized into three sequential stages:

  • •

    Stage 1 (Pre-training, 0 – 22T). The model is trained on a diverse, high-quality general-purpose corpus using a context length of 32K tokens to establish strong foundational language capabilities.

  • •

    Stage 2 (Mid-training, 22 – 26T). We modify the data mixture by upsampling code-centric data and incorporating approximately 5% synthetic reasoning data to further enhance logical reasoning and program synthesis abilities.

  • •

    Stage 3 (Context Extension, 26 – 27T). Following the Stage 2 data distribution, we extend the model’s context window to 256K tokens and upsample data with long-range dependencies, enabling more effective modeling of extended contexts and long-horizon reasoning.

We configure MiMo-V2-Flash with 48 Transformer layers, comprising 39 sliding window attention layers and 9 global attention layers. The hidden dimension is set to 4096. All layers except the first are equipped with sparse MoE. Each MoE layer contains 256 routed experts, with 8 experts activated per token, and an intermediate hidden dimension of 2048 for each expert. The intermediate hidden dimension of the FFN of dense layers is set to 16384. All learnable parameters are randomly initialized with a standard deviation of 0.006. The model uses a single MTP layer during pre-training. Overall, MiMo-V2-Flash has 309B total parameters, of which 15B are active.

We employ the AdamW optimizer with β1=0.9\beta_{1}=0.9, β2=0.95\beta_{2}=0.95, and a weight decay of 0.1. Gradient clipping is applied with a maximum norm of 1.0. The learning rate schedule operates in two stages. In Stage 1, the learning rate starts with a linear warm-up from 0 to 3.2×10−43.2\times 10^{-4} over the first 50B tokens, followed by a constant phase at 3.2×10−43.2\times 10^{-4} for 12T tokens, and concludes with a cosine decay to 1.0×10−41.0\times 10^{-4} over 10T tokens. Stage 2 begins at 1.0×10−41.0\times 10^{-4} and follows a cosine decay down to 3.0×10−53.0\times 10^{-5} over 4T tokens. The batch size warms up linearly to 2,048 over the initial 500B tokens and remains constant for the remainder of both stages. Regarding auxiliary losses, the MoE sequence auxiliary loss coefficient is set to 1.0×10−51.0\times 10^{-5} for all stages. The expert bias update factor is set to 0.001 during Stage 1 and Stage 2. The MTP loss weight is set to 0.3 for Stage 1 and 0.1 for Stage 2 and 3.

In Stage 1, we set the pre-training sequence length to 32,768 with a RoPE base frequency of 640,000 for GA and 10,000 for SWA. In Stage 3, the sequence length is extended to 262,144, and the RoPE base frequency of GA is adjusted to 5,000,000. The learning rate in Stage 3 decays from 3.0×10−53.0\times 10^{-5} to 1.0×10−51.0\times 10^{-5} following a cosine schedule, with a fixed batch size of 256. The expert bias update factor is reduced to 1.0×10−51.0\times 10^{-5} in Stage 3.

We evaluate MiMo-V2-Flash-Base on a series of benchmarks, encompassing various capabilities: (1) General language understanding and reasoning, including BBH (Suzgun et al., 2023), MMLU (Hendrycks et al., 2021a), MMLU-Redux (Gema et al., 2024), MMLU-Pro (Wang et al., 2024), DROP (Dua et al., 2019), ARC (Clark et al., 2018), HellaSwag (Zellers et al., 2019), WinoGrande (Sakaguchi et al., 2020), TriviaQA (Joshi et al., 2017), GPQA-Diamond (Rein et al., 2024), SuperGPQA (Du et al., 2025), and SimpleQA (OpenAI, 2024). (2) Mathematics reasoning. GSM8K (Cobbe et al., 2021), MATH (Hendrycks et al., 2021b), and AIME (MAA, 2024) (2024 & 2025). (3) Coding. HumanEval+ (Liu et al., 2023), MBPP+ (Liu et al., 2023), CRUXEval (Gu et al., 2024a), MultiPL-E (Cassano et al., 2022), BigCodeBench (Zhuo et al., 2024), LiveCodeBench-v6 (Jain et al., 2024), and SWE-Bench (Jimenez et al., 2024b) (few-shot Agentless Repair (Xia et al., 2024)). (4) Chinese understanding. C-Eval (Huang et al., 2023), CMMLU (Li et al., 2023), and C-SimpleQA (He et al., 2025). (5) Multilingual understanding. GlobalMMLU (Singh et al., 2025), and INCLUDE (Romanou et al., 2024). (6) Long context. NIAH-Multi (Hsieh et al., 2024), GSM-Infinite (Zhou et al., 2025) (5-shot, Hard Ops-{2,4,6,8,10}).

Table 5
Benchmark# ShotsMiMo-V2-FlashKimi-K2DeepSeek-V3.1DeepSeek-V3.2
BaseBaseBaseExp Base
#Activated Params-15B32B37B37B
#Total Params-309B1043B671B671B
General
BBH3-shot88.588.788.288.7
MMLU5-shot86.787.887.487.8
MMLU-Redux5-shot90.690.290.090.4
MMLU-Pro5-shot73.269.258.862.1
DROP3-shot84.783.686.386.6
ARC-Challenge25-shot95.996.295.695.5
HellaSwag10-shot88.594.689.289.4
WinoGrande5-shot83.885.385.985.6
TriviaQA5-shot80.385.183.583.9
GPQA-Diamond5-shot55.148.151.052.0
SuperGPQA5-shot41.144.742.343.6
SimpleQA5-shot20.635.326.327.0
Mathematics
GSM8K8-shot92.392.191.491.1
MATH4-shot71.070.262.662.5
AIME 24&252-shot35.331.621.624.8
Code
HumanEval+1-shot70.784.864.667.7
MBPP+3-shot71.473.872.269.8
CRUXEval-I1-shot67.574.062.163.9
CRUXEval-O1-shot79.183.576.474.9
MultiPL-E HumanEval0-shot59.560.545.945.7
MultiPL-E MBPP0-shot56.758.852.550.6
BigCodeBench0-shot70.161.763.062.9
LiveCodeBench v61-shot30.826.324.824.9
SWE-Bench (AgentLess Repair)3-shot30.828.224.89.4∗
Chinese
C-Eval5-shot87.992.590.091.0
CMMLU5-shot87.490.988.888.9
C-SimpleQA5-shot61.577.670.968.0
Multilingual
GlobalMMLU5-shot76.680.781.982.0
INCLUDE5-shot71.475.377.277.2
Table 5: Comparison among MiMo-V2-Flash and other open-source base models. An asterisk (*) denotes that the model does not follow the format of few-shot examples.
View original tableOriginal Table 5

Table 5 presents a comprehensive comparison of MiMo-V2-Flash-Base against leading open-source base models (Kimi Team, 2025b; Liu et al., 2024). MiMo-V2-Flash-Base delivers competitive performance across most benchmarks and consistently outperforms peers on reasoning tasks (MMLU-Pro, GPQA-Diamond, AIME). On SWE-Bench, it even surpasses the substantially larger Kimi-K2-Base while using less than one-third the parameters, underscoring the strength of our approach for realistic code-agent tasks. However, constrained by its limited parameter count, we observe MiMo-V2-Flash exhibits lower knowledge capacity compared to larger models, as reflected in SimpleQA.

Table 6
BenchmarkLengthMiMo-V2-FlashKimi-K2DeepSeek-V3.1DeepSeek-V3.2
BaseBaseBaseExp Base
#Activated Params-15B32B37B37B
#Total Params-309B1043B671B671B
NIAH-Multi32K99.399.899.785.6∗
64K99.9100.098.685.9∗
128K98.699.597.294.3∗
256K96.7---
GSM-Infinite Hard16K37.734.641.550.4
32K33.726.138.845.2
64K31.516.034.732.6
128K29.08.828.725.7
Table 6: Long context performance of MiMo-V2-Flash and other open-source base models. An asterisk (*) indicates the model may fail to follow the prompt. All baseline models have maximum model lengths shorter than 256K.
View original tableOriginal Table 6

We illustrate the long context capabilities of each model in Table 6. For long-context retrieval, our model architecture achieves a near 100% success rate from 32K to 256K. On the extreme stress long context reasoning benchmark GSM-Infinite, MiMo-V2-Flash also shows strong performance, with minimal performance degradation from 16K to 128K. In contrast, DeepSeek-V3.2-Exp, a sparse attention LLM, attains the highest score under 32K but degrades substantially at 64K and 128K, suggesting an intrinsic disadvantage in long-context reasoning with noisy inputs. These results strongly demonstrate the effectiveness and scalability of our hybrid SWA architecture, vanilla 32K pretraining, and context extension training.

Figure 3
Figure 3: Overview of MiMo-V2-Flash post-training stages.

Modern language models increasingly rely on extensive post-training to enhance their intelligence and capabilities. However, current post-training pipelines face fundamental challenges: capability imbalance, where improving one skill causes regressions in others (the “see-saw” effect), and learning inefficiency, where existing approaches fail to fully leverage training signals when combining knowledge from multiple specialized models.

We propose Multi-Teacher On-Policy Distillation (MOPD), a unified post-training paradigm that addresses these challenges through a three-stage framework, as illustrated in Figure 3:

We establish foundational instruction-following capabilities through supervised learning on high-quality instruction-response pairs, enabling the model to understand and execute user requests across diverse domains.

We train a suite of domain-specialized teacher models through independent RL optimization on focused tasks including agentic capabilities (search, coding, general tool use) and non-agentic tasks (mathematical reasoning, general reasoning, safety alignment). Each teacher achieves superior performance in its respective domain through targeted optimization with domain-specific reward signals.

Rather than merging model parameters or generating static offline datasets from experts, we formulate multi-teacher knowledge integration as an on-policy reinforcement learning process. The student model samples from its own evolving distribution and receives token-level supervision from domain-specific teachers through KL divergence rewards (Gu et al., 2024c; Agarwal et al., 2023; Lu and Lab, 2025), effectively combining specialized capabilities without the traditional trade-offs (Table 7).

Table 7
BenchmarkStudentBest TeacherStudentΔ\Delta(Student-Teacher)
Before MOPDAfter MOPD
AIME 202589.393.9 (RL)94.1++0.2
HMMT Feb. 202576.982.6 (RL)84.4++1.8
LiveCodeBench77.582.6 (RL)83.2++0.6
MMLU-Pro84.784.7 (Self)84.9++0.2
GPQA-Diamond84.984.9 (Self)84.3−-0.6
HLE (w/o Tool)21.221.2 (Self)22.1++0.9
Arena-Hard (Hard Prompt)50.050.0 (Self)54.1++4.1
Arena-Hard (Creative Writing)90.190.1 (Self)86.2−-3.9
SWE-Bench Verified67.874.2 (RL)73.4−-0.8
Tau2-Bench75.979.6 (RL)80.3++0.7
Tau2-Bench (Telecom)92.795.0 (RL)95.3++0.3
BrowseComp42.551.7 (SFT)45.4−-6.3
Table 7: Benchmark results of MOPD. The model types of best teachers are tagged, including RL, SFT, and the student model itself.
View original tableOriginal Table 7

This unified framework offers several critical advantages over traditional post-training approaches:

  • •

    Effective and Efficient. Unlike parameter merging or sequential training, which often trade off capabilities, MOPD preserves peak performance of the strongest teacher across all domains. Furthermore, on-policy distillation using dense, token-level rewards from teacher logits ensures stable credit assignment and rapid convergence. By learning from its own distribution, the student avoids the exposure bias and distribution mismatch common in off-policy methods trained on static datasets.

  • •

    Modular and Scalable. The choice of teacher model is highly flexible: it can be a specialized RL-derived model with strong capabilities, a different SFT model, or even the student model itself. The decoupled design enables easy integration of new teachers without restructuring the entire pipeline. Moreover, the framework works seamlessly with existing outcome reward models (ORMs) and is especially advantageous for complex agentic tasks, where setting up independent training pipelines would otherwise be cumbersome.

  • •

    Iterative Co-Evolution. MOPD naturally supports a teacher-student co-evolution cycle. Distilled student models can re-enter the specialized RL stage to produce stronger teachers, which in turn provide higher-quality supervision for the next generation of students, forming a self-reinforcing improvement cycle that enables sustained capability scaling.

In the following subsections, we detail each stage of the MOPD paradigm, beginning with supervised fine-tuning (§4.2), followed by specialized RL for both agentic and non-agentic tasks (§4.3), and conclude with the technical formulation of the multi-teacher distillation mechanism (§4.4).

The SFT stage serves as the foundation of our post-training pipeline, transforming the base model into a helpful assistant capable of following instructions and responding effectively across diverse tasks. This stage is crucial for activating the model’s latent capabilities acquired during pre-training and aligning its outputs with desired formats and styles.

To achieve this, we curated millions of training samples spanning diverse domains, including general conversation, reasoning, coding, and agent tasks. These samples cover both thinking and non-thinking modes, with responses generated by our in-house domain-specialized model checkpoints. This diverse training mixture ensures comprehensive capability activation across the model’s intended use cases.

Through preliminary experiments, we identified a critical stability metric for MoE SFT training: the number of parameters with zero gradients (num-zeros). This metric provides early warning signals for training instability: an increasing num-zeros indicates deteriorating load balance among experts, while a decreasing num-zeros suggests the model is significantly overfitting to the training data. Maintaining stable num-zeros throughout training is therefore essential for successful SFT. Furthermore, this stability is paramount for ensuring the robustness and convergence of the subsequent RL phase.

Our experiments reveal that num-zeros stability critically depends on two hyperparameters: the expert bias update rate and the ϵ\epsilon parameter in the AdamW optimizer. Based on these findings, we configure our training with the following hyperparameters. We employ a cosine decay learning rate scheduler from 5.0×10−55.0\times 10^{-5} to 5.0×10−65.0\times 10^{-6}, with a batch size of 128 and AdamW ϵ\epsilon set to 1.0×10−81.0\times 10^{-8}. The MoE expert bias update rate is set to 1.0×10−41.0\times 10^{-4}, and the sequence auxiliary loss coefficient to 1.0×10−61.0\times 10^{-6}.

Reinforcement learning pushes model capabilities beyond what supervised fine-tuning alone can achieve. We employ different RL strategies depending on whether tasks involve agentic behavior, scaling both non-agentic and agentic RL training to maximize performance across diverse domains.

Non-agentic RL training focuses on improving the model’s performance on single-turn tasks, where the model generates a complete response without requiring interactive feedback or multi-step execution. The primary objective is to enhance the model’s reasoning accuracy in verifiable domains (e.g., mathematics, coding, logic) while simultaneously aligning its outputs for helpfulness and safety in open-ended conversations.

Our approach to generating reward signals varies based on task characteristics. For domains with verifiable outcomes, we employ a hybrid verification system combining programmatic tools with an LLM judge to automatically assess correctness against curated problem-solution pairs. For subjective qualities such as helpfulness and safety, we implement a rubric-based framework where an advanced LLM judge evaluates responses against detailed rubrics and reference answers, producing granular reward signals that guide the model toward desired behaviors.

Table 8
Agent TypeNumber of TasksEnvironmentPrompt Source
Code Agent90K90\textrm{K}RealReal
Code Agent30K30\textrm{K}RealSynthesized
Search Agent150K150\textrm{K}RealSynthesized
General Agent50K50\textrm{K}SynthesizedSynthesized
Table 8: A summary of our training data composition across different agent types. We leverage both real-world and synthetically generated data to create a diverse set of tasks for training agents in various environments.
View original tableOriginal Table 8

While non-agentic RL focuses on single-turn reasoning and generation, agentic RL trains the model to operate in interactive, multi-turn environments requiring planning, action execution, and adaptation based on feedback. We scale agentic RL along two critical dimensions: environment diversity and compute resources.

We construct a diverse suite of agentic training environments spanning code debugging, terminal operations, web development, and general tool use (Table 8). Each environment targets distinct capabilities while sharing the common requirement of multi-step reasoning and execution. Below, we elaborate on the details for agentic environments.

We train on large-scale code agentic tasks derived from real-world GitHub issues, where the model operates in an agentic loop to read and edit files, execute commands, and receive rewards based on verifiable unit tests. Our key insight is that continuously scaling available tasks drives sustained improvements in code intelligence. To enable efficient RL training on over 100,000 code tasks, we develop two infrastructure components. First, we build an automated environment setup pipeline that provisions development environments from repository snapshots and packages them into containerized images, achieving 70% success rate across 8 programming languages and supported by a large-scale Kubernetes cluster running over 10,000 concurrent pods. Second, we implement a lightweight agent scaffold that integrates seamlessly with Kubernetes, Docker, or local backends, exposing three atomic tools (bash, str_replace, finish) that interact with execution backends solely via shell commands. This design eliminates server-based tool implementations and employs a minimal system prompt without predefined workflows, allowing the model to discover best practices during training.

Beyond GitHub issues, we strengthen terminal-based problem-solving capabilities using tasks sourced from Stack Overflow and Stack Exchange. We select materials requiring advanced technical expertise and transform them into computational tasks with corresponding queries, Dockerfiles, and test cases. After verifying environment installation and filtering by difficulty and reliability, we obtain approximately 30,000 queries with validated execution environments. Additional filtering based on pass rates removes tasks with unreliable correctness judgments or insufficient complexity for effective RL training.

To improve web development code generation, we build a real-world-grounded synthetic dataset paired with a multimodal verifier. We collect high-quality user-written web pages, execute generated code using Playwright to obtain rendered videos, and apply a multimodal visual discriminator to retain only high-quality samples, where video-based evaluation reduces visual hallucination compared to static screenshots. We reverse-engineer user queries from curated pages as seed prompts to synthesize large-scale RL data covering eight web categories that closely match real-world usage. Our vision-based verifier scores rollout executions from recorded videos, jointly evaluating visual quality, functional correctness, and executability to ensure rewards reflect both appearance and behavior.

We develop two general agentic capabilities. Our search agent adopts a scaffold providing three core tools (search, open, find) for autonomous web exploration. We construct queries through recursive fact-graph expansion from seed entities, where difficulty scales with relation chain depth and detail obfuscation, enabling automated generation of challenging search problems with verifiable answers. Our function-calling agent trains on synthetic application environments with custom toolsets constructed by generating tool-call graphs based on explicit data dependencies (direct input-output relationships) and implicit logical dependencies (reasoning about hidden system states), requiring both data propagation and state inference capabilities.

Training on the previous diverse set of agentic environments (Table 8), we find that scaling agentic RL compute not only boosts code-agentic performance but also generalizes effectively to other task types. Figure 4 shows the RL training curve for our code-agent, where the model performed on-policy rollouts and updates across approximately 120K environments. This scaling significantly improves upon the SFT base model’s performance on SWE-Bench-Verified and SWE-Bench-Multilingual. Moreover, Figure 5 demonstrates that large-scale code-agentic RL training generalizes effectively to other agentic tasks, as well as math, code, and general reasoning benchmarks, suggesting that agentic training develops broadly transferable problem-solving capabilities.

Figure 4
Figure 4: Code-agentic RL scaling curves. The X-axis represents total interactive environments consumed during on-policy RL rollouts; the Y-axis shows resolved rates on SWE-Bench-Verified and SWE-Bench-Multilingual.
Figure 5
Figure 5: Generalization of code-agentic RL training to other task domains.

Having established the foundation through SFT and trained specialized teachers through domain-specific RL, we now formalize the multi-teacher on-policy distillation mechanism that integrates these specialized capabilities into a unified student model.

Specifically, we cast multi-teacher distillation as an on-policy reinforcement learning objective. Let πθ\pi_{\theta} denote the target student policy optimized in the training engine, μθ\mu_{\theta} denote the student sampling policy adopted in the inference engine, and πdomainx\pi_{\text{domain}_{x}} denote the teacher policy specialized for the domain of prompt xx sampled from distribution D\mathcal{D}. Let sg[⋅]\text{sg}[\cdot] denote the stop-gradient operator. The reverse KL divergence loss between student and teacher is defined as:

Lreverse-KL(θ)=−Ex∼D,yt∼πθ(⋅∣x,y<t)log⁡πdomainx(yt∣x,y<t)πθ(yt∣x,y<t).\mathcal{L}_{\text{reverse-KL}}(\theta)=-\mathbb{E}_{x\sim\mathcal{D},y_{t}\sim\pi_{\theta}(\cdot|x,y_{<t})}\log\frac{\pi_{\text{domain}_{x}}(y_{t}|x,y_{<t})}{\pi_{\theta}(y_{t}|x,y_{<t})}.
(5)

The gradient is:

∇θLreverse-KL(θ)=−Ex∼D,yt∼πθ(⋅∣x,y<t)[log⁡πdomainx(yt∣x,y<t)πθ(yt∣x,y<t)∇θlog⁡πθ(yt∣x,y<t)].\nabla_{\theta}\mathcal{L}_{\text{reverse-KL}}(\theta)=-\mathbb{E}_{x\sim\mathcal{D},y_{t}\sim\pi_{\theta}(\cdot|x,y_{<t})}\left[\log\frac{\pi_{\text{domain}_{x}}(y_{t}|x,y_{<t})}{\pi_{\theta}(y_{t}|x,y_{<t})}\nabla_{\theta}\log\pi_{\theta}(y_{t}|x,y_{<t})\right].
(6)

Following Zhao et al. (2025), we apply training-inference importance sampling and discard tokens that exhibit large discrepancies. We then define the surrogate loss of MOPD as:

LMOPD(θ)=−Ex∼D,y∼μθ(⋅∣x)[1∣y∣∑t=1∣y∣wtA^MOPD,tlog⁡πθ(yt∣x,y<t)],\mathcal{L}_{\text{MOPD}}(\theta)=-\mathbb{E}_{x\sim\mathcal{D},y\sim\mu_{\theta}(\cdot|x)}\left[\frac{1}{|y|}\sum_{t=1}^{|y|}w_{t}\hat{A}_{\text{MOPD},t}\log\pi_{\theta}(y_{t}|x,y_{<t})\right],
(7)

where

wt(θ)={sg[πθ(yt∣x,y<t)μθ(yt∣x,y<t)],ϵlow≤πθ(yt∣x,y<t)μθ(yt∣x,y<t)≤ϵhigh,0,other, A^MOPD,t=sg[log⁡πdomainx(yt∣x,y<t)πθ(yt∣x,y<t)].w_{t}(\theta)=\begin{cases}\text{sg}\left[\frac{\pi_{\theta}(y_{t}|x,y_{<t})}{\mu_{\theta}(y_{t}|x,y_{<t})}\right],&\epsilon_{\text{low}}\leq\frac{\pi_{\theta}(y_{t}|x,y_{<t})}{\mu_{\theta}(y_{t}|x,y_{<t})}\leq\epsilon_{\text{high}},\\ 0,&\text{other},\end{cases}\quad\ \hat{A}_{\text{MOPD},t}=\text{sg}\left[\log\frac{\pi_{\text{domain}_{x}}(y_{t}|x,y_{<t})}{\pi_{\theta}(y_{t}|x,y_{<t})}\right].
(8)

By default, we combine the advantages of MOPD with other types of advantages, such as those computed using Outcome Reward Models (ORMs), including GRPO (Shao et al., 2024). Let A^ORM\hat{A}_{\text{ORM}} denote the advantages computed by the ORMs; the final advantages are given by:

A^MOPD,t=sg[log⁡πdomainx(yt∣x,y<t)πθ(yt∣x,y<t)]+αA^ORM.\hat{A}_{\text{MOPD},t}=\text{sg}\left[\log\frac{\pi_{\text{domain}_{x}}(y_{t}|x,y_{<t})}{\pi_{\theta}(y_{t}|x,y_{<t})}\right]+\alpha\hat{A}_{\text{ORM}}.
(9)
Figure 6
Figure 6: Comparison of different post-training methods on math and code tasks. Three lines represent training RL with ORM, MOPD without outcome rewards (MOPD w/o ORM), and MOPD.

Figure 6 demonstrates the effectiveness of MOPD compared to traditional post-training approaches. On mathematical reasoning (AIME 2025) and coding (LiveCodeBench) benchmarks, MOPD successfully preserves and combines specialized capabilities from multiple teachers, achieving performance that matches or exceeds the strongest teacher in most domains.

We evaluate MiMo-V2-Flash on MMLU-Pro (Wang et al., 2024), GPQA-Diamond (Rein et al., 2024), HLE Text-only (Phan et al., 2025), AIME 2025 (MAA, 2024), LiveCodeBench (2024.08-2025.04) (Jain et al., 2024), HMMT Feb. 2025 (Balunović et al., 2025), Arena-Hard (Li et al., 2024), LongBench V2 (Bai et al., 2025), MRCR (Vodrahalli et al., 2024) ({2,4,8}-needles, maximum 128K), SWE-Bench Verified (Jimenez et al., 2024a), SWE-Bench Multilingual (Yang et al., 2025), Terminal-Bench, BrowseComp (Wei et al., 2025), τ2\tau^{2}-Bench (Barres et al., 2025).

We illustrate the evalution results in Table 9. MiMo-V2-Flash achieves performance comparable to that of Kimi-K2-Thinking and DeepSeek-V3.2-Thinking on most reasoning benchmarks. The model also maintains competitive general writing capabilities, enabling it to generate high-quality responses on open-ended tasks. In long context evaluations, our model surpasses Kimi-K2-Thinking, a significantly larger full global attention LLM, highlighting the strong long-context capabilities of our hybrid SWA architecture.

Notably, MiMo-V2-Flash achieves 73.4% on SWE-Bench Verified, outperforming all open-source competitors and approaching the performance of GPT-5-High. On SWE-Bench Multilingual, our model resolves 71.7% issues, establishing it as the most capable open-source LLM for software engineering tasks. These results underscore the effectiveness of our ultra-scaled agentic RL training. On Terminal Bench, the model also delivers a competitive score.

In search agent evaluation, MiMo-V2-Flash scores 45.4 on BrowseComp, and is further boosted to 58.3 with the context management method outlined in Appendix C. For general tool-use on τ2\tau^{2}-Bench, we employ DeepSeek-V3.2 as the user agent, achieving category scores of 95.3 (Telecom), 79.5 (Retail), 66.0 (Airline).

Taken together, these results validate the effectiveness of our ultra-large-scale RL training within the MOPD post-training paradigm, and highlight the models strong potential for real-world coding, reasoning, and agentic workflows.

Table 9
BenchmarkMiMo-V2Kimi-K2DeepSeek-V3.2Gemini-3.0ClaudeGPT-5
FlashThinkingThinkingProSonnet 4.5High
Reasoning
MMLU-Pro84.984.685.090.188.287.5
GPQA-Diamond84.384.582.491.983.485.7
HLE (no tools)22.123.925.137.513.726.3
AIME 202594.194.593.195.087.094.6
HMMT Feb. 202584.489.492.597.579.288.3
LiveCodeBench-v685.183.183.390.764.084.5
General Writing
Arena-Hard (Hard Prompt)54.171.953.472.663.371.9
Arena-Hard (Creative Writing)86.280.188.893.676.792.2
Long Context
LongBench V260.648.158.465.661.8-
MRCR45.744.255.589.755.4-
Code Agent
SWE-Bench Verified73.471.373.176.277.274.9
SWE-Bench Multilingual71.761.170.2-68.055.3
Terminal-Bench Hard30.530.635.439.033.330.5
Terminal Bench 2.038.535.746.454.242.835.2
General Agent
BrowseComp45.4-51.4-24.154.9
BrowseComp (w/ Context Manage)58.360.267.659.2--
τ2\tau^{2}-Bench80.374.380.385.484.780.2
Table 9: Comparison between MiMo-V2-Flash and open/closed models.
View original tableOriginal Table 9

Our RL (and MOPD) infrastructure uses SGLang (Zheng et al., 2024) as the inference engine and Megatron-LM (Shoeybi et al., 2019) as the training engine. We adopt FP8 for both training and inference. To enable stable, efficient, and flexible RL training, we implement three extended modules: Rollout Routing Replay (Ma et al., 2025) (Sec 4.6.1), Data Scheduler (Sec 4.6.2), and Tool Manager combined with Toolbox (Sec 4.6.3).

MoE models suffer from inconsistent expert routing across rollout and training due to numerical precision issues (He and Lab, 2025; Yao et al., 2025). We propose Rollout Routing Replay (R3) (Ma et al., 2025) to train RL using the same routed experts from rollout, making its overhead negligible through optimized data types and communication overlapping. For multi-turn agent training, we employ a request-level prefix cache during rollout. This cache stores KVCache and MoE routed experts from prior turns, allowing them to be reused for subsequent generation steps of the same request. Unlike the commonly-used radix cache in current inference engines, our request-level prefix cache avoids re-prefilling or inter-request output cache sharing, ensuring sampling consistency for routed experts.

For MiMo-V2-Flash, we extend the Seamless Rollout Engine (Xia et al., 2025) and implement a Data Scheduler to seamlessly schedule fine-grained sequences instead of micro-batches, addressing GPU idleness in distributed MoE training. In dynamic sampling, as sequences return for reward computation, we reference historical pass rates and, if necessary, assign new prompts to GPUs with load balancing. We integrate partial rollout (Kimi Team, 2025a; Fu et al., 2025) to partition overlong trajectories across steps, while limiting staleness and the proportion of partial samples in each batch. By employing staleness-aware truncated importance sampling for partial rollout, we significantly accelerate RL training without sacrificing model quality.

The Data Scheduler supports data source-specific configurations (sample quota, scheduling priority, length limits, temperature) and fits pass rates to accept samples by configured ratios. Priority-based scheduling overlaps reward computation and inference across data sources with different time patterns, ensuring high GPU utilization.

We implement Toolbox and Tool Manager to tackle global resource contention and local inefficiency in RL agent training. These modules leverage Ray (Moritz et al., 2018) for efficient scheduling. Toolbox acts as the centralized resource allocator, enforcing resource quota and QPS limits for tools across concurrent tasks. It adopts fault-tolerant Ray actor pools, which eliminate cold-start delays. Integrated with the rollout engine, Tool Manager coordinates with Toolbox to accelerate training through environment pre-warming and sequence-level asynchronous reward computation. It maintains training stability through timeout recovery and real-time monitoring. By disaggregating the tool management and rollout workflow, Toolbox isolates task-specific logic from system-wide policies, enabling modular extensibility without compromising stability.

We analyze the relationship between the model’s predictive uncertainty measured by next token cross-entropy and the efficiency of the Multi-Token Prediction (MTP) module. As illustrated in Figure 7, we evaluate the average acceptance length with 3 MTP layers across diverse benchmarks, ranging from code generation (e.g., WebDev, LiveCodeBench) to complex reasoning tasks (e.g., AIME25, MMLU Pro).

Figure 7
Figure 7: The correlation between next token cross-entropy and Average Accept Length across different datasets. The orange dashed line represents the best-fit curve (R2=0.995R^{2}=0.995).

The results reveal a strong inverse correlation: lower entropy contexts (such as WebDev) allow for significantly longer acceptance sequences, reaching approximately 3.6 tokens. Conversely, tasks with higher intrinsic uncertainty (e.g., MMLU Pro) exhibit shorter acceptance lengths due to increased prediction divergence. This behavior is accurately modeled by a log-transformed fit (y=4(1−0.58x0.58)y=4(1-0.58x^{0.58})) with an R2R^{2} of 0.9950.995, suggesting that next token cross-entropy is a primary determinant of MTP throughput.

We measure the decoding speedup of MiMo-V2-Flash with 3-layer MTP across varying batch sizes (per node) and accept lengths, using 16K input and 1K output lengths. The results in Table 10 demonstrate that MTP consistently outperforms the baseline without additional hardware costs. Notably, the speedup scales linearly with accept length. Under different batch sizes, MTP exhibits varying speedup, which depends on the corresponding computation and I/O demands as well as kernel efficiency. In practice, researchers and engineers should tune both batch size and MTP layers based on hardware roofline models to optimize the speed-cost trade-off.

Table 10
Acceptance Length
Batch Sizew/o MTP2.83.03.23.43.63.8
321.00×\times1.86×\times1.99×\times2.12×\times2.25×\times2.39×\times2.52×\times
481.00×\times1.82×\times1.95×\times2.08×\times2.21×\times2.34×\times2.47×\times
641.00×\times1.97×\times2.11×\times2.25×\times2.39×\times2.53×\times2.67×\times
961.00×\times1.99×\times2.13×\times2.28×\times2.42×\times2.56×\times2.70×\times
1281.00×\times1.82×\times1.94×\times2.07×\times2.20×\times2.33×\times2.46×\times
Table 10: Decoding speedup of MiMo-V2-Flash with 3-layer MTP v.s. without MTP across batch sizes (per node) and acceptance lengths, under 16K input and 1K output lengths.
View original tableOriginal Table 10

MiMo-V2-Flash achieves strong reasoning and agentic capabilities, along with fast inference speed, through its hybrid Sliding Window Attention architecture, lightweight Multi-Token Prediction, and the MOPD post-training paradigm. With these strengths, MiMo-V2-Flash rivals larger open-weight models like DeepSeek-V3.2 and Kimi-K2. However, a clear gap remains to the strongest closed-weight models, which we aim to narrow by scaling model size and training compute. Additionally, our current architectural exploration remains preliminary, with limited analysis of design trade-offs. Future work will focus on designing more robust and efficient, agentic-oriented model architectures. Furthermore, we plan to scale the compute for the iterative co-evolution of teachers and students in MOPD to fully unlock its potential.

References

  1. Agarwal et al. (2023) R. Agarwal, N. Vieillard, Y. Zhou, P. Stańczyk, S. Ramos, M. Geist, and O. Bachem On-policy distillation of language models: learning from self-generated mistakes. In International Conference on Learning Representations, External Links: Link Cited by: §4.1.Source
  2. Agarwal et al. (2025) S. Agarwal, L. Ahmad, J. Ai, S. Altman, A. Applebaum, E. Arbus, R. K. Arora, Y. Bai, B. Baker, H. Bao, et al. Gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925. Cited by: §1, §2.2, §2.2.
  3. Ainslie et al. (2023) J. Ainslie, J. Lee-Thorp, M. De Jong, Y. Zemlyanskiy, F. Lebrón, and S. Sanghai Gqa: training generalized multi-query transformer models from multi-head checkpoints. arXiv preprint arXiv:2305.13245. Cited by: §2.1.
  4. Austin et al. (2021) J. Austin, A. Odena, M. Nye, M. Bosma, H. Michalewski, D. Dohan, E. Jiang, C. Cai, M. Terry, Q. Le, et al. Program synthesis with large language models. ArXiv preprint abs/2108.07732. External Links: Link Cited by: §2.2.1.Source
  5. Bai et al. (2025) Y. Bai, S. Tu, J. Zhang, H. Peng, X. Wang, X. Lv, S. Cao, J. Xu, L. Hou, Y. Dong, et al. Longbench v2: towards deeper understanding and reasoning on realistic long-context multitasks. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 3639–3664. Cited by: §4.5.1.
  6. Balunović et al. (2025) M. Balunović, J. Dekoninck, I. Petrov, N. Jovanović, and M. Vechev Matharena: evaluating llms on uncontaminated math competitions. arXiv preprint arXiv:2505.23281. Cited by: §4.5.1.
  7. Barres et al. (2025) V. Barres, H. Dong, S. Ray, X. Si, and K. Narasimhan $\tau^{2}$-Bench: evaluating conversational agents in a dual-control environment. arXiv preprint arXiv:2506.07982. Cited by: §4.5.1.
  8. Beltagy et al. (2020) I. Beltagy, M. E. Peters, and A. Cohan Longformer: the long-document transformer. arXiv preprint arXiv:2004.05150. Cited by: §2.2.
  9. Brown et al. (2020) T. Brown, B. Mann, N. Ryder, M. Subbiah, J. D. Kaplan, P. Dhariwal, A. Neelakantan, P. Shyam, G. Sastry, A. Askell, et al. Language models are few-shot learners. Advances in neural information processing systems 33, pp. 1877–1901. Cited by: §2.1.
  10. Cassano et al. (2022) F. Cassano, J. Gouwar, D. Nguyen, S. Nguyen, L. Phipps-Costin, D. Pinckney, M. Yee, Y. Zi, C. J. Anderson, M. Q. Feldman, et al. Multipl-e: a scalable and extensible approach to benchmarking neural code generation. arXiv preprint arXiv:2208.08227. Cited by: §3.3.1.
  11. Clark et al. (2018) P. Clark, I. Cowhey, O. Etzioni, T. Khot, A. Sabharwal, C. Schoenick, and O. Tafjord Think you have solved question answering? try arc, the ai2 reasoning challenge. ArXiv preprint abs/1803.05457. External Links: Link Cited by: §3.3.1.Source
  12. Cobbe et al. (2021) K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, et al. Training verifiers to solve math word problems. ArXiv preprint abs/2110.14168. External Links: Link Cited by: §2.2.1, §3.3.1.Source
  13. Du et al. (2025) X. Du, Y. Yao, K. Ma, B. Wang, T. Zheng, K. Zhu, M. Liu, Y. Liang, X. Jin, Z. Wei, et al. Supergpqa: scaling llm evaluation across 285 graduate disciplines. ArXiv preprint abs/2502.14739. External Links: Link Cited by: §3.3.1.Source
  14. Dua et al. (2019) D. Dua, Y. Wang, P. Dasigi, G. Stanovsky, S. Singh, and M. Gardner DROP: a reading comprehension benchmark requiring discrete reasoning over paragraphs. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), J. Burstein, C. Doran, and T. Solorio (Eds.), Minneapolis, Minnesota, pp. 2368–2378. External Links: Document, Link Cited by: §3.3.1.SourceSource
  15. Fu et al. (2025) W. Fu, J. Gao, X. Shen, C. Zhu, Z. Mei, C. He, S. Xu, G. Wei, J. Mei, J. Wang, et al. AReaL: a large-scale asynchronous reinforcement learning system for language reasoning. arXiv preprint arXiv:2505.24298. Cited by: §4.6.2.
  16. Gao et al. (2025) W. Gao, Y. Zhao, D. An, T. Wu, L. Cao, S. Xiong, J. Huang, W. Wang, S. Yang, W. Su, et al. RollPacker: mitigating long-tail rollouts for fast, synchronous rl post-training. arXiv preprint arXiv:2509.21009. Cited by: 2nd item.
  17. Gema et al. (2024) A. P. Gema, J. O. J. Leang, G. Hong, A. Devoto, A. C. M. Mancino, R. Saxena, X. He, Y. Zhao, X. Du, M. R. G. Madani, et al. Are we done with mmlu?. ArXiv preprint abs/2406.04127. External Links: Link Cited by: §3.3.1.Source
  18. Gemma Team (2024) Gemma Team Gemma 2: improving open language models at a practical size. arXiv preprint arXiv:2408.00118. Cited by: §2.1.
  19. Gemma Team (2025) Gemma Team Gemma 3 technical report. arXiv preprint arXiv:2503.19786. Cited by: §2.1, §2.2.
  20. Gloeckle et al. (2024) F. Gloeckle, B. Y. Idrissi, B. Rozière, D. Lopez-Paz, and G. Synnaeve Better & faster large language models via multi-token prediction. arXiv preprint arXiv:2404.19737. Cited by: §2.1, §2.3.1.
  21. Google DeepMind (2025) Google DeepMind Gemini 3 pro model card. Note: https://storage.googleapis.com/deepmind-media/Model-Cards/Gemini-3-Pro-Model-Card.pdf Cited by: §1.Source
  22. Gu et al. (2024a) A. Gu, B. Rozière, H. J. Leather, A. Solar-Lezama, G. Synnaeve, and S. Wang CRUXEval: A benchmark for code reasoning, understanding and execution. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, External Links: Link Cited by: §3.3.1.Source
  23. Gu et al. (2024b) X. Gu, T. Pang, C. Du, Q. Liu, F. Zhang, C. Du, Y. Wang, and M. Lin When attention sink emerges in language models: an empirical view. arXiv preprint arXiv:2410.10781. Cited by: §2.2.
  24. Gu et al. (2024c) Y. Gu, L. Dong, F. Wei, and M. Huang MiniLLM: knowledge distillation of large language models. In Proceedings of ICLR, Cited by: §4.1.
  25. He and Lab (2025) H. He and T. M. Lab Defeating nondeterminism in llm inference. Thinking Machines Lab: Connectionism. Note: https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/ External Links: Document Cited by: §4.6.1.Source
  26. He et al. (2025) Y. He, S. Li, J. Liu, Y. Tan, W. Wang, H. Huang, X. Bu, H. Guo, C. Hu, B. Zheng, et al. Chinese simpleqa: a chinese factuality evaluation for large language models. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 19182–19208. Cited by: §3.3.1.
  27. Hendrycks et al. (2021a) D. Hendrycks, C. Burns, S. Basart, A. Zou, M. Mazeika, D. Song, and J. Steinhardt Measuring massive multitask language understanding. In 9th International Conference on Learning Representations, ICLR 2021, Virtual Event, Austria, May 3-7, 2021, External Links: Link Cited by: §2.2.1, §3.3.1.Source
  28. Hendrycks et al. (2021b) D. Hendrycks, C. Burns, S. Kadavath, A. Arora, S. Basart, E. Tang, D. Song, and J. Steinhardt Measuring mathematical problem solving with the math dataset. ArXiv preprint abs/2103.03874. External Links: Link Cited by: §2.2.1, §3.3.1.Source
  29. Hsieh et al. (2024) C. Hsieh, S. Sun, S. Kriman, S. Acharya, D. Rekesh, F. Jia, Y. Zhang, and B. Ginsburg RULER: what’s the real context size of your long-context language models?. arXiv preprint arXiv:2404.06654. Cited by: §2.2.1, §3.3.1.
  30. Huang et al. (2023) Y. Huang, Y. Bai, Z. Zhu, J. Zhang, J. Zhang, T. Su, J. Liu, C. Lv, Y. Zhang, J. Lei, Y. Fu, M. Sun, and J. He C-eval: A multi-level multi-discipline chinese evaluation suite for foundation models. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (Eds.), External Links: Link Cited by: §3.3.1.Source
  31. Jain et al. (2024) N. Jain, K. Han, A. Gu, W. Li, F. Yan, T. Zhang, S. Wang, A. Solar-Lezama, K. Sen, and I. Stoica Livecodebench: holistic and contamination free evaluation of large language models for code. ArXiv preprint abs/2403.07974. External Links: Link Cited by: §2.2.1, §3.3.1, §4.5.1.Source
  32. Jimenez et al. (2024a) C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. R. Narasimhan SWE-bench: can language models resolve real-world github issues?. In The Twelfth International Conference on Learning Representations, External Links: Link Cited by: §4.5.1.Source
  33. Jimenez et al. (2024b) C. E. Jimenez, J. Yang, A. Wettig, S. Yao, K. Pei, O. Press, and K. R. Narasimhan SWE-bench: can language models resolve real-world github issues?. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024, External Links: Link Cited by: §3.3.1.Source
  34. Joshi et al. (2017) M. Joshi, E. Choi, D. Weld, and L. Zettlemoyer TriviaQA: a large scale distantly supervised challenge dataset for reading comprehension. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), R. Barzilay and M. Kan (Eds.), Vancouver, Canada, pp. 1601–1611. External Links: Document, Link Cited by: §2.2.1, §3.3.1.SourceSource
  35. Kimi Team (2025a) Kimi Team Kimi k1. 5: scaling reinforcement learning with llms. arXiv preprint arXiv:2501.12599. Cited by: §1, §4.6.2.
  36. Kimi Team (2025b) Kimi Team Kimi k2: open agentic intelligence. arXiv preprint arXiv:2507.20534. Cited by: §1, §3.3.2.
  37. Kimi Team (2025c) Kimi Team Kimi linear: an expressive, efficient attention architecture. arXiv preprint arXiv:2510.26692. Cited by: §2.1.
  38. Li et al. (2025) A. Li, B. Gong, B. Yang, B. Shan, C. Liu, C. Zhu, C. Zhang, C. Guo, D. Chen, D. Li, et al. Minimax-01: scaling foundation models with lightning attention. arXiv preprint arXiv:2501.08313. Cited by: §2.1.
  39. Li et al. (2023) H. Li, Y. Zhang, F. Koto, Y. Yang, H. Zhao, Y. Gong, N. Duan, and T. Baldwin Cmmlu: measuring massive multitask language understanding in chinese. ArXiv preprint abs/2306.09212. External Links: Link Cited by: §2.2.1, §3.3.1.Source
  40. Li et al. (2024) T. Li, W. Chiang, E. Frick, L. Dunlap, B. Zhu, J. E. Gonzalez, and I. Stoica From live data to high-quality benchmarks: the arena-hard pipeline. External Links: Link Cited by: §4.5.1.Source
  41. Liu et al. (2024) A. Liu, B. Feng, B. Xue, B. Wang, B. Wu, C. Lu, C. Zhao, C. Deng, C. Zhang, C. Ruan, et al. Deepseek-v3 technical report. arXiv preprint arXiv:2412.19437. Cited by: §2.1, §2.1, §2.3.1, §3.3.2.
  42. Liu et al. (2025) A. Liu, A. Mei, B. Lin, B. Xue, B. Wang, B. Xu, B. Wu, B. Zhang, C. Lin, C. Dong, et al. DeepSeek-v3. 2: pushing the frontier of open large language models. arXiv preprint arXiv:2512.02556. Cited by: §1, §1, 1st item.
  43. Liu et al. (2023) J. Liu, C. S. Xia, Y. Wang, and L. Zhang Is your code generated by chatgpt really correct? rigorous evaluation of large language models for code generation. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, A. Oh, T. Naumann, A. Globerson, K. Saenko, M. Hardt, and S. Levine (Eds.), External Links: Link Cited by: §3.3.1.Source
  44. Lu and Lab (2025) K. Lu and T. M. Lab On-policy distillation. Thinking Machines Lab: Connectionism. Note: https://thinkingmachines.ai/blog/on-policy-distillation External Links: Document Cited by: §4.1.Source
  45. Ma et al. (2025) W. Ma, H. Zhang, L. Zhao, Y. Song, Y. Wang, Z. Sui, and F. Luo Stabilizing moe reinforcement learning by aligning training and inference routers. arXiv preprint arXiv:2510.11370. Cited by: §4.6.1, §4.6.
  46. MAA (2024) MAA American invitational mathematics examination - aime. In American Invitational Mathematics Examination - AIME, External Links: Link Cited by: §2.2.1, §3.3.1, §4.5.1.Source
  47. Modarressi et al. (2025) A. Modarressi, H. Deilamsalehy, F. Dernoncourt, T. Bui, R. A. Rossi, S. Yoon, and H. Schütze Nolima: long-context evaluation beyond literal matching. arXiv preprint arXiv:2502.05167. Cited by: §2.2.1.
  48. Moritz et al. (2018) P. Moritz, R. Nishihara, S. Wang, A. Tumanov, R. Liaw, E. Liang, M. Elibol, Z. Yang, W. Paul, M. I. Jordan, et al. Ray: a distributed framework for emerging $\{$ai$\}$ applications. In 13th USENIX symposium on operating systems design and implementation (OSDI 18), pp. 561–577. Cited by: §4.6.3.
  49. OpenAI (2024) OpenAI Introducing simpleqa. Note: https://openai.com/index/introducing-simpleqa/ Cited by: §3.3.1.Source
  50. Phan et al. (2025) L. Phan, A. Gatti, Z. Han, N. Li, J. Hu, H. Zhang, C. B. C. Zhang, M. Shaaban, J. Ling, S. Shi, et al. Humanity’s last exam. arXiv preprint arXiv:2501.14249. Cited by: §4.5.1.
  51. Qiu et al. (2025) Z. Qiu, Z. Wang, B. Zheng, Z. Huang, K. Wen, S. Yang, R. Men, L. Yu, F. Huang, S. Huang, et al. Gated attention for large language models: non-linearity, sparsity, and attention-sink-free. arXiv preprint arXiv:2505.06708. Cited by: §2.2.
  52. Qwen Team (2025) Qwen Team Qwen3-next: towards ultimate training & inference efficiency. Note: https://qwen.ai/blog?id=4074cca80393150c248e508aa62983f9cb7d27cd&from=research.latest-advancements-list Cited by: §2.1.Source
  53. RadixArk Team (2025) RadixArk Team Introducing miles — rl framework to fire up large-scale moe training. Note: https://lmsys.org/blog/2025-11-19-miles/ Cited by: §2.3.1.Source
  54. Rein et al. (2024) D. Rein, B. L. Hou, A. C. Stickland, J. Petty, R. Y. Pang, J. Dirani, J. Michael, and S. R. Bowman Gpqa: a graduate-level google-proof q&a benchmark. In First Conference on Language Modeling, Cited by: §2.2.1, §3.3.1, §4.5.1.
  55. Romanou et al. (2024) A. Romanou, N. Foroutan, A. Sotnikova, Z. Chen, S. H. Nelaturu, S. Singh, R. Maheshwary, M. Altomare, M. A. Haggag, A. Amayuelas, et al. Include: evaluating multilingual language understanding with regional knowledge. arXiv preprint arXiv:2411.19799. Cited by: §3.3.1.
  56. Sakaguchi et al. (2020) K. Sakaguchi, R. L. Bras, C. Bhagavatula, and Y. Choi WinoGrande: an adversarial winograd schema challenge at scale. In The Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, The Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, The Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020, New York, NY, USA, February 7-12, 2020, pp. 8732–8740. External Links: Link Cited by: §3.3.1.Source
  57. Schulman et al. (2017) J. Schulman, F. Wolski, P. Dhariwal, A. Radford, and O. Klimov Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347. Cited by: 1st item.
  58. Shao et al. (2024) Z. Shao, P. Wang, Q. Zhu, R. Xu, J. Song, X. Bi, H. Zhang, M. Zhang, Y. K. Li, Y. Wu, and D. Guo DeepSeekMath: pushing the limits of mathematical reasoning in open language models. External Links: 2402.03300, Link Cited by: §4.4.Source
  59. Shazeer et al. (2017) N. Shazeer, A. Mirhoseini, K. Maziarz, A. Davis, Q. Le, G. Hinton, and J. Dean Outrageously large neural networks: the sparsely-gated mixture-of-experts layer. arXiv preprint arXiv:1701.06538. Cited by: §2.1.
  60. Shoeybi et al. (2019) M. Shoeybi, M. Patwary, R. Puri, P. LeGresley, J. Casper, and B. Catanzaro Megatron-lm: training multi-billion parameter language models using model parallelism. arXiv preprint arXiv:1909.08053. Cited by: §4.6.
  61. Singh et al. (2025) S. Singh, A. Romanou, C. Fourrier, D. I. Adelani, J. G. Ngui, D. Vila-Suero, P. Limkonchotiwat, K. Marchisio, W. Q. Leong, Y. Susanto, et al. Global mmlu: understanding and addressing cultural and linguistic biases in multilingual evaluation. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 18761–18799. Cited by: §3.3.1.
  62. Su et al. (2024) J. Su, M. Ahmed, Y. Lu, S. Pan, W. Bo, and Y. Liu Roformer: enhanced transformer with rotary position embedding. Neurocomputing 568, pp. 127063. Cited by: §2.1.
  63. Sun et al. (2024) M. Sun, X. Chen, J. Z. Kolter, and Z. Liu Massive activations in large language models. arXiv preprint arXiv:2402.17762. Cited by: §2.2.
  64. Suzgun et al. (2023) M. Suzgun, N. Scales, N. Schärli, S. Gehrmann, Y. Tay, H. W. Chung, A. Chowdhery, Q. Le, E. Chi, D. Zhou, and J. Wei Challenging BIG-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, A. Rogers, J. Boyd-Graber, and N. Okazaki (Eds.), Toronto, Canada, pp. 13003–13051. External Links: Document, Link Cited by: §2.2.1, §3.3.1.SourceSource
  65. Vaswani et al. (2017) A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin Attention is all you need. Advances in neural information processing systems 30. Cited by: §2.1.
  66. Vodrahalli et al. (2024) K. Vodrahalli, S. Ontanon, N. Tripuraneni, K. Xu, S. Jain, R. Shivanna, J. Hui, N. Dikkala, M. Kazemi, B. Fatemi, et al. Michelangelo: long context evaluations beyond haystacks via latent structure queries. arXiv preprint arXiv:2409.12640. Cited by: §2.2.1, §4.5.1.
  67. Wang et al. (2024) Y. Wang, X. Ma, G. Zhang, Y. Ni, A. Chandra, S. Guo, W. Ren, A. Arulraj, X. He, Z. Jiang, T. Li, M. Ku, K. Wang, A. Zhuang, R. Fan, X. Yue, and W. Chen MMLU-pro: A more robust and challenging multi-task language understanding benchmark. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, A. Globersons, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. M. Tomczak, and C. Zhang (Eds.), External Links: Link Cited by: §3.3.1, §4.5.1.Source
  68. Wei et al. (2025) J. Wei, Z. Sun, S. Papay, S. McKinney, J. Han, I. Fulford, H. W. Chung, A. T. Passos, W. Fedus, and A. Glaese Browsecomp: a simple yet challenging benchmark for browsing agents. arXiv preprint arXiv:2504.12516. Cited by: §4.5.1.
  69. Xia et al. (2025) B. Xia, B. Shen, D. Zhu, D. Zhang, G. Wang, H. Zhang, H. Liu, J. Xiao, J. Dong, L. Zhao, et al. MiMo: unlocking the reasoning potential of language model–from pretraining to posttraining. arXiv preprint arXiv:2505.07608. Cited by: §1, §2.1, §2.3.1, §3, §4.6.2.
  70. Xia et al. (2024) C. S. Xia, Y. Deng, S. Dunn, and L. Zhang Agentless: demystifying llm-based software engineering agents. arXiv preprint arXiv:2407.01489. Cited by: §3.3.1.
  71. Xiao et al. (2023) G. Xiao, Y. Tian, B. Chen, S. Han, and M. Lewis Efficient streaming language models with attention sinks. arXiv preprint arXiv:2309.17453. Cited by: §2.2.
  72. Yang et al. (2025) J. Yang, K. Lieret, C. E. Jimenez, A. Wettig, K. Khandpur, Y. Zhang, B. Hui, O. Press, L. Schmidt, and D. Yang SWE-smith: scaling data for software engineering agents. External Links: 2504.21798, Link Cited by: §4.5.1.Source
  73. Yao et al. (2025) F. Yao, L. Liu, D. Zhang, C. Dong, J. Shang, and J. Gao Your efficient rl framework secretly brings you off-policy rl training. External Links: Link Cited by: §4.6.1.Source
  74. Zellers et al. (2019) R. Zellers, A. Holtzman, Y. Bisk, A. Farhadi, and Y. Choi HellaSwag: can a machine really finish your sentence?. In Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, A. Korhonen, D. Traum, and L. Màrquez (Eds.), Florence, Italy, pp. 4791–4800. External Links: Document, Link Cited by: §3.3.1.SourceSource
  75. Zhao et al. (2025) X. Zhao, Y. Liu, K. Xu, J. Guo, Z. Wang, Y. Sun, X. Kong, Q. Cao, L. Jiang, Z. Wen, Z. Zhang, and J. Zhou Small leak can sink a great ship–boost rl training on moe with icepop!. External Links: Link Cited by: §4.4.Source
  76. Zheng et al. (2025) C. Zheng, S. Liu, M. Li, X. Chen, B. Yu, C. Gao, K. Dang, Y. Liu, R. Men, A. Yang, et al. Group sequence policy optimization. arXiv preprint arXiv:2507.18071. Cited by: 1st item.
  77. Zheng et al. (2024) L. Zheng, L. Yin, Z. Xie, C. L. Sun, J. Huang, C. H. Yu, S. Cao, C. Kozyrakis, I. Stoica, J. E. Gonzalez, et al. Sglang: efficient execution of structured language model programs. Advances in neural information processing systems 37, pp. 62557–62583. Cited by: §4.6.
  78. Zhong et al. (2025) Y. Zhong, Z. Zhang, B. Wu, S. Liu, Y. Chen, C. Wan, H. Hu, L. Xia, R. Ming, Y. Zhu, et al. Optimizing $\{$rlhf$\}$ training for large language models with stage fusion. In 22nd USENIX Symposium on Networked Systems Design and Implementation (NSDI 25), pp. 489–503. Cited by: 2nd item.
  79. Zhou et al. (2025) Y. Zhou, H. Liu, Z. Chen, Y. Tian, and B. Chen GSM-infinite: how do your llms behave over infinitely increasing context length and reasoning complexity?. arXiv preprint arXiv:2502.05252. Cited by: §1, §2.2.1, §3.3.1.
  80. Zhuo et al. (2024) T. Y. Zhuo, M. C. Vu, J. Chim, H. Hu, W. Yu, R. Widyasari, I. N. B. Yusuf, H. Zhan, J. He, I. Paul, et al. Bigcodebench: benchmarking code generation with diverse function calls and complex instructions. arXiv preprint arXiv:2406.15877. Cited by: §3.3.1.

We would like to express our sincere gratitude to all contributors for their invaluable support and efforts, including the Xiaomi Data Platform, CloudML, NGK, MiChat, Mify, MiKS and LLM-Plus teams, as well as those not explicitly listed in this paper. Authors within each role are listed alphabetically by their first name.

Core Contributors
Bangjun Xiao
Bingquan Xia
Bo Yang
Bofei Gao
Bowen Shen
Chen Zhang
Chenhong He
Chiheng Lou
Fuli Luo†
Gang Wang
Gang Xie
Hailin Zhang
Hanglong Lv
Hanyu Li
Heyu Chen
Hongshen Xu
Houbin Zhang
Huaqiu Liu
Jiangshan Duo
Jianyu Wei
Jiebao Xiao
Jinhao Dong
Jun Shi
Junhao Hu
Kainan Bao
Kang Zhou
Lei Li
Liang Zhao
Linghao Zhang
Peidian Li
Qianli Chen
Shaohui Liu
Shihua Yu
Shijie Cao
Shimao Chen
Shouqiu Yu
Shuo Liu
Tianling Zhou
Weijiang Su
Weikun Wang
Wenhan Ma
Xiangwei Deng
Xing Zhang
Yifan Song
Yihan Yan
Yihao Zhao
Yingchun Lai
Yizhao Gao
Yu Cheng
Yuanyuan Tian
Yudong Wang
Zhen Tang
Zhengju Tang
Zhengtao Wen
Zhichao Song
Zhixian Zheng
Zihan Jiang

Contributors
Bohan Mao
Bowen Ye
Can Cai
Chenghua Wang
Chengxuan Zhu
Chong Ma
Chun Chen
Chunan Li
Dawei Zhu
Deshan Xiao
Dong Zhang
Duo Zhang
Fangyue Liu
Feiyu Yang
Fengyuan Shi
Guoan Wang
Hao Tian
Hao Wu
Heng Qu
Hongfei Yi
Hongxu An
Hongyi Guan
Jian Wen
Jiarui Sun
Jiawei Li
Jinlong Xue
Jun Xia
Kai Fang
Menghang Zhu
Nuo Chen
Qian Tu
Qihao Zhang
Qiying Wang
Rang Li
Rui Ma
Shaolei Zhang
Shengfan Wang
Shicheng Li
Shuhao Gu
Shuhuai Ren
Sirui Deng
Tao Guo
Tianyang Lu
Weiji Zhuang
Weikang Zhang
Weimin Xiong
Wenshan Huang
Wenyu Yang
Xin Zhang
Xing Yong
Xu Wang
Xueyang Xie
Yilin Jiang
Yixin Yang
Yongzhe He
Yu Tu
Yuanliang Dong
Yuchen Liu
Yue Ma
Yue Yu
Yuxing Xiang
Zhaojun Huang
Zhenru Lin
Zhipeng Xu
Zhiyang Chen
Zhonghua Deng
Zihan Zhang
Zihao Yue

Consistent with recent findings within the SWE-Bench community, we similarly identify the bug in the official SWE-Bench images where the ground truth commits are not properly deleted. During the RL training, this could lead to reward hacking and inflated evaluation, where the model tends to obtain rewards by peeking at future commits, as shown in Figure 8. To fix this, we update to the newest SWE-Bench image for evaluation. For our self-built training images, we also follow the official SWE-Bench resolution on git hacking, and repeatedly confirm that our model does not exhibit any reward hacking.

Figure 8
Figure 8: The tendency of our experiment on Qwen3-32B to exhibit reward hacking during RL training within unprocessed images. We quantify the model’s git hacking attempts by counting a set of keywords, such as "git log ---all", within the model’s rollout trajectories.

While fine-tuning and reinforcement learning optimize model parameters θ\theta, context management strategically refines the conditioning context C in P(y∣C,θ)P(y\mid C,\theta). Our approach addresses two complementary challenges. For context augmentation, we adopt a Unix-inspired abstraction: tools, documents, and databases are uniformly exposed as files, enabling the model to retrieve information via Bash commands—leveraging its native code-generation capabilities. For context consolidation, we combat the "Lost in the Middle" phenomenon by enforcing aggressive memory compression. When context utilization exceeds a threshold (as low as 30%), the system prompts the model to summarize, archives the full history to a retrievable memory file, and replaces active context with the summary. Empirically, this yields 5–10% accuracy gains on Deep Research tasks. Our results align with DeepSeek V3’s finding that discarding tool-call history outperforms retention strategies; replicating their aggressive reset protocol, we achieve 58.3 on comparable benchmarks. The core insight is counterintuitive: less context, strategically managed, produces more focused and accurate generation.