The Evolution of Asymmetric Activation Architectures in Large Language Models

    This article examines how modern large language models are shifting their optimization focus from benchmark scores to inference framework redesign, specifically through asymmetric activation between the prefill and decode stages. It explains why prefill and decode are inherently asymmetric, how cache sharing turns minor savings into structural gains, and the key engineering practices for graph splitting, cache layout, batching, and numerical consistency. Readers will also find guidance on quantitative evaluation using TTFT, TPOT, throughput per GPU, and cache metrics, along with common misconceptions and practical adoption steps.

    1. Background: A Version Upgrade Driven by Refactoring, Not Benchmark Chasing

    As open-source models iterate at an increasingly fast pace, a notable engineering trend is emerging: the main changes in a new release are not concentrated on leaderboard scores but on refactoring the inference framework and activation mechanism. Such changes may not be the optimal short-term choice from a business perspective, because they require revalidating accuracy, rewriting the inference path, and rebuilding stress-test baselines. However, from a long-term engineering efficiency standpoint, they directly determine the upper limit of output per unit of compute.

    This article uses “the asymmetric activation architecture of a new-generation large-parameter model” as its technical background and abstracts a reusable methodology: split the inference process into two physically distinct stages, prefill and decode, and design the computation graph and activation scope separately for each stage.

    2. Correcting a Misconception: The Asymmetry Between Prefill and Decode Is a Native Property

    The industry often treats PD asymmetry as an invention of new architectures, but traditional autoregressive models are inherently asymmetric. The reason is that prefill 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) do not participate in cache construction. Therefore, during prefill, except for the last position, the remaining positions do not need to execute the final-layer MLP and LM Head. An illustration is shown below:

    1. # Prunable computation in prefill under a traditional architecture (pseudocode)
    2. def prefill(hidden, layer_blocks, last_layer, lm_head):
    3. kv_cache = []
    4. for blk in layer_blocks: # all layers must be computed to produce the cache
    5. hidden, k, v = blk(hidden)
    6. kv_cache.append((k, v))
    7. # only the last position needs to pass through the last-layer MLP and LM Head
    8. hidden_last = last_layer(hidden[:, -1:, :])
    9. logits_first = lm_head(hidden_last)
    10. return kv_cache, logits_first

    The conclusion is clear: prefill naturally saves a small amount of activation parameters and computation compared with decode. It is just that in conventional architectures, the speedup from this small saving is negligible and is often ignored in engineering practice.

    3. Key Mechanism: How Cache Sharing Amplifies “a Small Saving” into Structural Gains

    The core idea of the new-generation architecture can be summarized as “cache sharing + causal encoder-decoder (CED)-style asymmetric activation”: let the main computation of prefill advance only up to the last-layer cache, compressing the expensive output-side computation to a minimal scale.

    The chain of benefits is as follows:

    • Input-side activation parameters are significantly reduced: in the table, the new-generation scheme has about 8B input activations, while the previous-generation symmetric MoE had 13B for both input and output activations;
    • Output-side activations are further narrowed: output activations are about 16B, decoupled from the input side and no longer forced to be symmetric;
    • Total parameter count is decoupled from activation parameter count: with 552B total parameters, the activation scale is still maintained at a single-digit to low-double-digit level, meaning that memory capacity and compute requirements can be planned separately.

    It should be emphasized that the above figures are settings from this background material. In engineering practice, they must be based on your own measurements and should not be directly extrapolated to other models.

    4. Key Engineering Implementation Points

    1. Computation graph splitting: explicitly distinguish prefill_graph from decode_graph, and avoid using the same set of symmetric operators for both stages.
    2. Cache layout: shared cache requires unified management of key-value layout, page size, and lifecycle. It is recommended to use paged caching with a block table.
    3. Batching strategy: prefill is compute-intensive while decode is memory-intensive, so a hybrid scheduling of continuous batching and chunked prefill is preferable.
    4. Numerical consistency: after pruning the LM Head, the first-token logits must remain equivalent to full computation, and layer-by-layer comparison regression is required.
    1. # Scheduling-layer pseudocode: two-stage routing
    2. def schedule(requests, max_prefill_tokens, max_decode_batch):
    3. prefill_batch, decode_batch = [], []
    4. for r in requests:
    5. if r.remaining_prompt > 0:
    6. prefill_batch.append(r)
    7. else:
    8. decode_batch.append(r)
    9. prefill_batch = chunk(prefill_batch, max_prefill_tokens)
    10. decode_batch = truncate(decode_batch, max_decode_batch)
    11. return run(prefill_batch, mode="compute_bound"), \
    12. run(decode_batch, mode="memory_bound")

    5. Quantitative Evaluation Methodology

    Do not look only at end-to-end QPS; it is recommended to break down the metrics:

    • Time to first token (TTFT): mainly affected by prefill;
    • Time per output token (TPOT): mainly affected by decode;
    • Throughput per unit of compute: tokens/s/GPU, counted separately for input and output;
    • Cache hit rate and peak memory: measure whether cache sharing is truly effective.

    During evaluation, fix the input and output length distributions (for example, two groups: 2K input / 256 output and 32K input / 1K output), and report percentiles rather than only the mean.

    6. Common Misconceptions

    • Misconception 1: Asymmetric activation equals reduced accuracy. In fact, what it changes is the computation scope, not mathematical equivalence, and this must be proven by regression tests.
    • Misconception 2: Bigger parameters are always better. What really determines cost is the activation parameters and cache overhead.
    • Misconception 3: Treating a pricing strategy as a technical conclusion. Peak-valley pricing belongs to resource scheduling and business design and has no causal relationship with architecture quality, so the two should be discussed separately.

    7. Adoption Recommendations

    If you want to draw on this idea in your own business, you can start with three things on the inference side: split the two-stage computation graph, introduce paged cache, and build a dual-metric dashboard for TTFT/TPOT. If elastic compute is involved, you can combine general cloud product categories such as container platforms, object storage, message queues, log services, and monitoring and alerting to build stress-testing and canary-release systems, letting data rather than leaderboards decide the pace of version upgrades.