
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.

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.

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.

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.

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.

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.

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.

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.
