Skip to content

The MiniMax-M2 Series: Mini Activations Unleashing Max Real-World Intelligence

optionalextendedfrontierpaperrubric 10/122026 · ~35 min

Aili Chen, Aonian Li, Baichuan Zhou, …, Ziyue Ge (MiniMax)

Status

TL;DR. The MiniMax-M2 report covers M2, M2.5 and M2.7. The model is small for its class: 229.9B total and 9.8B active parameters, 62 layers, full GQA attention (48 query / 8 KV heads), 256 experts with 8 active per token, sigmoid gating, 3 MTP modules, a 192K context, and 29.2T pretraining tokens.

The report is mostly about agents:

  • data pipelines for SWE, app development, terminal and “cowork” tasks (search, office, finance);
  • interleaved-thinking SFT;
  • CISPO RL with dense process and speed rewards, mixed across domains;
  • Forge, an agent-native RL system that trains both white-box and black-box agents.

All numbers are vendor-reported.

Treat the agent harness as part of the environment. The policy emits ata_t given whatever context sts_t the harness shows it. Context management, memory and sub-agents count as environment dynamics. Training samples are individual (st,at)(s_t,a_t) pairs, and credit still flows at the episode level:

A^i,t=∑p=tTrp−Bi,rt=α rtprocess+β rtspeed+rtperf,rtspeed=h ⁣(TcompletionTbaseline).\hat A_{i,t}=\sum_{p=t}^{T} r_p - B_i,\qquad r_t=\alpha\, r^{\text{process}}_t+\beta\, r^{\text{speed}}_t + r^{\text{perf}}_t,\qquad r^{\text{speed}}_t=h\!\left(\tfrac{T_{\text{completion}}}{T_{\text{baseline}}}\right).

The policy loss is CISPO from MiniMax-M1, with IS weights clipped to [0,1+ϵhighIS][0, 1+\epsilon^{IS}_{high}].

Results and discussion. M2.7, vendor-reported:

AreaBenchmarkScore
Agentic codingSWE-bench Pro56.2
SWE-bench Multilingual76.5
Multi-SWE-bench52.7
Terminal-Bench 2.057.0
SearchBrowseComp77.8
Wide Search75.2
CoworkGDPval-AA50.0
Toolathlon46.3
ReasoningAIME 202694.2
GPQA-Diamond89.8

The comparisons are against Claude Opus 4.6, Claude Sonnet 4.6, GPT 5.4 and Gemini 3.1 Pro. Section 2.2.2 explains the return to full attention: hybrid lightning and sliding-window variants lost multi-hop reasoning and retrieval quality at scale, and the infrastructure for linear attention is less mature.

  • SWE pipeline.
    1. Crawl permissively licensed PRs.
    2. Agents synthesize multi-language Docker environments.
    3. Tag each PR by type.
    4. Build test-based rewards per type: F2P/P2P for bug fixes, newly added tests for features, stable P2P timing differences for performance work.
    5. Validate with a model.
    6. Augment: bug injection, commit merging (SWE-Smith-style), SWE-Test conversion (write a test that fails before the patch and passes after), and code-review tasks checked by a second LLM.
  • App development. Agent-as-a-Verifier deploys the app and checks three layers: an execution layer (hard gate: builds, serves, no JavaScript errors), an interaction layer (Playwright-driven feature workflows), and a visual-aesthetics layer. Pass rates drive rejection sampling.
  • Terminal-Gym. Tasks are synthesized from the full Stack Overflow dataset into Dockerized, verifiable terminal tasks.
  • Cowork.
    • Deep search: guide-and-rewrite synthesis that obscures entities.
    • GDPval-anchored office deliverables.
    • Finance: evidence-driven synthesis that runs real tools first and then derives tasks from the traces.
    • Spreadsheets: workbook-walk synthesis.
  • SFT. Interleaved thinking: reasoning is kept in the history across tool turns.
  • Mixed-domain RL. Every stage draws reasoning, coding, agent and general data together. Across stages, the domain ratios shift toward agent and coding, the context length grows per domain, and difficulty increases.

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

    Forge throughput tricks. (a) Prefix-tree merging: a group of 8 completions shares a 20K-token prompt-plus-history prefix, and each adds 4K new tokens. How many tokens does a forward pass process with and without merging, and why is the loss unchanged? (b) Windowed FIFO: the generation queue holds N = 10 trajectories T0…T9, the head is i = 0, and W = 0.3N. T0 is still running; T1, T2 and T5 have finished. Which can the trainer fetch now, and what happens when T0 finishes?

    What a strong answer covers
    • (a) Without merging: 8 × (20K + 4K) = 192K tokens. With merging: 20K + 8 × 4K = 52K tokens, about 3.7× fewer. The report quotes speedups of up to 40× on its workloads.
    • Causal attention gives identical prefix activations whether the prefix is computed once or k times. The tree is split back into samples before the loss, so the result is mathematically equivalent to independent-sample training.
    • (b) W = 3, so the window is [T0, T2]. The trainer may fetch T1 and T2 (greedy within the window) but not T5, which is beyond it.
    • When T0 finishes and is consumed, the window advances. W trades distributional consistency (strict FIFO, W = 1) against throughput (greedy, W = N). Greedy fetching biases batches toward short, fast trajectories.
  2. Mechanism

    M2 trains with CISPO using IS weights clipped to [0, 1+ε_high], a reward-to-go advantage, and per-step rewards r_t = α·r_process + β·r_speed + r_perf. Each (s_t, a_t) pair is its own training sample. Explain why each choice suits long agent trajectories with context management.

    What a strong answer covers
    • Clipping to [0, 1+ε_high]: the upper bound limits large updates. A lower bound of 0 lets actions that became improbable be down-weighted aggressively. As in M1, no token's gradient is dropped entirely by PPO-style clipping.
    • Reward-to-go minus a trajectory baseline credits each action only with rewards that come after it, which lowers variance over trajectories of up to 192K tokens with thousands of actions.
    • Process rewards penalize language mixing and tool-format errors and reward well-structured reasoning. The speed reward h(T_completion/T_baseline) decreases with wall-clock time and encourages parallel tool calls and sub-agents.
    • (s_t, a_t) samples mean the policy does not need to know whether s_t came from appending, truncating or rewriting the history. This is how black-box agents with their own context management can be trained.
  3. Critique

    MiniMax-Text-01 and M1 used lightning (linear) attention; M2 returns to full GQA attention. Summarize MiniMax's stated reasons and judge whether they generalize, given that Kimi K3 (KDA) and DeepSeek-V3.2 / GLM-5 (DSA) chose efficient attention.

    What a strong answer covers
    • Evaluation difficulty: hybrid models matched full attention on MMLU, BBH, MATH and LongBench, but at scale they showed deficits in complex multi-hop reasoning. Proxy metrics correlated only weakly with downstream performance.
    • Hybrid sliding-window variants trained for hundreds of billions to trillions of tokens degraded retrieval, multi-hop reasoning and in-context learning, and the gap widened after SFT.
    • Infrastructure: linear attention is memory-bound, sensitive to low precision, lacks native prefix caching (which matters for RL rollouts with shared prefixes) and has unclear speculative-decoding support.
    • Counterpoint: DSA keeps full MLA keys and selects top-k, and K3 interleaves Gated MLA with KDA. These are partial-sparsity designs, and the reports claim parity. MiniMax's finding is about its specific variants and benchmarks, and it expects sub-quadratic attention to matter more later.

Done with this page?

Status