The Evolution of Asymmetric Activation Architecture in Large Language Models

    This article breaks down how modern large model architectures improve both parameter capacity and inference speed by decoupling total parameters from activated parameters. It covers four reusable design patterns—asymmetric activation, causal encoder-decoder separation, lookup-based memory modules, and shared KV with two-level sparse indexing—along with evaluation metrics beyond tok/s, model-toolchain co-optimization practices, and deployment risk notes for long-read/short-write workloads.

    1. Introduction: Why Parameter Scale and Inference Speed Can Improve Together

    Conventional wisdom holds that a larger parameter count means slower inference and higher cost. Architectural innovations over the past year or two are breaking that linear relationship: by changing the fraction of parameters that actually participate in computation for each token, total parameters can grow substantially while the compute cost per token drops. This article starts from a widely observed phenomenon—new-generation multimodal models are faster across the board than the previous generation—and abstracts four main threads: asymmetric activation, encoder-decoder responsibility separation, memory-based lookup modules, and shared KV with two-level sparse indexing. None of these threads depend on a specific vendor implementation; they are general design patterns the industry can reuse.

    One conceptual boundary needs to be clear first: total parameter count sets the upper bound on a model’s knowledge capacity, while activated parameter count determines the real compute cost of a single forward pass. Decoupling the two is the core idea of this generation of architectures.

    2. From Symmetric to Asymmetric Activation

    Traditional mixture-of-experts (MoE) models use the same routing logic in the prefill and decode stages, with symmetric activation scale and identical activated parameters for input and output. New-generation designs split the two stages:

    • Prefill stage: processes long context in one pass, with fewer activated parameters (illustrative magnitude: single-digit B);
    • Decode stage: generates tokens autoregressively one by one, with more activated parameters (illustrative magnitude: low-teens B).

    The value of this asymmetric activation lies in workload-profile matching. Agentic applications typically “read a lot and write comparatively little”: inputs often run to hundreds of thousands of tokens of codebase and tool output, while outputs are only a few thousand tokens. Putting cheap compute on prefill and stronger compute on decode immediately improves the overall billing structure.

    Illustrative pseudocode can express this routing:

    1. # Pseudocode: conveys stage routing only, not a real API
    2. def forward(batch):
    3. if batch.is_prefill:
    4. return encoder_path(batch, active_params="low") # long-context compression
    5. return decoder_path(batch, active_params="high") # token-by-token generation

    3. Causal Encoder-Decoder (CED): Splitting Responsibilities

    Asymmetric activation only works if the network is reorganized into a causal encoder-decoder. The idea can be understood as follows (simplified for clarity):

    1. The lower half acts as the encoder: it runs only during prefill, compressing long context into a compact representation;
    2. The upper half acts as the decoder: this half does most of the work during decode;
    3. The global KV is no longer built by each decoder layer from its own hidden states, but is projected directly from the last encoder layer’s hidden states.

    Point 3 is the efficiency key. In conventional structures, every layer maintains its own global key-value cache, which strains both memory and bandwidth under long context. Switching to “last-layer projection plus upper-layer reuse” makes the context representation naturally more compact, reduces KV transfer and read pressure, and eases the memory-access bottleneck in the decode stage.

    The engineering cost is higher training complexity: the depth ratio between encoder and decoder, projection dimensions, and distillation and alignment strategies all need re-tuning. The activation ratio between the two stages is not “the larger the better” either; ablation experiments against real workloads are required.

    4. Decoupling Memory from Compute: Lookup-Style Memory Modules

    One route that both academia and industry focused on early this year splits model capability into two parts:

    • The part that needs reasoning and compositional generalization is handled by the Transformer backbone;
    • Large amounts of memory-like, locally patterned content (fixed collocations, entity names, common fragments) is obtained through N-gram hash lookup.

    Such modules are usually called memory-based embeddings or lookup memory structures, and several similar implementations already exist in the industry. The benefit: memory capacity is gained at very low compute cost, leaving the precious attention budget for real reasoning. The cost: lookup hit rate depends on corpus distribution, so hash collision handling, capacity trimming, and cold-start strategies must be designed.

    Accompanying this is a reorganization of attention: multiple attention variants are consolidated into shared KV plus two-level sparse indexing—the first level coarsely locates relevant blocks, the second makes fine-grained selections within a block. The essence of retrieval-style sparsification is trading “controllable information loss” for “predictable latency.”

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

    Community measurements generally land in the 300–400 tok/s range for new-generation models, but generation speed alone can mislead. A more complete evaluation table should include:

    Metric New-generation approach Previous-generation multimodal approach
    Total elapsed time ~18m49s ~30m11s
    Total token usage ~11.59M ~20.31M
    Output tokens ~126K ~154K
    Model inference time ~7m48s ~25m10s
    Generation speed ~361 tok/s ~120 tok/s
    Cache hit rate ~99.5% ~99.7%

    The drop in total elapsed time comes both from higher speed (about 3x) and from lower total token usage (about 43%). The latter is often overlooked: a more compact context representation and higher cache reuse directly reduce billable tokens. Evaluation should look at four things together: time to first token, steady-state throughput, cache hit rate, and cost per task.

    6. Deep Co-Optimization Between Models and AI Coding Toolchains

    New-generation models commonly emphasize joint optimization with AI coding toolchains: the model is specifically trained for different tool configurations (context window, retrieval strategy, tool-call format). This suggests model capability is no longer an isolated metric but a system capability of “model + context management + tool orchestration.” Practical recommendations:

    1. Layer the context: put stable, unchanging system prompts and conventions first to leverage prefix caching;
    2. Combine retrieval and compression: coarse-filter long repositories before close reading to reduce wasted prefill;
    3. Constrain output: use structured patterns to constrain generation and reduce extra decode caused by rework;
    4. Observability: connect logging services and monitoring alerts, and track tokens and latency per task.

    7. Adoption Advice and Risk Notes

    • Match the scenario first: long-read/short-write workloads gain the most; short-input, long-creation workloads gain little.
    • Run small-scale ablations first: validate the activation ratio and sparse-index recall on your own datasets.
    • Watch memory and bandwidth: asymmetric activation changes the memory-access curve, so capacity planning needs re-measurement.
    • Costs are portable: if inference services run on cloud container platforms with object storage, general-purpose capabilities can handle elastic scaling and cold-data archiving.
    • Risk boundaries: both sparsification and lookup introduce information loss, so keep fallback options for tasks requiring exact numbers or long chains of reasoning.

    8. Conclusion

    The shared answer of this generation of architectures is decoupling “capacity” from “compute”: parameters keep growing to carry knowledge, while activation and memory access are finely designed to control cost. For developers, the real takeaway is not a benchmark number but a portable judgment framework—look at the workload profile first, then the activation structure, and finally validate with a complete set of metrics. Baidu AI Cloud continues to invest in the engineering implementation of related technical solutions and can provide general-purpose capabilities to support the evaluation and deployment of such architectures.