Understanding Asymmetric Activation Architecture in Large Language Models

    This article breaks down asymmetric activation architectures in large language models, explaining why prefill and decode phases are inherently different, how shared KV cache and sparse routing reduce per-token inference costs, and why a model with more total parameters can still run faster. It also covers practical guidance on phase-based load testing, cache budgeting, elastic scaling, quality regression, and cost measurement.

    1. What a Major Version Jump Reveals About Architecture

    A major version bump is rarely just an increase in parameter count. In a recently discussed class of new architectures, the ratio between total parameters and activated parameters is stretched dramatically: total parameters jump from tens of billions to the five-hundred-billion range, while each token actually activates only a few billion parameters. More notably, activation on the input side and the output side is no longer equal — roughly 8B parameters activated for input and 16B for output. This “asymmetric activation” stands in sharp contrast to the symmetric design of conventional MoE.

    A common reaction in the community is that such teams would rather rebuild the underlying structure than chase benchmark scores. From an engineering standpoint, that choice has clear internal logic: benchmark gains are short-lived and saturate quickly, whereas the inference cost structure determines the ceiling on long-term serving capacity. Setting aside specific product attributes, this article focuses only on the general technical question behind it: as model size keeps growing, how can redesigning the computation graph and the cache keep per-token inference cost from rising linearly with parameter count?

    2. Prefill and Decode Are Inherently Asymmetric

    Many readers do not realize that even in a conventional autoregressive model, prefill and decode are asymmetric. The reason is that the prefill phase serves two goals:

    1. Compute and write the KV cache;
    2. Predict the first token of the answer.

    The feed-forward network (MLP) and the language model head (LM head) have no direct relationship with the cache. So apart from the last token, the prefill phase can skip the MLP and LM head computation of the final layer entirely.

    The following pseudocode expresses this “trimming” idea:

    1. def prefill(hidden_states, layers, lm_head):
    2. # For all positions except the last, only run through the final attention layer to build the cache
    3. for layer in layers[:-1]:
    4. hidden_states = layer(hidden_states)
    5. cache = layers[-1].attention_only(hidden_states) # Cache computation only
    6. first_token = lm_head(layers[-1].mlp(hidden_states[-1:])) # Compute the output head for the last position only
    7. return cache, first_token

    Under a conventional architecture, this optimization yields negligible speedup, because what gets saved is only the small amount of activation and computation in the “last layer.” But once the architecture introduces a cache-sharing mechanism, the bulk of prefill computation can stop at “the representation that the last layer needs to cache,” and the trimmed portion expands from a single layer into the entire repeated computation on the decode side, significantly amplifying the benefit.

    3. Three General Paths to Asymmetric Activation

    3.1 Causal Encoder-Decoder Structure (CED)

    Treat the input side as an encoder and the output side as a decoder, with both sharing some parameters and cache. The encoder compresses long context into a compact representation in a single pass, and the decoder generates autoregressively on top of it. Because the decoder only reads the shared cache instead of recomputing the full sequence, output-side activation can be higher than input-side activation without a significant increase in latency.

    3.2 Cache Sharing and Cross-Layer Reuse

    Reusing the same cached representation across multiple layers is equivalent to trading “layer depth” for a “wider shared state.” Prefill only needs to build the shared state once, and each decode step performs only an incremental update.

    3.3 Sparse Activation and Routing Asymmetry

    The input side uses more aggressive sparse routing (activating fewer experts), while the output side retains higher activation to preserve generation quality. This explains why “more parameters and faster speed” can hold at the same time: average activation drops, while cache reuse reduces repeated memory access.

    4. Why More Parameters Can Mean Faster Inference

    The key is to distinguish three types of cost:

    • Parameter count: determines memory footprint and the capacity ceiling;
    • Activated parameter count: determines the compute consumed per token;
    • Memory access volume: determines the real bottleneck in the decode phase.

    Decode is memory-access bound: every generated token requires reading the activated weights and the cache once. Asymmetric activation plus cache sharing lowers the “number of bytes read per step” on both fronts, so even if total parameters double, per-token latency can still drop. This also shows that evaluating inference performance cannot rely on parameter count alone; the activation ratio and caching strategy must be considered.

    5. Engineering Practice and Capacity Planning

    1. Load-test by phase: measure time to first token (prefill-dominated) and per-token latency (decode-dominated) separately; blended metrics hide problems.
    2. Plan the cache budget up front: the capacity, eviction, and quantization strategy of the shared cache must be planned together with context length, and hit rate can be observed through logging services and monitoring alerts.
    3. Split elastic scaling by phase: prefill is compute-heavy while decode is bandwidth-heavy, so resource specifications on the container platform should be set separately.
    4. Never skip quality regression: after an architectural rebuild, run regression tests on long context, multi-turn dialogue, structured output, and similar scenarios to avoid being “faster but degraded.”
    5. Unify the cost measure: compare “combined cost per million tokens” rather than unit price, so the real benefit is reflected.

    6. Conclusion

    Asymmetric activation and cache sharing are not a single-point trick; they elevate “computation graph trimming” from a corner-case optimization to architecture-level design. For developers, the truly transferable lesson is: measure the real bottleneck of each phase first, then decide whether to optimize the cache, activation, or parallelism strategy.