Asymmetric Activation Architecture Explained: How New LLM Designs Improve Inference Speed

    This article breaks down the shift from scale-first to structure-first model design, focusing on asymmetric activation that treats prefill and decode as different workloads. It explains the causal encoder-decoder (CED) layout, how a unified KV cache projection reduces memory pressure, and how memory-compute decoupling uses N-gram hash lookups plus two-level sparse indexing. It also covers where throughput gains come from, a reproducible evaluation setup, model-tooling co-design, and practical adoption tips.

    1. From “Bigger Parameters” to “Faster Inference”: A Shift in Architectural Priorities

    Over the past two years, the main line of large model iteration has been “make parameters bigger and contexts longer.” But after agent workloads became mainstream, the evaluation criteria are changing: users no longer care only about whether a model can get the answer right, but also about how much it costs to read a very long context once and how long they have to wait for each generated token.

    The biggest signal from the new generation of Flash-class models is exactly this shift from “scale first” to “structure first”: while total parameter count rises, per-token activated parameters are finely split, and generation throughput jumps by nearly threefold. To understand this, you must first distinguish two concepts that are often confused—total parameter count determines the upper limit of the model’s knowledge capacity, while activated parameter count determines the actual cost of a single forward pass. Only when the two are decoupled is “bigger but faster” possible.

    2. Asymmetric Activation: Treating Prefill and Decode as Two Different Workloads

    The traditional sparse Mixture-of-Experts (MoE) structure uses the same routing logic in both the prefill and decode phases, with symmetric activated parameters for input and output. The new architecture treats the two phases as workloads with completely different characteristics:

    • Prefill: processes thousands of tokens in parallel at once; compute-bound, but each token is computed only once;
    • Decode: generates token by token serially; memory-bandwidth-bound, repeatedly reading all weights and cache.

    This leads to asymmetric settings such as “8B activated parameters for input, 16B activated parameters for output.” The engineering meaning is: save as much as possible when reading long text, and guarantee quality when writing content. For agent scenarios that “read very long and write not that long,” the overall bill naturally goes down.

    Illustrative pseudocode can express this split like this:

    1. # Conceptual illustration, not a real API
    2. def forward(x, phase):
    3. if phase == "prefill":
    4. h = encoder(x) # activate only the low-capacity path
    5. kv = project(h) # compress context into a compact representation
    6. return decoder_readonly(kv)
    7. else:
    8. kv = cached_global_kv # reuse the encoder's last-layer projection
    9. return decoder_full(x, kv) # activate the high-capacity path

    3. Causal Encoder-Decoder (CED): Why Context Can Become Compact

    The new architecture splits the network into a causal encoder and a decoder, which can be understood as:

    1) The lower half acts as the encoder: it compresses the context into a compact representation only during prefill;
    2) The upper half acts as the decoder: this half mainly runs during decoding;
    3) The global key-value cache is no longer constructed layer by layer from each decoder layer’s own hidden states, but is projected directly from the hidden states of the encoder’s last layer.

    The third point is key. In traditional structures, every layer must maintain a global key-value cache, and cache size scales linearly with the number of layers; after switching to a unified projection, the cache has a single source and the context representation is more compact, significantly easing memory usage and bandwidth pressure under long contexts. It should be emphasized that this “causalized encoder” approximation is convenient for beginners, while the real implementation also involves fine-grained design of positional encoding, inter-layer normalization, and projection dimensions.

    4. Decoupling Memory from Compute: Lookups Instead of Compute

    The Engram-style approach that drew attention from both academia and industry early this year splits model capability in two:

    • The part that requires multi-step reasoning is handled by the Transformer backbone;
    • A large amount of memory-type content (local collocations, entity names, fixed phrasing) is handled through N-gram hash lookups.

    This shares the same origin as the existing “huge vocabulary embedding lookup” approach: a lookup is a memory-access operation that consumes almost no compute, yet can make parameter capacity large. The new generation of models formally incorporates the memory module into the main model and reorganizes the attention mechanism into a shared key-value cache plus two-level sparse indexing—the first level coarsely filters relevant blocks, and the second level precisely locates within a block, reducing the retrieval complexity of long contexts from linear to nearly logarithmic.

    5. Where the Throughput Gains Come From: A Reproducible Comparison Method

    Community measurements show that total time for comparable long-document tasks dropped from about thirty minutes to under nineteen minutes, generation speed rose from around 120 tokens per second to over 350 tokens per second, and cache hit rate stayed above 99%. The three sources behind these numbers are: a shorter decode activation path, a smaller cache, and sparse indexing that reduces ineffective memory access.

    It is worth noting that talking about token speed without hardware and batch size is meaningless. It is recommended to build your own minimal evaluation set:

    Observation dimension How to record
    First-token latency Fixed input length, take the median
    Generation throughput Fixed output length, exclude the first token
    Cache hit rate Share of multi-turn requests with the same prefix
    Unit cost Price input and output tokens separately

    6. Deep Collaboration Between Models and AI Coding Tools

    The new version emphasizes deep integration of training with the agent runtime framework, with dedicated optimizations for different configurations. This suggests a practical principle: model capability co-evolves with the tooling chain’s prompt templates, context-trimming strategy, and tool-call format, and applying it directly across frameworks often yields discounted benefits. In related practice at Baidu AI Cloud, it is usually recommended to connect model services, container platforms, logging services, and monitoring alerts, and use unified tracing to determine whether the issue is a prompt problem or a scheduling problem.

    7. Adoption Recommendations

    1) For long-context-first scenarios, prioritize evaluating asymmetric activation models and run A/B tests with real documents;
    2) Include cache hit rate in core metrics; prefix stability matters more than prompt wording;
    3) Organize external knowledge with a two-level retrieval approach, avoiding stuffing the full text in at once;
    4) In capacity planning, distinguish “total parameters indicate capability, activated parameters indicate the bill” to avoid misjudging cost.