Skip to content

MiniMax-M1: Scaling Test-Time Compute Efficiently with Lightning Attention

optionalextendedfrontierpaperrubric 10/122025 · ~30 min

MiniMax (Aili Chen, …, Zijun Sun)

Status

TL;DR. MiniMax-M1 starts from MiniMax-Text-01, a 456B-total / 45.9B-active MoE with 32 experts. Its attention places one softmax block after every seven lightning-attention (linear) blocks. M1 adds 7.5T tokens of reasoning-heavy continued pretraining, long-CoT SFT, and large-scale RL with CISPO.

The hybrid attention makes long rollouts cheap. The report says M1 needs less than 50% of DeepSeek-R1’s FLOPs at 64K generated tokens and about 25% at 100K. Two models are released, with 40K and 80K thinking budgets. All numbers are vendor-reported.

Clip the importance weight, not the token. PPO/GRPO can zero a token’s gradient when its ratio crosses the clipping boundary in the advantage-improving direction (above 1+ϵ1+\epsilon with a positive advantage, below 1−ϵ1-\epsilon with a negative one). The tokens silenced this way are often rare “fork” tokens such as Wait or Recheck. CISPO instead clips a detached importance weight, so every token keeps its score-function gradient:

JCISPO=E ⁣[1∑i∣oi∣∑i=1G∑t=1∣oi∣sg ⁣(r^i,t) A^i,t log⁡πθ(oi,t∣q,oi,<t)],r^i,t=clip ⁣(ri,t, 1−ϵlowIS, 1+ϵhighIS).\mathcal J_{\text{CISPO}}=\mathbb E\!\left[\frac{1}{\sum_i |o_i|}\sum_{i=1}^{G}\sum_{t=1}^{|o_i|}\mathrm{sg}\!\big(\hat r_{i,t}\big)\,\hat A_{i,t}\,\log\pi_\theta(o_{i,t}\mid q,o_{i,<t})\right],\quad \hat r_{i,t}=\mathrm{clip}\!\big(r_{i,t},\,1-\epsilon^{IS}_{low},\,1+\epsilon^{IS}_{high}\big).

Only ϵhighIS\epsilon^{IS}_{high} is tuned; the lower bound is effectively off. The advantage is group-relative as in GRPO, and the loss is token-level. DAPO’s dynamic sampling and length penalty are used, with no KL term. Without clipping, the objective reduces to plain REINFORCE.

Results and discussion. Vendor-reported, M1-40k / M1-80k:

  • SWE-bench Verified 55.6 / 56.0, using an Agentless-style pipeline. DeepSeek-R1-0528 scores 57.6.
  • AIME 2024 83.3 / 86.0.
  • TAU-bench airline 60.0 / 62.0, retail 67.8 / 63.5, with GPT-4.1 as the user model.

