Rearchitecting LLM Inference: The Value and Limits of Asymmetric Computing
Asymmetric inference architectures separate prefill and token generation, potentially reducing unnecessary computation, cache pressure, or deployment costs. This article explains how prefill and decoding differ, where traditional architectures already permit selective computation, why cross-layer cache sharing can help, how asymmetric execution differs from sparse activation, and how to evaluate real-world latency, quality, resource usage, and cost.
1. Evaluate the Real Problem Before Judging an Inference Architecture
When a model claims to have more parameters, faster inference, and different computation paths for input and output, the key question is not “How can it have more parameters and still be faster?” The more useful questions are:
- Which computations are retained?
- Which computations are reused?
- Which computations are no longer necessary?
Parameter count, activated parameters per step, cache capacity, and actual response time describe different aspects of a system. A model with more parameters does not necessarily access all of them for every token. Conversely, activating fewer parameters does not guarantee faster serving. Memory access, device-to-device communication, batching strategies, and request queuing can all become decisive factors.
A complete evaluation should therefore follow this chain:
How model dependencies change → how the inference path changes → how system resources are consumed → how the user experience changes.
The value of an architectural redesign can only be validated step by step along this chain. Design highlights should not be treated as performance conclusions without evidence.
2. Prefill and Token Generation Are Naturally Different Workloads
2.1 Prefill: Processing the Existing Context
Prefill is the phase in which the model processes the sequence submitted by the user and builds the state required for subsequent generation.
For a typical autoregressive attention model, this phase usually includes two types of work:
- Computing the key and value states that must be retained for each layer, thereby creating reusable caches;
- Using the representation at the final input position to compute the probability distribution for the next token.
Because the complete input sequence is already available, computations across multiple positions can be organized in parallel under the causal constraint. As a result, prefill is generally more suitable for large matrix operations.
However, prefill is not always purely compute-bound. Context length, attention implementation, cache writes, and device configuration can all affect the actual bottleneck.
2.2 Token Generation: Continuously Reading Historical State
During token generation, each step usually adds only one or a small number of new tokens. The model must compute the state for the new position, read the historical cache, and produce the next prediction.
Under low-concurrency and small-batch conditions, generation is often more sensitive to weight loading, cache access, and execution scheduling overhead. As concurrency and batch size increase, the bottleneck may shift toward computation or communication.
This explains a common pattern: an optimization may significantly reduce time to first token without noticeably improving the speed of continuous output. Another optimization may increase overall throughput while increasing the wait time for an individual request.
Fast prefill, fast generation, and high overall throughput are related goals, but none can replace the others.
3. Traditional Architectures Already Support Limited Asymmetric Computation
Using different amounts of computation for input and output does not necessarily mean that a model architecture has been completely reinvented.
Consider a common autoregressive architecture that predicts tokens through a final linear output projection. If the task only requires predicting the next token after the input sequence, it is usually unnecessary to compute the complete vocabulary distribution for every input position. Only the final position needs to be processed by the output projection.
Dependencies within each layer may also provide opportunities for more fine-grained pruning.
In some common layer structures, the keys and values required by the final attention layer have already been generated before the layer’s feed-forward sublayer. If the final hidden states of earlier positions will not be used by any subsequent computation, the final feed-forward computation for those positions may also be unnecessary.
This conclusion depends on several conditions:
- The task only requires generating subsequent content and does not require probabilities for every position;
- The final hidden state for every input position is not required;
- The model’s specific layer structure matches the dependency pattern described above;
- The implementation supports selective computation instead of executing the complete operators anyway.
If the task is to calculate the likelihood of an entire text, score every position, or extract complete representations, these computations may not be removable.
This optimization illustrates an important principle: whether a computation can be skipped depends on whether its result is still consumed downstream, not simply on whether it belongs to the input or output phase.
In traditional architectures, such optimizations usually cover only a limited amount of computation near the output. Their actual benefit must therefore be measured rather than inferred solely from the architecture.
4. Why Cross-Layer Cache Sharing Can Increase the Benefits
Further reducing prefill overhead requires changing deeper computational dependencies rather than pruning only a small amount of work at the output end.
One general approach is to allow multiple downstream layers to reuse the same historical state, or to separate context-state construction from the computation that uses those states for prediction.
4.1 The Cost of Conventional Per-Layer Caches
In a common architecture, each attention layer stores its own historical key-value states. When generating a new token, every layer must access its corresponding historical cache.
Ignoring layout, sharding, and additional metadata, cache capacity can be roughly expressed as:
Cache capacity ≈ 2 × number of concurrent sequences × sequence length × number of cache layers × number of key-value heads × dimension per head × bytes per element
The factor of 2 represents keys and values.
This relationship shows that longer contexts, higher concurrency, and more cached layers all increase storage pressure. In real deployments, memory fragmentation, reserved capacity, quantization metadata, and distributed storage methods must also be considered.
4.2 Shared State Changes the Dependency Graph
If an architecture allows multiple layers to share historical state, the amount of cache that must be stored independently may decrease. If later components no longer need to maintain independent state for every historical position, the computation that prefill must traverse may also be reduced.
However, an important qualification is necessary:
Cache sharing does not automatically mean that all subsequent prefill computation can be skipped.
Pruning is valid only when later computation no longer depends on the omitted representations, or when those dependencies are fully handled by the shared state. If the model still needs to update downstream states position by position, the word “sharing” alone does not prove that any computation has disappeared.
At minimum, an evaluation should answer three questions:
- Which states are actually shared, and by which layers?
- Do the omitted intermediate results have any other consumers?
- Are the training objective and inference execution strategy aligned?
The architecture must be trained to support this organization of state. One cannot assume that the caches of an arbitrary existing model can simply be merged while preserving the original quality.
5. Asymmetric Computation Is Not the Same as Sparse Activation
The basic idea behind sparse expert architectures is to select only a subset of experts for each input instead of invoking every expert.
Sparse activation mainly answers the question, “How many expert parameters are accessed for each computation?” Different paths for prefill and generation answer a different question: “Which computation modules are executed during each phase?”
The two approaches can be combined, but they are not the same technology.
| Analysis dimension | Primary question | Conclusion that cannot be inferred directly |
|---|---|---|
| Total parameter count | How many trainable parameters does the model contain overall? | Each request must require more computation |
| Activated parameter count | How many parameters are involved in the current computation path? | Actual latency must be lower |
| Cache structure | How are historical states stored and accessed? | Weight memory usage must be lower |
| Phase asymmetry | Do input processing and generation use different paths? | Both phases will accelerate by the same amount |
| Scheduling strategy | How are resources shared across multiple requests? | The experience of every individual request must improve |
Distributed sparse computation can introduce additional communication, load imbalance, and overhead from small operators. Even if the theoretical computation decreases, end-to-end latency may not improve if data movement becomes more expensive.
“Fewer activated parameters” should therefore be treated as a clue about the computation structure, not as a substitute for a measured performance result.
6. How to Evaluate Architectural Optimizations Credibly
6.1 Measure Both Time to First Token and Continuous Generation
Time to first token should be measured from the moment a request enters the serving system. It should include queuing, input processing, and the first output, rather than measuring only internal prefill time.
The experience of continuous generation can be evaluated through the interval between adjacent output tokens and the total response time for a complete request.
If an optimization mainly targets long inputs, its benefit may be limited for short question-and-answer workloads. If it primarily reduces historical cache access costs, long outputs or high-concurrency workloads may deserve greater attention.
6.2 Use a Workload Matrix Instead of a Single Average
At minimum, testing should cover four workload types:
- Short input, short output: evaluates fixed overhead and interactive latency;
- Long input, short output: evaluates context-processing efficiency;
- Short input, long output: evaluates sustained generation capability;
- Long input, long output: evaluates combined cache and scheduling pressure.
Each workload should also be tested at different concurrency levels. Both median and high-percentile latency should be reported, since averages can hide a small number of severe tail-latency requests.
For cache-reuse scenarios, cold-start requests should be distinguished from requests that hit reusable state. Otherwise, the benefit of reuse may be mistaken for a general acceleration provided by the architecture.
6.3 Compare Cost Under Quality Constraints
Performance comparisons must be made at an acceptable quality level.
For long-context tasks, evaluation can include cross-section information extraction, evidence citation, and consistency with earlier constraints. For code tasks, compilation or execution results can be checked. For structured generation, evaluation can cover field completeness, format validity, and compliance with business rules.
A more business-relevant metric is:
Cost per valid task = total serving cost during evaluation ÷ number of tasks that meet acceptance criteria
Total serving cost may include more than model execution. Retries, output repair, timeout handling, and human review may also contribute. If an acceleration increases the error rate, lower apparent inference cost may not translate into an overall benefit.
7. Deployment Considerations: Less Computation Does Not Immediately Mean Lower Cost
7.1 Hardware Utilization Can Change the Result
A shorter execution path may reduce arithmetic operations, but it may also make individual tasks more fragmented. If the system cannot combine requests or organize operators effectively, device utilization may decline.
Shared caches also involve engineering trade-offs. They may reduce capacity requirements while introducing new data layouts, access patterns, and constraints on parallel partitioning.
Deployment validation should therefore monitor the following together:
- Compute-device utilization;
- Memory bandwidth and cache read/write volume;
- Device-to-device communication time;
- Request queuing time;
- Cache allocation failures and interrupted tasks.
7.2 Separating Input and Output Resources Requires Accounting for Transfer Costs
Because prefill and generation have different workload characteristics, they may be assigned to separate resource pools. This introduces costs for state transfer, connection maintenance, scheduling coordination, and failure recovery.
If large caches must be transferred, network overhead may offset the computational gains. Whether the phases should be separated depends on actual request lengths, concurrency, cache size, and network conditions. It should not be treated as a universally optimal design.
7.3 Preserve Fallbacks and Continuous Observability
For enterprise deployment, validation should begin with a small amount of traffic before coverage is expanded gradually. In addition to latency and throughput, teams should continuously monitor output quality, failure rates, and stability on long-context workloads.
If certain tasks degrade, the system should be able to fall back to another execution path or service configuration. This prevents an excessive focus on overall averages from undermining the reliability of critical workloads.
8. Building a Rational Technical Assessment
A redesigned inference architecture should neither be overstated because its concepts are novel nor dismissed because benchmark improvements are limited.
In the short term, an architectural change may first appear as lower cache pressure, more flexible resource allocation, or a foundation for later optimization rather than an immediate improvement across every workload. These potential benefits should still be described separately from gains that have already been validated.
A reliable evaluation ultimately depends on four dimensions:
- Mechanism credibility: The design clearly explains which computations and states have been reduced.
- Implementation effectiveness: Communication, scheduling, and memory-access overhead do not cancel out the gains.
- Controlled quality: Critical tasks meet clearly defined acceptance criteria.
- Business value: Under target workloads, the design improves the cost of valid tasks and the user experience.
The core of LLM inference optimization is not making every phase execute the same complete process. It is ensuring that every unit of computation serves a necessary result. This perspective makes it possible to understand the real value and limits of asymmetric computing beyond parameter counts and promotional speed claims.
