Sparse Activation and Native Multimodal Architecture in Large-Scale LLMs

    This article breaks down how a new large-model architecture combines sparse activation, hybrid attention, manifold-constrained hyper-connections, and native multimodal modeling to lower inference cost without sacrificing capability. It explains the engineering trade-offs behind a design with roughly 320 billion total parameters but only about 18 billion activated per forward pass, and offers practical guidance on throughput testing, cache monitoring, routing observability, and multimodal preprocessing.

    1. Why “Large Total Parameters, Small Activated Parameters” Became the New Engineering Focus

    As large-scale models have entered a plateau, the industry’s attention is shifting from a “parameter count race” to “cost per unit of intelligence.” The source material describes a new-generation model with roughly 320 billion total parameters but only about 18 billion activated parameters. The engineering significance is not the numbers themselves, but the fact that the optimization goal is written directly into the architecture: preserve enough total capacity to carry knowledge density, while pushing the parameters that actually participate in each forward pass to a very low level.

    Sparse activation (following Mixture-of-Experts-style ideas) works because it decouples “knowledge storage” from “knowledge retrieval.” Total parameters determine how much knowledge and representational capacity the model can hold; activated parameters determine the compute and memory-bandwidth cost of a single inference. For server-side serving, the latter directly drives per-GPU throughput, batch size, and cost per token. For on-device or low-cost clusters, it defines the feasibility boundary.

    It is important to note that fewer activated parameters do not automatically mean lower capability. What truly determines quality is routing quality, expert load balancing, and representational reuse efficiency during training. If routing collapses onto a few experts, sparsification degrades into “a small model plus a large number of dead parameters,” which is a root cause of why many sparse designs underperform expectations in practice.

    2. Hybrid Attention: Breaking Down the Cost Bottleneck of Long Contexts

    Traditional attention has quadratic complexity with respect to sequence length. In long-context scenarios, what actually consumes the budget is not parameters but attention computation and the KV cache. The new-generation architecture uses a hybrid design of “linear attention + sparse attention,” which can be understood along three complementary paths:

    1. Linear attention handles local dependency modeling. It compresses historical information through recurrent state updates, avoiding full attention over every historical token, which keeps the incremental cost of long sequences close to linear.
    2. Sparse attention handles long-range information recall. A lightweight Indexer first selects a small number of key historical positions, then applies exact attention, preserving cross-segment referencing at a cost far below full attention.
    3. Index cache pooling further compresses index-side overhead. Pooling the multiple cache vectors produced by the Indexer into a single weighted vector significantly reduces the latency and memory footprint of the index structure itself under extremely long contexts.

    In engineering terms, the value of this combination shows up in three places: lower peak memory per request, higher concurrency within a batch, and more stable time-to-first-token for long-document scenarios. The source material cites roughly a 3x reduction in attention computation and roughly a 4.4x reduction in KV cache, which is a typical order of magnitude for this approach; actual numbers still depend on the context-length distribution and batch scheduling strategy.

    Schematically, the scheduling of hybrid attention can be abstracted as:

    1. # Pseudocode: illustrates the execution order of hybrid attention only, not any specific product interface
    2. def mixed_attention(q, k_local, v_local, index_state, top_k=64):
    3. # 1) Linear branch: recursively update local state, cost grows linearly with length
    4. state = linear_attn_update(q, index_state)
    5. # 2) Index branch: lightweight scoring to recall a few long-range positions
    6. idx = indexer_select(q, top_k)
    7. # 3) Sparse exact branch: full attention only over the recalled positions
    8. out_sparse = sparse_attn(q, k_local[idx], v_local[idx])
    9. return fuse(state, out_sparse)

    3. Manifold-Constrained Hyper-Connections: Preserving Representation Quality with Fewer Layers

    Another key change in the architecture is Manifold-Constrained Hyper-Connections. It constrains how features connect within a manifold space, making cross-layer information reuse and gradient propagation more stable. The direct engineering benefit is that model capability shows no clear degradation even with nearly half the layers, while the gains from scaling laws become more concentrated.

    This has a large impact on the cost structure. Fewer layers mean fewer kernel launches, less inter-layer communication, and fewer memory round trips. Meanwhile, the representational reuse from hyper-connections mitigates the common problem of “insufficient effective depth caused by fewer layers.” Comparing the previous-generation spec (roughly 355 billion total parameters, about 32 billion activated, 90-plus layers) with the new spec (roughly 320 billion total parameters, about 18 billion activated, 45 layers), the design intent is clear: total capacity is roughly flat, activated parameters drop by about 40%, and depth is compressed by half.

    4. Native Multimodality: The Capability Leap from a Unified Sequence Space

    The key phrase for native multimodality is “unified modeling.” Images, documents, video, and text are mapped into the same sequence space, and visual encoding is no longer an external front-end module but participates directly in the backbone’s inference loop. This creates two practical differences:

    • Cross-modal referencing is more natural. For example, an instruction like “fill the field in the third box of the image into the table” can complete localization, extraction, and generation within the same context, without multi-stage stitching.
    • Visual information can participate in generating code and structured output, closing the loop for tasks such as screenshot understanding, UI replication, and turning documents into structured data.

    For developers, this means the approach to prompting and context engineering needs to change: instead of designing a separate pipeline for each modality, multimodal material should be orchestrated as part of the context in a unified way.

    5. Practical Implementation Recommendations

    1. Evaluate cost by “effective throughput” rather than parameter count. Use per-GPU concurrency and P99 latency at the target context length as the benchmark for load testing.
    2. Always monitor cache usage for long contexts. Hybrid attention reduces KV overhead, but context trimming and summarization strategies are still needed.
    3. Observe sparse routing. Watch expert load distribution and routing entropy to avoid capability being swallowed by a few experts.
    4. Govern multimodal input preprocessing. Unifying resolution and duration-slicing strategies can significantly stabilize latency.
    5. On the serving side, general cloud capabilities can carry the load, such as container platforms for elastic scaling, object storage for holding material, and logging and monitoring/alerting services for full-chain observability; on Baidu AI Cloud, a complete solution can typically be assembled from these general categories.

    6. Conclusion

    The core logic of the new-generation architecture is to move cost constraints into the design stage: sparse activation lowers per-inference compute, hybrid attention breaks down the long-context bottleneck, manifold-constrained hyper-connections preserve representation quality in a shallower network, and native multimodality unifies the context format. Only when these four are combined does “trading lower compute cost for stronger overall capability” become a verifiable engineering result rather than a marketing claim.