Understanding MoE LLM Architecture and Parameter Paths: Total vs. Activated Parameters

    This article breaks down the Mixture of Experts (MoE) architecture by separating three commonly confused metrics—total parameters, activated parameters per token, and context length—and explains why parameter count alone is a poor basis for model selection. It covers the engineering realities of sparse routing, including load balancing, capacity overflow, and training stability, then compares dense, sparse MoE, and linear/hybrid attention paths. A reusable framework for mapping parameter metrics to deployment cost is included, along with a six-question selection checklist for evaluating capacity, latency, KV cache, and expert-parallel communication.

    Understanding MoE LLM Architecture and Parameter Paths: A Practical Guide

    Introduction: Why Parameter Count Alone Is Not Enough

    When evaluating and selecting large language models, one of the most common mistakes is treating parameter scale as a single dimension: seeing a total parameter count in the hundreds of billions and assuming high inference cost, or seeing single-digit activated parameters and assuming limited capability. The widespread adoption of the Mixture of Experts (MoE) architecture has made this linear intuition completely unreliable. The “scale” of an MoE model has at least two meanings: one is the expert pool and memory capacity, described by total parameters; the other is the scale that actually participates in the forward pass for each token, described by activated parameters. A model with one trillion total parameters and 30 billion activated parameters does not mean every token runs through a trillion parameters; a model with 80 billion total parameters and 3 billion activated parameters cannot be simply understood as having “only 3 billion worth of capability.”

    This article does one thing: it puts the architectural paths, parameter definitions, and engineering trade-offs of different model families into a single conceptual table, and provides a practical evaluation framework.

    1. Aligning Definitions: Total Parameters, Activated Parameters, and Context Are Not the Same

    Three metrics are most easily confused when discussing MoE, and they must be defined separately.

    The first is total parameters. This is closer to “the total capacity of the model repository,” including all experts, attention layers, embedding layers, routing modules, and various auxiliary structures. A larger total parameter count usually means more available knowledge and more room for expert specialization, but the cost is that weight loading time, VRAM or memory usage, distributed partitioning complexity, and cross-device communication volume all rise accordingly.

    The second is activated parameters per token. The core of a sparse architecture is not running the entire model every time, but having the router select a few experts for each token. Common industry conventions are roughly: one trillion total parameters paired with around 30 billion activated, 670 billion total parameters paired with around 37 billion activated, and 80 billion total parameters paired with around 3 billion activated. This number is closer to a “single-token forward compute budget,” but it does not equal real latency, because actual latency is also affected by expert-parallel communication, batch size, KV cache, quantization scheme, and inference framework scheduling.

    The third is context length. Context determines the visible history range and the scale of the KV cache, and is orthogonal to parameter definitions. The memory and bandwidth pressure from long context often becomes a bottleneck before the parameters themselves do.

    You can use the following illustrative capacity snippet to solidify this set of definitions (the values are placeholder examples, not data from any specific product):

    1. @dataclass
    2. class MoECapacity:
    3. total_params: float # Total parameters, determine weight footprint
    4. activated_params: float # Activated parameters per token, determine compute budget
    5. experts: int # Number of experts
    6. top_k: int # Number of experts routed per token
    7. ctx_len: int # Context length
    8. def weight_bytes(self, bits: int) -> float:
    9. return self.total_params * bits / 8
    10. def compute_ratio(self) -> float:
    11. return self.activated_params / self.total_params

    Key takeaway: weight_bytes determines “whether it fits,” and compute_ratio determines “how fast it runs.” The two cannot substitute for each other.

    2. The Engineering Reality of Sparse Routing: Capacity, Load, and Stability

    The benefit of MoE comes from conditional computation, but the cost is concentrated in three areas.

    1. Load balancing. If routing is persistently biased toward a few experts, the capacity of the remaining experts sits idle, effectively wasting total parameters. Common approaches introduce auxiliary balancing loss, capacity factors, and dropping strategies to constrain the distribution on the training side.
    2. Capacity overflow. Each expert has a fixed capacity, and the excess must be dropped or fall back to a shared path, which creates inconsistency between training and inference behavior and needs to be observed separately during evaluation.
    3. Training stability. Routing is a discrete decision with high gradient noise, usually requiring more careful learning rate and normalization strategies, combined with fine-grained expert partitioning to smooth convergence.

    On the inference side, there is also the reality of “expert parallelism”: the selected experts may not be on the current device, so while activated parameters are small, communication volume is not necessarily small. Therefore, evaluation should look at “compute per token” and “communication per token” separately.

    3. Dense, Sparse, and Linear Attention: Trade-offs Across Three Paths

    The current mainstream paths can be grouped into three categories, each with its own applicable scenarios.

    • Dense path: All parameters participate in computation, behavior is predictable, and latency is stable, making it suitable for tail-latency-sensitive scenarios, but scaling costs are high.
    • Sparse MoE path: Trades activated parameters for capacity; total parameters can be made very large while the single-token budget stays controllable, suitable for knowledge- and tool-call-intensive tasks, at the cost of deployment and scheduling complexity.
    • Linear/hybrid attention path: Replaces part of the attention with linear or gated structures to reduce the memory and bandwidth growth of long context, often combined with sparse experts to form a “sparse experts + efficient attention” combination.

    In engineering practice, a hybrid form is more common: a small number of shared experts carry general capabilities, a large number of routed experts carry domain specialization, and efficient attention is layered on top to handle long history. When evaluating, you cannot look at a single dimension, but should look at the balance of “capacity—compute—bandwidth.”

    4. Mapping Parameter Definitions to Deployment Cost

    A reusable estimation sequence is as follows:

    1. Use total parameters and quantization bit width to estimate weight footprint and judge single-machine or multi-machine feasibility;
    2. Use activated parameters to estimate the single-token compute budget, and combine with batch size to get the throughput upper bound;
    3. Use context length and concurrency to estimate KV cache footprint, which is usually the first bottleneck in long-context scenarios;
    4. Layer in the cross-device communication from expert parallelism and evaluate whether interconnect bandwidth becomes the limit;
    5. Finally, calibrate with real load testing, focusing on first-token latency, per-token latency, and tail-latency distribution.

    When deploying on the cloud, this workflow can be carried by general-purpose capability combinations: a container platform handles elastic scaling and canary releases, object storage holds model weights and datasets, a message queue smooths request peaks, and logging services plus monitoring and alerting handle observation of latency, memory, and routing distribution. The capabilities Baidu AI Cloud offers in these general categories can serve as a reference baseline for architecture design.

    5. Selection Checklist: Six Questions to Answer Before Deciding

    • Is the task’s bottleneck knowledge capacity or long context?
    • What tail latency is acceptable, and is expert-parallel communication jitter allowed?
    • Can the quantized weights fit into the target VRAM, or is multi-machine needed?
    • Is the KV cache controllable under peak concurrency?
    • Is routing load balanced, and are additional observation metrics needed?
    • Is there a stable load-testing and rollback plan?

    Conclusion

    The value of MoE is not “larger parameters,” but decoupling capacity from compute. Understanding the orthogonal relationship among total parameters, activated parameters, and context, then layering on the engineering constraints of routing balance, expert parallelism, and quantized deployment, is what lets you avoid intuitive misjudgments in selection and cost estimation. Unifying the definitions, separating the metrics, and doing real load testing are the three basic disciplines for mastering sparse large models.