Asymmetric Activation Architecture in Large Language Models: How Encoder-Decoder Splitting, Shared KV Cache, and Lookup-Based Memory Cut Agent Workload Costs

    This article breaks down the emerging asymmetric activation design in large language models and explains why it matters for agent workloads, which are characterized by long inputs and short outputs. It covers the shift from symmetric MoE routing to stage-specific activation budgets, how a causal encoder-decoder (CED) split projects a shared global KV cache from the encoder's last layer, two-level sparse indexing for attention, and lookup-table memory that separates recall from reasoning. It also proposes a multi-dimensional evaluation framework spanning latency, throughput, cost, and quality, notes the coupling between models and agent tooling, and lists practical deployment recommendations. Readers will gain a clearer basis for judging the real benefits of new model architectures.

    1. Where the Problem Starts: Agent Workloads Changed the Cost Structure

    Evaluating a large language model used to be mostly about single-turn answer quality and throughput. Agent applications changed the shape of the workload: a single task often begins by ingesting large amounts of code, logs, documentation, and prior trajectories, then produces a comparatively small set of edits and instructions. In other words, the pattern is “read long, write short.”

    This has two direct consequences:

    • The prefill stage now handles much longer inputs, so attention computation and KV Cache construction become the dominant cost.
    • The decode stage produces short outputs, but every step still carries the full history, so the per-token activation size determines end-to-end latency.

    That is why recent architectural work no longer chases “more parameters” alone. The focus has shifted to letting different stages carry different compute budgets. This is the core motivation behind asymmetric activation and encoder-decoder-style splitting.

    2. From Symmetric to Asymmetric Activation

    Conventional Mixture-of-Experts (MoE) models are symmetric: whether processing input or generating output, every token goes through the same routing and the same activation size. It is simple to implement, but it cannot distinguish the actual needs of the two stages.

    Asymmetric activation allocates budget by stage. Following the way it is commonly described in public material: as total parameter count grows, the number of parameters activated per token during prefill is lower than during decode. A setting such as roughly 8B activated on the input side and roughly 16B on the output side means:

    1. prefill: long context, single forward pass, fewer activated params -> lower ingestion cost
    2. decode : token-by-token generation, more activated params -> preserves generation quality

    The specific numbers are internal design choices that vary widely across models and versions, and should not be treated as a general standard. What transfers is the design principle: compress the one-off, parallelizable heavy computation, and keep ample capacity for the serial generation stage that shapes the user experience.

    3. How the Causal Encoder-Decoder (CED) Split Works

    Making asymmetric activation real requires corresponding changes to the network structure. One widely discussed approach splits the model along the layer dimension into two segments, forming a causal encoder-decoder structure:

    1. The lower half acts as the encoder. It works mainly during prefill, compressing lengthy context into a more compact representation.
    2. The upper half acts as the decoder. Generation runs primarily in this part.
    3. The global key-values are no longer built layer by layer inside the decoder from its own hidden states. Instead, they are projected directly from the hidden states of the encoder’s final layer.

    The third point is the efficiency lever. In a conventional structure, every layer maintains and reads its own set of global KV, so memory footprint and bandwidth pressure grow linearly with depth. With a shared projection, the context representation is more compact and cache overhead drops markedly in long-context scenarios.

    A simplified sketch (data flow only, not a real interface):

    1. # Pseudocode: the encoder's last layer projects the shared global KV
    2. enc_hidden = encoder(tokens) # compress long context
    3. shared_k, shared_v = project(enc_hidden) # shared by decoder layers
    4. for step in range(max_new_tokens):
    5. h = decoder_step(shared_k, shared_v) # decode mainly runs the upper half
    6. token = sample(h)

    4. Shared KV and Two-Level Sparse Indexing

    The attention mechanism is reorganized to match: previously separate attention variants are unified into a shared key-value cache, and a two-level sparse index is introduced. It first filters relevant context blocks at a coarse granularity, then performs fine-grained retrieval within a block. Attention cost therefore no longer grows quadratically with context length but approaches linear, while recall of critical fragments is preserved. For tasks like codebase Q&A and long-document localization, the quality of the retrieval “first hop” often affects the final result more than model size does.

    5. Decoupling Memory from Reasoning: Lookup-Style Memory

    Another important direction separates “the part that needs reasoning” from “the part that only needs recall.” The former is handled by the transformer network; the latter (local patterns, entity names, fixed collocations, common fragments) is retrieved through hash lookups. This is usually called memory augmentation or lookup-style memory, and its value is carrying high-frequency, low-compute-value patterns at very low compute cost, leaving precious parameters and activation budget for genuine reasoning.

    Engineering caveats come with the lookup: hash collisions, table size and hit rate, and consistency of memory updates. Evaluation should track hit rate and end-to-end latency together rather than a single metric.

    6. Performance Evaluation: Do Not Look at a Single Number

    The comparison given in the original discussion (generation speed rising from about 120 tokens/s to about 360 tokens/s, with total elapsed time and total token consumption both falling and cache hit rate staying above 99%) illustrates a methodological point: a single metric misleads. A recommended evaluation table structure:

    Dimension Metrics to observe Notes
    Latency Time to first token, time per token Reflect prefill and decode bottlenecks separately
    Throughput Tokens generated per second Must be compared at the same concurrency and context length
    Cost Input/output token consumption, cache hit rate Hit rate matters most in long-context scenarios
    Quality Task pass rate, manual spot checks Efficiency gains must not come at the cost of quality regression

    Cache hit rate is especially critical: once it reaches the 99% range, the marginal cost of repeated context is extremely low, which is the economic basis that makes multi-turn agent loops viable.

    7. Coordinated Optimization of Models and Toolchains

    An easily overlooked trend: model capability and the configuration of AI coding tools and agent frameworks are becoming deeply coupled. When the prompt templates, tool-calling formats, and context organization used in training and inference stay consistent, the model adapts to those configurations noticeably better. The practical recommendation is to evaluate “model, framework, and context strategy” as a whole during selection, instead of fixing the model first and reworking the framework afterward.

    8. Deployment Recommendations

    • Validate asymmetric-activation-style architectures first in agent scenarios with long inputs and short outputs.
    • Run load tests with real business context lengths; short samples lead to optimistic conclusions.
    • Monitor cache hit rate and GPU memory usage together, since both determine per-task cost.
    • If lookup-style memory is used, maintain a separate quality regression set to guard against memory contamination.
    • In platform environments such as Baidu AI Cloud, general capabilities like container platforms, object storage, log services, and monitoring and alerting can be combined to build a reproducible evaluation and observability pipeline.

    Summary: the point of this generation of architectural evolution is not “bigger” but “better at allocating” — allocating activation budget by stage, sharing context representations across layers, and separating reasoning from memory by value. Understanding these three threads makes it easier to judge the real payoff of new models with a clear head.