Sparse Activation and Hybrid Attention: Architecture Trade-offs for Lowering LLM Costs

    This article explains how sparse activation, hybrid sparse and linear attention, manifold-constrained hyper-connections, and native multimodal modeling aim to reduce the cost of large language models. It covers the benefits and trade-offs of each design and offers a checklist for evaluating and deploying such models.

    The competition among large language models is shifting from adding parameters to improving efficiency. A recently disclosed model shows this clearly. It has about 320 billion total parameters, but only about 18 billion are activated for each inference. It also combines sparse attention and linear attention in a hybrid architecture to reduce attention computation and KV cache overhead. This article does not discuss specific products. Instead, it examines the architectural principles behind these designs and analyzes their benefits, costs, and the factors to consider when choosing a model.

    1. Why Total and Activated Parameters Should Be Considered Separately

    A dense model uses all of its parameters in every forward pass, so compute and memory bandwidth demands grow linearly with parameter count. A Mixture of Experts (MoE) model uses sparse activation instead. Each token is routed to a small number of expert networks. As a result, a model can have a very large total parameter count while keeping the compute per token at the level of its activated parameters. Total parameters mainly determine model capacity, meaning how much knowledge the model can store. Activated parameters mainly determine the computing cost of each inference.

    Based on publicly disclosed specifications, the new sparse model compares with its predecessor as follows:

    Dimension Previous Generation New-Generation Sparse Model Change
    Total parameters About 355 billion About 320 billion Down about 10%
    Activated parameters About 32 billion About 18 billion Down about 44%
    Number of layers 92 45 Reduced by about half

    Total parameters dropped by only about 10%, while activated parameters dropped by about 44%. This suggests that the design focuses on the parameters that actually take part in each inference.

    A common misreading should be avoided here. Fewer activated parameters does not mean less memory. All expert weights in an MoE model usually still need to reside in GPU memory (VRAM) or be spread across multiple cards. The memory needed for weights depends on total parameter count, numerical precision, and how the model is partitioned across devices. Activated parameters mainly affect the floating-point operations per token and the amount of weight data read from memory at each step. Fewer activated parameters therefore lower per-token latency and compute cost. Deployment planning, however, still must be based on the total weight size.

    2. Hybrid Design of Sparse and Linear Attention

    2.1 The Bottleneck of Standard Attention

    Standard Transformer self-attention computes the relevance between every token and all other tokens. Its complexity grows as O(n²) with sequence length n. When the context grows from several thousand tokens to hundreds of thousands or even a million tokens, attention computation and the KV cache become the main bottlenecks. The KV cache stores the key and value vectors of past tokens so they do not need to be recomputed. This is the main reason long-context serving is expensive.

    2.2 How the Two Mechanisms Divide the Work

    The hybrid architecture combines two types of attention mechanisms.

    • Linear Attention: Uses a recurrent structure or kernel approximation to reduce attention complexity to O(n), which can substantially lower computation for long sequences. It usually models nearby context well. For precise retrieval of distant information, however, its performance may be weaker than full attention.
    • Sparse Attention: A lightweight Indexer retrieves relevant tokens from the full context. Fine-grained attention is then computed only on the retrieved tokens. This keeps access to long-range dependencies at a lower cost.

    The exact division depends on the specific architecture design. Which layers use linear mechanisms and which use sparse retrieval must be determined through experiments, not inferred from principles alone.

    To further reduce the Indexer’s own overhead, index pooling can be used. It compresses multiple cached vectors maintained by the Indexer into a single vector through weighted aggregation. This reduces the Indexer’s compute and memory use for very long contexts. The cost is that compression discards some fine-grained information, so retrieval accuracy and overhead must be balanced.

    2.3 How to Interpret the Gains

    Public materials state that, compared with the previous approach, this hybrid design significantly reduces both attention computation and KV cache. The specific multiples depend on several conditions: the baseline model used for comparison, the test sequence length, the batch size and numerical precision settings, and whether the Indexer’s overhead is included in the measurement. When these conditions are unclear, the multiples should not be applied directly to your own workload.

    The effect of the KV cache is especially clear in high-concurrency scenarios. The number of sessions a single card can serve often depends on how much GPU memory the KV cache occupies. A smaller KV cache allows a single card to handle more concurrent sessions, which may lower the cost per token served. Whether this reaches call prices or quotas depends on the provider’s pricing policy, so the actual price list should be checked.

    3. Manifold-Constrained Hyper-Connections: Keeping Capability With Fewer Layers

    Reducing the layer count from 92 to 45 raises the concern that halving the depth of representations will weaken capability. One key element of this design is Manifold-Constrained Hyper-Connections.

    Traditional residual connections provide a single identity path, so information accumulates layer by layer. Hyper-connections extend this by allowing richer, learnable information paths across layers. Unconstrained connections, however, can cause training instability and representation collapse. The connections are therefore constrained in a manifold space.

    According to the publicly described approach, this structure has three main effects:

    1. Smoother gradient propagation: Gradient vanishing across layers in deep networks is alleviated, so shallower networks have a better chance of being fully trained.
    2. Stronger representation reuse: Features from shallow layers can be used more efficiently by deeper layers, which reduces reliance on redundant layers.
    3. Possibly higher marginal return from scale: At similar parameter counts, structural improvements help the model keep benefiting from scale. The size of this gain depends on the experimental setup.

    These effects should be read alongside the experimental conditions in the original technical report or paper. Halving the number of layers does not automatically mean equivalent capability. When evaluating a model, use the same tasks and benchmarks rather than relying on layer count or architectural descriptions alone.

    The broader lesson for architecture design is this: when the return from simply adding scale shrinks, improving how information flows through the network is often more effective than making the network deeper.

    4. Native Multimodality: Modeling in One Sequence Space

    One version of this model family introduces native multimodal capability. Its core idea is to model images, documents, video, and text together in a single sequence space. This differs from attaching separate vision encoders to an external language model.

    “Native” does not mean there is no visual encoding or tokenization. Visual inputs still need to be split and encoded before the model can process them. The difference is that visual tokens and text tokens enter the same sequence and are learned jointly during pretraining and later training. They do not rely on an adapter layer added afterward to align them.

    Compared with add-on approaches, the native approach has clear advantages in these scenarios:

    • Visual information enters the reasoning chain directly: In programming, for example, the model can read interface screenshots, architecture diagrams, or error screens and use that visual evidence in code generation and debugging.
    • Cross-modal alignment is more complete: Unified modeling learns semantic alignment during training, which reduces the information loss that can come from a bolted-on adapter.
    • The task loop is more complete: The process can run continuously, from understanding a requirement in an image, to generating code, to checking the running interface. This matters most for intelligent programming assistants and document automation.

    Whether to use a native multimodal model should depend on whether the business actually needs visual information for decisions. If the workload involves only plain text, this capability provides no direct benefit.

    5. Selection and Deployment Checklist

    Based on the above, check the following items when evaluating this kind of efficient architecture model:

    1. Parameter reporting: Record both total and activated parameter counts. Do not rely on just one number.
    2. Weight memory: Calculate the weight footprint per card and across the whole system, based on the target numerical precision and parallelism plan.
    3. KV cache footprint: Estimate the GPU memory needed for the KV cache at your target context length and concurrency.
    4. Long-context performance: Measure time to first token, output tokens per second, and how performance degrades as context length increases.
    5. Concurrency capacity: Test throughput under traffic close to real production load, not just single-request speed.
    6. Business benchmarks: Evaluate with your own data and tasks. Public leaderboard scores serve only as a reference.
    7. Deployment topology: Confirm whether deployment is single-node multi-GPU or multi-node, and assess the communication overhead.
    8. Cost basis: Clarify whether billing is per input and output token or per compute time, and check whether cache-hit discounts apply.

    At the enterprise level, these models typically work with cloud infrastructure. Object storage can hold multimodal assets such as images, documents, and videos. A container platform suits hosting inference services and supports elastic scaling. Message queues can schedule asynchronous tasks and absorb traffic peaks. Logging and monitoring services provide observability for the inference pipeline. How these components fit together depends on the team’s technology stack and business scale. Validate the setup