MiniMax

One lab, one question asked three times at production scale: how much of softmax attention can be replaced? Linear attention, then full attention, then trained block-sparse attention. Data as of October 2026; every figure links to its source. Reading: 25 min, plus 6 in closed details.
The idea in one sentence
MiniMax, a Shanghai lab founded in December 2021 (Wikipedia), has run one experiment three times at production scale: replace most softmax attention with linear attention (MiniMax-01, M1), go back to full attention when exact recall broke at scale (M2), then keep full attention's cache but let each query read only 16 selected blocks (M3), in every layer from M3.1 Flash on.

You need: GQA and trained sparse attention (DSA, NSA) from Attention variants; linear attention and hybrids from Beyond attention; KV-cache sizing from Long context; the PPO clip and GRPO from RL for LLMs. This page says what MiniMax chose, with its numbers, and explains its own variants in full.

Lightning attention
MiniMax's block-wise kernel for causal linear attention (01, M1).
7:1 hybrid
seven lightning layers, then one softmax layer, repeating.
MSA
MiniMax Sparse Attention (M3): a light index branch picks 16 blocks of 128 tokens per GQA group; exact softmax runs on those.
KV outer, gather Q
MSA's kernel loop order: load each selected key block once and serve every query that chose it.
CISPO
M1's RL objective: clip the importance weight, not the update.

Which layers keep a cache that grows with every token, in each generation

One square per layer, from each model's config.json (01, M2, M3). Bytes are BF16 keys and values per token, summed over layers. The question each generation answers differently: what a decoded token must store and read.

