Sparse Large Language Models: Understanding Asymmetric Activation Architectures

    This article breaks down asymmetric activation in sparse large language models, where the encoding and decoding stages use separate activation budgets instead of a shared one. It explains the limitations of symmetric activation, how asymmetric designs reallocate compute across stages, and four key evaluation dimensions: memory and bandwidth, prefill/decode load separation, routing stability, and quantization. It also outlines a minimal load-testing workflow and common pitfalls to avoid when evaluating or migrating to this architecture.

    1. Background: The Structural Conflict Between Parameter Growth and Inference Cost

    Over the past two years, the parameter count of large language models has kept climbing, but requirements on the business side have not relaxed at the same pace: online serving still demands millisecond to sub-100-millisecond responses, while the cost per token has to keep falling. The reason the sparse (MoE-style) approach has become mainstream is that it decouples “knowledge capacity” from “compute per token”—the total parameter count determines how much knowledge the model can hold, while the activated parameter count determines how many floating-point operations actually run for each token.

    Stopping at this layer, however, still leaves an engineering bottleneck: most sparse architectures use symmetric activation, meaning the input side and the output side go through the same routing and the same set of experts, with an identical activation budget in both directions. This is not always optimal under real workloads, because the compute characteristics of the encoding/understanding stage and the decoding/generation stage differ substantially.

    2. From Symmetric to Asymmetric Activation

    2.1 The Hidden Assumption of Symmetric Activation

    Traditional sparse structures assume a single pass. The implicit assumption is that understanding the context and generating new tokens require the same amount of parameters to participate. Schematically, the routing logic is often written as a single scoring function:

    1. # Symmetric activation (illustrative): input and output share routing and experts
    2. def forward(x):
    3. weights = router(x) # single routing score
    4. topk_idx = topk(weights, k=2)
    5. return experts[topk_idx](x) # same activation budget for input/output

    2.2 The Core Idea of Asymmetric Activation

    Asymmetric activation splits the flow into two parts—“causal encoding” and “decoding”—each with its own activation budget. The comparison from the source material is telling: a newer sparse version has roughly 552B total parameters, with about 8B activated on the input side and about 16B on the output side; the previous generation had roughly 284B total parameters, with about 13B activated on both input and output. In other words, while the total parameter count nearly doubled, the per-token activation actually dropped, and input and output are no longer equal.

    1. # Asymmetric activation (illustrative): separate budgets for encoding and decoding
    2. def encode(ctx): # input side: small budget, throughput-oriented
    3. idx = router_enc(ctx).topk(k=1)
    4. return experts_enc[idx](ctx)
    5. def decode(state): # output side: large budget, quality-oriented
    6. idx = router_dec(state).topk(k=2)
    7. return experts_dec[idx](state)

    The payoff goes both ways: pushing the input-side budget down significantly eases the compute and bandwidth pressure of the long-context prefill stage, while raising the output-side budget concentrates compute where it genuinely affects generation quality. It is worth stressing that the numbers above come from the source material and reflect design choices for specific versions; they should not be treated as industry-wide parameters.

    3. Four Key Dimensions for Putting the Architecture into Practice

    3.1 Memory and Bandwidth: Capacity Is Not Cost

    The total parameter count sets the lower bound of weights that must stay resident in GPU memory, while the activated parameter count determines the memory access per token. Evaluate the two separately: capacity comes from the total, cost comes from activation. A common mistake is to declare a model “unrunnable” based on total parameters alone; in practice, whether a single card can host it depends on quantized weight footprint plus the KV cache, while throughput depends on activation bandwidth.

    3.2 Separating Prefill and Decode Workloads

    Asymmetric architectures naturally fit disaggregated serving: configure the prefill cluster according to the input-side budget and the decode cluster according to the output-side budget, scaling each side independently. In practice, you can orchestrate the two resource pools with a container platform, take requests with a message queue, and observe queue backlog on both sides with logging services and monitoring/alerting.

    3.3 Routing Stability and Load Balancing

    Having one routing set for encoding and another for decoding means load balancing is needed in two places. If a few experts stay hot for a long time, the actual activation will deviate from the theoretical value, and capacity planning becomes distorted. It is advisable to continuously sample the expert hit distribution and set capacity watermark alerts.

    3.4 Precision and Quantization Strategy

    The input side has a small budget and is more sensitive to quantization error; the output side has a large budget and can tolerate more aggressive low-bit schemes. Setting quantization strategies per side is usually more cost-effective than a single global strategy.

    4. Validation: Trust Load Tests, Not Architecture Diagrams

    Architectural gains must be confirmed with data. A minimal validation loop:

    1. Fix input length and output length, and measure prefill and decode token throughput separately;
    2. Record P50/P95/P99 latency, focusing on the tail rather than the mean;
    3. Track the deviation between actual activated parameters and theoretical values;
    4. Under the target concurrency, watch memory watermark and cache hit rate;
    5. Compare quality metrics of the old and new architectures on the same set of business samples, rather than looking at speed alone.
    1. # Minimal metric set for load testing (illustrative)
    2. # Watch: input throughput / output throughput / P99 latency / actual activation / memory watermark
    3. run_benchmark --in-len 4096 --out-len 512 --concurrency 32

    5. Common Pitfalls

    • Treating total parameter count as inference cost, ignoring that activation is the main variable;
    • Assuming input and output are symmetric, which leads to chronic over-provisioning of prefill resources;
    • Looking only at average latency and ignoring how the tail damages user experience;
    • Overlooking routing hotspots and building capacity plans on theoretical activation values;
    • Reusing the old architecture’s quantization and batching configuration during migration.

    6. Conclusion

    The value of asymmetric activation is not “more parameters” but reallocating the compute budget by stage: fast on the input side, high-quality on the output side. For developers, implementation comes down to three things—modeling resources per side, validating with load tests per side, and configuring quantization and batching per side. If you need to stand up a validation environment quickly, you can build a reproducible evaluation pipeline on general-purpose capabilities such as the container platform, object storage, and monitoring/alerting offered by Baidu AI Cloud, and make selection decisions with data rather than architecture diagrams.