• MiniMax-M4: 2.74-Trillion-Parameter Model Beats Open Rivals on 27 of 30 Benchmarks

    Minimax M4

    Chinese company MiniMax released MiniMax-M4, a multimodal Mixture-of-Experts model with 2.74 trillion parameters, 66 billion of which are active per token. It understands text, images and video, holds 1 million tokens in context and is built for long agentic tasks such as coding, computer use and financial analysis. Among open models, M4 ranks first on 27 of 30 benchmarks, with Kimi K3.1 Pro, DeepSeek-V4.1-Flash and GLM-5.3 as the comparison set. On ProgramBench, for example, where programs have to be rebuilt from scratch, M4 scores 40.0% against 31.5% for Kimi. The key innovation is that the KV cache can live on SSD without a loss of speed, so accelerators with little memory are enough to serve the model.

    On Huawei’s Ascend 950DT, the model delivers 1,589 tokens per second per chip at 100 tokens per second per user. That matches the 1.6-trillion-parameter DeepSeek-V4-Pro on Nvidia GB300 and, according to MiniMax, is three times the throughput of Kimi K3.1 on GB300. For now, M4 is available only through MiniMax services: the API costs $0.80 per million input tokens and $3.10 per million output tokens. MiniMax promises to publish the weights within the next few weeks after safety evaluations; the license has not been named, and the training datasets have not been released. The technical report is on GitHub; judging by previous releases, the weights will appear on Hugging Face, and the API documentation is on the MiniMax platform.

    Left: six agentic benchmarks – FrontierCode-AA 2.0, Code Arena, Agent Arena, Posttrain Bench, Finance Agent and Design Arena – comparing M4 with Kimi K3.1, DeepSeek V4.1, GLM 5.3, Gemini 4 Neon, GPT-6.2 Sol, Claude Opus 5.5 and Claude Fable 5.2. Right: per-chip throughput versus per-user speed; M4 on Ascend 950DT delivers 1,589 tokens per second per chip at 100 tokens per second per user, next to models on NVIDIA GB300 and GB200
    Left: agentic benchmarks; right: throughput of M4 on Ascend 950DT and of models on NVIDIA GB300 and GB200

    How MiniMax-M4 works

    MiniMax-M4 has 68 transformer layers. The first four are dense, and the rest contain an MoE block: the router sends each text token to 4 of 384 experts, while one more shared expert is always active. Images and video are encoded by MiniMax’s own 631-million-parameter ViT, and the model learns from all modalities at once from the start of pre-training.

    MiniMax-M4 diagram: on the left, a stack of MSA v2 and MoE layers above text embeddings and MiniMax ViT; top right, the MoE block with shared and routed experts; bottom right, sparse attention with an indexer that compresses keys and selects top-k blocks based on the input of layer n−2
    Left: the stack of MSA2 and MoE layers; right: the MoE block and sparse attention with the indexer

    Every layer uses MSA2 (MiniMax Sparse Attention 2) sparse attention. Standard attention compares each token with all previous ones, which is too expensive at a million tokens. In MSA2, a lightweight indexer splits the context into 16-token blocks and picks the 128 most useful ones, so each token attends to only 2,048 tokens. The first version of MSA used 128-token blocks; the new ones are 8 times finer and locate relevant passages scattered across the text more precisely. All 128 query heads share a single key-value vector of dimension 256 (shared-KV MQA). As a result, the per-token KV cache is four times smaller than in MSA, and FP8 decoding performance of the attention kernel is 8 times higher.

    Bar chart of TFLOP/s relative to MSA for QSA, GLM DSA, DeepSeek-V4-Pro CSA, MSA and MSA2: in BF16 training, MSA2 reaches 3.98x on the forward pass and 1.54x on the backward pass; in FP8 inference, 4.48x on prefill and 8.00x on decoding
    MSA2 outperforms GLM and DeepSeek-V4-Pro attention in TFLOP/s for both training and inference

    The KV cache stores keys and values of tokens already read so that they do not have to be recomputed at every step. In an agentic session it grows with each action and occupies fast HBM memory, which many accelerators have little of. With MFlashKV, the full history sits on SSD, while HBM keeps only a compressed index and the most needed blocks. A token in the 8-bit KV cache takes 256 bytes, so a 16-token block weighs exactly 4 KiB – the size of an SSD page. Consequently, the drive reads nothing extra. The indexer selects blocks for layer n in advance, at layer n−2, and while the model computes the intermediate layers, the data arrives from disk in time.

    MFlashKV timeline: the main attention and MoE stream across layers n−2 to n+1, the indexer stream that computes blocks for layer n during layer n−2, and asynchronous reads of the selected KV blocks from SSD running in parallel with computation
    Blocks for layer n are selected during layer n−2, and SSD reads run in parallel with computation

    How MiniMax-M4 was trained

    Pre-training with sparse attention ran from scratch on 24K-token sequences. Mid-training then extended the context to 192K and later to 1M tokens, added agent trajectories from dozens of harnesses and finished with SFT. From the 1M-token stage onward, expert weights are quantized to FP4 during training, just as at inference (quantization-aware training).

    Post-training follows a scale-out-then-scale-in scheme: first branch out, then consolidate. Twenty-eight experts were trained with reinforcement learning (RL) in parallel on different clusters: 9 for coding, 6 for terminal and agentic tasks, 4 for computer use, and the rest for design, science, finance, cybersecurity, law, consulting and circuit design.

    Left: the post-training scheme – after SFT, reinforcement learning by domain (code, science, design, computer use, agents and others), with 28 experts merged via MOPD into MiniMax M4. Right: the aggregate benchmark index rises from 52 to 58 as RL compute grows, with a dotted line projecting further growth
    28 RL experts are merged into one model via MOPD. On the right, quality keeps growing with RL compute without hitting a plateau

    The experts were then merged through multi-teacher on-policy distillation (MOPD). The student solves a task on its own, and the expert for the relevant domain scores each of its tokens: tokens the expert considers more likely than the student does are rewarded, and the rest are penalized. It resembles reviewing a test, where the teacher does not solve the problems for the student but marks the places where they would have acted differently. Training starts on the initial segments of trajectories, and the student closes 80% of the gap with the expert while spending 10 to 15% of the compute needed for training on full trajectories (Figure 19, p. 43). All RL, distillation included, took 21% of the pre-training compute, and quality, according to the authors, is still rising.

    Results and comparisons

    MiniMax compared M4 with three open and four closed models on 30 benchmarks. Among open models, MiniMax-M4 falls behind on only three: Terminal Bench 4.1 (56.6 vs 68.2 for Kimi K3.1 Pro), PMPP-Hard and GDPx. Its widest leads are on FrontierCS 2 (12.6 points) and Razavi-Bench (9.5 points), followed by ProgramBench. In finance, M4 also beats some closed models: on Frontier Finance it scores 64.1 against 57.2 for Claude Opus 5.5. In coding, however, it is still far from the closed flagships: on SWE-Marathon, with its ultra-long tasks, M4 scores 44.0 and Claude Fable 5.2 scores 73.3.

    Table 2 from the report: results of MiniMax-M4, Kimi K3.1 Pro, DeepSeek-V4.1-Flash-1017, GLM-5.3, Claude Fable 5.2, Claude Opus 5.5, GPT-6.2 Sol and Gemini 4 Neon on benchmarks for agentic coding, research tasks, general agent skills, chip design and finance
    Underlined: the best result among open models; bold: the best overall

    MiniMax-M4 on real-world tasks

    The report also covers tasks close to real work:

    • Cryptanalysis. An internal cybersecurity version of MiniMax-M4 found the first practical collisions for two SHA-3 competition candidates, Waterfall and Blender-256, solved 94 TII McEliece challenges, 55 of which no one had solved before, and disproved two of Tokareva’s conjectures on bent functions. The findings do not affect standardized cryptography;
    • Code auditing. The authors collected 556 confirmed vulnerabilities in 10 open-source projects, including httpd, django and rails. Running in Claude Code, M4 finds and fixes more than 48.2% of them in a single run and more than 70.9% in three runs;
    • Finance. From 116 files totaling 7,877 pages, M4 built an LBO model of a company buyout with 3,846 formulas in a single run, without a single error.

    The model also writes games and 3D scenes, checking them against real-world data.

    Screenshots of games written by MiniMax-M4: the Grey Tide shooter in a container port and a warehouse, a route map of the Vallée Blanche and a skier near the Col du Midi; at the bottom, the elevation profile of the run in the game and from IGN data, and the difference between them across 2,002 points
    The Grey Tide shooter and a Mont Blanc simulator built from lidar data: the median elevation difference between the run and the survey is 0.30 m

    Limitations

    The figures cannot yet be verified independently: there are no weights, and MiniMax ran some of the measurements itself. In Code Arena, for instance, M4 was scored automatically (AutoEval), while competitors were scored by human votes (Appendix B, p. 76). The cryptanalysis and code auditing were done by an internal version of the model rather than the public one. The authors themselves acknowledge that MiniMax-M4 lags behind closed models in software development. In routine computer work it can be slower than a human, and the merged model does not always match the best expert.


    bnr2mob
    Subscribe
    Notify of
    guest

    0 Comments
    Oldest
    Newest Most Voted