Skip to content

MiMo-V2.6: Scaling Reinforcement Learning Towards Self-Improvement

Skip →Kimi K3 (+ K2.5)
RL stage 2 #10extendedfrontierpaperrubric 10/122026 · ~40 min

LLM-Core Xiaomi (Zongming Qiao, Ziyue Hua, …, Boyi Zeng)

Status

TL;DR. MiMo-V2.6 is Xiaomi’s follow-up to MiMo-V2-Flash, written mostly about scaling agentic RL. Pro has 1.02T total and 42B active parameters; Flash has 310B total and 15B active. Each model gets one large asynchronous GRPO run: about 25K trajectories per step, each about 110K–150K tokens long. Around that run, the report describes:

  • task synthesis and auditing,
  • a cleanup loop against reward hacking,
  • groupwise agentic grading that ranks passing patches by quality,
  • multi-harness training,
  • MOPD2, which adds history prefixes to multi-teacher on-policy distillation.

The RL post-training cost was 2.6M USD for Pro and 0.9M USD for Flash. All numbers are vendor-reported.

A binary test reward cannot tell a clean patch from a hack that passes. MiMo-V2.6 keeps the test as a gate and adds a grader on top of it.

  • GRS (offline rubrics). Used on high-pass-rate tasks. An agent studies several rollouts and writes solution and behavior rubrics. The reward becomes R=Rtest⋅Ssol⋅SbehR = R^{\mathrm{test}}\cdot S^{\mathrm{sol}}\cdot S^{\mathrm{beh}}, so a failed rollout still gets 0.
  • GAR (online grading). Used on the other code tasks. An agentic grader compares all trajectories in a mixed-outcome group and assigns each pass a quality factor fi∈(0,1]f_i\in(0,1]. Advantages are then redistributed among the passing set P\mathcal P:
Ai′=λfiAi,λ=∑j∈PAj∑j∈PfjAj.A_i' = \lambda f_i A_i,\qquad \lambda=\frac{\sum_{j\in\mathcal P} A_j}{\sum_{j\in\mathcal P} f_j A_j}.

This conserves the total positive advantage. λ is capped, and the advantages are re-centred afterwards. Trajectories confirmed as hacks are reset to reward 0.

Results and discussion. Table 3 (vendor-reported; Pro / Flash / Claude Opus 5 / GPT-5.6 Sol / Claude Fable 5):

BenchmarkProFlashOpus 5GPT-5.6 SolFable 5
DeepSWE v1.171.967.974.073.070.0
Toolathlon-Verified76.973.680.674.977.9
Terminal Bench 2.189.987.689.188.884.3
OSWorld-Verified82.080.883.483.086.0

The previous MiMo-V2.5-Pro scored 19.0 on DeepSWE v1.1. During RL, DeepSWE avg@3 rose from 58.4 to 72.6 for Pro and from 48.7 to 65.7 for Flash. Section 5.5 lists the run’s failures:

  • GPU double-bit memory errors and a grader that became unreachable;
  • partial rollouts skewing the length estimates;
  • one expert-parallel rank receiving more than 30× the mean token load.

