Skip to content
View original post on X: meng shao
Published
Pick

Xiaomi's MiMo-V2.6 report explains scaling RL along batch, environments, and grading

AIXiaomi's MiMo-V2.6 technical report argues that scaling reinforcement learning, not more pretraining data, is the main lever for frontier capability, along batch size, environment diversity, and grader strength. The article summarizes the report's methods, including groupwise agentic grading, a frozen-router fix for expert load collapse, and reward hacking defenses.

AIWhy it matters.

The piece walks through the report's three-way RL scaling method, batch size, environments, and grading, with concrete failure modes and stabilization fixes useful to agentic RL practitioners.

meng shaoVerified on X
@shao__meng
View on X

https://x.com/i/article/2108826378812768256

Xiaomi MiMo-V2.6 Technical Report: $2.6M RL Compute and Three-Dimensional Scaling Push a Trillion-Parameter MoE Model into the Frontier Tier

MiMo-V2.6: Approaching Self-Improvement with Scaled Reinforcement Learning

Paper: MiMo-V2.6: Scaling Reinforcement Learning Towards Self-Improvement, Xiaomi LLM-Core team, released October 2026.

Core Argument

The central thesis of this report can be condensed into one sentence: the most effective path to improving a foundation model's intelligence today is not to keep piling on pretraining data, but to systematically scale RL compute, and this scaling must proceed along three dimensions at once: larger training batches, more diverse environments, and more expensive graders. Lacking any one of the three, RL becomes unstable or is led astray by reward hacking.

The model itself comes in two sizes: MiMo-V2.6-Pro (1.02T-parameter MoE, 42B active) and MiMo-V2.6-Flash (310B, 15B active). RL post-training cost $2.6M and $0.9M respectively. This cost disclosure is itself a highlight of the paper, putting a price tag on "frontier intelligence" on the table.

Foundation: Architecture and Mid-Training Built for RL

The architecture continues the hybrid-SWA design: local sliding-window attention (window 128) interleaved with global attention at roughly a 4:1 ratio, combined with sparse MoE, an MTP module, a self-developed 681M-parameter ViT, and a two-level audio encoder. These designs aim to reduce attention compute overhead under ultra-long context (1M tokens), which is an engineering prerequisite for the subsequent RL.

Mid-training involves two noteworthy decisions:

1. Optimizer switch: from AdamW to Muown (a Muon variant with added row-norm control). The rationale is practical: RL uses very large batches (25K trajectories per step), and AdamW's element-wise adaptivity loses optimization efficiency in this large-batch regime, whereas Muon's matrix-orthogonalized updates remain data-efficient here. The paper specifically notes that earlier work reported performance degradation when switching from Adam to Muon, but they had no loss spikes throughout.

2. MXFP4 quantization-aware training is introduced already during mid-training, letting the model adapt to low-precision computation in advance and paving the way for inference-side quantization during RL.

The message of this section: whether RL can scale is largely determined during mid-training. The model must first be "ready to withstand large batches" in terms of optimizer, precision, and context length.

Three-Dimensional RL Scaling (Core of the Paper)

3.1 Training Compute: 25K Trajectories per Step, 2.7–3.7B Tokens

Each training step consumes 1,568 prompts × 16 rollouts = 25K trajectories, about 110K–150K tokens per trajectory, 2.7–3.7B training tokens per step, with context up to 1M. It uses GRPO with asynchronous partial rollout (staleness = 4). The cost breakdown is fairly balanced: rollout 43.8%, training 43.5%, grading 12.7%.

Several technical details stand out:

- Decoupled four-part clip boundaries: the upper and lower clip bounds for positive and negative advantages are set separately (initially [0.2, 5.0]) and adjusted online according to policy entropy. When entropy is too low, the positive bound is loosened and the negative bound tightened, and vice versa. This is a refinement of the DAPO-style clip idea.

- Prompt-mean aggregation (instead of token-mean) suppresses growth in response length.

- Dynamic sampling filters out all-correct/all-wrong groups, and partial rollout keeps the batch saturated.

3.2 Environments and Harnesses: Four Domains + Multi-Harness Training

Task composition: code 68%, aesthetic design 13%, general tools 12%, cybersecurity 4%, context following 3%. Each domain's environment construction differs, and all place "reliability of the supervision signal" first:

