MoE (Mixture of Experts) Architecture Explained: Total vs. Activated Parameters and Key Design Trade-offs

    Over the past two years, leading open-source and proprietary LLMs have shifted to Mixture of Experts (MoE) architectures, with total parameter counts climbing into the hundreds of billions or even trillions while per-token compute stays tightly constrained. Marketing claims like "1T total, 32B activated" or "80B total, 3B activated" often confuse developers: what do these numbers actually mean, and can they be compared directly? This article establishes a unified framework for understanding MoE architecture, parameter semantics, and engineering trade-offs—covering the three core metrics (total parameters, activated parameters, context length), the two layers of model scale (memory capacity vs. compute budget), key architectural decisions (expert granularity, routing, attention design, training-inference asymmetry), and a practical evaluation checklist for deployment.

    MoE (Mixture of Experts) Architecture Explained: Total vs. Activated Parameters and Key Design Trade-offs

    Over the past two years, leading open-source and proprietary large language models have increasingly adopted the Mixture of Experts (MoE) architecture. Total parameter counts have climbed into the hundreds of billions or even trillions, while per-token compute is deliberately kept small. Faced with marketing claims like “1T total parameters, 32B activated,” “671B total, 37B activated,” or “80B total, 3B activated,” many developers are understandably confused: what do these numbers actually mean? Can they be compared directly? This article establishes a unified technical framework to clarify MoE architecture, parameter semantics, and engineering trade-offs.

    I. A Unified Framework: The Three Most Confused Metrics

    Before discussing any MoE model, three dimensions must be clearly distinguished.

    First, total parameters. This represents the capacity of the model’s full set of weights, including all expert networks, attention layers, embeddings, the router, and auxiliary modules. Total parameters determine how large the model’s “knowledge and skill repository” is, and directly set the floor for weight storage, memory footprint, and distributed deployment costs. Even if a 1T-parameter model activates only a small fraction at inference time, its weights must still be stored somewhere in full—typically sharded across dozens of high-end accelerators via expert parallelism, or handled through techniques like hierarchical offloading.

    Second, activated parameters per token. This is the soul of MoE: the router dynamically selects Top-K experts for each token while the rest remain silent. Activated parameter count approximates the “compute budget for a single token’s forward pass” and is a key reference for estimating inference cost. However, activated parameters do not equal real-world latency—actual throughput is also shaped by cross-node communication overhead, expert load balancing, batch size, KV cache usage, quantization precision, and the scheduling efficiency of the inference framework. Two models with identical activated parameters can differ by multiples in real performance under different parallelism strategies.

    Third, context length. This is largely orthogonal to parameter scale. It is determined by the positional encoding scheme, attention implementation, and KV cache budget. The cost of very long contexts shows up in memory and memory bandwidth, not in parameter count, so it cannot be used to infer a model’s overall “capability.”

    II. The Two Layers of MoE “Scale”: Memory Capacity vs. Compute Budget

    With these three metrics in mind, a key intuition emerges: an MoE model’s “scale” naturally has two layers. Total parameters correspond to memory capacity and the size of the expert pool; activated parameters correspond to the compute actually expended per token.

    Therefore, a “1T total / 32B activated” model does not mean every token runs 1T worth of compute. Conversely, an “80B total / 3B activated” model should not be casually dismissed as “only a 3B model”—its 80B expert pool still provides far broader knowledge coverage than a dense 3B model; it simply spends less compute per forward pass. These two design routes reflect different engineering philosophies:

    • Large-activation route (e.g., tens of billions activated): ample per-token compute budget and a higher ceiling on inference quality. Suited for scenarios extremely sensitive to output quality and tolerant of higher inference cost, such as complex reasoning and deep code generation.
    • Small-activation route (e.g., ~3B activated): pushes sparsity to the extreme, pursuing maximum inference throughput and cost efficiency. Suited for latency- and price-sensitive scenarios like high-concurrency online services and frequent agent invocations.

    Neither route is absolutely superior; they are simply different trade-off points between “quality ceiling” and “inference economics.”

    III. Key Architectural Design Trade-offs

    Within this unified framework, the differences between MoE models mainly fall into the following architectural decisions.

    1. Expert granularity and count. Fine-grained experts (more experts, each smaller) make routing combinations more flexible and knowledge partitioning more refined—this has been the mainstream trend in recent years. Coarse-grained experts offer simpler routing and more regular communication patterns. In addition, introducing a small number of “shared experts” to handle general knowledge while letting routed experts focus on differentiated capabilities is a widely validated compromise design.

    2. Routing and load balancing. The router decides which experts each token goes to. Without constraints, routing collapses onto a few “hot experts,” causing load imbalance and wasted capacity. Common industry practices include auxiliary load-balancing losses, auxiliary-loss-free dynamic bias adjustment, and expert capacity factor limits. Routing strategy directly affects training stability and final quality, making it one of the most worthwhile sections to read closely in any MoE paper.

    3. Companion changes to the attention mechanism. To control KV cache and memory-access overhead at long context lengths, designs such as multi-head latent attention and hybrid attention (using linear or sparse attention in some layers) often appear alongside MoE. When evaluating an architecture, “FFN sparsification” and “attention sparsification” should be examined as two parallel threads.

    4. Training-inference asymmetry. During training, MoE can amortize cost through large-scale expert parallelism. But at inference time, small-batch requests raise the relative share of expert-parallel communication. This creates tension between “training-friendly” and “deployment-friendly”: more experts improve model quality but increase the scheduling and communication burden during serving.

    IV. A Practical Evaluation Checklist for Deployment

    For developers turning architectural understanding into selection decisions, the following checklist can be verified item by item:

    1. Memory budget: total parameters × bytes per parameter (roughly 2 bytes for FP16, 1 byte for INT8, 0.5 bytes for INT4), plus KV cache and activations, to estimate whether a single machine or cluster can host the model.
    2. Compute and communication: activated parameters determine the FLOPs per token, but the All-to-All communication introduced by cross-device expert routing may become the real bottleneck; evaluate this against your network topology.
    3. Workload characteristics: long-text input is prefill-heavy, while conversational generation is decode-heavy; the two place different demands on parallelism strategies. High-concurrency scenarios should also check whether expert loads stay balanced under continuous batching.
    4. Quantization feasibility: MoE experts are not uniformly sensitive to low-bit quantization; the routing layer and shared experts typically need to retain higher precision.
    5. Inference framework support: confirm that your serving framework has mature support for the target model’s combination of expert parallelism and tensor parallelism, to avoid reinventing the wheel.

    For cloud deployment, container platforms can be used for elastic scaling, combined with logging services and monitoring/alerting systems to observe expert load distribution and request latency, forming an iterative inference-optimization loop. Mainstream cloud platforms—including Baidu AI Cloud—offer general-purpose GPU compute and managed inference capabilities, providing infrastructure options for private deployment of MoE models.

    V. Conclusion

    The essence of MoE is decoupling model capacity from inference cost through “sparse activation”: total parameters determine how much the model knows, and activated parameters determine how much effort each “thought” costs. When evaluating any MoE model, first unify the three metrics—total parameters, activated parameters, and context length; then dissect the architecture along four threads: expert granularity, routing strategy, attention redesign, and training-inference asymmetry; finally, make your selection based on your own memory, compute, and workload characteristics. Only by escaping the trap of comparing single numbers can you make sound technical judgments in the rapidly evolving MoE ecosystem.