Asymmetric Activation and Prefill-Decode Disaggregation: New Directions in LLM Inference

    Large language model inference is shaped by the fundamental asymmetry between Prefill and Decode, and by emerging architectures that allocate compute differently across these stages. This article explains why the two phases have different bottlenecks, how asymmetric activation decouples input-side and output-side compute, what Prefill-Decode (PD) disaggregation requires in practice, and what engineering teams should measure before adopting these designs. It also covers common deployment mistakes and a practical checklist for evaluating cost, latency, and pricing.

    1. Computational Asymmetry Between Prefill and Decode

    Autoregressive generation models run inference in two stages. The Prefill stage processes the entire user input at once, builds the KV Cache, and predicts the first output token. The Decode stage generates tokens one at a time, with each step reading the accumulated KV Cache from all previous tokens.

    The two stages have different computational profiles. Prefill processes many tokens in parallel, so it is compute-bound. Decode handles only one new token per step, so parallelism is low and performance is dominated by memory bandwidth and memory access latency. This difference is the starting point for PD disaggregation—deploying Prefill and Decode as separate pools of instances.

    In a standard GPT-style architecture, Prefill has one more exploitable detail. Every layer computes K and V for all positions and writes them to the cache, but only the last position’s output is used to predict the next token. Therefore, the MLP of the final layer is useless for all non-final positions and can be skipped. The LM Head (output projection layer) also only needs to be computed for the last position. Sketch code:

    1. def prefill(tokens):
    2. hidden = embedding(tokens) # shape: [n, d]
    3. for layer in layers[:-1]:
    4. hidden = layer(hidden) # compute all positions and write KV Cache
    5. # Last layer: compute K/V for all positions and write to Cache
    6. k, v = last_layer.project_kv(hidden)
    7. cache.write(k, v)
    8. # Only the last position needs Query, attention output, MLP, and LM Head
    9. h_last = last_layer.attend_last(hidden[-1], k, v)
    10. logits = lm_head(h_last)
    11. return cache, logits

    Under a standard architecture, the benefit of this optimization is limited. What is skipped is only one MLP layer and one vocabulary projection, and their share of the total forward computation depends on the number of layers, hidden dimension, and vocabulary size—usually not large. To gain a meaningful benefit, the architecture itself needs to separate cache construction from output prediction, so that Prefill’s main computation ends once the last layer’s cache is built.

    2. Asymmetric Activation: Different Compute Paths for Input and Output

    Traditional MoE (Mixture of Experts) models use the same activation path for both input and output. The number of experts activated and the amount of parameters used per token are fixed, regardless of whether the token is in the input stage or the output stage.

    Asymmetric activation lets the two stages use different activation scales. One design direction looks like this:

    1. Activate fewer parameters on the input side. Prefill’s goal is to build high-quality cache representations. Since many tokens are processed in parallel, per-token compute can be reduced, with cost amortized through parallel throughput.
    2. Activate more parameters on the output side. In Decode, every output token directly affects generation quality. Only one token is processed per step, compute utilization is low, and latency is sensitive. Assigning more activated parameters to output tokens trades a small amount of compute for stronger single-step generation.

    The core of this design is allocating compute by stage: the input stage optimizes for throughput, while the output stage balances quality and latency.

    Three caveats apply in practice. First, asymmetric activation is a structure fixed at training time—inference frameworks cannot switch it arbitrarily at deployment. Second, it depends on specific training methods and routing designs, and implementations vary considerably across vendors. Third, the benefit depends on the ratio of input tokens to output tokens in your workload, so different applications gain to different degrees.

    3. How to Think About This Kind of Architectural Evolution

    Architecture-level changes carry higher risk than routine iterations. A major redesign means training cost, evaluation cost, and ecosystem compatibility all need to be reassessed. Iterations that merely refresh benchmark scores carry lower risk, so vendors are not necessarily eager to pursue architectural redesigns.

    For users, this type of design may bring three changes:

    • Cost: once activated parameters are decoupled from total parameters, per-inference compute is determined mainly by activated parameters, weakening the link between serving cost and total parameter count.
    • Latency: asymmetric PD design targets the Decode-stage bottleneck and may improve time-to-first-token and generation speed. The actual improvement must be measured on your target workload.
    • Pricing: some vendors use dynamic pricing that varies by time of day, similar to peak and off-peak electricity rates. Always rely on the vendor’s latest published price list, and do not assume fixed discounts.

    Public discussions have mentioned cases where a new version greatly increased total parameter count while achieving faster inference. Such claims usually lack test conditions and measurement methodology—treat your own test results as the source of truth.

    4. Implications for Engineering Teams

    How to Deploy PD Disaggregation? What Are the Common Mistakes?

    PD disaggregation means placing Prefill and Decode in separate instance pools, each scaling independently. The benefit depends on three conditions: the inference engine must support disaggregated deployment, the KV Cache must be transferable efficiently between instances, and the scheduler must route requests correctly to the two pool types. If any one is missing, disaggregation will actually increase latency.

    Common mistakes include:

    • Trusting an engine’s marketing metrics without measuring KV Cache transfer time.
    • Insufficient network bandwidth, making cache transfer the bottleneck.
    • Uneven request length distributions, leaving one instance pool chronically idle.
    • Applying single-node deployment experience instead of setting separate targets for time-to-first-token and throughput.

    Before deployment, check against this list:

    • Record time-to-first-token (TTFT) and output tokens per second (throughput), comparing co-located deployment against disaggregated deployment.
    • Record the share of total latency spent on KV Cache transfer.
    • Load-test with the request length distribution of your target workload, not just fixed-length samples.
    • Calculate the total cost after disaggregation, including extra instances and network overhead.

    When rolling out, prioritize the following four points:

    1. Evaluate whether your inference engine supports PD disaggregation and independent scaling. Low-traffic services may not be able to amortize the extra overhead—don’t force it.
    2. Offline batch tasks (such as data labeling or document summarization) can be scheduled during off-peak hours. If your vendor offers dynamic pricing, schedule accordingly.
    3. When selecting a model, focus on activated parameters rather than total parameters. Activated parameters are a closer proxy for per-inference compute, but still validate with real latency and throughput tests.
    4. Build a regression test set. Underlying architecture changes may alter output behavior, so compare key use cases before and after version upgrades.

    5. Conclusion

    From symmetric to asymmetric activation, model architectures are starting to allocate compute by inference stage. This makes the relationship between inference cost and model size more complicated, and engineering teams need a clearer picture of their own workload characteristics.

    Several limitations remain. Asymmetric architectures are expensive to train, and designs differ significantly across models. Cache sharing and PD disaggregation are still evolving in most inference engines, and the adoption of dedicated inference hardware remains uncertain. Until these conditions are clear, base your selection and cost decisions on measured data—not on architectural concepts or marketing numbers.