Analyzing Large Language Model Asymmetric Activation Architecture: How Prefill and Decode Are Optimized Separately
This article breaks down the emerging asymmetric activation architecture in large language models, explaining why total parameters and activated parameters are no longer scaling together. It covers the core distinction between compute-bound prefill and memory-bound decode, the Causal Encoder-Decoder (CED) split that compresses context representations, shared KV with two-level sparse indexing, and externalized memory via N-gram lookup. It also includes practical guidance on benchmarking, ablation testing, and cloud deployment considerations for long-context AI agent workloads.
1. Defining the Problem: What This Architecture Generation Actually Solves
The main thread of LLM architecture evolution over the past year is not “making parameter counts larger,” but reallocating the compute budget to where it is actually needed. The most notable set of figures in the source material is the shifting ratio between total parameters and activated parameters: a new-generation model has roughly 552B total parameters, with about 8B activated per token on the input side and about 16B activated per token on the output side. The previous generation in the same family had roughly 284B total parameters with a symmetric 13B activated for both input and output.
These numbers carry a lot of information:
- Total parameters doubled, but per-token activation did not double proportionally, indicating a significantly higher sparsity ratio.
- Input and output activation counts are no longer equal, indicating that prefill and decode are optimized as two distinct workload types.
- Across most public community tests, generation speed lands in the 300–400 token/s range, commonly above 350 token/s, roughly a 3x improvement over the previous-generation multimodal experimental version at around 120 token/s.
It is important to stress that these figures should be treated as observations under specific hardware, specific context lengths, and specific concurrency conditions, not as universal architectural guarantees. Any architectural conclusion is only meaningful when bound to its test conditions, which is why the benchmarking methodology appears later in this article.
2. The Essence of Asymmetric Activation: Computing Prefill and Decode Separately
The implicit assumption in traditional MoE is “symmetry”: regardless of whether the model is ingesting a long context in one pass (prefill) or generating tokens autoregressively (decode), every token goes through the same routing and activation budget. But these two workload types have completely different arithmetic profiles.
- Prefill is compute-intensive: attention and projections over a sequence of length N can be highly parallelized, GPU utilization is easy to saturate, and the bottleneck is raw compute.
- Decode is memory-intensive: each step processes only one new token but must read through all weights and the KV cache, so the bottleneck is memory bandwidth and cache hit rate.
Given this, the design logic behind “8B input activation, 16B output activation” becomes clear: activate less and save compute in the parallelizable phase; guarantee sufficient model capacity and expressiveness in the bandwidth-constrained phase. This is a typical “budget allocation by phase” approach rather than a pursuit of any single metric.
One engineering caveat: asymmetric activation causes memory and compute peaks to occur in different phases, so capacity planning cannot rely on averages alone. It is recommended to record metrics separately per phase:
prefill: tokens/s (input throughput) peak_mem expert_routing_entropydecode: tokens/s (generation speed) mem_bandwidth_util kv_cache_growth
3. The Causal Encoder-Decoder (CED) Split: Why Context Becomes Compact
The “new architecture” mentioned in the material can be abstracted as a layered organization of a Causal Encoder-Decoder (CED). Put in accessible but not strictly rigorous terms:
- The lower layers act as the Encoder: primarily active during prefill, compressing long context into a set of compact representations.
- The upper layers act as the Decoder: this half runs mainly during decode.
- The global KV is no longer constructed independently by each Decoder layer, but is projected from the final-layer hidden states of the Encoder.
The key benefit comes from the last point. In conventional structures, every layer must maintain and read its own global key-value cache, and cache size grows linearly with “number of layers × sequence length.” In CED, there is only one source of global context, and all Decoder layers share the projected result. The context representation can therefore be compressed more tightly, and the incremental KV cache size and bandwidth pressure drop accordingly.
This also explains why long-context agent tasks benefit most: their typical behavior is “read long, write short,” with high prefill proportion and relatively few output tokens. Cheaper prefill translates directly into lower end-to-end latency. A comparison from the source material illustrates this well: for the same class of long-context task, the new architecture took about 18 min 49 s total, with roughly 11.59M total tokens, about 126K output tokens, and about 7 min 48 s of model inference time. The previous-generation multimodal experimental version took about 30 min 11 s total, with roughly 20.31M total tokens, about 154K output tokens, and about 25 min 10 s of inference time. Both had cache hit rates above 99.5%, indicating that the gain does not come from lucky caching but from the architecture itself.
4. Shared KV and Two-Level Sparse Indexing: Reorganizing the Attention Structure
The material also mentions that two types of attention mechanisms from earlier versions were reorganized into shared KV plus two-level sparse indexing. The layered filtering logic can be understood as follows:
- Level 1: Coarse filtering. A low-cost index (such as chunk summaries, position buckets, or lightweight scoring) selects candidate blocks from the full context, with near-linear complexity.
- Level 2: Fine filtering. Fine-grained attention is performed within the candidate blocks, concentrating compute on the truly relevant segments.
Combined with shared KV, the overall effect is: the same context representation is reused multiple times, while the sparse index decides “where to look.” This combination shares the same motivation as retrieval-based long-context approaches common in the industry; the difference is that the index and cache are internalized into the model structure rather than bolted on as a separate retrieval service.
5. Externalized Memory: Separating “What to Remember” from “What to Compute”
The Engram concept mentioned at the end of the material (referenced here only as a general technical concept) centers on capability layering:
- Parts that require multi-step reasoning, abstraction, and composition are handled by the Transformer backbone.
- Large amounts of memory-type content—local patterns, entity names, fixed collocations, common fragments—are stored externally via N-gram hash lookup.
The engineering value is that memory-type knowledge is served by lookup instead of repeated computation, reducing demand on parameter capacity and making knowledge updates possible without full retraining. Deployment requires accompanying design for hash collision handling, trade-offs between table size and hit rate, and eviction strategies for stale entries, as illustrated below:
def lookup_ngram(ctx_tokens, n=3, table=None):key = hash(tuple(ctx_tokens[-n:]))return table.get(key) # inject representation directly on hit; fall back to backbone computation on miss
6. Native Multimodality and Toolchain Coordination
“Native multimodality” means vision and text are jointly trained in the same representation space, rather than attaching a separate vision encoder and concatenating afterward. The practical impact for developers is that mixed image-text input does not require two separate preprocessing pipelines; long-document screenshots, UI screenshots, and flowcharts can enter the same context directly.
At the same time, coordination between the model and AI coding toolchains is deepening: the model has been specifically optimized for different tool configurations, and the tool side is also adjusting how it organizes context around model characteristics. When evaluating options, the “model–toolchain” pair should be assessed as a whole rather than comparing isolated metrics.
7. A Practical Evaluation Methodology
Do not rely solely on peak numbers published by vendors. It is recommended to build a reproducible evaluation of your own:
1. Fix hardware and concurrency, and record prefill / decode throughput separately;2. Construct long-context tasks from real business corpora (one set each for read-long-write-short and read-short-write-long);3. Track three metrics: cache hit rate, total token consumption, and end-to-end latency;4. For asymmetric activation models, additionally observe which phase the memory peak occurs in;5. Compare ablation results with sparse indexing on/off and externalized memory on/off.
8. General Considerations for Cloud Deployment
Regardless of which architecture is chosen, production deployment relies on several general cloud capabilities: a container platform to host elastic inference instances, object storage for models and corpora, a message queue for request peak shaving, and logging services plus monitoring and alerting to track time-to-first-token, generation speed, cache hit rate, and memory watermark. Baidu AI Cloud offers corresponding product categories across these general capabilities and can serve as an infrastructure reference when implementing the architecture.
9. Conclusion
The three most memorable points about this architecture generation are: allocate activation budget by phase, compress context representations via an encoder–decoder split, and externalize memory-type knowledge into a lookupable structure. All three point toward the same goal—improving both cost and throughput simultaneously under long-context agent workloads. The recommendation for developers is to translate architectural features into measurable metrics, run ablation validation with your own business corpora, and then decide whether to adopt the architecture in production.
