The Evolution of Asymmetric Activation Architectures in Large Language Models

    This article breaks down how large language models systematically exploit the structural asymmetry between the Prefill and Decode stages. It explains why standard decoder architectures are already asymmetric, how cache sharing and a causal encoder-decoder design amplify that asymmetry, and why architectural refactoring can be more internally consistent from an engineering standpoint even when it is not optimal for benchmark scores. Readers will find a practical evaluation checklist covering quality baselines, long-context behavior, batching, resource profiles, and cost models, along with notes on combining such architectures with general cloud capabilities.

    1. Introduction: What a “Refactor First” Release Signals

    While most of the large model industry frames version releases around benchmark scores, some updates are instead centered on architectural refactoring: parameter count goes up, inference speed actually improves, and the input and output paths use different activation strategies. The signal here is that the team prioritized engineering efficiency and architectural coherence over marketing metrics. For developers, what matters is not the version number but whether the assumptions behind the computation graph have changed.

    Setting aside any specific product, this article discusses one general technical question: how the stage asymmetry in large model inference (the asymmetry between Prefill and Decode) can be exploited systematically, and how to evaluate such architectures from an engineering perspective.

    2. The Overlooked Fact: Standard Decoder Architectures Are Already Asymmetric

    Most readers assume that Prefill and Decode run through the same computation path. In reality, their goals differ:

    • Prefill has two goals: build the key-value cache required for subsequent autoregression, and produce the first output token.
    • Decode has only one goal: predict the next token based on the existing cache.

    This leads to a frequently overlooked conclusion: the feed-forward network (MLP) and the language model output head (LM Head) are unrelated to cache construction. Therefore, during Prefill, all positions except the last one do not need to compute the final-layer MLP or the LM Head.

    Illustrative pseudocode:

    1. # The "prunable" portion of Prefill in a standard architecture
    2. hidden = embed(input_ids)
    3. for layer in layers[:-1]:
    4. hidden = layer(hidden)
    5. cache.append(layer.kv_cache) # key output
    6. # Evaluate the last layer only for the final position
    7. last_hidden = layers[-1](hidden[:, -1:, :], cache)
    8. logits = lm_head(last_hidden) # one position only

    The conclusion: Prefill inherently skips some activated parameters and matrix multiplications compared with Decode. But in a standard architecture, this gain is negligible, because the Prefill bottleneck usually lies in attention and the linear projections across all layers, not in the single-point computation of the last layer.

    3. Amplifying the Asymmetry: Cache Sharing and a Causal Encoder-Decoder Structure

    The breakthrough of the newer architecture comes from stacking two ideas:

    1. Cache sharing (essentially an “encoder output reuse” idea): the main Prefill computation only needs to advance to the boundary where the cache is formed, and the decoding side reuses that representation directly, avoiding repeated encoding.
    2. A causal encoder-decoder (CED) structure: the encoder side builds the context representation, while the decoder side handles token-by-token generation, so the two sides can have different parameter and activation scales.

    This directly produces “asymmetric activation”: the number of activated parameters on the input side is no longer equal to that on the output side. As an example of the scale discussed publicly, one newer-generation architecture has roughly 552B total parameters, with about 8B activated on input and about 16B activated on output; the previous symmetric mixture-of-experts architecture had roughly 284B total parameters, with about 13B activated on both input and output. These figures only illustrate the qualitative fact of “asymmetry” and should not be read as a performance commitment for any specific product.

    4. Why Refactoring Is Not Necessarily Optimal Commercially, but Is More Coherent Engineering-Wise

    Benchmark-chasing strategies optimize for the evaluation distribution; refactoring optimizes the inference cost function. The gains of the latter show up in three places:

    • Memory footprint: once the cache layout and sharing boundary change, memory growth in long-context scenarios becomes more controllable.
    • Throughput: with Prefill and Decode decoupled, they can be batched separately, reducing interference between them.
    • Latency structure: time-to-first-token and per-token latency can be tuned independently, instead of being bound to the same set of parameters.

    The cost is equally clear: both the training and inference frameworks must be reworked, operators, parallel partitioning, and quantization strategies all have to be redone, and short-term iteration speed drops.

    5. Engineering Evaluation Checklist

    When evaluating this kind of architecture, it helps to establish baselines along these dimensions:

    • Quality baseline: compare on the same evaluation set with the same decoding parameters, to avoid interference from sampling randomness.
    • Long context: observe the memory curve and the throughput decay slope beyond the 32K range.
    • Batching friendliness: P99 latency under different concurrency levels, not the average.
    • Resource profile: measure the compute and bandwidth share of Prefill and Decode separately.
    • Cost model: replace per-unit price comparisons with “blended cost per million tokens.”

    6. Combining with General Cloud Capabilities

    In practice, you usually do not need to build the entire stack yourself; you can compose general-purpose capabilities: a container platform to host inference services and elastic scaling, object storage for models and datasets, a message queue to smooth request spikes, and logging plus monitoring and alerting for latency and memory observability. Baidu AI Cloud offers corresponding capabilities in these general categories and can serve as a reference foundation for architecture selection.

    7. Conclusion

    Asymmetric activation is not a marketing concept; it is the inevitable design that follows from pushing the common-sense fact that “Prefill and Decode have different goals” to its limit. The takeaway for developers: when evaluating a model, look at the computation graph assumptions first and the scores second; build the cost baseline first, then talk about version upgrades.