Asymmetric Activation and Cache Reuse: How to Evaluate Efficient LLM Inference Architectures

    Discussions of new reasoning models often focus on parameter count, version, and price, but the underlying architecture is what determines real-world performance. This article explains how the prefill/decode split changes with KV cache reuse, why asymmetric activation on the input and output sides can reduce long-context prefill cost, and what conditions must hold for last-layer MLP skipping to deliver actual gains. It also covers the engineering trade-offs—MoE load imbalance, cache consistency, and sharing granularity—and the metrics that should be used for evaluation, including TTFT, TPOT, cache hit rate, and memory bandwidth utilization.

    Compared with parameter count, model version, or price, the architecture underneath an inference engine matters more to developers. The computational gap between prefill and decode has become a central design issue: input-side and output-side activation parameters are increasingly decoupled, and cache reuse has moved from a low-level optimization to a core architectural decision. This article explains where the speedup comes from, where it applies, and how to evaluate an architecture against a real workload.

    Prefill vs Decode: Why Cache Sharing Amplifies the Difference

    Standard autoregressive language model inference has two phases. Prefill consumes the full input, writes KV cache for every layer, and predicts the first output token. Decode then uses the existing cache to generate subsequent tokens one at a time.

    The key difference comes from a simple fact: MLP and LM Head do not participate in KV cache construction. Each layer’s K and V are generated by that layer’s attention. Therefore, during prefill, every non-final token that passes through the last layer’s MLP produces an intermediate result that is never used. Only the last token’s hidden state needs to be sent to the LM Head.

    1. h = embed(tokens)
    2. for layer in layers[:-1]:
    3. h = layer(h) # all tokens are fully computed; KV cache is written for each layer
    4. h = layers[-1].attention(h) # last layer: all tokens compute K/V and write cache (residual details omitted)
    5. last_h = layers[-1].mlp(h[:, -1]) # only the last token enters the MLP
    6. logits = lm_head(last_h) # only the first generated token's logits are produced

    Two details matter here. First, the last layer’s attention still has to process all tokens, because subsequent decode needs that layer’s K/V entries. Second, what is skipped is only the last layer’s MLP and the LM Head for non-final tokens.

    In a traditional implementation, the savings from this skip are limited. The last-layer MLP accounts for only a small part of total prefill cost, and modifying operator scheduling in an inference framework takes real engineering effort. The benefit becomes meaningful only when two conditions are met: the architecture allows prefill to stop at the last layer’s cache boundary, and the inference implementation actually supports layer skipping. When both hold, the gain can be significant. This is why prefill-decode asymmetry has moved from a theoretical optimization to an architectural selling point. If either condition is missing, the claimed saving does not hold; it must be verified with measurements.

    Asymmetric Activation: Input Side and Output Side

    A conventional homogeneous activation design gives input and output the same scale of routing and activation parameters, so each token pays roughly the same computation. Asymmetric activation—not a standardized industry term—lets the input and output sides use different scales of activation capacity. The input side is mainly responsible for context encoding and cache construction; the output side is responsible for token-by-token generation.

    This can be viewed as a causal encoder-decoder layout: the encoding side compresses the context into a reusable cache representation, while the decoding side generates autoregressively from that cache. Potential benefits include:

    • Lighter input side: during long-context prefill, unnecessary deep computation can be reduced.
    • Capacity on the output side: generation retains higher expressiveness.
    • Cache reuse: intermediate representations can be reused across requests or turns, reducing repeated computation.
    • Unified multimodal encoding: different modalities are first unified on the input side, then handed to the decoding side for generation.

    All of these benefits depend on the implementation. For example, unified multimodal encoding may reduce computation, or it may only change how modules are partitioned; that has to be confirmed by testing. Asymmetric activation also introduces new engineering issues. MoE routing may become imbalanced, batch requests may have very different input/output ratios, and cache consistency and precision need separate validation. Monitoring should therefore expand from aggregate throughput to metrics such as TTFT, TPOT, cache hit rate, and memory bandwidth utilization.

    Cache Sharing Granularity and How to Verify It

    Cache sharing reduces repeated computation, but it is not free. The granularity at which cache entries or intermediate representations are shared determines both the reuse rate and the cost of keeping the cache correct. For this reason, any claim about cache reuse should be validated with the same workload-oriented metrics used for prefill/decode asymmetry: TTFT, TPOT, cache hit rate, and memory bandwidth utilization, measured under the request composition the architecture is actually expected to serve.