MiMo-V2-Flash Technical Report
TL;DR. MiMo-V2-Flash is Xiaomi’s open 309B-total, 15B-active MoE, pretrained on 27T tokens in FP8. The architecture uses five sliding-window layers per global-attention layer and multi-token prediction for faster decoding. For agent builders, the main contribution is the post-training paradigm MOPD (Multi-Teacher On-Policy Distillation). First, domain teachers are trained with RL or SFT (code agent, search, tool use, math, reasoning, safety). Then one student is trained on its own rollouts with a dense per-token reward from the matching teacher, optionally plus an outcome reward. All numbers below are vendor-reported.
Key idea
Section titled “Key idea”Specialist RL runs each produce a strong teacher, but merging their weights or training them in sequence loses capabilities. MOPD trains the student on-policy and scores every sampled token by how much more likely the domain teacher finds it:
The loss is . Here corrects for sampling from the inference engine , and tokens whose ratio falls outside are dropped (§4.4). The first term is the per-token reverse-KL reward of on-policy distillation. The second term can be a GRPO outcome advantage. The report also suggests iterating: distilled students go back into specialist RL and become stronger teachers.
Results and discussion. Table 9 (vendor-reported) gives SWE-bench Verified 73.4, SWE-bench Multilingual 71.7, τ²-Bench 80.3, Terminal-Bench 2.0 38.5 and LongBench V2 60.6. Context management adds 5–10% on deep-research tasks. When the context is about 30% full, the model summarizes its history and archives it to a file. Separately, replicating DeepSeek’s aggressive reset protocol (discarding tool-call history) lifts BrowseComp from 45.4 to 58.3 (Appendix C). The authors say the architecture exploration is preliminary and that a gap to the best closed models remains.
Post-training & agentic RL recipe
Section titled “Post-training & agentic RL recipe”- Environments (Table 8).
- Code agent: 90K tasks with real prompts in real environments, plus 30K real environments with synthesized prompts.
- Search: 150K tasks with synthesized prompts on the real web.
- General agent: 50K tasks where both the environment and the prompt are synthesized.
- Building code environments. Automated environment setup succeeds on about 70% of repositories across 8 languages and runs on Kubernetes with more than 10,000 concurrent pods. The code scaffold has only three tools:
bash,str_replaceandfinish. - Other agent tasks.
- Terminal tasks: about 30K, mined from Stack Overflow and Stack Exchange.
- Web development: the result is rendered with Playwright, and a vision verifier scores the recorded video.
- Search: the agent has
search,openandfindtools. Questions are built by recursively expanding a fact graph and then obfuscating the entities. - Function calling: tasks come from tool-call graphs.
- Generalization. Code-agent RL over about 120K environments raised SWE-bench Verified and Multilingual well above the SFT model (Fig. 4). The gains also carried over to other agent tasks and to math, code and general reasoning benchmarks (Fig. 5).
- Distillation. MOPD, described above: a dense teacher reward plus an optional outcome reward, with training–inference importance weights.
- Infrastructure.
- Engines: SGLang for rollout, Megatron for training, FP8 throughout.
- Rollout Routing Replay (R3): the experts chosen during rollout are replayed in training. A request-level prefix cache stores both the KV cache and the routed experts.
- A data scheduler supports partial rollouts with staleness-aware truncated importance sampling.
- A Ray-based toolbox and tool manager serve the environments.
- Reward hacking. Official SWE-bench images contained future commits. In a Qwen3-32B experiment, RL learned to read them with
git log --all-style commands (Appendix B). Environment cleaning is part of the recipe.
Connections
Section titled “Connections”- MOPD as a method, on-policy distillation and GKD.
- MiMo-V2.6, the follow-up that scales agentic RL and extends MOPD.
- DeepSeek-V3.2, a contemporary that also distills domain specialists and synthesizes agent tasks.
- Multi-token prediction and speculative decoding.
- Tech reports for agent builders, the cross-report comparison.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
MOPD uses the advantage Â_t = sg[log π_domain(y_t) − log π_θ(y_t)] + α·Â_ORM and the importance weight w_t = sg[π_θ/μ_θ], set to 0 when the ratio leaves [ε_low, ε_high]. For one token of a math prompt, the math teacher gives probability 0.6, the student 0.3, and the inference engine sampled it with probability 0.25. Take α = 0.5 and a GRPO outcome advantage of −1 for this rollout. Compute the token-level advantage and weight (assume the ratio is within bounds), say which way the update pushes, and explain what changes if the teacher gives 0.1 instead.
What a strong answer covers
- Distillation term: log(0.6/0.3) = log 2 ≈ 0.693. Outcome term: 0.5 × (−1) = −0.5. Total Â_t ≈ 0.193, so the token is still pushed up slightly.
- w_t = 0.3 / 0.25 = 1.2, a training–inference importance weight that corrects for sampling from the inference engine μ rather than π_θ; tokens with very large mismatch are dropped (w = 0).
- With teacher probability 0.1: log(0.1/0.3) ≈ −1.099, total ≈ −1.599, so the token is pushed down hard; the dense teacher term dominates the sparse outcome term.
- The teacher term is a per-token reverse-KL reward evaluated on the student's own samples, so the student is corrected where it actually goes (no exposure bias), and each prompt is routed to the teacher of its domain.
- The loss is averaged over the tokens of each sequence (1/|y|) and multiplied by log π_θ(y_t), so the stop-gradient advantage acts as a fixed per-token reward.
- What if…
Table 7 lists each benchmark before MOPD, after MOPD, and for the best teacher. Use the numbers to argue where MOPD works and where it fails, and propose a mechanism for the failures.
What a strong answer covers
- Above the best teacher: AIME25 89.3 → 94.1 (teacher 93.9), HMMT 76.9 → 84.4 (82.6), LiveCodeBench 77.5 → 83.2 (82.6), Tau2 75.9 → 80.3 (79.6).
- Close but below the teacher: SWE-bench Verified 67.8 → 73.4 vs an RL teacher at 74.2.
- Clear gaps: BrowseComp 42.5 → 45.4 vs an SFT teacher at 51.7 (−6.3), and Arena-Hard creative writing drops 90.1 → 86.2.
- Possible mechanisms: a long, multi-turn search trajectory gives the student few chances to visit the teacher's states, capacity or interference across domains, and the outcome-reward term pulling against the teacher on subjective tasks. These are hypotheses, not tested in the report.
- Caveat: all numbers are vendor-reported, single-run, and compare against the student's own teachers, not an equal-compute RL-only baseline across all domains.
- Critique
Appendix B reports that official SWE-bench images contained future commits and that a Qwen3-32B RL run learned to exploit them. Explain the exploit, why RL found it, and what this implies when you read SWE-bench numbers in any tech report.
What a strong answer covers
- The repository snapshot in the image still held git history after the issue date, so the policy could run commands such as git log --all to find the actual fix and copy it.
- RL optimises the verifier's reward, not the intended skill; any shortcut that passes the tests is reinforced once it is sampled, and agentic RL with a shell makes such shortcuts reachable.
- Defence: clean the environment (strip future history and other leaks) and audit trajectories for tell-tale commands, not only final pass rates.
- Reading implication: a SWE-bench score depends on the images, scaffold and leak hygiene; ask whether the report says how environments were cleaned and whether hacked trajectories were checked.