Understanding Mixture-of-Experts (MoE) LLMs: Parameters vs. Activated Parameters
This article explains why the industry is shifting its focus from total parameter count to activated parameters per token in ultra-large Mixture-of-Experts (MoE) models. It covers how MoE decouples total parameters from computation, the key variables beyond activation size such as routing balance, asymmetric memory usage, communication overhead, and long-context costs, and a practical evaluation workflow for model selection and stress testing. Readers will learn to estimate compute from activated parameters, memory from total parameters, and make decisions based on business evaluation sets.
1. The Shift: From Total Parameters to Activated Parameters
A recurring topic in recent industry discussions is that a certain class of ultra-large Mixture-of-Experts (MoE) architecture models has been reported to reach a total parameter count in the trillion range, with a next-generation version possibly launching within months. For developers, the value of such news lies not in the numbers themselves, but in the architectural direction they reveal: the yardstick for measuring model cost and capability has shifted from “total parameters” to “parameters actually activated per token.”
Two data points from the original disclosure are representative: a certain model version activates approximately 104 billion parameters per generated token and supports a context of about 1 million tokens; meanwhile, the rumored next generation, if it continues the MoE route, may reach 5.4 trillion total parameters. Putting these numbers together reveals the key tension: total parameters determine the “upper limit of knowledge capacity,” while activated parameters determine the “compute per single forward pass.” Once the two are decoupled, capacity and cost are no longer linearly bound.
It should be emphasized that the above figures are external disclosures and rumors and should not be used as a basis for selection. What is truly transferable is the methodology: any MoE model can be compared horizontally using the same set of metrics.
2. The Principle: Why MoE Decouples Total Parameters from Compute
In a standard dense model, every token passes through all parameters, so parameter count and compute are roughly proportional. MoE replaces the feed-forward layer with multiple “expert” sub-networks, and a gating network (Router) selects a few experts to participate in computation for each token.
The mathematical expression can be simplified as:
# Illustration: computation path of an MoE feed-forward layer (not a real API)def moe_forward(x, experts, router, top_k=2):weights = router(x) # gating scores, shape [num_experts]idx = topk_indices(weights, k=top_k) # select only k expertsout = 0for i in idx:out += weights[i] * experts[i](x) # only selected experts participate in computationreturn out
This yields two core conclusions:
- Total parameters ≈ number of experts × size per expert, which can be made extremely large to carry knowledge;
- Compute per token ≈ top_k × size per expert + gating overhead, largely independent of the total number of experts.
This explains why 5.4 trillion total parameters and 104 billion activated parameters can coexist: the former is the “warehouse size,” the latter is the “amount moved per trip.” In engineering, two ratios are typically used to characterize efficiency:
- Sparsity = activated parameters / total parameters (the lower this ratio, the more knowledge carried per unit of compute)
- Expert parallelism = total number of experts / number of devices (determines communication and load-balancing pressure)
3. Overlooked Variables: What to Look at Beyond Activation Size
Focusing only on activated parameters can easily lead to wrong capacity planning. At least four categories of variables need to be evaluated simultaneously.
1) Routing strategy and load balancing
Gating tends to concentrate popular tokens onto a few experts, causing some devices to overload while others sit idle. A common industry practice is to introduce an auxiliary balancing loss and a capacity factor, using shared experts to carry general capabilities when necessary. Setting the capacity factor too high wastes GPU memory, while setting it too low triggers token dropping, directly affecting quality.
2) The “asymmetric” nature of memory usage
During MoE inference, all expert weights must reside in GPU memory (or be swapped in on demand), but computation only uses a small portion of them. This means memory capacity is determined by total parameters, while compute demand is determined by activated parameters; the two must be accounted for separately, and one metric cannot be used to derive the other.
3) Communication overhead
Expert parallelism turns what was originally on-chip computation into cross-device All-to-All communication. On bandwidth-constrained clusters, communication may replace computation as the bottleneck, and the benefits of higher sparsity will be offset.
4) The quadratic cost of long context
With million-token context, the memory and compute of the attention part grow super-linearly with sequence length, independent of MoE sparsification. Common mitigation approaches include chunked/sliding-window attention, KV cache quantization, and hybrid designs that retain full attention only in high-value layers.
4. Engineering Practice: A Practical Evaluation Workflow
Faced with new disclosure metrics like “parameters and activation size,” it is recommended to validate in the following order rather than directly accepting promotional numbers.
Step one, establish a baseline with a unified metric. Using the same batch of business samples, record three metrics: activated parameters per token, latency per thousand tokens (first-token latency and overall throughput counted separately), and cost per token.
Step two, run a sparsity sensitivity test. Keeping total parameters fixed, compare the quality–cost curve under different activation sizes to find the optimal point acceptable to the business:
Selection pseudo-logic under a quality threshold constraintif quality(activate=100B) - quality(activate=40B) < 1.5%:choose activate=40B # better sparsity, significantly lower costelse:keep activate=100B # quality gain is enough to cover compute cost
Step three, stress-test the real benefit of long context. Construct three tiers of input at 32K / 128K / 1M, observe whether quality degrades with length (i.e., “lost in the middle”), and track peak KV cache memory to avoid capacity being breached by long requests after launch.
Step four, establish observability. Incorporate routing distribution, expert hit popularity, token dropping rate, and in-batch length variance into logging services and monitoring/alerting systems; these metrics are first-hand evidence for judging “why inference cost suddenly spikes.”
Step five, build a cost fallback architecture. Hand uncontrollable peak traffic to a message queue for peak shaving, store model weights and datasets in object storage with versioning, use a container platform for elastic scaling, and allocate compute by business priority.
5. Common Misconceptions
- Treating total parameters as proof of capability: increased knowledge capacity does not necessarily translate into gains on specific tasks; business evaluation sets must be the standard.
- Ignoring routing jitter: the same input may route differently across batches, causing latency and cost fluctuations, so stress tests must cover multiple rounds.
- Estimating memory from activated parameters: memory is accounted for by total parameters and caching strategy; activated parameters only affect compute.
- Blindly trusting “the next generation is coming soon”: architecture roadmaps are external information; planning should be anchored to currently verifiable metrics, keeping 1–2 versions of architectural compatibility redundancy.
6. Conclusion
The combination of trillion-level total parameters and hundred-billion-level activated parameters marks the entry of model design into a stage of “separating capacity from compute.” For developers, what truly needs to be mastered is not a specific number, but three things: estimate compute with activated parameters, estimate memory with total parameters, and decide trade-offs with business evaluation sets. Solidifying this framework into the selection and stress-testing workflow keeps engineering judgment stable in an environment of rapid architectural iteration; if elastic compute and supporting data, logging, and monitoring capabilities are needed, they can be assembled on demand based on the general cloud infrastructure components provided by Baidu AI Cloud.
