MoE Large Model Architecture and Parameter Metrics: Total vs. Activated Parameters and Inference Costs

    This article provides a unified framework for understanding and evaluating Mixture-of-Experts (MoE) large models. It separates total parameters, per-token activated parameters, and context length; explains router and expert design choices; compares attention and KV-cache strategies for long context; breaks down inference cost across compute, memory access, communication, and cache; and reviews training priorities from alignment and reasoning to agent capabilities. It also offers a practical checklist for comparing MoE models by parameter accounting, attention design, inference economics, capability profile, and engineering ecosystem.

    MoE Large Model Architecture and Parameter Metrics: A Deep Dive

    Over the past year, parameter tables for open-weight and API models have started to resemble an engineering bill of materials. Hundreds of billions, trillions, and even larger total parameter counts can look intimidating. But the real driver of per-token inference cost is often not the total parameter count. It is how many parameters are actually activated per token, how attention computation and caching are reduced, how long-context workloads are served, and how tool use and code environments are trained. This article does not focus on any single model. Instead, it places the architecture paths, parameter accounting methods, and engineering trade-offs of different MoE model families into one analytical framework, to clarify how “scale” should actually be understood.

    1. First, Align the Metrics: Total Parameters, Activated Parameters, and Context Are Not the Same Thing

    When discussing MoE models, three metrics are most easily confused and must be separated first.

    The first is total parameters. This represents the combined capacity of all expert networks, attention layers, token embeddings, routers, and auxiliary modules in the model repository. A larger total parameter count usually means more room for knowledge storage and expert specialization, but the cost is higher weight loading, distributed deployment, memory or VRAM footprint, and cross-node communication complexity. Total parameters can be understood as “how much the model can remember,” not “how much the model computes at each step.”

    The second is activated parameters per token. The key to MoE is sparse activation: the router selects only a subset of experts to participate in computation for each token. A common industry design, for example, uses a total parameter count in the trillions while activating only tens of billions of parameters per token. More aggressive approaches reduce activation to the level of 3 billion parameters. Activated parameters are closer to the “per-token forward computation budget,” but they are not equivalent to real latency. Actual latency is also affected by expert-parallel communication overhead, batch size, KV cache, quantization precision, and serving-framework scheduling policy.

    The third is context length. Context is a matter of memory and attention computation dimensions, and it is orthogonal to parameter scale. A model can have a huge total parameter count but a short context, or a moderate parameter count while supporting very long context. Mixing these three metrics together is the most common mistake when evaluating MoE models.

    This leads to a basic intuition: a model with 1T total parameters and 32B activated parameters does not mean that every token runs 1T parameters; nor does an 80B-total-parameter model with 3B activated parameters simply mean that it has “only 3B capability.” Total parameters define the capacity ceiling, while activated parameters define computational cost. Together they define the cost-performance curve of an MoE model.

    2. The Core of MoE Architecture: Routers and Expert Specialization

    MoE, or Mixture of Experts, is essentially about trading conditional computation for capacity expansion. Its standard structure replaces the feed-forward network (FFN) position in a Transformer with N parallel expert subnetworks plus a learnable router.

    An illustrative routing logic is shown below:

    1. def moe_forward(x, router, experts, top_k=8):
    2. # Compute expert scores for each token
    3. scores = softmax(router(x)) # [tokens, num_experts]
    4. top_scores, top_ids = topk(scores, k=top_k)
    5. weights = top_scores / top_scores.sum() # Normalize weights
    6. out = 0
    7. for k in range(top_k):
    8. out += weights[:, k:k+1] * experts[top_ids[:, k]](x)
    9. return out

    Around this structure, the industry has developed several major engineering paths:

    1. Fine-grained experts and shared experts. Early MoE designs used fewer experts with larger individual expert capacity. Newer designs tend to split experts more finely, with hundreds of small experts, and add an always-activated “shared expert” to carry general knowledge while fine-grained experts handle specialized knowledge. This can improve the expressive power of expert combinations without changing the number of activated parameters.

    2. Load balancing. Routers naturally tend to send tokens to a small number of “popular” experts, causing some experts to be overloaded while others sit idle. Industry solutions include auxiliary load-balancing losses, auxiliary-loss-free bias adjustment by dynamically adjusting routing bias terms rather than introducing an additional loss term, and expert capacity limits with overflow rerouting. Load-balancing strategy directly affects training stability and parallel efficiency during inference.

    3. Routing granularity. Some models use token-level routing, while others explore segment-level or sequence-level routing to reduce communication jitter. The value of top-k, commonly ranging from 2 to 10, is a core knob between expressive power and computational cost.

    3. Attention and KV Cache: The Real Bottleneck for Long Context

    Activated parameters explain only the cost of the FFN portion. In long-context scenarios, attention mechanisms and KV cache often become larger engineering bottlenecks, and MoE models diverge into different paths here.

    Multi-head attention (MHA) offers the highest quality, but its KV cache grows linearly with the number of layers, number of heads, and sequence length. Grouped-query attention (GQA) lets multiple query heads share key-value heads, greatly reducing cache size, and is currently the most mainstream compromise among open models. Multi-query attention (MQA) compresses further to a single KV group, minimizing cache but carrying higher risk of quality loss. There is also the multi-head latent attention (MLA) path, which applies a low-rank compression projection to KV and caches only the compressed latent vectors, expanding them again during inference. This can reduce cache to a very low level while approaching MHA quality.

    Long context also requires position-encoding extrapolation, such as frequency interpolation and dynamic scaling for rotary position embeddings; attention-window design, such as mixing global attention with sparse or sliding-window attention; and inference-side optimizations such as chunked prefill. To evaluate a model’s “long-context capability,” it is not enough to look at the claimed window length. You also need to consider attention degradation under long context, cache footprint, and time to first token.

    4. The Full Ledger of Inference Cost

    The real inference cost per token can be roughly broken down as follows:

    • Compute item: activated parameters × 2 floating-point operations (approximate), with the attention portion growing with context length;
    • Memory access item: the amount of activated weight reading, which is often the main bottleneck in low-concurrency scenarios limited by memory bandwidth;
    • Communication item: cross-node All-to-All communication introduced by expert parallelism (EP), strongly related to the number of experts and the parallel partitioning method;
    • Cache item: KV cache footprint = number of layers × KV dimension × sequence length × precision bytes.

    This explains why “small activated parameters” does not equal “necessarily fast.” If expert partitioning causes communication to account for too high a share, or if a poor caching strategy reduces concurrency capacity, the actual throughput advantage of a small-activation model can be eroded. Conversely, a model with slightly larger activation but a communication-friendly topology and efficient cache compression may have a better real deployment cost. Quantization, such as FP8, INT8, and INT4, can reduce both memory access and storage costs, but routers and sensitive layers usually need to retain higher precision.

    5. Another Front in Training: From Language Modeling to Agent Capabilities

    Beyond architecture, the differentiation among model families is increasingly reflected in training methods:

    • Post-training and alignment: instruction fine-tuning and preference optimization based on human or AI feedback determine model usability;
    • Reasoning enhancement: reinforcement learning with verifiable rewards, such as correctness in math and code, to train long chains of thought is currently a mainstream path for improving complex reasoning;
    • Agent training: training models to plan, invoke tools, and correct errors in real or simulated tool-calling, code-execution, and multi-turn interaction environments has become a key competitive area for new-generation models;
    • Training infrastructure: mixed-precision training, combinations of expert parallelism and pipeline parallelism, gradient checkpointing, and fault-tolerant scheduling determine whether trillion-level MoE models can be trained economically.

    For users, these training-path differences ultimately show up as follows: some models are strong at long-chain reasoning and mathematics, some at code generation and tool orchestration, and some emphasize response speed and low inference cost. Model selection should match task characteristics rather than simply ranking by parameter tables.

    6. Building a Unified Model Evaluation Framework

    Based on the discussion above, when comparing different MoE models, it is advisable to check the following list item by item:

    1. Parameter accounting: total parameters / activated parameters per token / number of experts and top-k / whether there are shared experts;
    2. Attention approach: attention type (MHA/GQA/MQA/low-rank compression), KV cache size, claimed context and effective context;
    3. Inference economics: officially or community-measured throughput and latency, quantization scheme, deployment threshold for expert parallelism;
    4. Capability profile: beyond benchmark scores, focus on measured performance in target scenarios such as code, reasoning, multilingual tasks, and agents;
    5. Engineering support: open-source license, weight format, support maturity in mainstream inference frameworks, and community ecosystem.

    When deploying such models in cloud environments, overall planning should also combine general cloud capabilities: use object storage to manage weights and datasets, container platforms to orchestrate inference services, logging and monitoring/alerting to ensure online stability, and message queues to decouple asynchronous tasks. The combination of these general capabilities determines the last mile from “it runs” to “it runs well and cost-effectively” for MoE models.

    Conclusion

    The “scale” of an MoE model has at least two layers: total parameters represent the expert pool and memory capacity, while activated parameters represent the per-token computation budget. Only by putting attention design, caching strategy, communication overhead, and training paths into the same evaluation table can you see through the digital fog of parameter marketing and make rational choices that match business cost and capability requirements. The parameter table is only the beginning of the bill; the real answer lies in architecture details and engineering trade-offs.