Asymmetric Activation Architecture Explained: The Technical Logic Behind Faster LLM Inference
This article breaks down why newer large model architectures can deliver higher total parameter counts while achieving several-fold improvements in decoding speed. It explains three core mechanisms—asymmetric activation across prefill and decode, a causal encoder-decoder structure with shared KV projection, and the decoupling of memory from computation—alongside a reusable evaluation framework and practical engineering recommendations for model selection and capacity planning.
1. The Observation: More Parameters, Faster Speed
In traditional model iteration, a larger parameter count usually means higher memory consumption, more computation per token, and lower throughput. A recent class of architectures breaks that intuition: total parameter count rises significantly, yet decoding speed improves several times over. In agentic workloads with long contexts and multi-turn tool calls, end-to-end latency and token consumption drop at the same time.
To understand this, you need to separate three things: total parameter count, activated parameters per token, and cache hit structure. What actually determines decoding speed is not how large the model is, but how many parameters participate in floating-point operations for each token, and whether those parameters fit within what on-chip storage and memory bandwidth can handle efficiently.
2. Core Mechanism 1: Asymmetric Activation
Traditional Mixture of Experts (MoE) models use the same routing logic in both the prefill and decode phases, with symmetric activation scale. The new architecture decouples the two phases:
- Prefill phase: only a smaller subset of parameters is activated, responsible for compressing long context into a compact representation.
- Decode phase: a larger subset of parameters is activated, responsible for high-quality token-by-token generation.
The following pseudocode expresses the idea of “different budgets for the two phases”:
# Pseudocode: illustrates the resource allocation idea of asymmetric activationdef forward(input_ids, phase):if phase == "prefill":budget = LOW_ACTIVATED_PARAMS # long context, optimized for throughputhidden = encoder_stack(input_ids, budget)return compact_context(hidden) # output compact context representationelse:budget = HIGH_ACTIVATED_PARAMS # token-by-token generation, optimized for qualityreturn decoder_stack(compact_context, budget)
The benefits of this design are especially clear in agentic scenarios. A typical agentic workload “reads a lot and writes a little”: a single task may ingest hundreds of thousands of tokens of repository context, logs, and retrieval results, while the final output is only a few thousand tokens. Putting the cheap computation on the reading side and the quality budget on the writing side naturally rewrites the overall cost structure.
3. Core Mechanism 2: Causal Encoder-Decoder Structure
Asymmetric activation is only possible because the network is split into a causal encoder and a decoder:
- The lower half serves as the encoder, running only during prefill to compress context into a compact representation.
- The upper half serves as the decoder, and mainly this half runs during decoding.
- The global key-value cache is no longer constructed by each decoder layer from its own hidden states; instead, it is projected directly from the hidden states of the encoder’s last layer.
The third point is key. In the standard structure, every layer must maintain and read its own set of global KV, so memory consumption and bandwidth pressure grow linearly with the number of layers. After switching to “project at the last layer, reuse across layers,” the context representation can be more compact, and the bandwidth bottleneck under long context is significantly eased.
It is worth emphasizing that this is an engineering approximation: the encoder side sacrifices some of the expressive power of layer-by-layer interaction in exchange for deterministic speedup in the decode phase. It is not superior on all tasks; for tasks that require very strong layer-by-layer reasoning chains, the benefit is reduced.
4. Core Mechanism 3: Decoupling Memory from Computation
Another idea brought into the main model is to separate “the part that needs reasoning” from “the part that only needs memory”:
- Content that requires reasoning is handled by the Transformer backbone.
- A large amount of local patterns, entity names, fixed collocations, and high-frequency fragments are retrieved directly via hash table lookup.
This kind of external memory lookup structure already has several similar implementations in the industry. The common point is that it trades minimal computation for stable reproduction of high-frequency static patterns, without significantly increasing activated parameters during decoding. It is most directly beneficial for code completion, terminology-dense writing, and structured output.
Accompanying this is a reorganization of the attention structure: multi-head attention is reorganized into shared key-values plus a two-level sparse index, which first coarsely filters relevant fragments and then computes attention precisely, cutting invalid computation under long context.
5. How to Read Benchmarks: A Reusable Evaluation Method
Faced with conclusions like “version X is three times faster than version Y,” it is better to verify with a consistent methodology yourself than to accept a single number at face value. The following evaluation table structure can be used as a reference:
| Evaluation dimension | Description |
|---|---|
| End-to-end total latency | Includes queuing, network, and pre/post-processing; closest to real experience |
| Input/output token distribution | Determines cost structure; long input and short output are the norm for agents |
| Pure inference latency | Excludes waiting on external tool calls; used for cross-architecture comparison |
| Generation speed (token/s) | Must note concurrency and context length, otherwise not comparable |
| Cache hit rate | High hit rate significantly lowers actual billing and latency |
An executable skeleton of a validation script:
def bench(model_client, prompt, max_new_tokens=512, repeats=3):results = []for _ in range(repeats):r = model_client.generate(prompt, max_new_tokens=max_new_tokens)results.append({"total_ms": r.total_ms,"in_tokens": r.input_tokens,"out_tokens": r.output_tokens,"tps": r.output_tokens / (r.llm_ms / 1000),"cache_hit": r.cache_hit_rate,})return aggregate(results) # take the median to avoid single-run jitter
6. Engineering Recommendations
- Prioritize scenario fit: for long input, short output, and multi-turn tool calls, prefer asymmetric-activation architectures; for short input and strong reasoning-chain tasks, symmetric structures are still fine.
- Keep the caching strategy in step: a high cache hit rate is an important prerequisite for good speed numbers. Stabilize the ordering of system prompts, retrieval fragments, and tool definitions to avoid prefix drift that invalidates the cache.
- Move context compression upstream: doing retrieval reranking and deduplication before sending input to the model is more controllable than relying on in-model compression.
- Tune in coordination with the toolchain: deep coordination between the model and AI coding tools or agent frameworks optimizes for specific configurations, so re-benchmark after migration and do not reuse old parameters.
- Account for cost by phase: separate pricing for prefill and decode is becoming a trend, so capacity planning should split the budget by phase.
7. Conclusion
Parameter scale and inference speed are not necessarily opposed. When an architecture reallocates the compute budget by phase, changes global state from per-layer maintenance to last-layer sharing, and separates memory from computation, “larger and faster” becomes an explainable engineering result. For developers, what really matters is not the benchmark of a particular version number, but this evaluation methodology and tuning approach—it applies to model selection and capacity planning across any architecture generation.