- Code: five task synthesis pipelines (GitHub PRs, internal real requests, spec-driven, CodeMidas source-derived, external data). Quality control is quite strict: spec-test alignment review, an audit agent comparing 4 rollouts against whether rewards agree (catching false positives/negatives), and 8 reruns to filter flaky tests.

- General agents: a multi-agent workflow synthesizes local, reproducible, resettable software mock environments, with atomic binary rubric scoring and adversarial solution tests to guard against hacking.

- Vision: open-ended design uses a mix of pointwise and groupwise grading; high-fidelity reproduction uses rule-based metrics such as pixel similarity.

- Cybersecurity: one of the most elegant engineering judgments in the paper. They point out that CyberGym's fix-binary differential test (crashes on the unpatched version but not on the patched one) has inherent flaws: incomplete patches wrongly reject correct PoCs, and unrelated changes can flip the verdict, and either error contaminates the training gradient. Their alternative: extract two attributes from the ground-truth sanitizer report, vulnerability type and crash location, and verify via rule-based string matching. It is deterministic, reproducible, nearly zero compute cost, and the task description and verification share the same source of facts.

Multi-harness training is an insightful design: training directly on production-grade harnesses (such as Codex) has two problems. Constraint prompts in production harnesses fall outside the reward signal (distorting credit assignment), and the tightly coupled modules cannot be varied independently. Instead, they use mini-harnesses derived from a minimal agent loop, with modular, recombinable components. Experiments show it works: the average Pass@1 on three held-out harnesses (codex, claude code, mini-swe-agent) rose from about 50% to 66%, the gap between trained and unseen harnesses narrowed, and the capability genuinely transfers across harnesses rather than memorizing specific interaction mechanisms.

