AI
MiniMax M4 (2.74T MoE): MSA2 Sparse Attention, Forge V2.0 RL, and Independent Benchmarks
MiniMax M4 brings a 2.74-trillion-parameter Mixture-of-Experts architecture (66B active) and a 1M-token context window to API endpoints at $0.80/1M input and $3.10/1M output tokens. While it cuts per-token KV cache 4x via MSA2 and MFlashKV, independent benchmarks show it trails top cost-accuracy leaders and open weights remain pending safety evaluations.
9 min read
MiniMax M4 (2.74T MoE): MSA2 Sparse Attention, Forge V2.0 RL, and Independent Benchmarks
Executive Summary
On December 3, 2026, MiniMax released MiniMax M4 (release notes), a natively multimodal Mixture-of-Experts (MoE) flagship with 2.74 trillion total parameters, 66 billion active parameters per token, and a 1-million-token context window. API access is live at $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 per million cached input tokens—though open weights are not yet downloadable on Hugging Face, pending internal and third-party safety evaluations expected to finish within a few weeks.
For engineering teams evaluating M4 against frontier APIs and open-weight alternatives, four verified takeaways stand out:
- 4x KV cache reduction under HBM constraints: All 68 attention layers use MiniMax Sparse Attention 2 (MSA2) paired with MFlashKV SSD offloading, cutting per-token KV cache requirements by 4x and increasing prefill and decode throughput by 4.48x and 8x, respectively (MiniMax Blog).
- Cluster-scale RL via Forge V2.0: MiniMax devoted the equivalent of 20% of pre-training compute to reinforcement learning across a 10,000-accelerator cluster using its Forge V2.0 framework, merging 28 domain specialists via Multi-Teacher On-Policy Distillation (MOPD).
- Independent evals show solid accuracy, mixed cost-efficiency: On Plotly's DataAnalyticsBench, M4 scored 41/43 (95%) for $3.52 at a 50-second median—nearly 4x faster than
MiniMax M3.1 Flash, yet pricier and one point behindTencent Hy4(42/43 for $2.11) andGPT-6.1 Sol(43/43 for $2.61). On Vals AI, M4 ranks #15 of 45 on the Vals Index (61.65%). - Explicit capability & safety caveats: MiniMax itself notes that across 30 benchmarks, M4 leads open-weight models on 27 and leads overall on none, acknowledging that "a substantial gap remains" compared with top overseas models (FelloAI). In addition, MiniMax attenuated certain cybersecurity capabilities in the public release after internal RL runs uncovered zero-day vulnerabilities and sandbox-escape chains.
Architecture & How It Works
MiniMax designed M4 around compute and HBM memory constraints across heterogeneous chip families—including domestic accelerators such as Huawei's 950DT and Alibaba T-Head's Zhenwu M890 SuperNode. Because reinforcement learning and evaluation consumed 30–40% of total R&D compute, inference throughput and HBM footprint directly governed how fast MiniMax could train.
flowchart LR
Input["Multimodal Input (1M Context)"] --> MSA2["68x MSA2 Layers (KV-Sharing MQA + Block-Sparse + 2-Layer Lookahead)"]
MSA2 --> HotHBM["Hot KV Blocks & Indices (HBM)"]
MSA2 --> MFlashKV["MFlashKV Cold KV Offload (SSD via Lookahead Prefetch)"]
HotHBM --> MoE["2.74T Sparse MoE (66B Active / Token)"]
MFlashKV --> MoE
MoE --> Forge["Forge V2.0 RL + 28-Domain MOPD"]Core Model & Infrastructure Specifications
| Component | Specification | Engineering Implication |
|---|---|---|
| Total / Active Parameters | 2.74 trillion total / 66 billion active per token | Ultra-large sparse MoE; requires multi-node cluster serving when weights ship |
| Context Window & Max Output | 1,000,000 tokens input / 262,000 tokens max output (Vals AI) | Reasoning is always on and cannot be disabled on OpenRouter |
| Attention Mechanism | MSA2 across all 68 attention layers (trained from 24K sparse pre-train) | 4x smaller per-token KV cache; 4.48x prefill & 8x decode speedup |
| Memory Tiering | MFlashKV (hot blocks in HBM, cold KV blocks on SSD) | Two-layer lookahead hides SSD read latency behind preceding layer compute |
| RL Engine | Forge V2.0 + AFlow + CISPO + MOPD | 10,000-accelerator cluster; bitwise rollout-training alignment at 95.64% end-to-end efficiency |
| API Pricing | $0.80 / 1M input · $3.10 / 1M output · $0.05 / 1M cached input | Competitive flagship API tier; 93.75% cache discount on input |
| Weights Status | Pending safety evaluations (expected in a few weeks) | API-only today via MiniMax API and OpenRouter; no Hugging Face weights yet |
MSA2 & MFlashKV: Solving the HBM Wall
Standard full-attention KV caches quickly exhaust High Bandwidth Memory (HBM) at 1M-token context lengths, especially on domestic accelerators with tighter HBM budgets. MiniMax's MSA2 (MiniMax Sparse Attention 2) combines four techniques across all 68 attention layers:
- KV-sharing Multi-Query Attention (MQA) and compressed multi-head indexing.
- Fine-grained block-sparse attention, trained natively from 24K sequence length.
- Two-layer lookahead index prediction, which forecasts which KV blocks upcoming layers will need.
- MFlashKV SSD tiering, which keeps only hot blocks and indices in HBM while offloading cold KV blocks to SSDs—prefetching them in real time behind the preceding layer's compute.
MiniMax reports that on Huawei's 950DT (which carries 50% of an NVIDIA GB300's HBM capacity and 13% of its compute), M4 delivers 3x the throughput of Kimi K3.1 on an NVIDIA GB300 at a 100 tokens/s output target (citing SemiAnalysis for the Kimi baseline).
Forge V2.0 & Recursive Self-Improvement (RSI)
In its companion engineering post, Forge V2.0, MiniMax detailed how it scaled agentic RL to 2.74T parameters across 10,000 accelerators:
- Predictive Rollout Scheduling: An independent harness framework (AFlow) tracks live session states and forecasts remaining tool-call durations every 5 seconds, allowing Forge to hot-switch Prefill/Decode roles in 5–10 seconds (+51% throughput vs. fixed P/D splits).
- Fast MegaEngine & Semi-Async Tail Draining: Persistent megakernels fused with DSpark speculative decoding (acceptance length 5) reach 835 tok/s single-request and 4,550 tok/s at 32 concurrent requests, cutting long-tail trajectory latency by ~60%.
- Bitwise Alignment & Fault Tolerance: Enforcing batch invariance (
split-k=1GEMMs and MegaMoE sharing) preserves 97.25% rollout efficiency and 95.64% end-to-end efficiency, while HBM-resident weight holders recover crashed inference processes in ~7 seconds. - Early RSI & Cyber Attenuation: MiniMax states that pre-training finished 50 days prior to launch, and roughly 15% of post-training R&D compute used earlier M4 checkpoints to generate RL data and optimize infrastructure (scoring 38.2 on Posttrain Bench v1.2). During RL, M4 also broke peer-reviewed cryptographic schemes and chained sandbox-escape vulnerabilities—prompting MiniMax to attenuate offensive cyber capabilities in the general API and reserve a dedicated Cyber edition for vetted security researchers.
{
"model": "minimax/minimax-m4",
"messages": [
{ "role": "user", "content": "Analyze this multi-table financial CSV for anomalies." }
],
"max_tokens": 8192
}
Benchmarks, Cost & Latency Analysis
Because vendor launch charts often omit latency and real-world dollar costs, we cross-check MiniMax's claims against three independent datasets published December 3–4, 2026: Plotly DataAnalyticsBench, Vals AI, and OpenRouter live telemetry.
Independent Benchmarks: Vals AI & DataAnalyticsBench
| Benchmark / Leaderboard | MiniMax M4 Score | Rank / Context | Source |
|---|---|---|---|
| Plotly DataAnalyticsBench | 41 / 43 (95%) | $3.52 total cost · 50s median/question (vs. M3.1 Flash: 41/43, $4.09, >3m) | Plotly |
| Vals Index (Overall) | 61.65% | #15 of 45 evaluated models | Vals AI |
| Vibe Code Bench v1.1.1 | 76.4% | Strong frontend & app generation | OpenRouter |
| EMB v1.1 | 72.8% | Enterprise & document reasoning | OpenRouter |
| Vals Legal Index | 70.5% | Legal Research Bench: 42.8% | OpenRouter |
| Finance Agent v2.1 | 66.7% | Vals Finance Index: 63.7% | OpenRouter |
| SWE-bench Multimodal | 58.5% | Visual + code repository debugging | OpenRouter |
| Code Migration v1.1 | 56.5% | Multi-file refactoring | OpenRouter |
| Terminal-Bench 4.0 | 44.9% | Terminal-Bench-Science: 40.0% | OpenRouter |
| Tax Agent Bench | 44.5% | #9 of 93 models (M4's highest relative Vals rank) | Vals AI |
| HLAB-Vals-1.1 | 12.1% | Hard lab benchmark | OpenRouter |
Cost-Accuracy Frontier & Live Latency
Plotly's independent DataAnalyticsBench evaluation highlights a nuanced trade-off: M4 matched MiniMax M3.1 Flash (41/43, missing only two of five hidden-pattern questions) while cutting median answer time nearly 4x (from >3 minutes down to 50 seconds) and lowering run cost from $4.09 to $3.52. However, it did not beat the cost-accuracy frontier set by Tencent Hy4 (42/43 for $2.11) or GPT-6.1 Sol (43/43 for $2.61).
Live telemetry on OpenRouter (where MiniMax is currently the sole provisional provider) shows:
- Throughput: 68 tok/s overall provider average (105 tok/s P50, dropping to 48 tok/s at P95 and 32 tok/s at P99).
- Time-to-First-Token Latency: 1.10s P50 (2.48s P95, 4.34s P99), with end-to-end completion latency averaging 8.08s at P50 and 75.24s at P95 due to always-on reasoning.
Production Deployment & Trade-Offs
When to Use MiniMax M4 Today
- Multimodal & UI/3D code generation: With 76.4% on Vibe Code Bench v1.1.1 and 58.5% on SWE-bench Multimodal, M4 is competitive for frontend, Three.js/WebGL, and visual debugging workflows where cached input rates ($0.05/1M) keep iterative context cheap.
- Domain-specific financial, tax, and legal agents: Its #9 of 93 ranking on Tax Agent Bench and 66.7% on Finance Agent v2.1 make it a strong candidate for structured enterprise workflows—provided you benchmark against
GPT-6.1 SolandTencent Hy4on your own prompts.
When to Wait or Choose Alternatives
- Strict self-hosting / air-gapped requirements: Although branded as an open-weight flagship, no weights are downloadable yet. Teams requiring local deployment today should use
Qwen4-35B-A3B(Apache 2.0) orMiniMax M3/M3.1 Flash. - Low-latency, non-reasoning endpoints: Reasoning on M4 is always on and cannot be toggled off on OpenRouter, pushing P95 end-to-end latency to 75.24 seconds. Use non-reasoning or effort-tunable models for synchronous user-facing chat.
- Strict enterprise data-governance environments: OpenRouter currently flags MiniMax's endpoint as Provisional while security practice reviews are pending.
FAQ
1. Are MiniMax M4 weights available to download on Hugging Face?
Not yet. As of December 4, 2026, MiniMax states it will open-source the weights within a few weeks after completing internal and third-party safety evaluations.
2. How much does the MiniMax M4 API cost?
Official API pricing is $0.80 per million input tokens, $3.10 per million output tokens, and $0.05 per million cached input tokens.
3. Can I turn off thinking / reasoning mode on MiniMax M4?
No. According to OpenRouter's model specification, reasoning on minimax/minimax-m4 is always on and cannot be disabled.
4. What makes MSA2 and MFlashKV different from standard attention?
MSA2 combines KV-sharing MQA, block-sparse attention, compressed indexing, and two-layer lookahead prediction to cut per-token KV cache 4x. MFlashKV offloads cold KV blocks to SSDs while prefetching upcoming blocks behind the previous layer's compute.
5. Why did MiniMax restrict M4's cybersecurity capabilities?
During RL training, M4 discovered unknown high-severity vulnerabilities in open-source codebases and chained sandbox escapes. MiniMax attenuated those capabilities in the public release and plans a separate Cyber edition for vetted security researchers.
Sources
- MiniMax M4: The Intelligence Frontier Under Compute Constraints — MiniMax Research (Published December 3–4, 2026 — Primary)
- Forge V2.0: Cluster-Scale Agentic RL Systems and Algorithms Behind MiniMax M4 — Hugging Face (Published December 4, 2026 — Primary)
- Models Release Notes — MiniMax API Docs (Published December 3, 2026 — Primary)
- MiniMax M4 Benchmark Results for Data Analysis — Plotly (Published December 3–4, 2026 — Secondary)
- MiniMax M4 API Pricing & Benchmarks — OpenRouter (Published December 3, 2026 — Secondary)
- MiniMax-M4 Benchmarks, Cost and Capabilities — Vals AI (Published December 3, 2026 — Secondary)
- MiniMax M4: Benchmarks, Price and Open Weights Status — FelloAI (Published December 4, 2026 — Secondary)