Understanding MoE LLM Architecture and Parameter Routes: A Practical Guide to Model Selection and Deployment

    This article breaks down why a single parameter count no longer describes Mixture-of-Experts (MoE) models. It defines three easily confused metrics—total parameters, activated parameters per token, and context length—and explains what each one actually determines. It then compares three typical parameter routes (capacity-heavy, balanced, and lightweight high-throughput), offers a four-dimension evaluation framework for balancing capability and cost, and outlines key deployment practices such as expert parallelism, layered quantization, prefix reuse, observability, and elastic scaling. Readers will gain a clear framework for choosing and deploying MoE models based on concurrency, cost, and latency goals.

    1. Why a Single “Parameter Count” No Longer Describes Today’s MoE Models

    In the era of dense models, parameter count mapped almost linearly to both “capability” and “compute cost”: a 70B model meant every token passed through all 70B weights. Once Mixture-of-Experts (MoE) architectures became widespread, this intuition broke down completely. When we see specifications like “1T total / 32B activated,” “671B total / 37B activated,” or “80B total / 3B activated,” comparing them with a single number leads to a lot of wrong conclusions.

    A side-by-side comparison (as in Figure 1) helps establish a basic intuition: the “size” of an MoE model has at least two layers of meaning. The first is total parameters, which represent the capacity of the model’s expert pool and its memory space. The second is activated parameters, which represent the approximate scale of computation that actually participates in the forward pass for each token. A 1T/32B model absolutely does not mean every token runs 1T of computation; an 80B/3B model also cannot be simply understood as “having only the capability of 3B.”

    This article does one thing: it clarifies the architectural logic, metric definitions, and engineering trade-offs of different parameter routes, and provides a practical framework for selection and deployment decisions.

    2. Unified Definitions: Three of the Most Easily Confused Metrics

    2.1 Total Parameters: The Overall Account of Capacity, Knowledge, and Deployment Cost

    Total parameters are the sum of all learnable weights in the model repository, including: the expert layers (usually the vast majority), attention layers, word embeddings and the output layer, the router (Router/Gate), and various auxiliary modules. A larger total parameter count usually means greater knowledge capacity and finer-grained expert specialization, but the costs are equally direct:

    • Weight loading and VRAM/memory usage rise linearly;
    • The complexity of sharding for distributed deployment and the volume of cross-card/cross-node communication increase;
    • The window for fault tolerance and rolling upgrades becomes longer.

    Key takeaway: Total parameters determine “how much knowledge can be stored,” not “how much compute each token spends.”

    2.2 Activated Parameters per Token: The Single-Token Forward Compute Budget

    The core mechanism of MoE is sparse routing: the router selects a small number of experts to participate in computation for each token. The common industry convention is therefore “total parameters / activated parameters,” for example 1T total with 32B activated, 671B total with 37B activated, or 80B total with 3B activated.

    This number is closer to a “single-token forward compute budget,” but it is not equivalent to real latency. Real latency is also significantly affected by:

    • All-to-All communication introduced by expert parallelism (EP);
    • Batch size and the concurrency pattern of requests;
    • KV cache size and context length;
    • The quantization scheme (weights/activations/KV quantized separately);
    • The serving framework’s scheduling, prefix reuse, and operator fusion quality.

    Schematically, the single-token cost can be understood as:

    1. Single-token compute ≈ activated parameters × floating-point ops per parameter
    2. End-to-end latency ≈ compute time + communication time + memory access/scheduling overhead

    The second term often becomes dominant with cross-node expert parallelism, which is a common reason why “activated parameters are small but latency is not low.”

    2.3 Context Length: A Third Dimension Orthogonal to Parameters

    The context window is a resource constraint on the “sequence dimension” and is largely orthogonal to parameter scale. It mainly affects KV cache memory, the complexity of attention computation (usually growing super-linearly with sequence length), and long-text recall quality. Putting context length and parameter count in the same table can only serve as a reference for “service shape”; it cannot be used to infer capability levels.

    3. Engineering Trade-offs of Three Typical Parameter Routes

    Route A: Very Large Total Parameters + Medium Activation (Capacity-Heavy)

    The hallmark is total parameters in the trillion range with activation in the tens of billions. The advantages lie in knowledge breadth and fine-grained expert specialization, making it suitable for complex reasoning, cross-domain knowledge, and difficult code/math tasks. The engineering cost is that the memory wall and the communication wall are approached simultaneously, usually requiring large-scale expert parallelism, fine-grained load balancing, and high-quality quantization; otherwise, “expert hotspots” can easily cause tail-latency jitter.

    Route B: Medium Total Parameters + Medium Activation (Balanced)

    Represented by hundreds of billions of total parameters with tens of billions activated, this is a compromise with relatively controllable training and inference costs and broad coverage, suitable as a general-purpose base for domain-specific fine-tuning.

    Route C: Small Activation + Extreme Cost Efficiency (Lightweight High-Throughput)

    This route compresses activation to the single-digit billions while keeping total parameters in the hundreds of billions to maintain capacity. The goal is high concurrency and low unit cost, common in throughput-sensitive scenarios such as intelligent coding assistance, real-time dialogue, and content moderation. Note that low activation does not automatically mean low latency; if expert parallelism spans nodes, communication overhead may offset the compute savings.

    4. Breaking Down “Capability–Cost” into a Computable Evaluation Framework

    When selecting a model, it is recommended not to rely on a single metric but to build a four-dimension evaluation table:

    Dimension Metrics to Observe Common Pitfall
    Capacity Total parameters, number and granularity of experts Inferring capability directly from total parameters
    Compute Activated parameters, floating-point ops per parameter Inferring latency directly from activated parameters
    Serving Context length, KV cache usage Treating context length as a capability metric
    Engineering Communication volume, quantization, batch scheduling Ignoring tail latency and jitter

    A practical decision order is: first determine the acceptable activation range based on business concurrency and cost budget, then use total parameters to filter whether capacity is sufficient, and finally validate tail latency with real load testing (covering both extremes of long context and high concurrency).

    5. Key Engineering Practices on the Deployment Side

    1. Expert parallelism and load balancing: Routing imbalance can overload some devices, so it is necessary to monitor the expert hit distribution and, when needed, weigh the trade-off of capacity factors and dropping strategies.
    2. Layered quantization: Weights, activations, and KV cache can use different precisions, prioritizing the numerical stability of attention and routing.
    3. Prefix reuse and batch scheduling: For repeated-prefix scenarios such as code completion and multi-turn dialogue, prefix caching can significantly reduce repeated computation.
    4. Observability: Only by incorporating expert hits, communication wait, and intra-batch length distribution into logging services and monitoring/alerting systems can the real cause of “small activation but slow” be pinpointed.
    5. Elastic scaling: Scaling shards by concurrency on a container platform, combined with object storage for weight distribution, shortens the cold-start window.

    In related practices at Baidu AI Cloud, such model services are typically built on general-purpose capabilities like container platforms, object storage, logging services, and monitoring/alerting, with the focus on translating parameter definitions into observable, tunable service metrics.

    6. Conclusion

    In the MoE era, comparing models requires looking at three layers of information simultaneously: total parameters (capacity), activated parameters (single-token compute budget), and context plus engineering configuration (service shape). Any single-number comparison detached from these definitions will be distorted. The truly professional approach is to first unify the definitions, then build an evaluation table based on business concurrency, cost, and latency goals, and finally close the loop with real load testing.