Low-Cost Architecture of Native Multimodal LLMs: A Technical Breakdown
This article breaks down the architecture of low-cost, native multimodal large language models, showing why they are redesigned from the ground up rather than pruned from larger models. It covers three core structural changes—hybrid sparse and linear attention, manifold-constrained hyper-connections with fewer layers, and unified sequence modeling across modalities—along with a practical framework for evaluating cost efficiency and deployment recommendations for engineering teams.
1. Background: Why “Lightweight” Does Not Mean “Pruned”
When discussing a new generation of efficient multimodal models, the most common misreading is to treat them as compressed versions of a large model produced by “cutting a few corners.” In reality, models built for extreme serving cost and native multimodality are usually the result of architectural redesign: attention mechanisms, connection patterns, and modality modeling are changed together, rather than only trimming parameters from an existing network.
Two real-world constraints explain why this redesign is necessary.
First, attention complexity grows quadratically with sequence length. Standard self-attention requires every token to interact with all historical tokens, so doubling the sequence roughly quadruples the computation, and the KV cache expands at the same time. Long-context understanding, repository-level code comprehension, and video understanding push this bottleneck to its limit.
Second, under a sparse activation architecture, the actual cost per token is determined by the number of activated parameters and memory bandwidth, not by the total parameter count. Total parameters set the upper bound of knowledge capacity, while activated parameters determine the real cost of each forward pass. As a result, “keeping total parameters roughly unchanged while sharply reducing activated parameters” has become the mainstream approach for balancing capability and cost.
2. Core Architecture One: Hybrid Sparse and Linear Attention
The goal of hybrid attention is clear: cover local dependencies with a low-cost mechanism and recall distant information with controllable overhead.
- Linear attention: Captures local dependencies through recurrent state updates, avoiding full attention computation against every historical token, with memory usage growing approximately linearly.
- Sparse attention: Uses a lightweight Indexer to retrieve the truly relevant context segments from global candidates, preserving long-range information across the sequence at a cost far below full attention.
- Index cache compression: Merges the multiple cache vectors produced by the indexer into a single vector through weighted pooling, significantly reducing index latency and memory usage under very long contexts.
The engineering value of this combination is that local and global dependencies are split into two paths with different cost curves, each using the most suitable algorithm, instead of forcing one full-attention mechanism to handle all distances. Publicly described redesigns show that, compared with the previous generation, attention computation can drop by about 3x and the KV cache by about 4x—an order-of-magnitude difference that directly determines whether long-context serving is commercially viable.
Schematically, the hybrid path can be understood as the following pseudocode:
# Pseudocode: structure only, not tied to any specific implementationdef hybrid_attention(x, state, index_pool):local = linear_attention_step(x, state) # Recurrent update covering nearby dependencieskeys = indexer.retrieve(x, index_pool) # Lightweight index recall of distant contextglobal_ctx = sparse_attention(x, keys) # Attention only over the retrieved setreturn fuse(local, global_ctx) # Fuse both outputs
Three points deserve attention during implementation: first, balancing index recall against the compute budget—too little recall harms long-range dependencies, while too much degrades back into full attention; second, the numerical stability of the recurrent state over long sequences; third, whether the information loss from cache compression affects key localization tasks.
3. Core Architecture Two: Manifold-Constrained Hyper-Connections and Fewer Layers
The second key upgrade is Manifold-Constrained Hyper-Connections (mHC). It constrains how features connect within the manifold space, making cross-layer information reuse and gradient propagation more stable, so that performance is maintained or even improved with a significantly reduced number of layers.
A public specification comparison illustrates the point: a previous-generation model with 355B total parameters, 18B… rather, 32B activated parameters, and 92 layers, compared with a new-generation model with 320B total parameters, 18B activated parameters, and 45 layers. Total parameters are essentially flat, activated parameters drop by about 44%, and the layer count is nearly halved.
This brings two levels of benefit:
- Inference side: Lower activated parameters directly reduce memory bandwidth and compute cost per token, improving throughput and concurrency.
- Training and scaling side: A more stable connection scheme keeps the gains from “adding data and compute” from being swallowed by the optimization difficulty of stacking layers, resulting in a steeper scaling curve.
Note that halving the layer count affects interpretability and intermediate-layer probing work. When evaluating, treat “shallower depth” as a variable rather than assuming layer-by-layer comparability with older models.
4. Core Architecture Three: Unified Sequence Modeling for Native Multimodality
The keyword for native multimodality is “unified.” Images, documents, video, and text are mapped into the same sequence space for modeling; visual encoding is no longer an external front-end module but participates directly in the generation loop.
This is fundamentally different from a “text model plus visual adapter” splice:
- Spliced approach: Visual information is first compressed into a few vectors and then injected, so cross-modal interaction is limited by the adapter layer’s capacity.
- Native approach: Different modalities share the same attention and positional encoding rules, and visual tokens can reference code tokens within the same context.
The implications for programming scenarios are especially clear: UI screenshots, design mockups, error screenshots, and demo videos can all serve as part of the context for reasoning and code generation, without relying on manual transcription.
5. Cost and Capacity: How to Evaluate Whether a “Low-Cost Model” Is Actually Worth It
Looking at unit price alone is easy to misjudge. A quantitative evaluation across four dimensions is recommended:
- Cost per token: Estimated from activated parameters and batching efficiency, not just total parameters.
- Long-context cost curve: Stress-test the 32K, 128K, and 1M tiers separately, observing the slope of latency and cache growth.
- Quality-to-cost ratio: Compute task pass rate per unit cost on your own business dataset.
- Quota elasticity: For example, a several-fold increase in available quota for coding subscription plans can directly change a team’s usage strategy, but the official billing documentation should be the source of truth.
A simplified decision formula can be written as:
Cost efficiency = Task pass rate / (Cost per token × Average context length factor)
The context length factor penalizes candidates that are “acceptable in capability but out of control in long-text overhead.”
6. Implementation Recommendations
- Validate architectural fit first: Build an evaluation set from real long documents, code repositories, and mixed video/screenshot inputs, focusing on long-range referencing and cross-modal localization.
- Adjust caching strategy accordingly: After the KV cache drops, concurrency and batch size can be raised moderately, but monitoring and alerting thresholds need to be recalibrated.
- Layered routing: Send simple requests to the small-activation model and escalate complex requests to a larger model, continuously tuning routing rules with logging and monitoring.
- Document capability boundaries: Native multimodality does not mean strength at every visual task; fine-grained counting and precise coordinate localization still require dedicated evaluation.
- Coordinate with infrastructure: Model serving typically relies on a container platform for elastic scaling; pairing it with object storage for multimodal inputs and a message queue for peak shaving is what actually delivers the architectural gains in the cost model.
7. Conclusion
The value of a new generation of efficient multimodal models lies not in being “smaller” but in three structural redesigns: using hybrid attention to bring long-context cost into a linearly controllable range, using manifold-constrained hyper-connections to halve the layer count without losing capability, and using native unified sequence modeling to bring vision truly into the main reasoning loop. For developers, the right evaluation approach is to run quantitative stress tests around your own business’s context length distribution and modality mix, then decide the cost budget and routing strategy. When deploying on platforms such as Baidu AI Cloud, it is likewise recommended to build an observable, rollback-capable evaluation and release loop using general cloud capabilities (container platform, object storage, logging, and monitoring/alerting).
