Asymmetric Activation Architectures for Lightweight Multimodal LLMs

    This article examines the shift from symmetric-activation Mixture-of-Experts (MoE) designs to asymmetric activation architectures in lightweight multimodal large language models. It breaks down how a causal encoder–decoder structure separates context compression (prefill) from token generation (decode), the role of shared KV projections and two-level sparse indexing, the trade-offs of N-gram hash lookup memory, and the engineering considerations for native multimodal vision inputs. It also provides a practical framework for benchmarking latency, throughput, and quality metrics, discusses runtime co-design for AI agents, and outlines where this architecture fits—and where it may not.

    Asymmetric Activation Architectures for Lightweight Multimodal LLMs

    A notable trend has emerged in lightweight multimodal models: a move away from the traditional “symmetric activation” Mixture-of-Experts (MoE) structure toward a “causal encoder–decoder + asymmetric activation” design. The core idea here is not simply changing parameter counts; it is about separating the inference process into distinct phases. The prefill phase compresses a long context into a compact representation, while the decode phase generates tokens one by one. This shift carries significant engineering implications, evaluation challenges, and deployment boundaries that are worth an in-depth look.

    Why Move from Symmetric to Asymmetric Activation?

    Conventional MoE structures typically rely on symmetric activation: each token activates the same scale of expert parameters on both the input (prefill) and output (decode) sides. This offers a unified structure and mature implementation. However, it creates a bottleneck under long-context, agent-heavy workloads: long reads, short writes. A user might submit a document, codebase, or conversation history spanning tens of thousands of tokens, but the model’s output may only be a few hundred to a few thousand tokens. If prefill and decode use the same activation scale, the prefill phase carries unnecessary computational cost.

    Asymmetric activation addresses this by pairing a smaller activation scale during prefill—focused on compressing context—with a larger activation scale during decode to ensure generation quality. This structure is often described in public discussions as a “causal encoder–decoder.” The lower half acts as an encoder, running only during the prefill phase to compress the context. The upper half serves as the decoder, which is the primary engine during autoregressive token generation. Instead of each decoder layer reconstructing its own global KV (key-value) cache from its hidden states, the decoder can directly project a global KV cache from the encoder’s final hidden state. This yields a more compact context representation, cheaper prefill, and concentrates compute on generation during the decode phase.

    It is important to note that this is not simply “shrinking” the model. Asymmetric activation demands a coordinated design involving the training objective, positional encodings, KV projection, routing strategy, and batch scheduling. Modifying only the inference path without corresponding training changes can lead to issues such as insufficient encoder representation, broken decoder dependencies, and degraded long-context recall.

    Workflow and Key Mechanisms of the CED Architecture

    The inference flow can be illustrated with the following pseudocode. This is a general logic illustration, not tied to any specific product interface:

    1. prefill(context):
    2. h_enc = encoder(context) # smaller activation scale, compresses context
    3. kv_global = project(h_enc[-1]) # project global KV from encoder's last layer
    4. return kv_global
    5. decode(token, kv_global):
    6. h_dec = decoder(token, kv_global) # larger activation scale, focused on generation
    7. logits = output_head(h_dec)
    8. return logits

    Three key points stand out in this flow:

    1. The encoder only handles context compression. It does not bear the full responsibility of token-by-token generation, allowing for a smaller activation scale during prefill. For scenarios like long documents, multi-image inputs, or codebase Q&A, prefill is often the primary contributor to time-to-first-token (TTFT). Compressing context can directly improve TTFT.

    2. The global KV is projected from the encoder’s final layer. A traditional decoder constructs global KV from its own hidden states at every layer. The deeper the network and the longer the context, the higher the cost of repeated construction. The shared KV approach allows decoder layers to reuse the encoder’s final representation, reducing redundant computation and simplifying cache management.

    3. The decoder focuses on generation. During the decode phase, each token activates a larger set of parameters to maintain the capabilities required for language generation, reasoning, and tool invocation. The engineering significance of asymmetric activation lies in decoupling the “context understanding” and “output generation” workloads, rather than using a one-size-fits-all resource allocation for both phases.

    Shared KV and Two-Level Sparse Indexing: The Engineering Value

    The bottleneck in long-context inference is not only in matrix multiplication but also in attention retrieval and KV cache management. Shared KV addresses the problem of “redundant construction,” while two-level sparse indexing tackles the problem of “retrieval scope.”

    Two-level sparse indexing can be understood as: the first level uses a coarser granularity to filter candidate blocks, and the second level performs finer-grained attention computation within the candidate blocks. The goal is not merely sparsity but reducing attention computation while maintaining long-context recall. In agent scenarios, where the model needs to repeatedly read tool results, document snippets, and conversation history, sparse indexing can help filter out irrelevant context.

    However, sparse indexing is not always better. A too-coarse index can lead to missed recalls, while a too-fine index can negate the benefits of sparsity. Several engineering concerns need attention:

    • Matching the index granularity with the context length.
    • Ensuring the sparse pattern is stable and does not degrade recall for long-tail entities.
    • Aligning cache reuse with batch scheduling.
    • Determining whether multimodal visual tokens use the same index or need a separate compression strategy.

    Hash Lookup Memory: Separating “Memory” from “Reasoning”

    Another technical direction worth attention is splitting model capabilities into two parts: content that requires reasoning goes to the Transformer; local patterns, entities, and fixed collocations—high-frequency but low reasoning value—are handled via N-gram hash lookup. This design does not conflict with MoE; it essentially adds a sparse memory path alongside attention.

    The strength of hash lookup memory is its low lookup cost and fast hit rate for local patterns, making it suitable for entity names, technical terms, fixed collocations, and code snippet templates. The risks are equally clear: hash collisions, insufficient long-tail coverage, and difficulty in dynamic updates. Engineering solutions typically involve cache eviction, hit-rate monitoring, fallback mechanisms, and quality regression testing. If lookup results conflict with the current context, the model should have the ability to fall back to the attention path.

    Compression Challenges in Native Multimodal Vision Understanding

    Native multimodal vision understanding is not simply “attaching a vision encoder.” It typically means visual tokens and text tokens are trained and inferred in a unified representation space. The model must handle cross-modal alignment, positional encoding, resolution adaptation, and multi-image temporal relationships.

    In an asymmetric activation architecture, visual input primarily adds to the prefill burden. A high-resolution image can generate a large number of visual tokens. Without compression, prefill costs escalate quickly. Common engineering approaches include:

    • Visual token pooling or query-based compression.
    • Resolution adaptation that dynamically allocates tokens based on task complexity.
    • Cross-image attention pruning for multi-image scenarios.
    • Tiered caching for visual KV versus text KV.
    • Region-level indexing for structured visual content like documents, tables, and charts.

    These techniques must work in concert with shared KV and two-level sparse indexing; otherwise, issues like “text recall is fine after visual token compression, but chart details are lost” can emerge.

    Performance Evaluation: Look Beyond a Single Throughput Number

    Public discussions around this architecture often report improvements in generation throughput, reduced total token consumption, and sustained cache hit rates. However, evaluation should not rely solely on a single tokens/s metric. It’s recommended to control for the following variables:

    • Identical context length, output length, and batch size.
    • Identical hardware, quantization strategy, and sampling parameters.
    • Identical cache-hit conditions and cold-start conditions.
    • Identical quality evaluation sets and a consistent ratio of human spot-checking.

    It is also recommended to track the following metrics:

    Metric Meaning Optimization Focus
    TTFT (Time to First Token) Latency to first output token Prefill compression, cache reuse
    TPOT (Time Per Output Token) Time per generated token Decode activation efficiency, batching
    Generation Throughput Tokens per second Decode parallelism, KV management
    Total Token Consumption Input + output + cache Context compression, index pruning
    Cache Hit Rate Ratio of reused cache Prefix caching, session management
    Quality Score Task accuracy / recall Training objective, sparsity strategy

    A crucial caveat: a smaller prefill activation scale can boost throughput, but if the encoder over-compresses, long-context recall and overall quality will suffer. Therefore, evaluations should include stress scenarios like “long-document detail Q&A,” “multi-image chart comprehension,” and “multi-turn memory in tool invocation.”

    Co-Designing the Agent Runtime with the Model

    This architecture is becoming increasingly intertwined with the agent runtime. If the training phase incorporates optimizations for specific runtime configurations, the inference phase can better utilize caching, batching, and tool invocation patterns. Practical considerations for deployment include:

    1. Separating prefill/decode resource pools. Prefill and decode have different compute characteristics and can be scaled independently to avoid resource contention.
    2. Prefix and session caching. In multi-turn agent conversations, system prompts, tool definitions, and historical documents can be reused; cache hit rates directly impact cost.
    3. Dynamic batching. When long-context prefill requests and short decode requests are mixed, scheduling needs to prevent decode from being blocked by long prefill jobs.
    4. Quality regression and safety compliance. Compression and sparsification can introduce long-tail errors, requiring robust regression sets and gradual rollout mechanisms.

    Appropriate Boundaries and Implementation Recommendations

    Asymmetric activation architectures are best suited for “read-long, write-short” workloads: document Q&A, codebase comprehension, multimodal document parsing, customer service knowledge bases, and agent tool invocation. For creative tasks with “short input, extremely long output,” the decode phase dominates, and gains from prefill compression are limited. In such cases, more attention should be paid to decode activation scale and generation quality.

    When evaluating this architecture, it is advisable to start with small-scale comparative experiments: keep output length fixed, then incrementally increase context length to observe the crossover points in TTFT, TPOT, total token consumption, and quality curves. If the benefits become more apparent with longer contexts and quality regression remains manageable, consider scaling up traffic. Conversely, if long-tail recall degrades noticeably, prioritize adjusting the encoder compression ratio, sparse index granularity, or hash lookup fallback strategy.

    Overall, the value of this architecture lies not in a single point parameter but in its decomposition of prefill, decode, cache, memory, and retrieval into independently optimizable engineering modules. Understanding its workflow and boundaries is more important than comparing a single throughput number alone.