MiniMax M4 Targets the Memory Bottleneck Behind Frontier AI on Chinese Chips
The 2.74-trillion-parameter model uses SSD-backed attention and offers API access ahead of its weight release.

MiniMax launched its M4 flagship through hosted services on December 3, introducing a 2.74-trillion-parameter model designed to make long-running AI agents more efficient on a broader range of accelerators. Its most consequential claim is not simply that a Chinese model has become larger: it is that reorganizing how attention accesses memory can allow a less memory-rich chip to serve demanding workloads at competitive speeds.
The Shanghai-based developer announced M4 as a natively multimodal mixture-of-experts (MoE) system with 66 billion active parameters per token and support for a million-token context. It also introduced MFlashKV, an inference system that moves much of the information accumulated during long conversations from expensive high-bandwidth memory (HBM) to solid-state storage.
Developers can access the model via MiniMax's API, M Plan and MiniMax Code, and Vercel added it to its AI Gateway on launch day. The public repository, however, does not yet provide model weights. MiniMax says it intends to publish them after internal and external safety assessments, without committing to a specific date or license. That makes M4 a hosted product today and a potential self-hosted model later, an important distinction when evaluating its hardware claims.
A Larger Model Does Not Require Every Parameter to Run
MiniMax M4 increases total model capacity substantially from its predecessor. The M3 model card lists approximately 428 billion parameters, with 23 billion activated during processing. M4's advertised total is roughly 6.4 times larger, while its active parameter count is only about 2.9 times larger. Both generations support million-token contexts, meaning the new context specification alone is not the breakthrough.
In a conventional dense network, the same large collection of learned weights participates in the forward pass for every token. An MoE network instead uses a routing mechanism to select specialized feed-forward networks, commonly called experts. It can increase the number of learned parameters without requiring the entire network to execute for each piece of text. At M4's scale, the advertised active count represents about 2.4 percent of the total model.
That ratio is not a measure of total computation or total memory requirements. Shared layers, attention, routing, communication and memory operations still contribute to cost. More importantly, the weights of inactive experts generally need to remain accessible somewhere in the serving infrastructure, because subsequent tokens can route to different experts. A single active-parameter figure does not describe how much hardware the entire model requires.
An illustrative storage calculation makes the distinction clear. Even if all 2.74 trillion parameters could be represented at exactly four bits each, the raw weights alone would occupy approximately 1.37 decimal terabytes. That is before quantization metadata, additional runtime tensors, cache, redundancy and deployment overhead. It is a theoretical calculation, not a measured M4 checkpoint size or minimum hardware requirement.
Sparse routing brings additional communication requirements. When different experts reside on different accelerators, a server may have to send token representations across the network and collect their results. Distributing experts evenly is not enough on its own: actual expert demand can change from token to token. The selected serving architecture must balance communication, compute and memory traffic.
MSA2 and MFlashKV Move Long-Context Memory Into a New Tier
During autoregressive generation, a transformer typically saves representations of previously processed tokens in a key-value cache. Instead of recomputing those representations for the entire conversation whenever it predicts another token, the system reuses them. This speeds generation but creates a growing memory allocation for every active request.
The trade-off becomes particularly severe for agents. A coding assistant might read thousands of lines of source code, launch tests, inspect several failure logs and repeat the process dozens of times. The accumulated input and intermediate observations make its context substantially larger than that of an ordinary chat. Concurrent agents compound the problem because their distinct histories compete for the same accelerator memory.
M4 uses MiniMax Sparse Attention 2 (MSA2) across all 68 attention layers. According to MiniMax, its shared key-value design, compressed indexing and fine-grained sparse attention reduce the KV cache required per token to one-quarter of the previous architecture's requirement. It also reports attention-operation throughput improvements during prefill and decoding of 4.48 and eight times, respectively, for the new attention design. Those figures describe the company's measurements, not a guarantee of equivalent speedups for every API request.
Shared-KV attention draws on a longer research tradition. In 2019, Noam Shazeer described multi-query attention, in which several query heads share keys and values to reduce the memory traffic of incremental generation. MSA2 combines that general principle with a mechanism for selecting portions of the earlier context, rather than repeatedly retrieving an entire million-token history.
A sparse-attention index helps determine which regions of the history should be retrieved. Rather than loading every prior token representation at full resolution for every layer, the system concentrates retrieval on selected regions. This distinction is critical for understanding why a large advertised context does not imply equally expensive attention over every token.
MFlashKV takes advantage of that reduction by placing much of the cache on SSDs and keeping frequently accessed blocks and indexing information in HBM. The storage system matters because SSDs offer much larger capacities at lower cost than accelerator-integrated memory, although their access latency is far higher.
The solution proposed by MiniMax is to predict which blocks an upcoming attention layer will need two layers ahead. If the prediction is timely and accurate, the system can retrieve those blocks while earlier layers are still processing. The work that would otherwise delay attention is overlapped with ongoing computation. MiniMax says this arrangement hides index computation and storage reads during decoding under its tested conditions.
The broader idea of offloading model state is not new. The FlexGen research published at ICML in 2023 demonstrated a generation engine that coordinated GPU memory, CPU memory and disk storage for high-throughput workloads on memory-constrained hardware. But the researchers explicitly targeted workloads where latency was less important. M4's attempt to make external storage viable for interactive, long-horizon inference is a distinct system-design objective.
Sparse attention can miss relevant distant information, while unpredictable reads or storage congestion may expose the very latency that prefetching seeks to hide.
A useful independent evaluation would test M4 on progressively longer histories with relevant facts distributed throughout them, while measuring retrieval quality, first-token latency, streaming rate and high-percentile request latency. A million-token label establishes a capacity specification, not proof that an agent recalls every relevant document or decision across that entire window.
The Huawei Ascend Comparison Is About Serving Systems, Not Just Chips
MiniMax says M4 makes effective use of Huawei's Ascend 950DT and T-Head's Zhenwu M890 SuperNode. Its most striking comparison pairs M4 on Ascend with Moonshot AI's Kimi K3.1 on Nvidia GB300 hardware: at a target user output speed of 100 tokens per second, MiniMax reports three times the aggregate throughput for its own system.
The company describes the Huawei accelerator as having half the HBM capacity and about 13 percent of the comparison Nvidia accelerator's compute capacity. MiniMax references SemiAnalysis measurements for Kimi rather than reporting identical, side-by-side runs of M4 across both platforms. The headline claim compares two models and two hardware configurations, rather than isolating chip performance.
This distinction matters because peak compute specifications and inference throughput describe different things. A processor can have very high theoretical arithmetic performance but spend a considerable portion of a real workload waiting for weights, cache data or other devices. An application that reduces memory traffic and overlaps necessary transfers can use a lower-specification accelerator more effectively for a particular workload.
Aggregate generation throughput per processor and the streaming rate experienced by an individual user are different quantities. A server can process multiple requests concurrently without increasing the speed at which an individual user receives output. Conversely, optimizing the response rate for a single request can reduce capacity across the deployment. That is why comparing systems at a matched per-user output rate is more informative than reporting a single maximum throughput figure.
The hardware result is strategically relevant amid longstanding US controls on exports of advanced computing components and HBM to China. Such constraints provide an economic incentive to redesign models for available memory capacity instead of optimizing exclusively for the most capable new accelerators. The M4 results do not establish that export restrictions are ineffective, that every Huawei workload is faster, or which chips were used for every training stage.
Nor can an inference benchmark establish total cost of ownership. Buyers would need cluster-level information about the number of accelerators, SSDs, servers, network interfaces, energy use, utilization, cooling and reliability. A rigorous comparison would run the same workload and quality target at matched concurrency and latency on each competing system. M4's eventual weights and supporting serving software could make that experiment possible.
Distributed Reinforcement Learning Makes Inference Efficiency a Training Advantage
Perhaps the biggest implication of M4's memory architecture emerges before the product is even deployed. Training a capable agent through reinforcement learning requires generating examples of the model's behavior. Each rollout may involve a long conversation, environmental interaction, tool calls, tests and feedback. Inference is not only a customer-facing operation; it can be an input into building the next generation.
MiniMax says reinforcement learning and evaluation account for 30–40 percent of its research and development compute. For M4 specifically, it puts reinforcement-learning expenditure at roughly one-fifth of the compute used in pretraining and says it wants to increase that ratio in future versions. Those percentages do not reveal the absolute compute budget, but they help explain why accelerating model execution is central to the company's development strategy.
The company divided its further training into 28 domain-specialized reinforcement-learning programs. Such specialization can allow teams to focus on particular reward signals and environments, including programming, computer interaction and professional work. Separate training clusters can also expand usable capacity without requiring every specialist to share a single synchronized training environment.
This approach creates its own problem: expertise distributed across multiple independently trained models is of limited value to a customer who wants one general-purpose assistant. MiniMax describes the second stage as multi-teacher on-policy distillation, or MOPD. Rather than exposing a user to a collection of distinct specialist systems, the training process seeks to transfer their behaviors into a unified student model.
On-policy learning matters because a student's own generated trajectory can differ from the examples produced by a stronger teacher. In a long programming task, an early mistaken assumption may lead a student into an unfamiliar state that a teacher never visits. Learning from feedback on student-generated trajectories can help address this mismatch, though it cannot eliminate conflicts among teachers or guarantee that all specialized capabilities transfer intact.
Faster rollout generation can expand the feasible RL workload on a fixed compute pool, while MiniMax says early M4 versions also assisted its own research process. Neither claim establishes autonomous model improvement.
MiniMax M4 Benchmarks Show Competitive Strengths and Limits
MiniMax's benchmark table, reported by VentureBeat, places M4 ahead of the selected open-weight rivals on 27 of 30 evaluations, including demanding coding, financial and computer-use tasks. That is an indication of breadth within the specific comparison cohort; it does not establish leadership across all publicly available models or independent benchmarks.
The numerical differences are informative precisely because they are uneven. On SWE-Marathon v1.2, which evaluates longer software-engineering tasks, M4's reported score is 44.0, ahead of selected open-model peers but well below the 72.5 attributed to Claude Opus 5.5. On OSWorld v2.1's full-set desktop tasks, the reported M4 score of 80.0 comes much closer to Opus 5.5's 81.8. Both comparisons depend on the evaluation settings and are company-table results, not independent trials conducted by GPTS24.
M4 also enters Arena's independent evaluation ecosystem. Arena’s December 3 changelog records its addition to the WebDev and Agent Arena Index leaderboards. In the December 4 coding index snapshot, M4 was ranked 12th overall. Rankings can change as more sessions are evaluated, and user-facing performance is distinct from results on standardized research benchmarks.
Prompting strategy and the surrounding agent software can influence these outcomes substantially. An agent that can preserve state, test its outputs, correct mistakes and recover from failed tool calls may yield a more usable result than a higher-scoring foundation model with a poorly configured execution environment. Comparing agents requires equivalent instructions, access to tools, reasoning budgets and limits on time.
Read more: How iterative agent harnesses improve coding performance
API Economics Favor Measuring the Cost of a Finished Task
MiniMax lists international API rates of $0.80 per million uncached input tokens, $3.10 per million output tokens and $0.05 per million cached input tokens. Its mainland platform lists corresponding local rates of ¥5, ¥20 and ¥0.30.
For illustration, an uncached workload consuming one million input tokens and 250,000 output tokens across its requests would cost $1.575 in model tokens at the international list rates. If 95 percent of its input qualified for cache-read pricing, that same illustrative workload would cost about $0.8625, assuming the remaining five percent is billed as uncached input. Neither estimate includes separate tool fees, cache-write effects where applicable or extra compute used by an application's own infrastructure.
M4 is not MiniMax's cheapest model. M3.1 Flash has international rates of $0.15 per million input tokens, $0.60 per million output tokens and $0.015 per million cached input tokens. For a simple classification, extraction or routine rewriting operation, that cheaper model may remain the rational choice.
For a coding agent, compare the total cost of accepted patches, including retries, tool execution and review, rather than token prices alone.
Native Multimodality Does Not Remove the Need for Trustworthy Tools
MiniMax shows M4 producing complex artifacts, including a graphical browser written in Rust, 3D models and programmatically generated videos. In the browser demonstration, the company allocated a 24-hour engineering window and allowed thousands of tool interactions. That is substantially different from expecting a single short chat response to generate and validate such a project.
Vercel's launch documentation confirms text and image inputs, tool calling and adjustable reasoning effort for its integration. Native multimodality describes the model's architecture and ability to reason across supported inputs. It does not imply that every API endpoint directly outputs every media format shown in product demonstrations: many showcased artifacts are constructed by executing code and using external software.
Financial and chip-design benchmark results are similarly promising indicators, rather than proof that M4 can replace an analyst or hardware engineer. An apparently valid spreadsheet might encode incorrect financial assumptions, while a working hardware prototype is not equivalent to a commercially fabricated, certified semiconductor. Independent validation and domain-specific human oversight remain important.
Delayed Weights Leave the Most Important Infrastructure Test Unfinished
MiniMax disclosed cybersecurity concerns during development, including previously unknown software vulnerabilities and sandbox escapes. It says the general-purpose release restricts some security capabilities and describes plans for a separate edition for qualified research institutions. Its announcement does not independently establish the effectiveness of those restrictions or all of the underlying security findings.
These issues matter for enterprises because an agent may execute commands, access confidential files or interact with internal systems. Hosted M4 buyers need to examine provider-specific retention rules, processing locations and access controls before granting those permissions. Vercel's launch documentation notes that zero-data-retention support for M4 will follow as providers add it.
The delayed weight release also means the most interesting deployment claims cannot yet be reproduced using public checkpoints. MiniMax's earlier M3 carries a community license, but that does not establish the terms of M4. The eventual license, quantization formats, serving runtime and availability of its SSD-offloading implementation will determine how useful the architecture is beyond MiniMax's own infrastructure.
M4 makes a case for treating memory management and accelerator utilization as first-class elements of frontier model development. Its next milestone is not another chart showing fast inference, but a release that enables engineers outside the company to measure accuracy, storage behavior, power and total cost under realistic agent workloads. If those results hold across hardware platforms, the competitive advantage would extend beyond one inexpensive API: it would expand the infrastructure available for training and running increasingly demanding AI systems.