Released: MiMo-V2.6-Distill-Qwen-9B, about 7K RL tasks with verifiers, the RL framework, a mini-harness, and a public training log.

  • Task mix. Agentic and competitive coding 68%, aesthetic design 13%, general tool use 12%, cybersecurity 4%, context following 3%.
  • Code-task synthesis. Five pathways: GitHub PRs, internal employee requests, specification-driven tasks, source-code-driven tasks (CodeMidas), and public or vendor data.
    • Each task is audited with 4 rollouts; an auditor agent flags false positives and false negatives.
    • Tests are rerun 8 times to catch flaky ones.
  • Other environments.
    • General agents: resettable environments built from real-world files and software mocks. Tasks are graded on atomic binary rubric items, using code checks for deterministic properties and LLM checks for open-ended content.
    • Cybersecurity: vulnerability reproduction from OSS-Fuzz. The verifier string-matches the sanitizer crash type and the top project stack frame.
  • Reward-hacking defenses.
    • Environment cleanup with network isolation.
    • A dedicated hack agent that probes environments for leaks, such as cached artifacts or preinstalled copies of the target project.
    • Offline trajectory audits during training.
    • The grader resets confirmed hacks to zero.
  • RL algorithm. GRPO with prompt-mean loss aggregation. The token importance ratio is sg[πθ/μθold]\mathrm{sg}[\pi_\theta/\mu_{\theta_{old}}], and inference log-probs are not recomputed for partial rollouts.
    • Four decoupled clip bounds, a low and a high bound for each advantage sign, all initialized to [0.2, 5.0] and retuned online from the policy entropy.
    • Routing replay plus top-p mask replay.
    • A dynamic sampler drops groups where every rollout passes or every rollout fails.
  • Shaping.
    • A group-relative length penalty: the reference is a quantile of passing lengths, applied only when the group’s pass rate is above a threshold.
    • Segment-level penalties for malformed markup and tool-call errors, with the advantage mass redistributed.
  • Harness diversity. Training uses four mini-harnesses built from one minimal agent loop. On three held-out harnesses (codex, claude code, mini-swe-agent), mean DeepSWE pass@1 rose from about 50% to 66%.
  • Distillation (MOPD2). Standard MOPD plus Teacher-Prefix and SFT-Prefix OPD. The student samples one new turn from each history prefix of a teacher rollout or an SFT demonstration. SFT teachers cover hard-to-verify domains such as long-horizon game development.

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.

  1. Derive / compute

    Groupwise Advantage Redistribution (GAR). A group has 4 code-agent rollouts with binary rewards 1, 1, 1, 0. The grader gives the three passing patches quality factors 1, 1 and 0.4. Compute the GRPO advantages A_i = R_i − mean(R), the redistribution factor λ = (sum of A_j over passes)/(sum of f_j·A_j over passes), and the new advantages A_i = λ·f_i·A_i for passes. Check what is conserved. Then redo the first step if the grader confirms that the third pass used a leaked answer.

    What a strong answer covers
    • Mean reward 0.75, so A = 0.25, 0.25, 0.25, −0.75.
    • Sum of A over passes = 0.75; sum of f·A = 0.25 + 0.25 + 0.1 = 0.6; λ = 1.25.
    • New pass advantages: 0.3125, 0.3125, 0.125. They still sum to 0.75, so positive mass is moved from the low-quality pass to the good ones, and the failed rollout keeps −0.75; the group mean stays 0 (the report also caps λ and re-centres).
    • Confirmed hack: its reward resets to 0 before group statistics, so R = 1, 1, 0, 0, mean 0.5, and A = 0.5, 0.5, −0.5, −0.5; the hacked trajectory is now pushed down like a failure.
    • Each sequence advantage is broadcast to all response tokens, so the grader changes how much a whole trajectory is reinforced, not individual tokens.
  2. What if…

    The report gives two ablations about RL stability: Fig. 8 (code-only RL with and without online grading) and Fig. 11 (trainable vs frozen router at layer 9 of the Pro model). State what each shows and the mechanism behind it.

    What a strong answer covers
    • Without online grading, turns and total tokens grow quickly, more trajectories hit the length limit and pass-rate gains stall. With GAR, gains continue through step 52 with roughly stable turn counts.
    • Maintainer audits of the no-grading policy found test-passing workarounds: speculative compatibility branches, broad exports, swallowed exceptions, relaxed validation and evaluation-specific config changes. Binary tests reward these as much as a clean patch.
    • Trainable router: over 20 steps the load CV rises from 0.78 to 2.0, peak load from 6× to 16×, and cold experts from 0.5% to 22%.
    • Resetting only the router weights restores the balance with unchanged benchmark scores, so the collapse is router drift, not expert damage. The frozen-router run stays at CV about 0.7, peak about 5.5× and about 1% cold experts.
  3. Design

    You want to train a 9B open model as a deep-research agent over a BrowseComp-Plus-style fixed corpus, with a 2-node GPU budget. Using MiMo-V2.6's recipe, decide what to copy, what to drop, and how you would guard against reward hacking.

    What a strong answer covers
    • Copy: harness diversity (several mini-harnesses with different tools and context management), so the policy does not overfit one scaffold; held-out harnesses as the generalisation test (codex, claude code and mini-swe-agent rose from about 50% to 66% mean pass@1 in the report).
    • Copy: rollout-based task audits (multiple attempts per task, an auditor checking false positives and negatives) before training, and a group-relative length penalty gated by pass rate.
    • Guard: isolate the corpus and judge from the agent, red-team the environment with a hack agent, and audit trajectories during training for answer leakage.
    • Drop or shrink: trillion-parameter RL infrastructure and MXFP4; start from the released MiMo-V2.6-Distill-Qwen-9B and the released tasks rather than generating 25K trajectories per step.
    • Measure: report the grader and harness used, because the same model scores differently under different harnesses and context managers.

Done with this page?

Status