Asymmetric Activation Architecture Explained: The Core Logic Behind Faster LLM Inference

    This article breaks down how asymmetric activation decouples model size from inference speed in large language models. It explains the difference between symmetric and asymmetric activation, how a causal encoder-decoder structure compresses long contexts, and why prefill and decode budgets can be designed separately. You will also find a four-dimension framework for evaluating inference speedups, along with practical deployment tips for long-input, short-output workloads such as code base Q&A, log analysis, and document extraction.

    1. The Starting Point: Why “More Parameters” and “Faster Speed” Are No Longer Contradictory

    Conventional wisdom holds that a larger total parameter count means slower inference and higher cost. But engineering practice from the last one or two generations of large models has broken that intuition: as total parameters grow, per-token generation speed can improve by several times. To understand this, you have to separate “model size” from “the number of parameters that actually participate in computation per token.”

    Inference experience is never determined by the total parameter count. It is determined by three independent variables:

    • The number of parameters activated per token during the prefill stage;
    • The number of parameters activated per token during the decode stage;
    • Whether the attention part needs to build a global key-value cache repeatedly for every layer.

    When these three variables can be designed separately, scale and speed are decoupled.

    2. Symmetric vs. Asymmetric Activation: The Essential Difference

    The sparse mixture-of-experts approach common in the industry uses the same routing logic for input and output, with an identical number of activated parameters before and after. This can be called symmetric activation. Its advantage is a simple structure and mature engineering. Its drawback is that prefill and decode share the same cost tier.

    Asymmetric activation separates the budget for the two stages. Take the public description of a recent sparse architecture as an example: its total parameter count is about 552B, prefill activates only about 8B parameters per token, and decode activates about 16B per token. The previous generation, a symmetric architecture of about 284B, activated about 13B parameters for both input and output. The key conclusion is not the specific numbers but the design freedom: prefill can be made more “frugal,” and decode can be made more “stable.”

    This design is especially friendly to agentic workloads. The typical agent behavior is “reading long, writing short”: a single task may feed in hundreds of thousands of tokens of code base context, logs, and tool return results, but the actual generated output is only a few thousand tokens. Lower prefill cost directly targets the main overhead of such scenarios.

    3. Causal Encoder-Decoder: Why Context Can Become Compact

    The structure that supports asymmetric activation is usually described as a causal encoder-decoder. An easy-to-understand but not fully precise view is:

    1. Input context
    2. ↓
    3. [Lower layers: encoder] Runs only during prefill, compressing long context into a compact representation
    4. ↓ Projection of last-layer hidden states
    5. [Upper layers: decoder] Mainly runs during the decode stage
    6. ↓
    7. Token-by-token output

    The core mechanism is that decoder layers no longer have to each build a set of global keys and values from their own hidden states. Instead, the global keys and values are obtained by projecting the hidden states of the encoder’s last layer. This brings three benefits:

    1. A single source for the global cache makes the context representation more compact, reducing memory footprint and bandwidth pressure;
    2. The decode stage only needs to run the upper layers, keeping per-token computation controllable;
    3. In long-context scenarios, cache reuse improves and repeated computation decreases.

    It is important to stress that this kind of structure is not a “free lunch.” Context compression means lossy information, so for tasks that require precise localization or verbatim citation, the compression ratio needs to be tuned carefully. Meanwhile, the depth ratio between encoder and decoder and the dimension of the projection layer are hyperparameters that need empirical tuning.

    4. How to Scientifically Evaluate an Inference Speedup

    The “300–400 token/s in a certain scenario” figure circulating in the community is just a single-point experience and should not be used directly as a selection criterion. It is better to build a four-dimension evaluation table:

    Dimension Observation Metric Notes
    Latency Time to first token, total elapsed time Time to first token is mainly determined by prefill
    Throughput Output token/s Must note concurrency and input length
    Cost Total token usage, cache hit rate Hit rate reflects context reuse quality
    Quality Long-text localization, instruction following Verifies whether compression causes capability regression

    A reference comparison sample (used to illustrate the evaluation method, not a conclusion about a specific product): for the same long-context task, the new architecture took about 18 min 49 s in total, used about 11.59M tokens, generated about 126K output tokens, had a model inference time of about 7 min 48 s, a generation speed of about 361 token/s, and a cache hit rate of about 99.5%. The old architecture came in at about 30 min 11 s, 20.31M tokens, 154K output, 25 min 10 s, 120 token/s, and 99.7%. You can see that fewer output tokens still completed the task, indicating a shorter pipeline; the close cache hit rates indicate the gains come mainly from the architecture rather than cache luck.

    5. Engineering Deployment Recommendations

    • Enable asymmetric activation models first in long-input, short-output scenarios, such as code base Q&A, log root-cause analysis, and document extraction.
    • Concatenate prompts and tool returns in a structured way, keeping a stable prefix to maximize cache hits.
    • Use a fixed evaluation set to regress quality, avoiding speed-only checks that let long-text localization degrade.
    • On the inference serving side, combine container platform elastic scaling, logging services, and monitoring alerts, and put time to first token and throughput on a dashboard.
    • When deploying on cloud platforms such as Baidu AI Cloud, you can use object storage to hold context material and message queues to smooth peaks, building an observability loop with common monitoring categories.

    6. Conclusion

    The value of asymmetric activation lies not in any specific number but in separating the cost structure of prefill and decode so that “larger parameters” and “faster responses” hold at the same time. For developers, what really needs to be mastered is the evaluation method and scenario-matching logic: first confirm whether the workload is read-heavy or write-heavy, then verify with the four-dimension metrics, and only then discuss selection and tuning.