Rethinking LLM Inference Architecture: The Value and Limits of Asymmetric Computation
Evaluating a redesigned LLM inference architecture requires more than parameter counts, benchmark scores, or raw generation speed. This article separates the distinct workloads of prefilling and decoding, examines where traditional and redesigned architectures can exploit computational asymmetry, and explains how shared KV caches and sparse activation change the trade-offs among storage, computation, and representation quality. It also outlines how to validate multimodal claims independently and how to design reproducible tests that cover input/output length combinations, latency, throughput, memory, cache conditions, and cost per valid result. The conclusion is practical: architecture upgrades should be judged by whether they organize dependencies and resources more effectively under real workloads, with clear boundaries for quality, stability, and deployment complexity.
1. Evaluating Architecture Upgrades: Move Beyond “Bigger Parameters Is Better”
When discussing progress in large language models, people often focus first on parameter scale, task scores, and generation speed. However, these metrics reflect different aspects of capability and cannot substitute for one another.
Total parameter count mainly describes the scale of parameters stored by the model. How many parameters are actually used in each computation depends on model structure and routing mechanisms. Serving latency is also affected by input length, output length, concurrency, cache hit rate, hardware resources, and other factors. A model with more total parameters does not necessarily perform more computation at each generation step. A model that is faster in offline tests does not necessarily maintain lower tail latency under high-concurrency production workloads.
Therefore, when evaluating inference architecture redesign, more meaningful questions are:
- Do the input stage and output stage carry different computational tasks?
- Which intermediate results need to be retained, and which computations can be avoided?
- Has a more reasonable division of labor been achieved among parameters, cache, and compute resources?
- Can architectural benefits be realized under real production workloads?
- Do performance gains come with costs in quality, stability, or deployment complexity?
When verifiable technical reports and test conditions are missing, parameter numbers, speed claims, or capability descriptions from discussions should not be treated directly as facts. A more reliable approach is to extract the general technical questions, then establish conclusions through structural analysis and reproducible experiments.
2. Prefill and Decode Are Not the Same Work
Inference for autoregressive language models is usually divided into two stages: prefill and decode.
1. Prefill: Processing Existing Context
The prefill stage receives the input sequence already provided by the user, computes representations for each layer, and builds the key-value cache needed for subsequent generation. Because the input content is already determined, many position computations can be executed in large matrix operations in batches.
For a typical causal self-attention structure, the main tasks of prefill include:
- Transforming the input sequence layer by layer;
- Generating the keys and values needed for subsequent attention computation;
- Computing the probability distribution of the next token based on the final representation of the last input position.
Long-document understanding, long conversation history, and large amounts of reference material input often significantly increase the workload of this stage.
2. Decode: Generating Step by Step from Existing Context
The decode stage usually generates one new token at a time. The model reads the existing cache, computes the representation of the new position, updates the cache, and then predicts the next token.
Within the same sequence, the input to the next step depends on the generated result of the previous step, so the output process has a natural sequential dependency. Serving systems can process multiple requests in parallel through batching, but this does not remove the dependency within a single sequence.
This leads to a key fact: prefill is usually easier to accelerate with large-scale batch operations, while decode is more likely to be affected by weight reads, cache access, batch size, and scheduling efficiency. The actual bottleneck of each stage needs to be measured, not generalized.
3. Traditional Architectures Also Contain Exploitable Asymmetry
Even without adopting a new architecture, prefill and decode are not completely symmetric.
In a common sequential decoder structure, each layer usually contains an attention sublayer and a feed-forward network. The key-value cache of a given layer is computed from that layer’s corresponding input representations, not from the model’s final vocabulary output.
When a request only needs to continue generation and does not need to return prediction probabilities for every input position, the output projection typically only needs to be applied to the last input position. Computing the full vocabulary distribution for other input positions does not help predict the first new token.
Under certain sequential structures, one can further consider skipping feed-forward computation in the final layer for input positions other than the final one: the final-layer key-value cache for those positions has already been built, and there is no higher layer that needs their final outputs.
However, this optimization has clear preconditions:
- The computation order within the layer must satisfy the relevant dependencies;
- The service does not need the complete final representations or prediction probabilities for every input position;
- The optimization must not affect the required cache construction;
- The implementation must be consistent with the specific model structure.
In particular, “the final layer can skip part of its computation” must not be generalized into “the feed-forward networks of all layers can be omitted.” The feed-forward output of lower layers usually participates in generating higher-layer representations and caches, and skipping it arbitrarily changes the model’s computation results.
The overall benefit of this type of optimization may also be limited, because it only covers part of the total computation and may be constrained by operator implementation and the actual bottleneck.
4. Asymmetric Architectures Reorganize Dependencies
Further architectural redesign is not just about deleting a few operators. It is about giving “processing context” and “generating answers” clearer and different responsibilities.
A general approach is for some computation modules to build reusable context representations, and for later modules to read those representations during generation. If multiple modules can use shared caches, it may be possible to reduce repeated cache construction and storage.
The logical value is that prefill only needs to complete the computations that later generation actually depends on, rather than mechanically executing every output-oriented computation path.
However, this design is not a runtime switch that ordinary models can apply at will. It usually requires the model structure and training stage to support the relevant information-passing method.
1. Why Cache Sharing May Reduce Resource Requirements
The storage size of a common key-value cache can be roughly expressed as:
Cache size ≈ 2 × number of cached layers × sequence length × number of KV heads × dimension per head × bytes per element.
The coefficient 2 corresponds to keys and values. This is only a simplified estimate; actual memory usage is also affected by batch size, cache precision, allocation method, and extra metadata.
When some layers share a context cache, the number of layers that independently store caches may decrease. For long-context and high-concurrency serving, this saving may matter more than a small reduction in computation, because cache directly affects how many requests can be held simultaneously.
2. Shared Caches Are Not Cost-Free
Different layers usually have different representation requirements. Shared caches may require additional projection, adaptation, or read computation, and may also change how the model uses contextual information.
Therefore, the following should be checked at the same time:
- Whether long-distance information can be reliably retained;
- Whether multi-step reasoning and detail extraction degrade;
- Whether added adaptation computation offsets part of the benefit;
- Whether, for long outputs, reading shared representations on the generation side becomes a bottleneck.
Cache sharing is essentially a reallocation of resources among storage, computation, and representation capability, not a free performance improvement.
5. Sparse Activation Requires Three Distinct Metrics
Sparse models usually use only some experts or parameter modules in each computation. When analyzing this structure, at least three metrics should be distinguished: total parameter count, activated parameter count, and actual operation count.
1. Total Parameter Count: Describing Full Model Scale
It affects weight storage, model loading, and distributed deployment requirements, but cannot directly represent the computational cost of a single inference.
2. Activated Parameter Count: Describing the Parameter Range Involved in a Computation
If the input and output stages use different computation paths, their activated parameter counts may differ. When reporting this metric, however, it is necessary to state whether shared modules, attention modules, embedding layers, and output layers are included; otherwise, data under different definitions cannot be compared directly.
3. Actual Operation Count: Also Depends on Sequence and System Behavior
The same set of weights may be reused over different numbers of tokens; attention computation also varies with context size. Therefore, fewer activated parameters do not necessarily mean shorter latency.
Sparse structures also involve expert routing, load balancing, and cross-device communication. If some experts are too busy, or if communication cannot overlap effectively with computation, the theoretical computational advantage may be offset by system overhead.
When judging performance, measure both “how much computation was saved” and “what extra work the system did to achieve it.”
6. Multimodal Capability Cannot Be Inferred from Inference Efficiency
Processing different modalities such as text, images, and audio is another dimension that requires independent validation.
Supporting multimodal input usually involves modality encoding, representation alignment, training data coverage, and task adaptation. It may overlap with prefill optimization in engineering terms—for example, representations converted from images or audio add context-processing load—but the two cannot prove each other.
Multimodal evaluation should at least clarify:
- Which input types are supported and what their limits are;
- Whether additional modality encoding computation is required;
- Whether cross-modal information truly participates in inference;
- Whether the model is robust to small text, complex layouts, noise, and temporal order;
- Whether modality processing increases time to first token and memory footprint.
One cannot infer stronger multimodal capability just because text generation becomes faster; nor can one assume that a specific shared mechanism is used internally just because multiple input types are supported.
7. How Developers Should Design Reproducible Validation
Whether an architecture has value ultimately comes back to real workloads. Tests should cover both quality and serving performance, not just show an average speed.
1. Use a Two-Dimensional Combination of Input and Output Lengths
At least four scenarios should be covered:
- Short input, short output: observe basic scheduling and lightweight interaction;
- Long input, short output: focus on prefill benefits;
- Short input, long output: focus on step-by-step generation efficiency;
- Long input, long output: test cache capacity and sustained generation stability.
Actual token counts should be recorded, not just character counts. For multimodal tasks, the input scale and processing method should also be described separately.
2. Measure Latency, Throughput, and Resources Together
Key metrics include:
- Time to first token;
- Time between adjacent output tokens;
- End-to-end request completion time;
- Overall system throughput;
- Median and high-percentile latency;
- Weight, cache, and peak runtime memory;
- Error rate, timeout rate, and queue waiting time.
Average values can hide congestion. If a small number of requests wait for a long time, even high overall throughput may fail to meet interactive business requirements.
3. Separate Different Cache Conditions
Full computation, a public prefix cache hit, and reuse of an existing session cache should be tested separately. Otherwise, speedups from cache hits may be mistaken for advantages of the model architecture itself.
Tests should also fix or clearly record hardware conditions, compute precision, parallelism, concurrency level, and output settings to avoid mixing multiple changes in one comparison.
4. Include Valid Results in Cost Accounting
Faster output is not necessarily more economical if it leads to more errors, retries, or manual review.
For enterprise applications, a metric closer to the business can be used:
Cost per valid result = total operating cost ÷ number of results meeting quality standards.
Quality standards should be determined by the task, such as information extraction accuracy, structured output completeness, calculation correctness, or code test pass rate. Test sets should be independent of prompt tuning to avoid overly optimistic evaluation.
8. Enterprise Deployment: Architecture and Scheduling Must Be Optimized Together
Prefill and decode have different resource profiles, so serving systems can consider managing the two workloads separately. For example, limit the number of long-input requests entering prefill at the same time so they do not crowd out interactive requests that are generating.
When conditions are suitable, separated scheduling can also be used so that different resource pools handle different stages. But separation is not necessarily better: cache transfer, network communication, state management, and failure recovery all add cost. It is worth adopting only when stage-level benefits exceed these additional overheads.
In addition, the following supporting mechanisms are needed:
- Set capacity and concurrency limits for long-context requests;
- Enforce permission isolation for cache reuse to prevent cross-user information leakage;
- Monitor resource consumption and queue time at different stages;
- Conduct offline regression tests and small-traffic validation before upgrades;
- Prepare fallback paths for abnormal latency, resource exhaustion, and quality regression.
Pricing changes should not be attributed simply to architecture changes. Hardware utilization, service demand, operations investment, and capacity strategy can all affect service cost. Without reliable data, these factors should be treated as variables to verify rather than given definitive business explanations.
9. Conclusion: A Good Architecture Upgrade Should Allocate Resources More Rationally
The core of evaluating LLM inference redesign is not version numbers, parameter scale, or a single benchmark score, but whether it organizes computational dependencies more rationally.
Prefill and decode already differ. Traditional structures can remove limited redundancy; deeper structural designs may enlarge the benefits of this difference by sharing context representations, reducing independent caches, and using different computation paths.
Any benefit, however, should come with clear boundaries: which tasks it applies to, what test conditions are used, whether it saves computation or storage, and whether it introduces quality or operational costs.
For developers and enterprises, the solution worth adopting is not the most complex architecture on paper, but one that, under real workloads and with acceptable deployment complexity, continuously delivers acceptable results while reducing end-to-end time and effective task cost.
