Native Multimodal LLMs: Architecture, Cost, and Deployment Explained

    This article breaks down how native multimodal large language models differ from modular vision-language pipelines, and examines the three architectural choices that shape their cost structure: sparse activation through mixture-of-experts routing, hybrid attention for long contexts, and index cache compression for KV cache growth. It also clarifies the difference between total and activated parameters, offers a four-dimension framework for comparing price and performance, and closes with a practical deployment checklist covering capacity planning, observability, and cost attribution.

    1. From Modular Multimodal to Native Multimodal

    Over the past two years, the mainstream way to add multimodal capability has been modular assembly: a vision encoder splits an image into patches and encodes them as visual tokens, a projection layer maps those visual features into the language model’s embedding space, and a text-only backbone performs joint modeling on top. The approach is mature from an engineering standpoint, but it runs into three problems that are hard to avoid.

    First, there is an information bottleneck between modalities. The vision side has already applied strong compression during encoding, so the language backbone receives a “summarized” representation. Fine-grained details — small text, chart axis ticks, symbols in code screenshots — are easily lost.

    Second, the training pipeline is fragmented. The vision encoder, projection layer, and language backbone are often trained in separate stages with inconsistent objectives, which makes alignment quality depend on extensive manual tuning.

    Third, the resource profile at inference time is not unified. Text requests and image requests differ sharply in compute, memory, and latency characteristics, so the serving side can only reserve capacity for the worst case, leaving utilization low.

    The native multimodal approach unifies different modalities into a single token sequence and a single set of parameters, performing joint modeling from the pre-training stage onward. The direct benefits: modality alignment is driven by data rather than manual assembly; downstream tasks can be served through a unified interface; and the model has stronger structural awareness of real-world inputs such as interleaved text and images, multi-image comparison, and charts combined with tables.

    It is worth stressing that native multimodal does not mean “anything can be stuffed in.” What changes is the modeling approach, not the engineering constraints. The longer the context and the more varied the modalities, the more attention cost and cache footprint remain the core variables that determine cost.

    2. Sparse Activation: Decoupling Parameter Count from Inference Cost

    One key point in the original material is that total parameter count is far larger than the number of parameters activated in a single forward pass. This is a common practice in sparse architectures across the industry, with mixture-of-experts (MoE) structures as the typical example.

    The core logic can be expressed with a simple routing sketch:

    1. # Sketch: forward pass of sparse routing (pseudocode)
    2. logits = router(hidden_state) # score every expert for each token
    3. topk_idx, topk_w = topk_softmax(logits, k=2)
    4. out = 0
    5. for idx, w in zip(topk_idx, topk_w):
    6. out += w * experts[idx](hidden_state) # only the selected experts are activated

    Three concepts that are often conflated need to be separated:

    • Total parameter count determines the model’s knowledge capacity and training ceiling;
    • Activated parameter count determines the compute per forward pass (FLOPs);
    • Memory footprint is driven mainly by total parameter count, because all expert weights must either reside in memory or be swapped in quickly.

    So “only a small fraction of parameters are activated” means the compute bill drops significantly, but it does not automatically reduce the memory bill. Common engineering responses include sharding experts across devices, tiered caching by popularity, and placing low-frequency experts on cheaper storage tiers while tolerating some swap-in latency. For capacity planning, use “concurrency × activated parameters per request” as the compute baseline and “total weights + cache + activation tensors” as the memory baseline, and account for the two separately.

    The cost of a sparse architecture is load imbalance. A few popular experts being over-selected creates hotspots, while unpopular experts sit idle and waste capacity. Observable metrics include the entropy of the expert selection distribution, the P99-to-mean ratio of per-expert QPS, and the routing jitter rate. When clear skew appears, the usual fix is to adjust data mixture and routing regularization rather than simply adding capacity.

    3. Hybrid Attention: The Real Lever on Long-Context Cost

    Attention complexity grows quadratically with sequence length, which is the fundamental reason million-token contexts are hard to make mainstream. The industry commonly adopts a hybrid architecture of linear attention plus sparse attention: linear attention carries global information compression at low cost, while sparse attention preserves high-resolution precise retrieval at key positions.

    The key to understanding this design is the division of labor:

    • Linear/recurrent branch: carries historical information in a fixed-size state, with complexity roughly linear in length, suited to long-range semantics and topic continuity;
    • Sparse/windowed branch: computes full attention only within a local window or on a small number of selected global tokens, preserving precise alignment and retrieval;
    • A few full-attention layers: usually kept in shallow or specific layers, used for strong cross-segment modeling.

    The practical recommendation is layered configuration rather than a single global setting. Use a wider local window in shallow layers to capture lexical features, and a sparser global selection in deeper layers to perform semantic integration. When evaluating, do not look only at end-to-end metrics; measure three probe tasks separately — long-document retrieval, cross-document coreference, and structure reconstruction — because their sensitivity to sparse patterns differs completely.

    4. Index Cache Compression: Turning KV Cache from Linear Growth into a Controllable Constant

    The other half of long-context inference cost is the cache. Autoregressive decoding needs to cache key-value pairs for historical tokens, and that footprint grows linearly with length. When a model introduces an indexer (used to select which tokens participate in exact attention), the index itself produces multiple cache copies, further amplifying memory pressure.

    Merging and compressing the indexer’s multiple caches into one is a very practical optimization in this class of architecture. The benefits are threefold: lower memory footprint, lower bandwidth pressure from cache swap-in and swap-out, and less memory traffic per decoding step, which reduces per-token latency.

    A simplified capacity estimate:

    1. # Sketch: long-context cache capacity estimate
    2. bytes_per_token = 2 * n_layers * n_kv_heads * head_dim * dtype_bytes
    3. kv_cache = seq_len * bytes_per_token
    4. index_cache = seq_len * index_bytes * n_index_copies # before compression
    5. index_cache_compressed = seq_len * index_bytes # after compression
    6. total = kv_cache + index_cache_compressed + activations

    Three engineering points also matter. First, cache paging and block size affect fragmentation: blocks that are too small raise metadata overhead, while blocks that are too large waste space. Second, prefix reuse (identical system prompts, identical documents) can significantly cut repeated computation, but it must work together with the cache eviction policy. Third, if the compressed index uses an approximate structure, recall must be monitored to avoid silent degradation of long-document retrieval.

    5. How to Compare Price and Performance Correctly

    Much of the original discussion centered on “which unit price is higher,” which is not enough for engineering decisions. A reusable comparison framework should cover four dimensions:

    1. Cost per effective unit: price the cost of completing one business task, not the price per million tokens. Task success rate, retry rate, and average number of turns all change the real bill.
    2. Cache hit rate: cached inputs are usually billed at a significantly lower price. Raising the hit rate from 30% to 70% can cut overall cost by more than half. Ways to improve it include stable prefixes, leaner system prompts, and placing variable content at the end.
    3. Output share: output tokens usually cost more than input tokens, so compressing output length (structured output, limiting explanatory text) is often more effective than switching models.
    4. Latency cost: experience losses from timeouts and queuing should be folded into total cost, and time-to-first-token is especially sensitive in long-context scenarios.

    A workable skeleton for cost estimation:

    1. def estimate_cost(reqs, price_in, price_out, cache_price_in, hit_rate):
    2. total = 0.0
    3. for r in reqs:
    4. cached = r.in_tokens * hit_rate
    5. uncached = r.in_tokens - cached
    6. total += cached * cache_price_in + uncached * price_in
    7. total += r.out_tokens * price_out
    8. return total

    6. Deployment Checklist

    • Define modality boundaries: first measure the share and resolution distribution of images, charts, and scanned documents in real inputs, then decide whether to enable native multimodal capability.
    • Layered context strategy: put stable content first so it can reuse cache, split long documents before retrieving on demand, and avoid loading an extra-long context all at once.
    • Dual-baseline capacity planning: account for compute by activated volume and memory by total weights plus cache, with separate watermark alerts.
    • Observability first: collect at least four metrics — cache hit rate, time-to-first-token, per-request token distribution, and task success rate — and close the loop with logging and alerting.
    • Build your own evaluation set: construct a small regression set from real business samples, and run the regression before scaling up whenever the model or parameters change.
    • Cost attribution: break the bill down by business line, identify high-consumption scenarios, and prioritize prompt and cache optimization over switching models.

    Overall, what deserves the most attention in this generation of native multimodal models is not a single benchmark score, but the change in cost structure produced by combining sparse activation, hybrid attention, and cache compression. Understanding where each of the three applies is what makes it possible to make engineering decisions that preserve quality while controlling cost in real workloads where long context and multimodality coexist.