Asymmetric Activation Architecture Explained: How Causal Encoder-Decoder Design Speeds Up LLM Inference
This article breaks down the asymmetric activation design used in recent multimodal LLMs, where the input side activates roughly 8B parameters and the output side roughly 16B. It explains how the causal encoder-decoder (CED) structure separates prefill from decode, why agent workloads with heavy input and short output benefit most, and how shared KV, two-level sparse indexing, and model-framework co-design affect throughput. It also includes a public comparison of latency and generation speed, plus practical advice on baselining, prefix reuse, context control, and observability.
1. The Starting Point: Why “More Parameters” and “Faster Speed” No Longer Conflict
Over the past two years, the industry’s intuition about scaling up large models has been straightforward: a larger total parameter count inevitably means higher memory pressure and lower throughput. Yet in the latest generation of general-purpose models marketed around “native multimodality + a brand-new framework,” a notable phenomenon has appeared: while the total parameter count rises significantly, single-token generation speed improves substantially, and overall capability roughly covers the previous flagship version.
To understand this, split inference into two stages:
- prefill: processes the input context in one pass; compute-intensive with high parallelism; determines “how fast it reads”;
- decode: generates tokens autoregressively one at a time; memory-access-intensive with low parallelism; determines “how fast it writes”.
A traditional symmetric mixture-of-experts (MoE) model walks the same activation path in both stages, with identical activated parameters for input and output. The new approach decouples the two, forming “asymmetric activation”: roughly 8B activated on the input side and roughly 16B on the output side. This is not simple parameter tuning, but a reorganization of the computation graph and memory access patterns.
2. Structure Breakdown: How Causal Encoder-Decoder (CED) Works
The new framework can be understood as cutting the network vertically in half (this is an approximation for easier understanding, not a strict definition):
- the lower half acts as the encoder: it works only during prefill, compressing long context into a compact representation;
- the upper half acts as the decoder: decode mainly runs this half, and the global KV is no longer built by each layer from its own hidden states, but projected directly from the hidden states of the encoder’s last layer.
Illustrative pseudocode can express this data flow:
# prefill: the encoder does the heavy liftingenc_hidden = encoder(input_tokens) # activates ~8B parametersglobal_kv = project_kv(enc_hidden[-1]) # last layer projects the shared global KV# decode: lightweight autoregressive decodingfor _ in range(gen_len):h = decoder.step(last_token, global_kv) # activates ~16B parameterslast_token = sample(h)
There are three key benefits:
- A single source for the global KV makes the context representation more compact, reducing memory access and bandwidth pressure under long text;
- the decode stage no longer rebuilds the global KV layer by layer, cutting redundant computation;
- the compute budgets for prefill and decode can be designed independently, enabling targeted optimization for “read long, write short” workloads.
3. Why Agent Scenarios Benefit Most
Agent applications typically have a highly imbalanced input-to-output ratio: they read in large volumes of tool returns, logs, and code repository snippets, while the output is only a short decision or a small amount of code. Under this workload, the 8B prefill cost directly lowers the unit price of “reading,” while the 16B decode preserves the quality of “writing,” rewriting the overall billing structure.
From a set of public comparison figures (values are approximate community test results, used only to illustrate the order-of-magnitude difference):
| Metric | New Generation | Previous-Generation Multimodal Experimental Version |
|---|---|---|
| Total time | ~18m49s | ~30m11s |
| Total tokens | ~11.59M | ~20.31M |
| Output tokens | ~126K | ~154K |
| Generation speed | ~361 tok/s | ~120 tok/s |
| Cache hit rate | ~99.5% | ~99.7% |
It is worth emphasizing that such data depends heavily on hardware, concurrency, context length, and cache hit rate, and should not be treated as an SLA commitment; the correct usage is to treat it as an “order-of-magnitude reference” and re-run baseline measurements on your own business traffic.
4. Memory Augmentation and Attention Reorganization
The new approach further decouples “parameterized computation” from “memory storage”: the backbone network handles inference and composition, while an external memory module handles large-capacity knowledge storage. At the same time, the previous generation’s attention mechanism is reorganized into shared KV plus two-level sparse indexing—first a coarse filter for relevant segments, then a fine ranking of what participates in computation—pushing attention overhead into an acceptable range under long context.
An engineering analogy for implementation:
context -> coarse-grained index (block level) -> fine ranking (segment level) -> shared KV attention -> output
This combination of “sparse retrieval + shared cache” is in the same spirit as retrieval-augmented generation, but pushes retrieval down into the model’s internal structure.
5. Deep Co-Design of Training and Inference Frameworks
An easily overlooked fact: joint optimization of the model and the inference framework is becoming the main source of throughput gains. When a model is trained specifically for a given parallelism strategy, cache layout, and scheduling configuration, the framework side can fully leverage prefix reuse, chunked prefill, and continuous batching. When evaluating such models, developers should place “framework fit” on equal footing with “model scores.”
6. Practical Advice for Developers
- Build your own baseline: fix hardware, concurrency, and context distribution, and measure prefill and decode time separately instead of looking only at total throughput.
- Maximize prefix reuse: put system prompts, tool definitions, and long-term knowledge in a stable prefix to raise the cache hit rate.
- Control context bloat: apply structured trimming and summarization to tool returns; long context does not equal high-quality input.
- Choose by stage: use a low-input-activation configuration for read-heavy, write-light workloads, and a high-output-activation configuration for complex generation.
- Focus on observability: connect token-level metrics through logging services and monitoring alerts to close the loop on capacity planning.
- Scale elastically: use container platforms and message queues to smooth out peaks and valleys, matching inference resources to the real traffic curve.
7. Conclusion
The essence of asymmetric activation and causal encoder-decoder is turning inference cost from “one-size-fits-all” into “allocated on demand.” For developers, the real dividend lies not in a benchmark number, but in the systematically lowered per-task cost of long-context agent scenarios. To reproduce such gains in your own business, you can build on the relevant general-purpose capabilities of Baidu AI Cloud and validate step by step with the baseline measurement and caching strategies described above.
