Mixture-of-Experts Explained: How 320B Total Parameters with 18B Active Deliver Flagship Performance at a Fraction of the Cost
A new generation of MoE models pairs massive total parameter counts (around 320B) with only ~18B active parameters per inference, matching flagship-level benchmark scores at roughly one-tenth the price. This article breaks down how sparse activation decouples capability from compute cost, the attention and KV Cache optimizations that make long contexts affordable, the role of domestic-chip inference engineering, and what these trends mean for developers choosing models.
1. A Signal Worth Watching: 320B Total Parameters, 18B Active
A notable new model archetype has emerged recently: models with hundreds of billions of total parameters, yet only a little over ten billion parameters activated during each inference pass. One newly released general-purpose model, for example, has roughly 320 billion total parameters with only 18 billion activated per token — yet it approaches flagship-level performance across multiple public benchmarks, at one-tenth or less of the inference price of comparable flagship models.
What is the technical logic behind this? Why can “large total, small active” achieve both high performance and low cost? This article provides a systematic review across three dimensions: architecture, engineering optimization, and cost modeling.
2. Mixture-of-Experts Architecture: Decoupling Performance from Compute
2.1 The Basic Principle
The core idea behind Mixture-of-Experts (MoE) is “conditional computation”: the model contains many expert subnetworks, and a router dynamically selects a small subset of experts for each input. This means:
- Knowledge capacity is determined by total parameters: the more total parameters, the richer the knowledge and skills the model can “store”;
- Per-inference cost is determined by active parameters: only a small fraction of parameters is activated each time, so FLOPs are far lower than a dense model of the same scale.
This decouples two quantities that were previously tightly bound: model capability and inference overhead. The compute of 18 billion active parameters is roughly equivalent to a mid-sized dense model, but the knowledge capacity is at the 320-billion scale.
2.2 Why Benchmark Scores Can Match Flagship Models
On composite intelligence indices, coding arenas, and similar benchmarks, these models often score close to — and in some areas exceed — larger dense flagship models. The reasons:
- Coding and reasoning tasks are sensitive to knowledge breadth: the large capacity enabled by sparse activation fills exactly this gap;
- Improved training efficiency: with the same compute budget, a sparse model can be fed more data without significantly increasing inference cost;
- Benchmark divergence is the norm: these models typically lag their own flagship slightly on general conversation, but may surpass it on specific dimensions such as coding. When choosing a model, evaluate the sub-scores relevant to your business rather than the total.
3. Inference Cost Optimization: Two Key Changes to Attention
MoE only addresses computation in the FFN layers. In long-context scenarios, attention remains the dominant cost. New-generation models typically make two changes here.
3.1 A Hybrid Design of Linear Attention and Sparse Attention
Pure linear attention is cheap but loses capability on tasks requiring precise retrieval and copying; standard attention performs well but scales quadratically with context length. The hybrid architecture handles this by layer:
- Some layers use linear attention for coarse-grained aggregation of global semantics;
- Other layers use sparse attention (e.g., local windows plus a small number of global tokens) to preserve precise attention at critical positions.
In practice, this design compresses attention computation to roughly one-third of the original approach, with controllable overall capability loss.
3.2 KV Cache Compression: Index-Pooling Mechanisms
At million-token context lengths, KV Cache memory usage can exceed the model weights themselves. A newly introduced index-pooling mechanism merges the index structures previously maintained separately for each attention head or group into a shared pool, compressing roughly 4 copies of the cache into 1 — effectively reducing total KV Cache to about a quarter or less. The direct benefits:
- Significantly higher concurrent requests served under the same memory budget;
- Markedly lower time-to-first-token for long contexts;
- Further reduction in per-token inference cost.
3.3 What This Means in Dollars
The effect of architectural optimization ultimately shows up on the bill. One representative data point: on a software engineering agent benchmark, a model at a certain performance tier costs $0.24 per task, while other models with the same score cost several times more. For enterprises running large-scale batch workloads (data cleaning, code review, document generation), an order-of-magnitude difference in unit price can change whether a technical approach is viable at all.
4. Inference Engineering on Domestic Chips: An Underrated Piece
A common question: serving large models requires massive compute — especially during large-scale free public trials, where does the compute come from? The answer here was to deploy the model on clusters of domestic AI chips, with deep engineering adaptation to their memory capacity and bandwidth constraints:
- A dedicated inference engine built on mainstream open-source frameworks: preserving ecosystem compatibility while customizing kernels for chip-specific characteristics;
- Quantization: reducing the precision requirements of weights and caches to ease memory bottlenecks;
- Layered deployment: distributing different layers and experts across multiple cards to balance load;
- Compute-for-communication trade-offs: in distributed inference, using redundant computation to reduce cross-card communication and work around interconnect bandwidth limitations.
This combination points to a broader trend: inference-side competitiveness is shifting from “stacking accelerators” to integrated engineering across “architecture + compilation + scheduling,” and the ability to adapt to heterogeneous chips will become one of the moats for cloud providers.
5. Takeaways for Developer Model Selection
- Adopt a “cost-performance baseline” mindset: low-cost models are rapidly closing the gap with flagships. Running your business on cost-effective models first and using flagship models as a fallback for hard cases is the more economical tiered strategy;
- Look at sub-scores, not totals: scores vary widely across coding, math, and long-text dimensions. Build your evaluation set from real samples from your own business;
- Watch the long-context cost structure: KV Cache compression capability directly determines the actual bill for long-document and agent scenarios;
- Keep an eye on promotional pricing windows: new model launches often come with deep discounts, which are good for migration testing and load testing — but estimate long-term costs at standard prices.
6. Conclusion
“320B total parameters, 18B active, one-tenth the price” is not just a product launch — it marks an industry shift from “stacking parameters” to “output per unit of compute.” Sparsification, hybrid attention, cache compression, and heterogeneous chip adaptation: these four technical threads will keep driving down the marginal cost of intelligence. For developers, the most important thing is not to remember a particular model’s name, but to understand the engineering logic behind it — because that logic determines how much intelligence you can buy, and at what price, over the next two years.
