Understanding Asymmetric Activation in Sparse Mixture-of-Experts LLMs

    This article breaks down asymmetric activation in sparse Mixture-of-Experts (MoE) models, explaining why total parameter count and inference speed can improve at the same time. It contrasts symmetric activation in traditional decoder-only MoE with the asymmetric input/output activation budgets of a Causal Encoder-Decoder (CED) design, and covers the engineering constraints, the impact of native multimodality, evaluation and benchmarking practices, and formula-based cost and capacity planning. Readers will learn what to measure beyond total parameters when assessing these architectures.

    1. Background: Why Parameter Count Can Grow While Inference Gets Faster

    In the sparse activation paradigm (Mixture-of-Experts, or MoE), the total parameter count determines knowledge capacity, while the number of parameters actually involved in computation for each token determines the compute cost of a single forward pass. Decoupling these two quantities is the fundamental reason behind “more parameters, yet faster”: capacity growth is placed in inactive branches, while the activation path stays lean.

    The comparison given in the source material can be abstracted into the table below (the numbers are only examples from that material and do not represent measured results for any specific product):

    Model form Total parameters Activation type Input-side active parameters Output-side active parameters
    New-generation form 552B Asymmetric activation (encoder-decoder style) 8B 16B
    Previous-generation form 284B Symmetric activation (traditional MoE) 13B 13B

    Two key observations:

    1. The total parameter count nearly doubles, yet input-side active parameters drop from 13B to 8B;
    2. Input and output no longer share the same activation budget, resulting in an asymmetric 8B / 16B configuration.

    2. What Symmetric Activation Is, and Why It Became the Default

    In a traditional decoder-only MoE model, prefill and autoregressive decode for an input prompt go through the same expert network and the same routing space, so the active parameter count is naturally equal on both sides. This symmetry brings engineering convenience:

    • Routing caches, expert weight layouts, and batching strategies can be reused across the two phases;
    • Capacity planning for memory and compute requires only one number;
    • Distributed partitioning (expert parallelism, tensor parallelism) has a single communication pattern, with a clear tuning space.

    The cost is that the prefill phase is compute-bound while the decode phase is memory-bound, and the two have different optimal demands for “how many parameters to activate per token.” A symmetric structure is forced into a compromise: either prefill wastes compute, or decode wastes bandwidth.

    3. Asymmetric Activation and the Causal Encoder-Decoder Structure

    The CED (Causal Encoder-Decoder) mentioned in the material can be understood as splitting “understanding the input” and “generating the output” into two paths with independent parameter subsets and independent routing, while still maintaining causal masking constraints so that the correctness of autoregressive generation is not broken.

    The logic of its benefits is as follows:

    • 8B active on the input side: the prefill phase has high parallelism, so a narrower activation path can be traded for higher throughput, lowering the setup cost of long contexts;
    • 16B active on the output side: the decode phase generates only one token per step, so a wider activation path improves per-step quality and stability;
    • The vast majority of the 552B total parameters remain inactive, decoupling knowledge capacity from inference cost.

    Illustrative pseudocode (expressing only the structural idea, not corresponding to any real API):

    1. # Conceptual illustration: two activation budgets within the same model
    2. def forward(input_ids, past_state=None):
    3. if past_state is None: # Prefill: narrow activation, aiming for throughput
    4. h = encoder_stack(input_ids, top_k=2, active_params="8B")
    5. return h, build_state(h)
    6. else: # Decode: wide activation, aiming for per-step quality
    7. h = decoder_stack(input_ids, past_state, top_k=4, active_params="16B")
    8. return h, update_state(past_state, h)

    Engineering constraints to keep in mind: the hidden dimensions, attention head layouts, and KV cache formats of the two paths must be aligned, otherwise state handoff becomes a bottleneck; routing load balancing needs joint statistics across both paths to avoid experts on one side idling over the long term.

    4. The Knock-On Effects of Native Multimodality

    Native multimodality (jointly modeling text, images, and audio within the same parameter space) means the input side must carry higher token density and longer sequences. This amplifies the value of reducing input-side active parameters: the number of visual tokens is often several to dozens of times that of text, and if symmetric activation were retained, prefill cost would deteriorate linearly.

    Engineering practice typically combines the following general techniques:

    • Sequence parallelism and chunked prefill to control peak memory;
    • KV cache quantization and tiered offloading to relieve memory-access pressure;
    • Hierarchical encoding of multimodal inputs, aligning coarse granularity first and then interacting at fine granularity.

    5. Selection and Stress Testing: Turning Paper Parameters into Verifiable Conclusions

    Do not use total parameter count as the sole metric. A three-dimensional evaluation is recommended:

    1. Capacity dimension: total parameters, number of experts, routing granularity;
    2. Efficiency dimension: input-side and output-side active parameters, per-token latency, time to first token (TTFT), and end-to-end throughput;
    3. Quality dimension: long-context understanding, multimodal alignment, and stability of instruction following.

    Stress-test script skeleton:

    1. def bench(model, prompts, max_new_tokens=256):
    2. ttft, tps = [], []
    3. for p in prompts:
    4. t0 = now()
    5. out = model.generate(p, max_new_tokens=max_new_tokens)
    6. ttft.append(first_token_time(out) - t0)
    7. tps.append(max_new_tokens / (now() - t0))
    8. return {"TTFT_P50": pct(ttft, 50), "Throughput_P50": pct(tps, 50)}

    Variable-control essentials: fix the input length distribution, fix the concurrency level, distinguish cold start from steady state, and record prefill and decode times separately. Only then can you tell whether the asymmetric design actually pays off on your workload.

    6. Cost and Capacity Planning

    When deploying in the cloud, you can assemble a pipeline from general-purpose capabilities: a container platform hosts the inference service, object storage holds models and multimodal assets, a message queue smooths out request spikes, and logging and monitoring with alerting handle observability for TTFT, throughput, and error rates. If you use the relevant general product categories from Baidu AI Cloud, follow the same order of “stress test first, then size capacity, then add elastic scaling,” avoiding waste from static configuration sized for peak load.

    Cost estimation should stay formula-based rather than relying on a single quote:

    1. Cost per request ≈ (input tokens × input-side unit cost) + (output tokens × output-side unit cost) + amortized fixed resource cost

    The direct value of asymmetric activation is decoupling and optimizing the two unit costs in the formula above.

    7. Conclusion

    The essence of asymmetric activation is giving prefill and decode each an activation budget matched to its own bottleneck. When evaluating this class of architecture, focus on the distribution of active parameters, state handoff overhead, and the TTFT/throughput curves under real workloads, rather than the single number of total parameters.