During RL, AIME 2024 accuracy rose from 68% to 80% while average response length exceeded 20K tokens. M1 trails DeepSeek-R1-0528 on most math and reasoning benchmarks. It leads open models on long-context tests such as OpenAI-MRCR (128K): 76.1 for M1-40k.

  • SFT. Long-CoT data that teach reflection. About 60% of it is math and code.
  • Verifiable RL data.
    • About 50K math problems, keeping only those whose pass@10 from a strong reasoning model is strictly between 0 and 0.9.
    • About 53K logic puzzles from SynLogic across 41 task types, with per-task generators and verifiers. Difficulty bounds are set by model pass rates and raised during training.
    • 30K competitive-programming problems; Text-01 writes test suites where tests are missing.
  • SWE sandboxes. Several thousand GitHub issue and PR tasks run in containers. Passing all relevant tests gives a positive reward. Compile errors, runtime failures or regressions give zero or negative reward. Tasks include bug localization, repair and test synthesis.
  • General RL. 25K samples.
    • With ground truth: a GenRM scores on a five-grade scale.
    • Without ground truth: pairwise comparison against a reference answer, scored −1, 0 or +1, plus rule rewards for instruction constraints.
    • Length bias is monitored online during RL, and the GenRM is recalibrated when the policy starts gaining reward through length alone.
  • Curriculum. Rule-rewarded reasoning tasks come first; general tasks are mixed in gradually so verifiable skills are not forgotten.
  • What to borrow for agents. CISPO, or its unified token-mask form, for long multi-update rollouts. Check train–inference precision before tuning RL. Monitor reward-model length bias online instead of trusting offline checks.

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

    CISPO vs PPO/GRPO clipping. Take ε = 0.2 for PPO and ε_high = 0.2 for CISPO (no lower bound). A rare reflective token ("Wait") was sampled with ratio r = 1.5 on a later off-policy minibatch, in a trajectory with advantage A = +1. What gradient does each objective send to log π of that token? Repeat for A = −1. Then explain why this matters more with 16 off-policy updates per batch.

    What a strong answer covers
    • PPO with A > 0: min(r·A, clip(r)·A) = min(1.5, 1.2) picks the clipped constant branch, so the gradient on this token is zero.
    • CISPO: the loss is sg(clip(r, ·, 1.2))·A·log π, so the gradient is 1.2·A·∇log π. The token keeps contributing at a bounded weight.
    • A = −1: PPO takes the min of −1.5 and −1.2, which is −1.5, the unclipped branch, so the gradient flows with weight 1.5. CISPO caps it at 1.2.
    • The report found that rare fork tokens ("However", "Recheck", "Wait", "Aha") get large ratios after the first update and are then clipped out of all later updates. With 16 updates per generation batch, PPO silences them for most of the batch, and raising the upper clip bound as in DAPO was "less effective".
    • On Qwen2.5-32B zero-RL, CISPO matched DAPO's AIME 2024 score with 50% of the training steps (vendor-reported).
  2. What if…

    MiniMax-M1 reports that reward did not grow until it changed the precision of one layer. Describe the symptom, the diagnosis, the fix and the measured effect. Then name two other RL-engineering fixes from the report and the failure each prevents.

    What a strong answer covers
    • Symptom: the probabilities of the same rolled-out tokens differed between training mode and inference mode, and reward did not increase. It did not occur in smaller dense softmax models.
    • Diagnosis: high-magnitude activations in the LM head. Fix: run the LM output head in FP32. The train–inference probability correlation rose from about 0.9x to 0.99x and stayed stable.
    • AdamW: gradients ranged from 1e-18 to 1e-5, mostly below 1e-14, so verl's defaults (β2 = 0.999, eps = 1e-8) failed to converge. M1 uses β1 = 0.9, β2 = 0.95, eps = 1e-15.
    • Early truncation: stop generation when 3,000 consecutive tokens each have probability above 0.99, so repetitive loops do not produce huge, destabilizing gradients.
    • Length-extension collapse: negative samples grow longer faster and hit the window first, piling negative gradient onto late tokens. Fixes: repetition early stop, sample-level loss with token-level normalization, and lower gradient-clip and ε_high.
  3. Critique

    The abstract says full RL cost "only" 534,700 USD (512 H800 for three weeks). Convert this to GPU-hours and a per-GPU-hour price, then list what the figure excludes and how SWE-bench numbers in the report should be read.

    What a strong answer covers
    • 512 GPUs × 21 days × 24 h = 258,048 GPU-hours. 534,700 / 258,048 ≈ 2.07 USD per H800-hour, a rental-price estimate.
    • Excluded: 7.5T tokens of continued pretraining, SFT, failed and ablation runs, data and environment construction, reward-model training and evaluation.
    • The figure covers only the 40K→80K RL run. Comparisons with other labs need the same accounting boundary.
    • SWE-bench Verified (55.6 / 56.0) uses an Agentless-style pipeline with two-stage localization, not a free-form agent loop. TAU-bench uses GPT-4.1 as the user simulator. Both depend on the scaffold.

Done with this page?

Status