Reading MoE Model Parameters: Total Parameters, Active Parameters, and Context Length in Practice
This article explains how to read the parameter specs of Mixture of Experts (MoE) large language models. It covers the difference between total and active parameters, what each one means for memory, compute, and latency, why context window size depends on attention design and KV cache, and how to weigh these factors when evaluating a model for deployment.
1. Why Total Parameters Alone Are Misleading
Over the past year, open-weight and API-based large language models have grown steadily in parameter count, and totals in the hundreds of billions or even trillions are now common. For people who use these models, however, the main factor in per-token inference cost is not the total parameter count. It is how much computation each token actually activates, along with attention design, KV cache, and long-context methods.
Mixture of Experts (MoE) architecture works like this: the model maintains a large pool of experts, but a router selects only a small subset of them to take part in the forward pass for each token. The “size” of an MoE model therefore has at least two meanings:
- Total parameters: the size of the expert pool and the model’s capacity for storing knowledge.
- Active parameters: the approximate amount of computation each token actually uses.
For example, a model with 1T total parameters and 32B active parameters does not run all 1T parameters for every token. Conversely, an 80B total, 3B active model should not be understood as having only 3B-level capability. Both figures must be read together to judge a model’s position: a high-capacity design with a large expert pool and precise computation, or an efficiency-oriented design with light activation and high throughput.
2. Three Easily Confused Metrics: Using Consistent Definitions
2.1 Total Parameters: Source of Capacity and Deployment Complexity
Total parameters represent the combined capacity of all expert networks, attention layers, embeddings, routers, and auxiliary modules in the model. A larger total generally means:
- Higher ceiling for knowledge and capability: A larger expert pool can cover more domains, and tasks can be divided among more specialized experts.
- Higher deployment cost: All expert weights must be loaded into GPU memory or system memory, or handled through CPU offload. Distributed deployment, weight sharding, and expert-parallel communication all grow more complex.
In other words, total parameters are a fixed cost. Regardless of how many inference requests arrive, these weights must stay resident.
2.2 Active Parameters per Token: The Forward-Pass Compute Budget
Active parameters are the key metric for MoE models. The router selects a set of experts for each token (for example, with top-k routing), and only the selected experts take part in that computation. Publicly disclosed configurations show the typical range in the industry:
- Some flagship models use 1T total parameters with 32B active.
- Some use 671B total parameters with 37B active.
- Some reduce activation to the 3B level (for example, 80B total with 3B active) to prioritize maximum throughput.
Active parameters are closer to a per-token compute budget for the forward pass, but they do not equal real-world latency. Actual latency also depends on:
- Cross-GPU all-to-all communication from expert parallelism;
- Batch size and load balance, since overloaded experts can cause queuing;
- Read and write overhead for the KV cache or latent cache;
- Quantization precision and the scheduling efficiency of the serving framework.
2.3 Context Window: The Attention Bottleneck Behind the Number
Context lengths such as 256K, 262K, or 1M look like a measure of how many tokens fit. In engineering terms, the real difficulty is the growth of attention computation and cache with length. In long-context scenarios, prefill computation, decode speed, KV cache memory use, offload strategy, prefill/decode separation (PD separation), and expert communication can all become bottlenecks.
For this reason, recent models generally do not simply extend the window. They work on the attention structure:
- Sparse attention: Global attention is applied only to selected key tokens, while the rest are handled locally.
- Compressed attention: Historical KV is compressed into a low-dimensional latent representation, which substantially reduces cache usage.
- Hybrid attention: Full attention alternates by layer with linear attention or sliding-window attention, balancing long-range dependencies against computational efficiency.
3. A Two-Dimensional Chart for Model Positioning
Plot total parameters on the horizontal axis and active parameters on the vertical axis to get an intuitive map of model positioning:
- Further right: a larger expert pool, greater knowledge capacity, and higher fixed deployment cost.
- Further down: less compute per token and a higher theoretical throughput ceiling.
Based on this, MoE models can be roughly grouped into several positions:
- Upper right, leaning lower: flagship general-purpose models that aim for a high capability ceiling while keeping inference cost under control.
- Middle right, very low on activation: efficiency-oriented models with single-digit-billion active parameters, suited to high-concurrency, low-latency scenarios.
- Vertical specialization: models specialized for code, reasoning, long text, and similar tasks, whose total and active configurations serve a specific task distribution.
Here is illustrative pseudocode for a single token’s forward pass. It shows why total parameters do not equal compute:
def moe_forward(token, experts, router, top_k=8):# experts: the expert pool, corresponding to "total parameters"gates = router(token) # router scores each experttop_experts = topk(gates, top_k) # select only the top_k expertsh = tokenfor e in top_experts:h += gates[e] * experts[e](h) # activate only the selected expertsreturn h
Each token triggers computation in only top_k experts. This mechanism explains why active parameters are far smaller than total parameters.
4. Engineering Trade-offs: Capability, Cost, and Deployment
When choosing or evaluating an MoE model, build your own engineering cost assessment across the following dimensions:
- Inference cost: Estimate per-token FLOPs from active parameters and attention structure, then add communication and cache overhead. Do not scale linearly from total parameters.
- Memory and parallelism strategy: Total parameters determine the weight sharding plan. Expert-parallel degree and load-balancing strategy directly affect cluster utilization.
- Long-context approach: Check whether the model uses full, sparse, or hybrid attention, the actual KV cache footprint, and whether PD separation is supported.
- Task fit: Tool calling, code generation, and multi-turn reasoning are sensitive to expert specialization and training data distribution. Models with similar active parameter counts can perform noticeably differently.
- Quantization and serving: Quantization precision, continuous batching, and expert cache hit rate can all significantly change real latency. End-to-end benchmarking under load is the most reliable guide.
5. Summary
The parameter table for an MoE model is an engineering cost sheet, not a simple size ranking. Total parameters measure capacity and fixed cost. Active parameters measure the per-token compute budget. The context window reflects trade-offs in attention structure and caching. Only by combining these three figures with the engineering details of communication, quantization, parallelism, and serving can you make a reliable judgment about an MoE model’s real capability and cost. For developers and enterprise users, building this multi-dimensional evaluation framework is more valuable than memorizing any single number.