GenerationAttentionWhat a decoded token stores and readsContext
MiniMax-01, M1Lightning attention (linear) in 7 of every 8 layers, softmax GQA in the 8thLinear layers: a fixed-size state, no cache. Softmax layers: a full KV cache, read in full1M in training, 4M claimed at inference
M2, M2.xSoftmax GQA in every layerA full KV cache in every layer, read in full192K trained (M2 report); 204,800 on the API (MiniMax docs)
M3, M3.1 FlashSoftmax GQA in every layer, plus MSA in every layer after the first three (M3) or in every layer (M3.1 Flash)A full KV cache in every layer, but each query reads only 16 selected blocks of 128 tokens (M3's first three layers read in full)1M

How the design got here: three routes in twenty months

The order is the argument. Each switch came with a written reason, and the reversal in the middle (M2 abandoning the hybrid MiniMax had called "the first successful large-scale implementation of linear attention") is more informative than either claim around it.

Every MiniMax language model since January 2025, by attention route

lightning hybridfull softmax GQAGQA + MSAnot published

Dot area grows with total parameters where published. Click a dot to open its row in the release notes below. Dates from MiniMax's release notes.

Release notes, one row per model (dated; architecture, size, context, licence)
Model, releasedTotal / activeContextLicenceWhat changed
MiniMax-Text-01 and VL-01, 15 January 2025456B / 45.9B1M trained, 4M claimed at inferenceMiniMax Model AgreementThe 7:1 lightning hybrid; VL-01 adds vision (report; card).
MiniMax-M1, 16 June 2025456B / 45.9B1M input; 40K and 80K thinking budgetsApache 2.0An open reasoning model on the same hybrid backbone and the origin of CISPO (M1 report; card).
MiniMax-M2, 27 October 2025229.9B / 9.8B196,608 (config); 204,800 on the APIModified MITThe reversal to full softmax GQA in every layer; positioned on speed and price for agentic work rather than on context length. 3 MTP heads for speculative decoding (M2 report; card).
MiniMax-M2.1, 22 December 2025229.9B / 9.8B204,800Modified MITSame backbone; MiniMax's notes stress multi-language programming and code refactoring.
MiniMax-M2.5, February 2026229.9B / 9.8B204,800Modified MITSame backbone, with a highspeed variant; still trained with CISPO (card).
MiniMax-M2.7, 18 March 2026229.9B / 9.8B204,800Modified MITSame backbone, adding what MiniMax call "self-evolution": during development the model debugged its own RL runs, built skills for its experiments and modified its own scaffold (card).
MiniMax-M3, 1 June 2026~428B / ~23B1,000,000 (512K on the standard price tier)MiniMax Community LicenseGQA (4 KV heads) plus MSA in every layer after the first three; native multimodality (text, image and video in, vision encoder trained in from pretraining). MiniMax call it the first open-weight model to combine frontier-level coding, a 1M context and native multimodality (announcement; card).
MiniMax-M3.1-Flash-Preview, 27 September 2026not published1,000,000not open (MiniMax Code and M Plan only)Shipped only inside MiniMax's own coding agent: five effort levels (low to max, default max), thinking cannot be switched off, no published price, speed, benchmark or architecture (DataNorth).
MiniMax-M3.1 Flash, 19 October 2026 (API); weights 23 Octoberabout 428B / 23B (model card)1,000,000MiniMax Community LicenseThe preview on the API, M Plan and MiniMax Code (MiniMax), then open weights four days later (model card): MSA in every layer, replacing the three full-attention layers M3 kept, and quantisation-aware training on the routed experts and attention; prices and scores in Models today.

Lightning attention (MiniMax-01, M1): linear attention computed in blocks

The bill being attacked. Softmax attention forms an n × n score matrix, so prefill costs on the order of n2d per head, and every decoded token reads the whole KV cache: 2 · Hkv · dh · b bytes per token per layer (key and value, KV heads, head dimension, 2 bytes in BF16; Long context owns the sizing). Linear attention drops the softmax, so (QK⊤)V = Q(K⊤V): a fixed d × d state St = St−1 + kt⊤vt replaces the cache, and ot = qtSt (Beyond attention owns the recurrence and its gated successors).

Lightning attention is MiniMax's IO-aware way of computing it: a kernel contribution, not a new mathematical form (MiniMax-01 report, arXiv 2501.08313). Computed token by token, causal linear attention is a cumulative sum along the sequence, which serialises the very dimension a GPU wants to parallelise. Lightning cuts the sequence into blocks and splits each block's output in two: inside the block, the ordinary masked quadratic product (the report's "left product", small and parallel); from all earlier blocks, one multiplication by the carried state (the "right product").

Predict, then watch: four tokens with scalar q = (1, 2, 1, 3), k = (1, 1, 2, 1), v = (2, 1, 1, 3). Token by token the running sums are 2, 3, 5, 8, so o = (2, 6, 5, 24). How many dependent steps does each way take? Fig. 3 plays both.

  1. Four tokens. Each purple bar is a token's k · v = 2, 1, 2, 3: what linear attention adds to its state. The output of token t is qt times the sum of every k · v up to t.
  2. Token by token: four dependent steps. The running sum is 2, then 2 + 1 = 3, then 5, then 8 (teal), each waiting for the one before, and o = q × sum = 2, 6, 5, 24 (orange). On a GPU that serial chain along the sequence is the bottleneck.
  3. Cut into blocks of B = 2. Lightning splits the sequence into blocks and each block's output into two parts: one computed inside the block, one from everything before it.
  4. Block 1: the masked product. Inside the block, the ordinary masked quadratic product (the report's "left product", rows queries, columns keys, the upper cell masked) gives both outputs at once: o1 = 1 × 2 = 2, o2 = 2 × (2 + 1) = 6. There is no earlier state yet.
  5. Only the state crosses: S₁ = 3. S1 = k1v1 + k2v2 = 3 is all block 1 hands on (in a real model a d × d matrix per head; here d = 1). Nothing else from block 1 is kept.
  6. Block 2: intra-block plus inter-block. The masked product inside block 2 gives 2 and 15 (purple); the carried state, q × S1 (the "right product"), gives 3 and 9 (teal). So o3 = 5 and o4 = 3 × (2 + 3) + 3 × 3 = 24, the same as token by token, in two block steps instead of four token steps.

For block i of B tokens, the same split as a formula:

Oi=[(QiKi⊤)⊙M]Vi+QiSi−1,Si=Si−1+Ki⊤Vi
Qi, Ki, Vi
the B × d queries, keys and values of block i
M
the B × B causal mask; ⊙ is elementwise, so the first term is the intra-block part
Si−1
the d × d state summing kj⊤vj over all earlier blocks: the inter-block part

Cost per head O(nd2 + nBd): state updates and reads, plus the intra-block products; linear in n for a fixed block size.

At real scale. MiniMax uses blocks of 256 tokens, keeps each block's working set in on-chip SRAM in the spirit of FlashAttention, and reports a constant training speed as sequence length grows, the only linear model in its comparison to beat FlashAttention-2 (report, section 2.2 and appendix). One head with d = 128, B = 256, n = 1,048,576: softmax's n2d ≈ 1.41 × 1014 against lightning's nd(d + B) ≈ 5.15 × 1010 multiply-adds, a ratio of n / (d + B) ≈ 2,731 (constant factors ignored); and 4,096 dependent block steps instead of 1,048,576 token steps.

The 7:1 hybrid, and what the state costs

A fixed state is a lossy summary of everything seen so far, so exact recall of one earlier token (a needle, a definition looked up in context, an identifier copied verbatim) degrades in a way perplexity does not show. The MiniMax-01 report says it plainly: pure linear attention matches the transformer at language modelling but "falls short in retrieval tasks". So MiniMax-01 shipped a 7:1 hybrid (the hero's top row): seven lightning layers do the cheap bulk mixing, then one softmax GQA layer restores exact addressing, repeating.

The numbers. MiniMax-Text-01 has 80 layers, 64 query heads of dimension 128, and softmax layers with 8 KV heads (config; its attn_type_list marks every eighth layer as softmax). So 10 layers keep a KV cache and 70 keep a state:

  • KV cache per token: 10 × 2 × 8 × 128 × 2 = 40,960 bytes = 40 KiB, against 320 KiB if all 80 layers were softmax GQA; at 1,048,576 tokens, 40 GiB per sequence instead of 320 GiB.
  • State per sequence: 70 × 64 × 128 × 128 = 73,400,320 elements, fixed: 140 MiB at 2 bytes per element whatever the context (the report does not state the state's precision; in FP32 it doubles).

At 456B total and 45.9B active parameters, MiniMax describe Text-01 as the first successful large-scale implementation of linear attention. It was trained on contexts up to 1M tokens and extrapolated to 4M at inference, which is where the 4M-token claim comes from (Text-01 model card).

M2's reversal: back to full attention

M2 (27 October 2025) dropped lightning attention and returned to softmax GQA in every layer: 62 layers, 48 query heads and 8 KV heads of dimension 128 (config), trained to a 192K-token native context (M2 series report, arXiv 2605.26494). That is 62 × 2 × 8 × 128 × 2 bytes = 248 KiB per token, about 46.5 GiB for one full 196,608-token sequence: 6.2 times the hybrid's per-token cache, paid deliberately.

MiniMax-01 report, January 2025
The hybrid "not only matches but surpasses the retrieval and extrapolation capabilities of softmax attention" on its small-scale comparisons (arXiv 2501.08313, section 2.2.2).
M2 post and report, late 2025 and 2026
At larger scale "the model had clear deficits in complex, multi-hop reasoning tasks", which the saturated benchmarks of the time did not show (MiniMax). The later source is the lab revising the earlier.

MiniMax's reasons (Why did M2 end up as a full attention model?; M2 series report, section 2.2.2):

  • The benchmarks hid the gap. Hybrids matched full attention on MMLU, BBH, MATH and LongBench during Text-01's development; the real bottleneck, in their words, was "the limitations of evaluation": proxy metrics built to catch the weakness may stop correlating with real performance at the next scale.
  • Some circuits are set early. Retrieval and induction heads (patterns that find and copy an earlier token) form early in pretraining in global attention. Converting a trained model into a sliding-window hybrid by continued pretraining "can hardly adjust those patterns afterwards", and finding every such head to keep as full attention "from human priors" was nearly impossible.
  • Sliding windows failed the same way. In ablations continued for hundreds of billions to trillions of tokens, hybrid sliding-window attention (SWA) degraded retrieval, multi-hop reasoning and in-context learning. The chart has every row of the two tables: the gap opens past 32K tokens and is mixed below it.
  • The infrastructure was not there. Linear attention is far more sensitive to numerical precision, many linear designs are memory-bound even in training, and it did not yet work cleanly with prefix caching and speculative decoding. In theory its compute crossover with full attention lies at "a few thousand tokens"; reaching it in production needs those three problems solved.

The workloads that had become the product, long reasoning chains that refer back to their own steps and agent loops full of tool outputs to be quoted exactly, are exact-recall workloads, where a compressed state is weakest; paying the quadratic cost was the cheaper trade. MiniMax framed the reversal as conditional: "as GPU compute growth slows while data length keeps increasing, the benefits of linear and sparse attention will gradually emerge."

The hybrid loses most where context is long and recall is exact

Sliding-window hybrid's score minus full attention's, on MiniMax's ablation models at the M2 architecture scale, not the released M2. Source: M2 series report, Tables 2 and 3 (columns "Baseline" = full attention and "w/ SWA"). Orange: the hybrid loses; green: it wins.

MSA (MiniMax Sparse Attention, M3): keep exact lookup, read a few blocks

M3 takes the third route. Trained sparse attention keeps the softmax and the full KV cache but lets each query attend only to a selected subset of keys; if the right keys are selected the lookup is exact, because nothing was compressed. The difficulty moves into selection (cheap, trainable end to end) and into kernels (a selected set is irregular, and irregular memory access is what GPUs do worst). Sparse attention in general, and DeepSeek's DSA, are taught on Attention variants; MSA is MiniMax's version, from the MSA paper, arXiv 2606.13392 and M3's config:

Predict, then watch: at a 128K context, how many of the cache's 1,024 blocks does one M3 token read in one MSA layer, and how many does M2 read? Fig. 5 plays MSA first; then switch to full GQA and to the lightning hybrid.

  1. A token arrives. At position 131,072 it enters one of M3's 57 MSA layers and forms 64 query heads of 128 (4 GQA groups of 16), its key and value for each of the 4 KV heads, and for the index branch 4 index queries (one per group) and one shared index key, all of dimension 128. Each grey plate is one KV head's cache over the whole context, in blocks of 128 earlier tokens (to scale: a lit block is one block); the gold plate holds the index keys.
  2. Write to the cache: nothing is dropped. Its keys and values (2 × 4 × 128 × 2 = 2,048 bytes) go to every KV head and its index key (256 bytes, BF16 assumed) to the gold plate. All 1,024 blocks stay resident: MSA never shrinks what is stored, it only chooses what to read.
  3. Index branch: score every earlier token. One small index query head per KV group and one index key head shared by all groups score every earlier token, Si,j = qidxi,r · kidxj / √didx: 4 × 128 × 131,072 multiply-adds, reading all the index keys (32.0 MiB). The one part of MSA that still grows with the context, which is why it is kept light.
  4. Block scores: max-pool. Keys are cut into blocks of Bk = 128 tokens; a block scores the maximum of its tokens' scores, so one strongly relevant token lifts its whole block (the gold shade: group 1's block scores).
  5. Selection per GQA group: 16 blocks each. Each group ranks the blocks by raw score (an "exp-free" top-k, since softmax preserves order) and keeps its own top k = 16, the query's own block always included. The four colours are the four groups: they share the local block and the sink at the start but retrieve different long-range blocks; 64 of 1,024 blocks are lit.
  6. Exact attention on the selection. Each group's 16 query heads run ordinary softmax over the kBk = 2,048 selected keys of their own KV head, reading 4 × 2,048 × 2 × 128 × 2 bytes = 4 MiB. Nothing was compressed, so if the right blocks were chosen the lookup is exact. This layer read 36.0 MiB for the token, against 512 MiB in one of M2's layers.

Block scores and selections are illustrative (a fixed seed with a sink block and a few hot regions, the pattern of the MSA paper's Figure 5); every count and byte figure is computed from the configs. One GQA group is 16 query heads in M3 and 6 in M2. Training: a KL loss pulls the index scores towards the main branch's attention; its inputs are detached, so it updates only the index projections (details in a closed block below).

The cost per query at position n, counting multiply-adds for scores and the weighted sum in the main branch and for scores alone in the index branch:

Cfull=2Hdhn,CMSA=2HdhkBk+Hidxdidxn

With M3's H = 64, dh = 128, kBk = 2,048, Hidx = 4, didx = 128 at n = 1,048,576: Cfull ≈ 1.72 × 1010, CMSA = 33,554,432 + 536,870,912 ≈ 5.70 × 108, a ratio of about 30. Each query reads 2,048 of 1,048,576 keys, 1 in 512, and the index branch is 94% of what remains, which is why it has to be light.

Selection does not shrink storage. Every key must stay resident for the indexer to choose from. M3's main cache is 60 × 2 × 4 × 128 × 2 bytes = 120 KiB per token, about 120 GiB for one 1M-token sequence, plus one 128-dimension index key per token in each of the 57 MSA layers: 14.25 KiB more per token if stored in BF16 (the precision is not stated; assumption). The saving over M2 comes from halving the KV heads (8 to 4), not from MSA; the model card's "reduces the attention compute and memory footprint" (M3 card) is true of what each query reads, not of what is stored.

Headline claims, recomputed.

ClaimSourceRecomputed hereVerdict
28.4 times less attention compute per token at 1M, on the paper's 109B test model (64 query heads, 4 KV heads, 128)MSA paper, Figure 4Reproduced independently from the paper's eq. 12 (closed block below)
14.2 times faster prefill and 7.6 times faster decoding on H800MSA paperMeasured, not computable; the decode figure sits just under the bytes-read ratio (2 GiB against 260 MiB per layer at 1M: 256 MiB of index keys plus 4 MiB of selected keys and values), as a memory-bound decode would (our reconstruction)
M3's per-token compute at 1M is 1/20 of the previous generation's; prefill more than 9 times, decoding more than 15 times fasterM3 announcement, model cardDoes not reproduce under this accounting: with M3's three full-attention layers counted the ratio is about 9.5 (close to the 9 times prefill); only with all 60 layers sparse does it pass 20 (about 23). MiniMax do not state their accounting.

Recomputed: attention multiply-adds per decoded token summed over all layers, M2 (62 layers, 48 heads) against M3 (3 full layers + 57 MSA layers, 64 heads). The chart in the next section shows every context length.

The kernel: "KV outer, gather Q". A natural sparse kernel loops over queries and fetches the blocks each one selected; every fetched tile then serves only the G query heads of one group, about G FLOPs per byte (16 in M3: 64 query heads over 4 groups). MSA's kernel inverts the loops: for each KV block it gathers every query that selected it into one 128 × 128 matrix multiply, so the tile is loaded once and reused. The paper puts the intensity at about ⅔ Bk, roughly 85 for Bk = 128; hot blocks (an early "sink" block nearly every query selects) are split across thread blocks by a scheduler. MiniMax report it as more than 4 times faster than the open-source Flash-Sparse-Attention and flash-moba kernels (M3 announcement, repeated by launch partner Fireworks; code on GitHub).

Same (query, block) pairs, fewer tile loads when the loop runs over blocks

Predict, then drag: double the block size at the same 2,048-key budget. Which loop order gains? Both do the same arithmetic; only the bytes moved differ.

Where MSA sits, and what it scored. Block-level selection with a separate top-k per GQA group keeps reads contiguous while letting groups retrieve different blocks (the paper's attention maps show each group tracing its own long-range stripes beside a shared local diagonal and sink column). In granularity MSA is finer than Kimi's MoBA but coarser than DSA, which selects individual tokens; the M3 announcement's wording that MSA partitions the KV "more precisely" than DSA and MoBA (MiniMax) is about effective coverage, not selection unit. On the paper's 109B test model (41 layers, 6B active, 3T training tokens), MSA converted from a full-attention checkpoint and extended to long context scored 72.12 on RULER at 128K against 72.00 for full attention, and 45.93 on HELMET at 128K against 46.53; trained sparse from scratch, it matched or beat full attention on most of the paper's pretraining suite.

What each route stores, reads and computes

The three generations on one set of axes. Fig. 6 sets them side by side at 128K and at 1M: one group per quantity, one column per route (green MiniMax-01, orange M2, blue M3), each group on its own scale because the units differ. Compressing history into a fixed state (linear) buys the most and costs recall; selecting which history to read (sparse) buys less and keeps lookups exact, at the price of a trained selector that runs over every token and can miss a block; full attention is the reference both are measured against.

  1. Stored per sequence, at 128K. The left group, glass: M2 keeps 31.0 GiB of keys and values for one 131,072-token sequence, MiniMax-01 5.14 GiB (its 10 softmax layers plus the fixed 140 MiB of lightning state), M3 16.8 GiB, of which 1.78 GiB (gold) are index keys (BF16 assumed). Storage is where MSA saves nothing: M3 sits below M2 only because it has 4 KV heads instead of 8.
  2. Read per decoded token. The middle group, streaming to the token: M2 reads everything it stored, 31.0 GiB; the hybrid reads its 5.14 GiB; M3 reads 2.75 GiB, 11.3 times less than M2, and 65% of that is the index keys (gold): the selector has become the main read. Decode is memory-bound, so this group is the closest of the three to decode speed.
  3. Multiply-adds per decoded token. The right group: M2 9.99 × 10¹⁰, the hybrid 2.16 × 10¹⁰ (its lightning layers cost the same at any context), M3 1.22 × 10¹⁰, 8.2 times less than M2, of which the index branch (gold) is 31%.
  4. At 1M tokens. M2 cannot run here (its window is 196,608 tokens; dashed and cut). M3 stores 134 GiB against the hybrid's 40.1 GiB, but reads 20.5 GiB per token against 40.1 GiB and does 8.41 × 10¹⁰ multiply-adds against 1.72 × 10¹¹: half the hybrid's on both, with every lookup still exact.
  5. The "1/20" accounting. M2's formula at 1M (7.99 × 10¹¹ multiply-adds, had it a window that long) against M3's gives a ratio of 9.5; only with all 60 layers sparse (hypothetical, 3.42 × 10¹⁰; M3 keeps 3 full-attention layers) does it reach 23.3, past MiniMax's 1/20. MiniMax do not state their accounting.

Every context length

Predict, then switch: in which of the three views does M3 sit on top of the hybrid, and in which far below M2? Tick "all 60 layers sparse" to see which accounting gives MiniMax's "1/20".

The same three quantities as curves from 4K to 4M tokens, with the hypothetical "01 if all softmax" (what the hybrid avoided) as a fourth line; the table under the chart gives each value against M2 at the slider's context.

Storage is where MSA saves nothing; reads and compute are where it saves most

Computed from the configs: MiniMax-01's 7:1 hybrid (10 softmax layers with 8 KV heads, 70 lightning layers with a 64 × 128 × 128 state each), the same 80 layers if all were softmax GQA (what the hybrid avoided), M2 (62 layers, 8 KV heads), M3 (3 full-attention and 57 MSA layers, 4 KV heads). Each line ends at the model's window; the faded continuation is beyond it. Read: keys and values one new token reads (for MSA, all index keys plus 16 selected blocks per group), BF16, summed over layers; lightning layers read and rewrite their state. Compute: multiply-adds for scores and value sums; lightning layers count one state read and one update per head (2 × 128 × 128). Weights, MLPs and experts excluded. The per-token cache figures above (40 KiB, 248 KiB, 120 KiB) match by construction; whole-model sizing for any model is the Long context calculator's.

Post-training: CISPO and what M1's RL run cost

CISPO (Clipped Importance-Sampling Policy Optimization) came with M1 (M1 report, arXiv 2506.13585). RL for LLMs owns it, with its formula and a toy of one rare token through sixteen updates; what MiniMax saw is the part that belongs here. Reflective tokens such as "However", "Recheck", "Wait" and "Aha" fork a reasoning path but get low probability from the base model, so one update can double their probability; with PPO or GRPO's clip their ratio then sits past 1 + ε and their gradient is exactly zero for the rest of the batch (M1 ran 16 off-policy updates per generation batch). DAPO's answer, a higher upper clip bound, was "less effective" in this setup. CISPO clips the importance weight instead, under a stop-gradient: each token's update is sg(min(r, 1 + εIShigh)) · Â · ∇ log π, so no token is silenced. A "Wait" token at r = 2.5, Â = +1, ε = 0.2 (illustrative): PPO weight 0, CISPO weight 1.2. There is no KL penalty.

  • What it bought. On a controlled zero-RL comparison from Qwen2.5-32B-base on AIME 2024, CISPO matched DAPO in 50% of the training steps and beat both GRPO and DAPO at equal steps.
  • The bill. M1's full RL run took three weeks on 512 H800 GPUs, a rental cost of $534,700, a figure few labs publish. The hybrid made the long rollouts cheap: M1 uses less than 50% of DeepSeek-R1's FLOPs at a 64K-token generation length and about 25% at 100K.
  • A precision fix that travels. Training and inference kernels disagreed on token probabilities; computing the language-model head in FP32 raised the correlation between the two from about 0.9 to 0.99 (M1 report).
  • Kept after the reversal. M2's agentic RL kept CISPO with the weight's lower bound set to 0, clip(r, 0, 1 + εIShigh), so tokens that became improbable can be down-weighted aggressively (M2 report, section 6.1.4); the M2.5 line still used it (M2.5 card).

The MoE side: from few large experts to many small ones

Every MiniMax model is a mixture of experts (Mixture of experts owns the mechanism). The layouts moved from 32 large experts with a softmax gate to hundreds of small ones with sigmoid gating (each expert scored independently, so several can be strongly active at once) and a learnable routing bias.

Experts per MoE layer, drawn to scale by width; filled = routed to per token

Each bar is one expert, its width proportional to the expert's hidden size (9,216, 1,536 and 3,072); green is M3's shared expert. Counts and widths from the three config.json files; which routed experts are lit is illustrative.

ModelExpertsExpert hidden sizeRoutingRebuilt total / activePublishedVerdict
MiniMax-Text-01 (config)329,216top-2, softmax gate with an auxiliary balancing loss456.1B / 45.9B456B / 45.9B (card)Reproduced independently (counting the lightning layers' output gate, modeling code)
M2 (config)2561,536top-8, sigmoid gating with a learnable per-expert bias; 3 multi-token prediction (MTP) heads used for speculative decoding228.7B / 9.80B229.9B / 9.8B (report); "230B / 10B" (card)Active reproduced; the rebuilt total equals the weights on Hugging Face (228.69B), 1.2B under the report, plausibly the MTP heads (unconfirmed)
M3 (config)128 + 1 shared3,072top-4 plus the shared expert, sigmoid gating with a routing bias, first three layers dense; 7 MTP modules426.2B / 23.5B (text stack)~428B / ~23B (card)Reproduced: with the 32-layer vision encoder the weights total 427.0B; "22B active" in some coverage is wrong

Rebuilt: attention projections, routed and shared experts, routers, dense layers and embeddings from config.json; active counts exclude the embedding tables, the convention that reproduces all three published active figures.

Licences and who pays

The weights are open but the licences are not uniform: Apache 2.0 for M1, a modified MIT licence for the M2 line, and the custom MiniMax Community License for M3 and M3.1 Flash (M1 card, M2 card, M3 card). M3.1 Flash's copy is non-commercial by default: non-commercial use is free; any commercial use, which includes serving a fine-tuned derivative, must display "Built with MiniMax M3.1-Flash" and send MiniMax a one-time notice, needs prior written authorisation above 20 million US dollars of yearly revenue, and military use is prohibited outright (M3.1 Flash licence). Revenue does not fund the model line: in 2025 it was $79.0 million (up 158.9%), 67.2% from "AI-native products" (the Talkie and Xingye character apps, Hailuo AI video and MiniMax Agent) and 32.8% from the Open Platform API and enterprise services, more than 70% from outside China, while research and development cost $252.8 million and the adjusted net loss was $250.9 million (2025 annual report). The models run on investor capital, now including public markets: MiniMax listed in Hong Kong on 9 January 2026, the day after Zhipu (Wikipedia; Zhipu on Wikipedia). Open weights at low prices are how a lab without frontier brand recognition buys attention (the page's reading, not a MiniMax statement).

Models today volatile: read 1 October 2026, M3.1 Flash 26 October

ModelTotal / activeAttentionAPI contextPrice per M tokens, input / output (cache read)Notes
M3~428B / ~23BGQA (4 KV heads) + MSA1,000,000$0.30 / $1.20 ($0.06) up to 512K input; $0.60 / $2.40 ($0.12) aboveNative multimodal (text, image and video in, mixed-modality training from step 0); about 100+ tokens per second; thinking enabled, adaptive or disabled at the same price; AA index 29.2 at $0.51 per index task
M2.7229.9B / 9.8BGQA (8 KV heads)204,800$0.30 / $1.20 ($0.06; cache write $0.375)The fast, cheap agentic workhorse at about 60 tokens per second; M2.7-highspeed at twice the price, about 100
M3.1 Flash~428B / 23B (model card)GQA + MSA in every layer1,000,000$0.15 / $0.60 ($0.015)Open weights since 23 October (MiniMax Community License); 200+ tokens per second by MiniMax's figure; AA index 43 at $0.22 per index task (AA still labels it proprietary); MiniMax's own Terminal-Bench 4.0 run 38.1; no technical report
H3 video, Speech 2.8adjacent product linesH3 $0.08 a second at 768P; speech $60 to $100 per M charactersThe Hailuo 2.3 video models are now listed as legacy

Prices are MiniMax's pay-as-you-go list (pricing); the M3 figures include what MiniMax call a permanent 50% discount, and a priority tier costs 1.5 times as much. Context windows and speeds are MiniMax's (model docs). A call above 512K input tokens is billed entirely at the long-context rate, so the price per token doubles at that line rather than above it. Index: Artificial Analysis Intelligence Index v4.3, methodology v4.3.2 (M3, M3.1 Flash). Choosing: for agentic coding at short to medium context M2.7 has the smaller active count (9.8B) at M3's standard list price, though M3 is listed as faster; beyond 204,800 tokens, or for image and video input, the options are M3 and the cheaper M3.1 Flash. The landscape root owns cross-provider comparisons (Topic: llm-landscape).

Which hardware drew the starting weights, read from the released checkpoints (checkpoint forensics, report of 12 November 2026, read 27 November 2026)

Embedding rows no token ever updated keep the layout PyTorch's random initialisation had on the GPU that drew them, which records its SM count (GPU architecture). Read that way, MiniMax-Text-01 and M1 (one initialisation) and M2 to M2.7 (another) sit on a 132-SM layout, Hopper, consistent with the 512 H800s of M1's RL run; M3 (June 2026) and M3.1 Flash (October 2026, the same initialisation) sit on a 148-SM layout, which the report assigns to the B200 or B300; M3's weights were drawn in four seeded shards, which points to initialising inside a sharded job. These are inferences about which hardware drew the starting weights, not proof of where the chips were, who owned them, or that the whole run used them; an AMD MI300X limited to 148 units gives the same layout, and the report does not rule it out for M3. MiniMax had not commented by 27 November. The evidence and its limits: checkpoint forensics.

Depth

MSA's training and FLOP model, in full (the KL loss, the warmup, eq. 12, ablations)

The index branch learns with a KL-divergence loss that pulls its distribution towards the main branch's group-averaged attention on the selected tokens; its inputs are detached, so this loss updates only the two index projections and cannot simplify the main model's attention to lower itself. The indexer warms up under full attention (40B tokens in the paper's runs) before sparsity is switched on. MSA works both from scratch and by converting a full-attention checkpoint.

ℒKL=1NHkv∑i=1N∑r=1HkvDKL(sg(Pi(r))∥Piidx,(r))
Pi(r)
the main branch's attention over the selected tokens, averaged over the G query heads of group r
Piidx,(r)
the softmax of the index scores over the same tokens
sg
stop-gradient; N is the sequence length, Hkv the number of groups

The paper's own count averages over a whole prefill of N tokens, so the causal triangle halves the full-attention and index terms (FLOPs, two per multiply-add; eq. 12 of the MSA paper):

FGQA=2HqdhN2,FMSA=HkvdidxN2+4HqdhNkBk

In ablations, block size (32, 64 or 128 at the same token budget) made little difference to quality, and a FLOP-matched sliding window had higher perplexity than MSA on agent tasks throughout training.

MSA against its neighbours (per the MSA paper's related work)
MethodUnit selectedShared byHow the selector learns
DSA (DeepSeek Sparse Attention, DeepSeek)Individual tokens (finest)One top-k for all query heads, on MLA in its MQA modeA multi-head ReLU "lightning indexer"
MSABlocks of 128 tokensEach GQA group picks its own 16 blocksKL alignment to the main branch, detached, after a warmup
MoBA (Mixture of Block Attention, Kimi)Very large blocks, scored by their mean key (coarsest)GQAOnly through the language-modelling loss
NSA (Native Sparse Attention)Three branches: compressed, selected blocks, sliding windowMQA or MHA backbonesEnd to end
M3.1 Flash: a model shipped inside a harness first (volatile, dated)

M3.1 Flash reached users in two stages. As M3.1-Flash-Preview (27 September 2026) it ran only inside MiniMax's own coding agent and subscription plan, with no published price, speed, benchmark or parameter count (MiniMax docs; DataNorth); an earlier version had already served traffic anonymously on OpenRouter as "Space Bunny". On 19 October it reached the API at $0.15 / $0.60 per million ($0.015 cached), with MiniMax claiming about three times the inference speed and 70% lower agentic-task cost than its predecessor, and its own scores of 73.7% on DeepSWE v1.1 and 61.7 on OSWorld V2 (MiniMax). MiniMax published no technical report; the weights followed on 23 October with a model card that gives about 428B total and 23B active (MarkTechPost had read the same from the product page, MarkTechPost). The Hugging Face widget shows 220.5B because 206.6B of the stored values are bytes that each pack two 4-bit weights: a storage count, not the model's size. The point worth carrying: a model can now ship inside a harness weeks before it is sold per token, and it can be measured independently only from the day it is.

On the same index reading of 1 October 2026, at M3's $0.30 / $1.20 list price DeepSeek V4.1 Flash scored 39.5 (45 for its 1017 checkpoint by 19 October), and Zhipu's GLM 5.3 Flash scored 41.8 at $0.15 / $0.50 (leaderboard; Zhipu: GLM); M3 was among the cheapest capable open frontier options at release and is now one of several. StepFun's Step 5 Preview does not undercut M3: it lists at $1.00 / $2.70, and its weights arrived only in mid-October 2026 (Other notable providers).

Misreadings worth catching (each seen in coverage or in this page's sources)
  • "MiniMax-01 has no KV cache." Its 10 softmax layers do: 40 KiB per token.
  • "M2 went back to full attention because linear attention is slow." The stated reasons are quality on multi-hop reasoning and retrieval-style circuits, an evaluation gap that hid it, and immature infrastructure; speed was the attraction, not the problem.
  • "MSA shrinks the KV cache." It shrinks what each query reads; M3's smaller cache comes from 4 KV heads instead of 8.
  • "The 4M-token context was trained." Training reached 1M; 4M is inference extrapolation.
  • "Full attention scales exponentially with context." Quadratically: prefill grows with n2 and each decoded token's reads with n. The phrase appears in launch coverage (Fireworks).
  • "MiniMax's apps pay for its models." The apps provide two-thirds of revenue, but 2025 revenue of $79.0 million was under a third of R&D spending.