A long-context session may read little history at one step and revisit an old block at the next. MiniMax M4 separates the full history from the current working set. Most KV can live on SSD, while attention consumes selected blocks in HBM. Making that viable depends on when the model knows which blocks a later layer will need.
Reduce the data a layer reads
M4 has 2.74 trillion parameters, activates 66 billion per token and supports a million-token context. All 68 attention layers use MSA2. Its main branch has 128 query heads and one shared KV head, with 16 tokens per block and 2,048 tokens retrieved per query. A compressed multi-head indexing branch selects blocks. Sharing KV shrinks state per position, while block sparsity reduces the history read for a query.
The full history still matters because a cold block can become relevant again when a user returns to an earlier detail. The SSD-backed MFlashKV configuration retains this history and keeps hot blocks and indices in HBM. That extends the capacity available for concurrent long sessions beyond what fits entirely in high-bandwidth memory.
Fit an SSD read behind computation
The technical report gives a layer-by-layer schedule. Blocks for layer n are normally selected during layer n−2. The first two layers use their own inputs because no earlier layers are available for lookahead. The system determines which selected blocks are already resident and which need fetching. Separate kernels submit I/O and check completion, leaving the model free to compute without a polling kernel occupying resources throughout the transfer.
Lookahead provides a finite overlap window. If the cold blocks arrive within it, attention can begin with its inputs ready. The report’s claim of hidden load time refers to this pipeline. Its effectiveness on a different storage system or session mix depends on residency, concurrency and completion times.
Two-layer index lookahead lets asynchronous reads overlap computation in intervening layers.
Interpret throughput and prices separately
Relative to the preceding version, MiniMax reports one quarter of the KV requirement per token, 4.48 times the prefill throughput and eight times the decode throughput. Model and serving implementation changed together. The comparison cannot assign the entire improvement to SSD prefetch. The report also describes separating attention and expert computation on non-supernode deployments so that their batches can be managed independently.
At launch the API charged $0.80 per million input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens. A billed cache hit describes the customer-facing API. An MFlashKV hot block describes internal state. The first affects the invoice and the second affects attainable generation speed under concurrency. Comparing long-session services requires specifying session length, repeated prefixes and per-user output speed.
MiniMax · 2026-12-03 · MiniMax M4: The Intelligence Frontier Under Compute Constraints · Technical report
