Asymmetric Activation Architecture Explained: How Next-Generation LLMs Cut Long-Context Inference Costs
This article breaks down the emerging asymmetric activation architecture for large language models and explains why it targets long-context AI agent workloads. It covers how prefill and decode phases are given separate parameter budgets, how a causal encoder-decoder (CED) split lets the decoder reuse projected global KV instead of rebuilding it, and how externalized n-gram memory plus two-level sparse indexing reduce attention overhead. It also reviews reported performance figures, outlines a more rigorous evaluation checklist, and offers practical adoption advice on scenario fit, ablation testing, context governance, dual dashboards, and fallback paths.
1. The Starting Point: Long-Context Agents Changed the Inference Cost Structure
Model evaluation used to focus on single-turn answer quality and throughput. Agent workloads changed the shape of a request into “read a lot, write a little”: a single task may load tool returns, retrieved passages, prior trajectories, and rule constraints, pushing input to tens or even hundreds of thousands of tokens, while the actual generated output may be only a few thousand tokens. This extreme input-output asymmetry breaks the cost assumptions of traditional architectures.
Conventional Mixture-of-Experts (MoE) models use the same parameter path in both the prefill and decode phases, with symmetric activation scale. As a result, decoding still pays an activation cost on the same order as long-context processing in order to generate a few tokens, while prefill lacks a structure specifically optimized for “compressing context.” The awkward outcome: the longer the context, the more expensive each output token becomes, the higher the time to first token (TTFT), and the worse the interactive experience.
The core proposition of the new generation of architectures can therefore be stated in one sentence: let the two phases do their own work and pay their own bills.
2. Asymmetric Activation: Reallocating the Compute Budget by Phase
Asymmetric activation means the number of activated parameters on the input side and the output side are no longer equal. Take one typical configuration that has been publicly discussed in the industry: total parameters on the order of 500 billion, with roughly 8 billion activated on the input side and 16 billion on the output side, a ratio close to 1:2.
This design is pragmatic from an engineering standpoint:
- Prefill is the “read” phase. Its job is to encode context into a compact representation in a throughput-oriented way, so it is insensitive to per-token activation volume. Activation can be pushed very low, substantially reducing the compute and memory-bandwidth pressure of long inputs.
- Decode is the “write” phase. It generates tokens serially one at a time and demands higher quality and stability, so the activation budget is tilted toward this half of the network.
It is worth stressing that fewer activated parameters does not mean weaker capability. Total parameter count sets the upper bound on knowledge capacity, while activation volume determines the compute intensity of a single forward pass; these are different dimensions. The essence of asymmetric design is moving a limited compute budget from where it is not cost-effective to where it is.
3. Causal Encoder-Decoder Division of Labor: Why Context Can Become Compact
The structural foundation supporting asymmetric activation is splitting the network vertically into a causal encoder and a decoder, an approach the industry often refers to as CED (Causal Encoder-Decoder).
A helpful (though not fully rigorous) analogy:
Input side (Encoder, active in prefill only)Long context ──► layer-by-layer compression ──► last-layer hidden states│▼ projectionOutput side (Decoder, mainly runs during decode)Shared/global KV ◄── projected directly from the Encoder's last layerToken-by-token generation, no need to rebuild global KV from its own hidden states
The key gain: decoder layers no longer have to construct a full set of global key-value caches from their own hidden states; they directly reuse the projection result from the encoder’s last layer. Global information is “computed once, reused many times,” so the context representation is more compact and memory usage plus bandwidth consumption in the decode phase drop accordingly.
This also explains why “read long, write short” agent scenarios benefit most: the expensive long-context encoding is compressed into a low-activation prefill phase, while the high-frequency serial decode phase only carries the streamlined computation.
4. Externalized Memory: Separating “What to Memorize” from “What to Compute”
Another main thread is externalizing the memory mechanism. The core judgment is that model capability splits into two categories.
The first category is problems requiring reasoning, composition, and generalization, handled by the Transformer backbone. The second is a large amount of memorizable content—local collocations, entity names, fixed phrasings, domain terminology, and so on—which has low compute value but high storage value and is suited to a hash-lookup-style memory structure, typically implemented as an n-gram-based hash mapping.
The direct benefit: the backbone no longer has to “hard-memorize” these high-frequency local patterns with parameters, improving parameter efficiency and the stability of long-tail facts. Meanwhile, attention is typically reorganized into a shared key-value cache plus two-level sparse indexing: the first level coarsely filters relevant blocks, the second precisely locates within a block, compressing attention cost from quadratic growth with context to near-linear.
One engineering caveat: externalized memory is not zero-cost. Hash tables add storage and lookup latency, more index levels introduce scheduling complexity, and a low hit rate turns the mechanism into a burden. Whether to enable it, how large the tables should be, and how fine the index granularity should be all require ablation on real business corpora.
5. Performance Evaluation: Don’t Look at a Single “Tokens per Second” Number
Comparison data circulating in the community often shows differences of this magnitude: on the same long-context task set, the new-generation configuration takes roughly a dozen minutes in total versus about half an hour for the previous-generation multimodal configuration; input token consumption drops from the tens of millions to about 11 million; model inference time falls from 25 minutes to under 8 minutes; generation speed rises from about 120 tokens per second to around 360 tokens per second, with cache hit rates all staying above 99%.
These numbers are persuasive, but copying them directly is a trap. A more rigorous evaluation should cover at least these dimensions:
- Report TTFT and end-to-end task completion time separately, since the asymmetric architecture optimizes different parts of each.
- Sweep input length in buckets (such as 4K / 32K / 128K) and watch whether the throughput curve shows an inflection point in the long-input range.
- Read cache hit rate together with the billing model; low cost at a high hit rate does not mean cold-start scenarios are equally cheap.
- Output quality must be regressed against a business evaluation set; speed gains cannot come at the cost of instruction following or structured-output stability.
- Tail latency (P95/P99) under concurrency; the gains of the serial decode phase are diluted under concurrency.
6. Coordinated Optimization of Models and Toolchains
An easily overlooked trend is that model training and agent runtime frameworks are becoming more tightly coupled. Once a model has been specifically optimized for a given tool-calling protocol, context organization, and retry and truncation policies, its performance differences across frameworks become markedly amplified. This means selection cannot rely on model leaderboards alone; it also depends on how well the model matches your own toolchain configuration.
In related practice at Baidu AI Cloud, the usual recommendation is to validate such capabilities within a complete engineering pipeline: use object storage to hold long-context corpora and evaluation sets, use a container platform to spin up reproducible load-test environments, use a message queue to smooth peaks for batch offline evaluation, and use logging plus monitoring and alerting to continuously track TTFT, throughput, and error rates. Only conclusions produced this way carry production reference value.
7. Adoption Checklist
- Match the scenario first: long-input, short-output agents, codebase Q&A, and document review fit the asymmetric activation architecture best; short-question, short-answer high-concurrency chat sees limited gains.
- Run a small-scale ablation first: compare enabled versus disabled externalized memory and sparse indexing on your own corpora, and avoid paying for mechanisms that never hit.
- Govern context: compressing history, deduplicating retrieved passages, and structuring tool returns often deliver larger cost reductions than switching models.
- Build a dual-metric dashboard: observe quality and cost/latency at the same time to prevent a single-point optimization from masking overall regression.
- Keep a fallback path: behavior under extreme inputs needs canary validation, so keep the previous version as a safety net.
8. Conclusion
Asymmetric activation, the causal encoder-decoder division of labor, externalized memory, and two-level sparse indexing are all facets of the same idea: make computation happen where it is genuinely valuable. For developers, understanding this cost structure has more long-term value than memorizing any single benchmark run—architectures will keep evolving, but the methodology of “accounting for compute by phase” will not go out of date.
