Asymmetric Activation Architecture: A Deep Dive and Practical Guide

    This article breaks down the asymmetric activation architecture used in modern large language models, where prefill and decode stages activate different parameter counts to align compute with real-world "read long, write short" workloads. It explains the causal encoder-decoder split, shared global KV projection, n-gram hash lookup for memory, and attention optimizations, then covers how to benchmark such models beyond tok/s and which scenarios are worth migrating to.

    1. Background: Why “Bigger Parameters” and “Faster Speed” No Longer Conflict

    Over the past two years, expanding the capabilities of large models has been almost equivalent to expanding parameter count, and expanding parameter count almost inevitably brings two consequences: higher memory usage and higher per-token inference cost. In long-context AI Agent workloads, both consequences are amplified further—the model has to repeatedly read very long contexts while producing only a relatively small amount of new content. Traditional symmetric activation with sparse expert structures is not cost-effective under this workload: whether in the prefill stage or the decode stage, every token goes through the same activation path, with identical activated parameter counts up and down.

    The core idea of the new-generation architecture is to split “reading” and “writing” into two compute paths with different costs, aligning compute allocation with the actual shape of the workload. This is a typical engineering trade-off: trading increased structural complexity for significant improvements in per-token cost and throughput.

    2. Asymmetric Activation: Separating Compute Budgets for Prefill and Decode

    Asymmetric activation means the model activates different parameter scales in the prefill stage versus the decode stage. Using a typical set of public configurations as an example: total parameters are about 552B, of which an embedding-style memory table takes up a considerable proportion; the activated parameters that actually participate in each step of computation are about 8B during prefill and about 16B during decode. The previous generation of same-tier models had about 284B total parameters, with both input and output activation around 13B.

    This set of numbers carries more information than it appears:

    • Prefill is cheaper. In long-context scenarios, the number of input-side tokens is often dozens or even hundreds of times that of the output side. Compressing prefill activation to 8B directly cuts the compute for the largest share of the workload.
    • Decode retains capacity. Generation is completed serially for each token, and activating 16B means stronger expressive power per step, which helps the stability of long-chain reasoning.
    • Total parameters are decoupled from activated parameters. The increase in total parameters comes mainly from memory-type parameters rather than compute-type parameters, so “a bigger model” no longer means “more expensive per token.”

    It should be emphasized that asymmetric activation is not a free lunch. It requires separate optimization of the two paths during training, and the inference framework must support two different computation graphs and memory layouts, so engineering complexity rises noticeably.

    3. Causal Encoder-Decoder Structure: Where Context Compression Happens

    A typical structure that supports asymmetric activation splits the network vertically into a Causal Encoder and a Decoder. An easy-to-understand but not fully precise description is:

    1. Input context
    2. │
    3. ▼
    4. [Lower layers: Causal Encoder] ← runs only during prefill, compresses long context into a compact representation
    5. │ final-layer hidden states
    6. ▼
    7. [Upper layers: Decoder] ← mainly runs during the decode stage
    8. │ global KV is projected from the Encoder's final layer
    9. ▼
    10. Output token

    The key difference lies in the source of the global key-value cache (KV). In traditional structures, every layer must build a set of global KV from its own hidden states; the deeper the layers and the longer the context, the larger the cache and the more frequent the reads. Under the encoder-decoder division of labor, each decoder layer can directly project global KV from the encoder’s final-layer hidden states, without maintaining its own set. The context is therefore compressed into a more compact representation, cache read volume drops, and memory access pressure in the decode stage is eased accordingly.

    This design belongs to the same class of optimization ideas as the industry’s common “cross-layer key-value sharing” and “context compression cache”: merging redundant, layer-by-layer repeated global state into one shared state, trading a small number of projection parameters for memory bandwidth.

    4. Decoupling Memory from Compute: Lookup Instead of Calculation

    Another change is the formal entry of the memory mechanism into the backbone network. Its core claim is to split model capability into two parts:

    • The part that needs reasoning is handled by attention and expert networks.
    • The part that involves a lot of memory but has low compute value—such as local collocations, entity names, and fixed sentence patterns—is handled via n-gram hash lookup.

    Similar forms already exist in the industry: using a large-scale n-gram embedding table to handle “remembering” and a Transformer to handle “thinking clearly.” The benefit is clear—lookup is a memory-intensive operation that consumes almost no compute, yet can move a large number of parameters out of the compute path; the cost is equally clear—it requires additional storage and lookup engineering, and is highly sensitive to hash collisions, table size, and hit rate.

    Meanwhile, attention-side optimization usually proceeds along two lines: first, shared key-values to reduce repeated projection; second, two-level sparse indexing that first performs coarse-grained candidate filtering and then fine attention within the candidate set, compressing attention complexity from quadratic growth with context to near-linear.

    5. Performance Evaluation: Don’t Look at tok/s Alone

    In community testing, this type of architecture generally achieves generation speeds in the range of over 300 tokens per second on long-context tasks, nearly a 3x improvement over the previous-generation multimodal experimental version; in one typical evaluation, total time dropped from about 30 minutes to about 19 minutes, token consumption dropped from about 20M to about 11.6M, and cache hit rate stayed above 99%. These numbers illustrate the point but are also easy to misread. It is recommended to build an evaluation table along the following dimensions:

    Dimension Metrics to observe Common pitfall
    End-to-end latency Total time, time to first token Looking only at generation speed
    Throughput Output tokens per second, stability under concurrency Extrapolating single-request results to high concurrency
    Cost Separate pricing for input/output tokens, cache hits Counting unit price without counting hits
    Quality Success rate of long-chain tasks, instruction following Using short Q&A instead of real workloads
    Stability Memory and latency drift in long sessions Ignoring long-context degradation

    A reusable stress-test skeleton is as follows (illustrative, not a specific platform API):

    1. def bench(model, prompts, concurrency=8):
    2. stats = {"total_time": 0.0, "in_tok": 0, "out_tok": 0, "cache_hit": []}
    3. for batch in chunked(prompts, concurrency):
    4. t0 = time.perf_counter()
    5. for p in batch:
    6. r = model.generate(p, max_tokens=2048)
    7. stats["in_tok"] += r.input_tokens
    8. stats["out_tok"] += r.output_tokens
    9. stats["cache_hit"].append(r.cached_ratio)
    10. stats["total_time"] += time.perf_counter() - t0
    11. stats["tok_per_s"] = stats["out_tok"] / stats["total_time"]
    12. return stats

    6. Adoption Recommendations: Which Scenarios Are Worth Migrating

    • Migrate first: long-document review, code-base-level Q&A, and multi-turn tool-calling agents. These workloads have inputs far longer than outputs, so asymmetric activation delivers the greatest benefit.
    • Migrate with caution: high-concurrency online services with short inputs and short outputs. The benefit comes mainly from decode-side capacity and needs to be confirmed by testing.
    • Must be in place: a stable inference framework and cache management, observable monitoring, alerting, and logging services, an elastic container platform, and an evaluation pipeline integrated into continuous integration.
    • At the architecture level: design prompt prefixes to be stable to improve cache hits, split long contexts into reusable segment-level caches, and avoid ineffective repeated prefill.

    7. Conclusion

    The real progress of this generation of architecture lies not in the numbers on the parameter table, but in mapping the real workload shape of “read long, write short” onto the computation graph: lower activation in prefill, retained capacity in decode, shared global state, and memory via lookup. The practical implication for developers is that selection and evaluation must shift from single-point speed to end-to-end cost and quality, and use repeatable stress tests and an observability system to solidify conclusions.