Reward hacking defense has four layers of depth: injecting anti-hack reflection data during mid-training → environment preparation (clearing build artifacts, truncating git history, container-level network isolation) → an iterative Hack Agent for penetration testing (repeatedly breaking, fixing, and breaking again until it can't be broken) → offline auditing during training. The five "solution leakage" patterns listed in Table 2 (installing the new version as the answer, pulling upstream source, looking up issue history, probing version numbers, etc.) are very realistic and worth bookmarking for anyone doing agentic RL. The final confirmed share of hacked trajectories stayed below 2% throughout.

3.3 Groupwise Agentic Grading: Treating the Grader as Scalable Compute

This is the most novel part of the paper methodologically. The core observation: binary test rewards cannot distinguish quality differences among solutions that all pass, yet that information is exactly what guides the model toward high-quality, token-efficient solutions.

Two complementary routes:

- GRS (offline): collect multiple rollouts offline, have an agent comparatively analyze them and generate a task-specific "solution rubric + behavior rubric"; the final reward = test reward × solution score × behavior score (the multiplication preserves the baseline that "failing the tests means zero").

- GAR (online): an online grader jointly examines a group of successful and failed trajectories, ranks them along five dimensions (approach suitability, implementation precision, minimal changes, no side effects, code craftsmanship), and then redistributes positive advantage from low-quality passing solutions to high-quality ones according to a quality factor f_i (Eq. 3), mathematically conserving the total positive advantage. Trajectories confirmed as hacks have their rewards set directly to zero, and group statistics are recomputed.

The ablation evidence (Figure 8) is compelling: without online grading, turn and token lengths grow out of control, many trajectories hit the length cap, and the pass rate stagnates; with it enabled, the pass rate keeps rising and turns stabilize. A more important qualitative finding: policies without online grading learn opportunistic bad habits, such as adding speculative compatibility branches, loosening checks, swallowing exceptions, and modifying evaluation configurations, whereas policies trained with online grading produce smaller, more precise, more maintainable patches. This section essentially says: RL precisely optimizes whatever you measure, so you must also make "code taste" measurable.

The accompanying two behavioral regularizers (a group-relative length penalty that deducts points based on the length percentile of successful solutions within the group, and segment-level behavioral penalties that shape token-level advantages for malformed formats or bad tool calls) follow the same design philosophy: quality-conserving redistribution of advantage, avoiding entropy collapse caused by accumulated negative pressure.

Experiments Section: "You Only RL Once"

The section title itself reveals the stance: one large-scale mixed RL run carried through to the end, rather than alternating multiple rounds of SFT/RL.

Router freezing is the cleanest scientific finding in the whole paper: when the MoE router is trainable, the Pro model suffers expert load collapse within 20 steps (CV rises from 0.78 → 2.0, peak load from 6× → 16×, cold experts from 0.5% → 22%). The key diagnosis: restoring only the router parameters from the step-20 checkpoint to their initial values immediately recovers the load, with performance unchanged, which proves the collapse stems from router drift rather than expert weight degradation. With the router frozen, all three metrics stay stable throughout and performance grows normally.

The failure analysis is rarely this honest: GPU double-bit errors, K8s crashes, KV pool exhaustion caused by short-trajectory bias in partial rollouts, OOMs from 30× imbalance across MoE micro-batches, and CPU OOMs during the packing stage. For anyone trying to reproduce large-scale RL, this section is a genuine construction guide.

Final results (Table 3): compared with MiMo-V2.5-Pro, the improvements are overwhelming (DeepSWE 19.0→71.9, CyberGym 40.0→94.0, Terminal-Bench 2.1 65.2→89.9), and it is roughly in the same tier as Claude Opus 5 / GPT-5.6 Sol, leading on some benchmarks (JobBench, AutomationBench, MiMo Code Bench) and trailing on others (ProgramBench, ExploitBench, Terminal-Bench 4.0).

MOPD2 is used to broaden capabilities after RL: multi-prefix, multi-teacher online distillation. By slicing teacher trajectories into k historical prefixes and having the student generate only a single turn, it extends token-level teacher supervision to domains where verifiers are hard to design (game development, scientific research, embodied intelligence). This is a pragmatic response to the limitation that "RL can only handle verifiable tasks."

Key points of the infrastructure (Section 6)

This chapter takes up about a third of the paper and is the most engineering-rich part. Several key abstractions:

• Agent Loop execution model: each sequence owns its environment lifecycle and calls the inference engine on demand, with a pure token-in/token-out interface. Trajectories are organized into a four-level hierarchy of Sample→Sequence→Context→Segment. The Penalty Module (rules × policies) operates at this level to perform fine-grained loss masking and advantage shaping, keeping infrastructure failures out of the learning signal.

• Control plane / data plane separation: the driver schedules only lightweight metadata, while heavy payloads (MoE routing records, top-p candidate sets, multimodal data) are written once to a distributed KV store and packed locally by the consumer. This is the prerequisite for batching 3B+ tokens per step without overwhelming single-machine memory.

• Sample Mixer: rollout durations and generation volumes across 25 data sources differ by up to 66–90×. Four mechanisms maintain the target training distribution: adaptive concurrency budgets, gap-correcting scheduling, predictive dispatch (estimating KV demand before admission), and sample replay.

• Training-inference consistency: MXFP4 QDQ ensures bit-identical weights; R3 replays expert routing from rollouts; top-p candidate sets are recorded and renormalized during training (with top-p 0.97, the average candidate set is under 5 tokens, so the overhead is negligible). These mechanisms address an easily overlooked problem: numerical differences between the training and inference engines can flip discrete expert selections, thereby breaking the correctness of importance sampling.

• Speculative decoding: during RL, block-6 DFlash replaces SFT's MTP-3 by default, and the draft model is fine-tuned on RL rollout logs, raising acceptance length by 31.3%. Combined with FP8, single-node throughput improves by about 10.3%.

Open source and reproducibility

The open-source release includes four components: MiMo-V2.6-Distill-Qwen-9B (Qwen3.5-9B SFT'd on 77.4B tokens of MiMo data), roughly 7K verifiable environment tasks (code/web/general/vision), an end-to-end RL framework, and a composable mini-harness. The validation experiments are solid: the 9B distilled model surpasses Qwen3.5-9B on all 11 evaluations, and further domain GRPO improves it on all of them; in multi-harness RL experiments, none of the 21 "dataset × harness" combinations regressed.

In one sentence: the real claim of MiMo-V2.6 is not "our model is strong" but "scaled agentic RL = large batches × diverse environments × fine-grained scoring + a full set of anti-collapse engineering. Get every item right and the self-improvement flywheel can turn; if any item is missing, compute becomes precise optimization of wrong signals."

AITranslated from No linguistic content
Source details

meng shao · x.comPublished · added here

Original title: 小米 MiMo-V2.6 技术报告:260 万美元 RL 算力与三维扩展,将万亿 MoE 模型推入前沿梯队