Mixture-of-Experts LLMs: Architecture, Parameter Strategies, and Deployment Evaluation

    This article examines how to evaluate mixture-of-experts large language models beyond headline parameter counts. It explains total versus active parameters, routing and expert design variables, three parameter strategy tradeoffs, inference deployment considerations such as prefill and decode separation, expert parallelism, batching, and quantization, and a reproducible evaluation flow covering quality, latency, throughput, resource use, and effective cost.

    1. From Parameter Comparisons to Architecture Analysis

    When discussing mixture-of-experts (MoE) models, two common metrics are total parameters and active parameters. The former may reach hundreds of billions or even trillions, while the latter may be only tens or hundreds of billions. This gap reflects the basic idea of MoE architecture: the model has a large parameter capacity, but when processing each token, it uses only a subset of those parameters.

    However, directly converting parameter numbers into model capability, inference speed, or deployment cost can easily lead to misjudgments. Models with similar total parameter counts may use different numbers of experts, expert widths, and attention structures. Models with similar active parameter counts may also differ markedly in communication overhead, cache size, and hardware utilization.

    Therefore, professional comparison should shift from “which number is larger” to three questions:

    1. How does the model select the parameters involved in computation?
    2. How are parameters, cache, and intermediate state distributed across hardware?
    3. Under real business workloads, how do quality, latency, and resource consumption change?

    This article focuses on general technical approaches and does not treat any particular model’s parameter configuration as an industry standard.

    2. What Total Parameters and Active Parameters Actually Mean

    1. Total parameters: a capacity metric and an important basis for weight storage

    Total parameter count usually refers to the total number of learnable parameters in the model, including attention modules, shared computation modules, all experts, and other components. In actual disclosures, whether embedding layers, output layers, and shared weights are double-counted must be checked against the counting convention.

    Total parameter count first affects the scale of weight storage. A simplified estimate is:

    Weight storage ≈ total parameters × bytes per parameter

    But this does not equal the full memory requirement during serving. Actual deployment also needs space for quantization metadata, cache, intermediate activations, communication buffers, and the runtime environment. Training may additionally require gradients and optimizer states.

    MoE architecture reduces the range of parameters used in a single computation; it does not automatically eliminate the storage requirement for all expert weights. Weights can be distributed across devices or loaded layer by layer, but the latter introduces data movement and scheduling costs.

    2. Active parameters: the parameter scale involved in computation per token

    Active parameter count usually refers to the number of parameters actually used by a single token in one forward pass. It generally includes modules that continuously participate in computation and the experts selected by routing.

    An illustrative formula is:

    P_total ≈ P_resident + L × E × P_expert

    P_active ≈ P_resident + L × k × P_expert

    Here, L is the number of layers with expert structures, E is the number of selectable experts per layer, and k is the number of experts selected per token. P_resident represents the parameters of modules that always participate in computation; if shared experts exist, they should also be included according to the actual structure. When layers differ, weights are shared, or counting conventions change, the values must be summed layer by layer rather than mechanically applying the formula.

    In particular, it is important to distinguish “per-token activation” from “parameters accessed by a whole batch of requests.” Different tokens in a batch may select different experts, so the set of experts accessed by the entire batch may be much larger than the selection range of a single token.

    3. A low activation ratio does not necessarily mean high overall efficiency

    The activation ratio can be written as:

    Activation ratio = active parameters ÷ total parameters

    A lower ratio indicates more sparse parameter use, but it cannot by itself prove faster inference or stronger capability. A low ratio may come from an increased number of experts, smaller individual experts, or fewer selections. These changes have different effects on learning ability, routing difficulty, and communication cost.

    In addition, active parameter count is not a complete measure of computation. Attention computation is also affected by context length, attention implementation, and cache reuse. Long-text processing cost cannot be judged only by active parameter count.

    3. Key Design Variables in MoE Architectures

    1. Routing mechanism: determines which experts tokens enter

    In common implementations, MoE layers replace part of dense feed-forward computation with multiple expert subnetworks. The router computes scores for candidate experts based on token hidden representations, selects some experts for processing, and finally merges outputs according to weights.

    Routing affects not only the computation path but also training stability, expert utilization, and inference load distribution. If a small number of experts continually receive many tokens, the devices hosting those experts may become bottlenecks while other devices wait.

    Therefore, routing quality needs to be evaluated from at least two angles: whether the model has learned effective conditional computation paths, and whether expert load is controllable under real traffic. Different expert names or IDs do not imply that each expert has already formed a clear task specialization.

    2. Expert count and expert granularity: different ways to allocate capacity

    Under otherwise similar conditions, increasing the number of experts can expand the parameter space available for routing. But more experts also mean more complex weight management and potentially more fragmented data distribution.

    Expert granularity is also important. Larger experts usually have stronger single-pass transformation capacity, but the computation cost per selection is also higher. Smaller experts allow more flexible combinations, but may increase scheduling overhead and make matrix operations harder to fully utilize hardware.

    Therefore, expert count, expert width, and selection count should be analyzed jointly. Isolated emphasis on “more experts” or “fewer active parameters” cannot explain whether an architecture suits a specific deployment environment.

    3. Shared experts: combining always-on and conditional computation

    Some MoE architectures include shared experts. Shared experts process tokens continuously, while routed experts participate conditionally. This design can provide a stable common computation path for the model while retaining space for conditional computation.

    The cost is added fixed activation. Therefore, when comparing two architectures, it is necessary to confirm whether active parameters include shared experts; true computation scale cannot be inferred only from “how many experts are selected.”

    4. Load balancing: keep a sparse architecture from becoming a hotspot architecture

    During training, load-balancing constraints and similar methods can reduce expert usage imbalance, but there is a tradeoff between balance objectives and task learning objectives. Too weak balancing may lead to underutilization of some experts; too strong constraints may interfere with the model’s formation of useful selection preferences.

    During inference, changes in business traffic must also be observed. Routing that is relatively balanced during training may still form hotspots on certain domain text or repetitive requests. Engineering options include adjusting expert placement, adding replicas for hot experts, and adopting scheduling policies better suited to current traffic.

    For implementations with expert capacity limits, it is also necessary to check how excess tokens are handled. Whether they wait, are rerouted, or are dropped affects throughput, latency, and output consistency.

    4. Technical Tradeoffs of Three Parameter Strategies

    1. Expand capacity while keeping active parameters moderate

    This strategy increases selectable expert parameters to expand model capacity while controlling the computation scale per token.

    A potential advantage is that it can provide more learnable parameters without a proportional increase in per-token computation. However, the benefit depends on training data, training strategy, and expert utilization. Growth in total parameters does not necessarily improve task performance.

    The core deployment challenge is the full weight scale and the communication cost of calling experts across devices. This strategy usually requires considering compute resources, memory capacity, and interconnect conditions together.

    2. Reduce active parameters and emphasize compute efficiency

    This strategy seeks to make each token use fewer parameters, which may help reduce some computational burden.

    However, whether lower active parameters translate into lower latency depends on routing, matrix operation sizes, and data movement overhead. If small expert computations are interrupted by substantial scheduling and communication, the theoretical compute savings may be difficult to fully realize.

    Whether it suits a business should be confirmed through actual task tests, especially multi-step reasoning, complex instructions, and long-text processing. Capability limits cannot be inferred from active parameter count alone.

    3. Jointly optimize attention and expert computation

    MoE mainly changes part of feed-forward computation, while attention can remain a major cost source for long-context serving. Therefore, complete architecture analysis should also examine attention form, cache organization, position handling, and long-context training methods.

    For long-document business, reducing expert computation may not significantly reduce all costs. Cache footprint, history access, and effective context utilization may more directly affect serviceable concurrency.

    5. Why Inference Deployment Cannot Look Only at Parameters

    1. Test prefill and per-token decoding separately

    The prefill stage processes input text and usually has more parallel computation, so it is easily affected by input length and compute throughput. The decode stage generates output step by step and is often more sensitive to weight reads, cache access, and cross-device communication.

    Therefore, first-token latency, subsequent-token latency, and overall request latency should be recorded separately. Reporting only one average speed can easily obscure the main bottleneck in user waiting experience.

    2. Expert parallelism introduces communication and synchronization

    When experts are distributed across multiple devices, tokens need to be sent to the corresponding devices, and expert outputs are returned to the original computation path. Communication usually transmits token representations and computation results, not all expert weights each time.

    This process is affected by interconnect bandwidth, message size, expert load skew, and synchronization waits. The same model may perform markedly differently on different hardware topologies, so performance conclusions must include deployment conditions.

    3. Batching has a tradeoff between benefit and waiting time

    Larger batches usually help improve device utilization, but they may also expand the set of experts accessed in one execution and increase queueing. For interactive services, the best throughput configuration is not necessarily the best experience configuration.

    Batch size should be adjusted according to input length, output length, and request arrival patterns. When short and long requests are mixed, it is also important to watch whether long tasks slow the tail latency of short tasks.

    4. Quantization requires more than a storage-level judgment

    Lower weight precision can reduce storage requirements and some data transmission, but actual benefits depend on hardware support and execution implementation. Numerical changes in the router may affect expert selection, while changes in expert weights may affect output quality.

    Therefore, task quality, load distribution, and inference performance should be validated before and after quantization. Do not conclude that a deployment plan is better merely because the weight file is smaller.

    6. Building a Reproducible Evaluation Process

    1. Define business constraints first

    Before evaluation, clarify input length, output length, concurrency target, latency budget, and quality threshold. Knowledge QA, code generation, and long-document analysis have different requirements for models.

    These conditions determine the test load and which metrics have practical value. Unified rankings detached from business distribution are usually difficult to use directly for deployment.

    2. Fix the test conditions

    Record hardware count and interconnect, weight precision, parallelism, batching strategy, context length, and whether cache hits. Tests should distinguish cold start from steady-state operation to avoid mixing weight loading time with normal inference time.

    If conditions cannot be kept consistent, differences should be clearly stated, and results should not be interpreted as pure architecture superiority.

    3. Observe quality, latency, and resources together

    At least cover the following metrics:

    • Quality: task correctness, factual accuracy, instruction following, and output stability.
    • Latency: first-token latency, per-token latency, and request latency percentiles.
    • Throughput: effective processing volume that meets quality and latency constraints.
    • Resources: peak memory, cache footprint, compute utilization, and communication load.
    • Stability: expert load skew, error rate, and long-running performance.

    Beyond averages, pay attention to tail latency and failure samples. Availability issues in enterprise services often appear first in these areas.

    4. Measure cost with effective results

    A more practical metric is:

    Cost per effective task = total resource cost during the test ÷ number of completed tasks meeting quality and latency requirements

    This reduces bias from looking only at generation volume. If outputs require repeated retries, manual correction, or exceed business latency requirements, even high raw throughput may not have better practical cost.

    7. Conclusion: Parameters Are the Starting Point for Analysis, Not the Selection Answer

    MoE architecture uses conditional computation to establish a new balance between parameter capacity and per-token computation. However, this balance does not automatically mean lower deployment cost, and model capability cannot be judged only by total or active parameters.

    Reliable evaluation needs a complete chain: first confirm parameter counting conventions, then analyze expert organization and attention structure, then verify weight, cache, and communication overhead, and finally use real tasks to measure quality, latency, and cost.

    For developers and enterprises, the most worthwhile goal is not the largest or smallest parameter number, but stable, reproducible, and resource-affordable effective results under clear business constraints.