Asymmetric LLM Inference Architectures: Principles and Engineering Evaluation

    Asymmetric design in LLM inference separates the compute paths for prompt processing and token-by-token decoding. This article explains where conventional causal attention already permits local pruning, how cache sharing can change dependency boundaries, why activated parameter counts do not predict latency, and how to evaluate TTFT, inter-token latency, quality, and cost per successful task under realistic workloads.

    1. Evaluating Inference Architectures Requires Separating Input and Output

    When discussing LLM inference efficiency, parameter scale and generation speed often attract attention first. But “more parameters” and “faster speed” alone cannot show what an architecture actually optimizes, much less whether it fits a given business workload.

    A more useful question is: must the model perform exactly the same computation when reading input and when generating output? If the two phases carry different tasks, can unnecessary work be reduced in one of them?

    This is the core of asymmetric design in the inference phase.

    A typical autoregressive inference run can be divided into two phases:

    • Input preprocessing phase: process the prompt in parallel, build the attention key-value cache needed for later generation, and compute the probability distribution for the first output token.
    • Step-by-step decoding phase: using the existing cache, process one new token at a time, predict the next token, and update the cache.

    A token here is the basic unit of text processed by the model; it does not necessarily correspond to a complete word or character.

    Both phases may pass through similar network layers, but their tasks, data shapes, and hardware execution patterns are not the same. Understanding asymmetric architectures therefore starts with computational dependencies, not with advertised parameter numbers.

    2. Conventional Architectures Already Have Phase Differences

    2.1 The Input Phase Does Not Need to Generate Answers for Every Position

    Take a common causal attention model as an example. Each position produces keys and values for later attention. Inference systems usually store these results as an attention key-value cache so that generating a new token does not require reprocessing all historical content.

    Suppose the prompt contains multiple tokens. The system only needs the final representation at the last prompt position to compute the probability distribution for the first output token. The output probabilities at earlier positions are usually not required to generate the first answer.

    Therefore, in scenarios that only require generation and do not require returning probabilities for every prompt position, the output projection does not need to be executed for all input positions.

    Further, in a common structure where an attention sublayer is followed by a feed-forward sublayer, the KV cache for the last layer has already been produced by the input representation required by that layer’s attention. For non-final positions, the feed-forward result of the last layer neither enters the next layer nor is used for output prediction, so there is an opportunity to skip this work.

    But this conclusion has clear prerequisites:

    • Data dependencies within the model layers allow such pruning.
    • The task does not require final representations or probabilities for all input positions.
    • The inference implementation supports the corresponding optimization.
    • No other auxiliary computation must consume these results.

    So the accurate statement is not “the input phase naturally runs one less network,” but “some terminal computations are unnecessary in specific tasks and can be pruned at the implementation level.”

    2.2 Most Intermediate Layers Still Cannot Be Omitted

    The fact that a feed-forward network does not directly write to the current layer’s cache does not mean the input phase can skip all feed-forward layers.

    The feed-forward output of an intermediate layer usually participates in constructing the input representation for the next layer, and the next layer needs those representations to generate its own keys and values. Removing these intermediate computations would change later caches and therefore change model behavior.

    This dependency chain can be summarized as:

    Current layer representation transform → next layer input → next layer KV cache.

    Local savings in conventional architectures mainly occur at the end of the computation chain, not at arbitrary intermediate positions. As a result, the benefit is usually limited by the share of prunable computation in the whole inference run and cannot be directly translated into a large speedup.

    3. Why Cache Sharing May Amplify Asymmetric Benefits

    3.1 The Key Is Changing the Cache Dependency Boundary

    In architectures that maintain an independent KV cache for each layer, the input phase must perform sufficiently complete computation to prepare the caches needed for later generation at every layer.

    Another design approach is to let some later layers use shared historical representations or a shared cache instead of building an independent historical key-value set for each layer.

    In this way, the input phase may no longer need to execute deeper generation computation for all input positions after completing a certain cache-construction boundary. The step-by-step decoding phase then continues to use these caches and a more complete computation path to generate the answer.

    The essence of such schemes is not “turning the input phase into lossless compression,” but changing the model’s information flow and cache organization so that the two phases can use different computation scopes.

    Two cases need to be distinguished:

    • Implementation optimization: does not change the original model semantics and only removes computation that the task does not need.
    • Architecture optimization: redesigns network dependencies and cache usage and requires validation through training or adaptation.

    The former is mainly an execution-efficiency issue. The latter also involves model capacity, training stability, and inference quality.

    3.2 Cache Sharing Is Not Free Cache

    Cache sharing may reduce duplicate storage, but it does not eliminate the cost of accessing historical information.

    If multiple layers repeatedly read the same cache, actual efficiency also depends on:

    • Cache organization and access contiguity.
    • Historical sequence length.
    • Number of reads and data movement volume.
    • Whether computation and memory access can overlap effectively.
    • Cache management under concurrent requests.

    Therefore, a drop in cache size does not necessarily mean a proportional drop in latency. For long-context and high-concurrency services, memory bandwidth, cache scheduling, and the lifetime of intermediate tensors may all become new bottlenecks.

    4. Do Not Equate Activated Parameters with Inference Speed

    4.1 Total Parameters, Activated Parameters, and Execution Cost Are Different Metrics

    Total parameter count describes how many parameters a model contains. Activated parameter count usually indicates how many parameters are actually used in one computation. For conditional routing structures, the two can differ greatly.

    But “how many parameters are used” is still not a complete performance model. Inference cost also includes:

    • Attention computation and historical cache reads.
    • Conditional routing and data reordering.
    • Communication between devices.
    • Data movement for weights and intermediate results.
    • Scheduling, synchronization, and output sampling.

    Even if the input and output phases have different activated parameter scales, their latency ratio cannot be inferred from that proportion alone.

    Before comparing related numbers, confirm whether the measurement definitions are consistent: whether embedding and output projection are included, whether shared modules are counted, whether the figure is per token, and whether input processing and decoding are measured separately.

    4.2 Parallel Input and Serial Generation Have Different Bottlenecks

    The input phase can process multiple positions at the same time, often forming larger matrix operations and improving hardware utilization.

    Step-by-step decoding has a sequential dependency: the next token usually cannot be processed until the current token has been produced. At low concurrency, each computation is smaller, and the cost of reading weights and caches may become more prominent.

    As a result, the same optimization can show completely different benefits in the two phases:

    • Reducing input computation may mainly improve first-token latency.
    • Reducing decoding memory access may mainly improve per-token generation speed.
    • Reducing cache occupancy may mainly increase the concurrency the system can support.

    All these benefits matter, but they should not be mixed into a single “overall speed improvement.”

    5. Building Credible Performance Evaluation

    5.1 Measure TTFT and Generation Latency Separately

    From the user’s perspective, at least three metrics should be distinguished:

    Time to first token (TTFT): the time from when a request is sent to when the first output token is returned. It includes queueing, input processing, and some transfer overhead.

    Inter-token latency: the time interval between consecutive output tokens, which better reflects whether streaming generation is smooth.

    End-to-end latency: the time from request submission to the end of the complete response, affected jointly by input length, output length, and scheduling policy.

    A simplified relationship is:

    Total response time ≈ queueing time + input processing time + step-by-step decoding time + other system overhead.

    If business answers are short, input optimization may significantly affect total latency. If the business needs to generate long content, decoding speed is usually more important.

    5.2 Tests Must Cover Real Workloads

    At a minimum, cover the following scenarios:

    Scenario Main metrics Common bottlenecks
    Short input, short output TTFT, request throughput Scheduling and fixed overhead
    Long input, short output Input processing time, peak GPU memory Input computation and cache construction
    Short input, long output Inter-token latency, total generation time Decoding and weight reads
    Long input, long output Total latency, cache occupancy History access and sustained generation
    High-concurrency mixed workloads Tail latency, completion throughput Resource contention and batching

    Tests should fix or record hardware, precision, input and output lengths, concurrency level, batching strategy, and cache reuse conditions. Otherwise, two sets of results may differ only because of runtime conditions, not because one architecture is better than another.

    Average latency is also insufficient. Production systems should also watch high-percentile latency so that a small number of slow requests are not hidden by the average.

    5.3 Verify That Quality Is Not Obscured by Cost Metrics

    Architecture changes alter how historical representations are constructed and used. Whether this affects capability must be measured independently.

    Quality validation should cover:

    • Information localization and multi-evidence integration in long documents.
    • Multi-step reasoning and constraint following.
    • Stability of structured output.
    • Consistency across long conversations.
    • Task success rate for real business workloads.

    If multimodal input is involved, encoding cost, input representation length, and cross-modal information utilization quality should be accounted for separately. Text-scenario speed results cannot be directly generalized to all input types.

    6. From Architectural Benefits to Production Benefits Requires System Coordination

    6.1 Plan Input and Decoding Resources Separately

    The two phases have different load characteristics, so a system can consider different batching and resource scheduling strategies for them.

    The input phase focuses more on large-scale parallel computation and TTFT. The decoding phase focuses more on stable output, cache capacity, and sustained throughput.

    However, placing the two in different resource pools also introduces cache transfer, request handoff, failure recovery, and resource imbalance issues. The approach has practical value only when the benefit of phase separation exceeds the added overhead.

    6.2 Cache Reuse Must Balance Correctness and Isolation

    Repeated system prompts or document prefixes may have cache reuse value. But effective reuse requires compatibility in content, token sequence, position handling, model version, and related inference configuration.

    Enterprise environments must also ensure data isolation between tenants and handle cache expiration, permission changes, and the lifecycle of sensitive information.

    Cache hit rate can be a performance metric, but it cannot take priority over data security and result correctness.

    6.3 Measure Commercial Value with Cost per Effective Task

    A lower cost per request does not necessarily mean higher business efficiency. If generation quality drops and causes more retries, manual review, or process failures, overall cost may instead increase.

    A more reasonable metric is:

    Cost per effective task = total resource cost required to complete the business task ÷ number of successfully completed tasks.

    Evaluation should include request success rate, output validity rate, retry count, and human intervention ratio, rather than comparing only per-token cost or peak throughput.

    7. Conclusion: Asymmetric Inference Deserves Attention but Requires Layered Judgment

    Asymmetric inference is not a new phenomenon that appeared from nowhere. Conventional causal attention architectures already allow some terminal input computation to be skipped under specific conditions. Deeper optimization expands the range of computation that can be reduced in the input phase by changing how caches are built and used.

    To judge such designs, answer three questions in order:

    First, have computational dependencies really changed? Which work is removed, and which work is merely moved elsewhere?

    Second, do the reduced computation or storage requirements correspond to the main bottlenecks in the current workload?

    Third, while maintaining task quality and system reliability, can the benefits be reliably reflected in latency, concurrency capacity, and cost per effective task?

    For developers and enterprise users, the most reliable selection method is not parameter scale or a single speed number, but joint validation of performance, quality, and cost using real business workloads under unified conditions. Only after passing these three checks does architectural innovation become usable engineering value.