The Evolution of Native Multimodal Sparse Architectures: Sparse Activation, Hybrid Attention, and Hyper-Connections
This article breaks down how a new generation of native multimodal sparse models keeps total parameter count high while cutting the cost per token. It explains the engineering meaning of roughly 320B total parameters with 18B activated parameters, how hybrid attention combines linear attention for local dependencies with sparse attention and a lightweight indexer for global recall, how manifold-constrained hyper-connections (mHC) offset the loss of depth when layers are nearly halved, and what changes when vision, documents, video, and text share one sequence space. It closes with a practical evaluation and deployment checklist covering layered benchmarks, cost metrics, routing balance, caching and batching strategies, and canary rollback, plus the key takeaway that architecture selection should shift from parameter size to effective intelligence per unit cost.
1. The Starting Point: Why “More Parameters” and “Higher Cost” Are Always Bundled
Before looking at the new generation of sparse multimodal models, it helps to state the engineering constraints plainly. Over the past two years, gains in model capability have come mainly from two directions: increasing the total parameter count, and extending the context length the model can handle. Both push cost toward the same bottleneck: attention.
In a standard Transformer, self-attention requires every new token to interact with all historical tokens, so computation grows quadratically with sequence length. During inference, the scarce resource is often not compute but memory bandwidth and KV cache capacity. When context expands from a few thousand tokens to the million-token range, the cache alone can exceed the model weights several times over, which means a single device can no longer hold it, batch concurrency is squeezed very low, and time-to-first-token becomes unpredictable.
This makes one technical direction clear: keep the total parameter count large enough to preserve knowledge capacity, while pushing down both the number of parameters each token actually uses in computation and the cache each token has to read and write. That is the core proposition of sparse activation combined with hybrid attention.
2. Sparse Activation: What 320B Total and 18B Activated Parameters Mean in Practice
The specifications of a recent native multimodal model are representative: about 320 billion total parameters and about 18 billion activated parameters. Compared with the previous generation, the total parameter count is roughly flat, but activated parameters dropped by about 40 percent, and the number of layers was nearly halved (from the mid-40s down to the low 20s).
These numbers need to be unpacked:
- Total parameter count sets the “knowledge ceiling.” It mainly determines how much factual knowledge and fine-grained pattern information the model can hold, but not every token needs to read all of it.
- Activated parameters determine the “cost per token.” Under a sparse activation design such as mixture of experts, each token is routed to only a few experts, so the parameters that actually participate in matrix multiplications drop sharply, reducing both compute and memory bandwidth pressure.
- Layer count affects “serial depth.” Fewer layers shorten the critical path, which helps latency, but they also weaken the representation refinement that conventional residual stacking provides, so additional connection mechanisms are needed to compensate.
A common misconception is that fewer activated parameters automatically means higher speed. Actual throughput also depends on whether routing is balanced, whether experts develop hotspots, and whether cache management is efficient. In engineering terms, you have to watch load distribution and cache hit rate at the same time; otherwise average latency looks good while tail latency runs out of control.
3. Hybrid Attention: Dividing Labor Between Sparse and Linear
This class of models introduces a hybrid structure of sparse attention plus linear attention in open-source frontier designs. The key points can be abstracted into three general engineering principles.
First, local dependencies are handled by a recurrent mechanism. Linear attention compresses history through state recurrence, turning “compute against every historical token one by one” into “maintain a fixed-size state and keep updating it.” Complexity becomes roughly linear in sequence length, at the cost of weaker exact long-range retrieval.
Second, global information is recalled through a lightweight index. Sparse attention adds a small-scale Indexer that first filters, at low cost, the few historical positions most relevant to the current query, then runs full attention only over that subset. This preserves long-distance dependencies across the sequence while avoiding full computation.
Third, the indexer’s own overhead is reduced as well. The indexer also needs to cache intermediate vectors, which accumulates into a considerable memory and latency burden at million-token context. A general approach is weighted pooling over the indexer’s multiple cached vectors, compressing 4 vectors into 1, which lowers the cost of the indexing stage with almost no loss in recall quality.
The following pseudocode expresses this division of labor and makes the execution order easier to follow:
# Conceptual illustration only, not the interface of any specific productdef hybrid_attention(q, k_local, v_local, state, indexer):# 1) Linear branch: recursively update a fixed-size state to capture local dependenciesstate = update_state(state, k_local, v_local)out_linear = read_state(q, state)# 2) Sparse branch: indexer recalls a small number of global positionsidx = indexer.topk(q, k=64) # low-cost filteringout_sparse = full_attention(q, k_global[idx], v_global[idx])# 3) Fusionreturn gate * out_linear + (1 - gate) * out_sparse
From a complexity standpoint, this combination splits total cost into “a local term that grows linearly plus a global term that is close to constant,” which visibly flattens the cost curve as context grows. The engineering gains show up in three places: attention computation drops by roughly 3x, KV cache size drops by roughly 4x, and concurrency in long-text scenarios recovers significantly.
4. Manifold-Constrained Hyper-Connections: Why Halving Layers Does Not Cost Accuracy
Fewer layers usually means reduced expressive power. That is the conventional expectation. But with manifold-constrained hyper-connections (mHC), a new generation of architectures produces a different result: capability does not degrade as layers are reduced, and the returns from scaling are amplified instead.
Two mechanisms make this understandable:
- Constraining how layers connect improves gradient propagation. A traditional residual is a simple addition of an identity mapping, and in deep networks this tends to produce gradient redundancy and representation collapse. Hyper-connections generalize the connection between layers from “addition with fixed weights” to “a learnable cross-layer connection matrix,” while the manifold constraint keeps those connections varying within a reasonable geometric space, avoiding unstable training.
- Stronger representation reuse. Cross-layer connections let shallow features be used more directly by deeper layers, effectively increasing the number of usable paths without adding layers, which compensates for the loss of depth.
The lesson for practitioners is that depth is no longer the only capability lever; connection topology is also a designable architectural dimension. When evaluating designs like this, track training stability indicators such as gradient norm distribution and the frequency of loss spikes, not just final accuracy.
5. Native Multimodality: What a Unified Sequence Space Actually Changes
The difference between “native multimodal” and “a bolted-on vision encoder” comes down to where modeling happens. The former maps images, documents, video, and text into the same sequence space, and the output of visual encoding participates directly in backbone computation as part of the token sequence. The latter extracts visual features independently first, then concatenates them through a projection layer, so the vision branch never takes part in the backbone inference loop.
A unified design changes several things:
- Visual information can participate in a multi-step reasoning loop instead of being injected once. For code-related tasks, this means UI screenshots, error screenshots, and design mockups can enter a closed loop of “look at the image, locate the issue, modify the code, verify again.”
- The temporal and spatial structure of long documents and video can be expressed through a unified positional encoding, reducing the need for extra cross-modal alignment modules.
- Training and inference paths are unified, which simplifies the engineering stack but raises the bar for sequence length optimization, which is exactly why hybrid attention is necessary.
6. A Practical Checklist
To evaluate a similar architecture in your own environment, proceed in this order:
- Build a layered evaluation suite: short-context accuracy, long-context retrieval (needle-in-a-haystack style tasks), multimodal understanding, and code generation and repair. Score the four separately so a total score does not hide weak spots.
- Track three cost metrics: memory bandwidth per token, peak KV cache, and time-to-first-token together with tail latency (P95/P99).
- Verify routing balance: measure the expert load distribution, and if clear hotspots appear, spread requests at the gateway layer or adjust the batching strategy.
- Design caching and batching strategies: prefix cache reuse, chunked prefill, and continuous batching are the main levers for cutting long-context cost.
- Canary and roll back: run the new architecture on offline tasks and internal tooling first, and keep a rollback path to the previous version.
For deployment shape, the common approach is to run inference services on a container platform, store models and datasets in object storage, use a message queue to smooth request spikes, and track latency and error rates with logging, monitoring, and alerting. Baidu AI Cloud provides standard support for these general capabilities, but the actual selection should still be based on your own load test results.
7. The Judgment Worth Noting
Overall, what matters most about this generation of architecture is not any single number but three curves being pushed down at the same time: per-token computation, cache capacity, and serial depth. Sparse activation addresses the parameter dimension, hybrid attention addresses the sequence dimension, hyper-connections address the depth dimension, and native multimodality folds the modality dimension into the sequence dimension. Only when the four stack together does “larger knowledge capacity + longer context + lower serving cost” become simultaneously achievable for the first time. For developers, the practical meaning is that the cost-performance inflection point for long context and multimodal capability is arriving, and the focus of architecture evaluation should shift from “how large is the parameter count” to “effective intelligence per unit cost.”
