A Deep Dive into Asymmetric Activation Architectures for LLMs
This article breaks down the emerging asymmetric activation architecture for large language models, explaining how splitting the network into a causal encoder and a decoder allows prefill and decode stages to activate different parameter scales. It covers the mechanism behind shared key-value caching, the engineering trade-offs of asymmetric activation, lookup-based memory pathways, and a practical evaluation framework based on end-to-end latency, throughput, cache hit rate, and cost per task. Readers will also find deployment recommendations and risk considerations for long-context, tool-heavy agent workloads.
1. From Symmetric to Asymmetric Activation: A Structural Shift
Once long-context and agent workloads became mainstream, the “symmetric input-output activation” of traditional Mixture-of-Experts (MoE) models began to show structural waste. The prefill stage processes thousands of prompt tokens, while the decode stage generates only a few tokens at a time. The two stages have inherently different demands on parameters and memory bandwidth. The new approach splits the network along the depth dimension into a causal encoder and a decoder, so each stage activates a different parameter scale: prefill only runs the lower half, and decode mainly runs the upper half. As a result, total parameter count goes up while generation speed also increases.
It is worth emphasizing that this design is not about “making the model smaller,” but about “spending compute where it matters.” Understanding this is the premise for all the performance judgments that follow.
2. How the Causal Encoder–Decoder Split Works
A helpful (though not fully precise) abstraction is:
Input token sequence↓[Lower layers: Causal Encoder] Runs only during prefill; compresses long context into a compact representation↓ Projection from final hidden states[Upper layers: Decoder] Runs mainly during decode; produces token-by-token output
The key difference lies in the source of the global key-value cache. In a traditional stacked structure, every layer builds its own global key-value set from its hidden states. In the split structure, the decoder layers can directly reuse projections of the encoder’s final hidden states, making the global context more compact and eliminating the overhead of repeated construction. A more compact context representation directly reduces cache usage and memory access pressure. Since decoding is a memory-bound process, this explains the counterintuitive phenomenon of “more parameters but faster.”
3. Engineering Implications of Asymmetric Activation Parameters
The following illustrative configuration shows the magnitude relationships (used only to explain proportions, not to represent any specific product parameters):
| Dimension | Traditional Symmetric Activation | Asymmetric Activation |
|---|---|---|
| Total parameters | Smaller | Significantly larger |
| Prefill activation | Same as decode | Roughly half of decode |
| Decode activation | Same as prefill | Higher, but with more compact context |
| Target workload | General conversation | Long-read, short-write, tool-call intensive |
Agent scenarios that “read a lot but write less” often take tens of thousands of input tokens but only a few thousand output tokens. Lowering the prefill activation scale is equivalent to discounting the most expensive part of the computation, while the saved capacity is used to improve the model’s memory and expressive power. This is the significance of asymmetric design on the cost curve.
4. Decoupling Memory and Reasoning: A Lookup-Style Memory Pathway
Another main thread is separating “the part that needs reasoning” from “the part that only needs memory.” The former is handled by attention and expert networks. The latter includes local collocations, entity names, fixed phrasing, and other patterns that have low computational value but require substantial storage, accessed via hash lookup. Engineering practice usually focuses on three points:
- Hash collision rate and bucket count, which determine the memory capacity ceiling;
- The fusion position and scaling coefficient of lookup results, which affect training stability;
- The parameter ratio between the memory table and the backbone, which determines memory and bandwidth allocation.
This pathway is often paired with attention modifications: after reorganizing attention into shared key-values plus a two-level sparse index, the first-level index handles coarse-grained block filtering, and the second level performs fine-grained localization within candidate blocks, reducing long-context retrieval complexity from linear scanning to near-logarithmic filtering.
5. Performance Evaluation: Don’t Look at a Single Metric
When evaluating this type of architecture, cover at least four dimensions and cross-validate them under the same workload:
- End-to-end total time: including queuing, prefill, and decode;
- Token throughput: record prefill and decode rates separately to avoid averages hiding bottlenecks;
- Cache hit rate: a high hit rate can significantly change the cost structure and should be reported separately;
- Cost per task: measured by “completing one business task,” not price per million tokens.
Illustrative benchmark skeleton:
def bench(model, prompts, max_new_tokens=512):for p in prompts:t0 = time.perf_counter()out = model.generate(p, max_new_tokens=max_new_tokens)dt = time.perf_counter() - t0in_tok = count_tokens(p)out_tok = count_tokens(out)report.append({"prefill_tok_s": in_tok / dt, # rough upper bound"decode_tok_s": out_tok / dt,"cache_hit": model.last_cache_hit_rate(),"total_s": dt,})
In workloads with repeated long-context reads, encoder compression combined with shared caching typically delivers a several-fold increase in decode throughput, with community measurements often in the range of hundreds of tokens per second. However, these numbers depend heavily on context length, hit rate, and batching strategy, so cross-scheme comparisons must fix the variables.
6. Coordinated Optimization of Models and Toolchains
When model training is deeply coupled with an AI coding toolchain, the model is specifically optimized for tool-call formats, long-file retrieval, retry behavior, and other concrete configurations. A practical recommendation is to include the toolchain version in the regression test matrix, because changes to the toolchain’s prompt templates or retrieval strategy can significantly alter cache hit rates and activation distributions, causing the same model’s measured performance to fluctuate widely.
7. Deployment Recommendations and Risk Notes
- Prioritize scenario fit: try asymmetric activation for long-read, short-write, multi-turn tool-call scenarios; gains are limited for short-input, short-output cases.
- Get caching right first: improving prefix stability and reuse is often more cost-effective than switching models.
- Validate in layers: start with small-scale offline evaluation, then canary load testing, and finally assess cost per task.
- Risks: the maturity of operator and inference-framework support for the new architecture, the recall stability of sparse indexes, and the update and rollback mechanisms of lookup memory all require monitoring alerts and fallback switches before launch.
Overall, the core contribution of this generation of architectures is not a single-point speedup, but putting three long-standing problems—expensive prefill, bandwidth-constrained decode, and memory-heavy storage—into one design framework for unified optimization. For developers, mastering the evaluation methods for asymmetric activation, shared caching, and sparse indexes is more valuable in the long run than memorizing any single benchmark score; when deploying on platforms such as Baidu AI Cloud, it is advisable to build a reproducible evaluation loop using container platforms, logging services, and monitoring alerts.
