Native Multimodal Large Models: Technical Architecture and Engineering Practices

    This article breaks down the architecture and engineering of a native multimodal large model that was tested under real traffic anonymously before being open-sourced. It explains how sparse Mixture-of-Experts (MoE) decouples total capacity from inference cost, how hybrid attention enables million-token contexts, and how native multimodal training unifies visual and language representations. It also covers building a visual self-check loop for coding and document workflows, controlling cost and compute at high concurrency, and evaluating models beyond a single leaderboard.

    1. From Anonymous Load Testing to Open Source: A Technical Case Worth Studying

    A native multimodal large model recently appeared in the developer community under an anonymous identity, was validated against real traffic, and was then officially open-sourced. It has a total parameter count on the order of 320 billion, activates only about 18 billion parameters per inference pass, and supports multiple input modalities including text, images, video, and files.

    This “load test first, release later” path is itself an engineering methodology worth learning from: it validates model stability, throughput, and cost curves using real API calls rather than offline benchmarks.

    For developers, the more valuable questions are not “which model is the strongest,” but rather: How can large sparse-parameter models keep costs low under high concurrency? How does hybrid attention support million-token contexts? How can multimodal capabilities be genuinely embedded into coding and office workflows? This article focuses on these general technical questions.

    2. Architecture: How Sparse Experts and Hybrid Attention Work Together

    2.1 Sparse MoE: Trading Total Capacity for Inference Cost

    The core idea of sparse Mixture-of-Experts (MoE) is that the model holds a massive parameter pool, but each token passes through only a few expert networks. Total parameters determine knowledge capacity, while activated parameters determine the compute per pass. Decoupling the two makes it possible to scale model capacity without linearly increasing inference cost.

    Three engineering concerns stand out:

    • Routing balance: preventing a few experts from becoming overloaded.
    • Communication overhead: expert parallelism introduces additional collective communication.
    • Batching efficiency: dynamic routing creates uneven load, so capacity factors and drop policies must work together.
    1. # Illustrative load-balancing auxiliary loss for sparse routing
    2. def load_balance_loss(router_logits, expert_mask):
    3. # router_logits: [num_tokens, num_experts]
    4. probs = softmax(router_logits, dim=-1)
    5. # Fraction of tokens assigned to each expert
    6. f = expert_mask.float().mean(dim=0)
    7. p = probs.mean(dim=0)
    8. return num_experts * (f * p).sum()

    2.2 Hybrid Attention: The Key Constraint for Long Contexts

    If million-token contexts relied entirely on full attention, compute and memory costs would grow quadratically with sequence length. The common industry approach is to mix sparse attention with linear attention: local windows handle fine-grained modeling, global or sparse paths handle long-range dependencies, and linear paths compress state approximately.

    Compressing the layer count from more than ninety to just over forty is another common direction for models of this class. Deeper stacking does not necessarily yield gains; rebalancing width, expert count, and attention efficiency is often a better trade-off.

    2.3 Native Multimodality: Unified Representation Rather Than Bolted-On Adapters

    The difference between “native multimodal” and “bolted-on vision modules” lies in whether modeling is unified during training. Native approaches mix image-text, video, and document data into the pretraining corpus (on the order of about 30T tokens of multimodal data for models of this kind), so that vision and language share the same representation space. This leads to more consistent cross-modal reasoning and instruction following.

    3. Putting Capabilities to Work: The Visual Coding Loop and Document Intelligence

    The most engineering-valuable aspect is feeding visual understanding back into the production process, forming a “generate-observe-correct” loop:

    • Front-end development: after generating UI code, render screenshots and compare layout and style deviations.
    • Games and 3D scenes: check multi-view consistency and detect collision and occlusion issues.
    • Office documents: validate the structure and layout of presentations, spreadsheets, and PDFs against aesthetic and formatting standards.
    1. Generated output -> Render/convert -> Visual sampling -> Model self-check -> Diff localization -> Iterative correction

    This loop turns “invisible text reasoning” into “observable visual feedback,” significantly reducing manual rework.

    4. Cost and Compute: Doing the Math

    Under high concurrency, cost is roughly (activated parameters × token count × unit price) + memory and communication overhead. Practical strategies include: prefix caching to reuse system prompts, routing to models of different sizes, batching and streaming output, and context trimming and summary compression. If inference traffic is served by domestic compute clusters, operator coverage and quantization support should be validated in advance. On the enterprise side, container platforms with elastic scaling, logging services, and monitoring and alerting systems can be combined to build cost dashboards grouped by business line.

    5. Evaluation: Don’t Rely on a Single Leaderboard

    A three-layer evaluation approach is recommended:

    • Composite scores such as general intelligence indices.
    • Scenario-specific task sets (code runnability rate, document structure correctness, visual localization error).
    • Engineering metrics (time to first token, throughput, cost per token).

    Anonymous canary releases and real-traffic replay are the most effective ways to surface long-tail issues.

    6. Conclusion

    Large-scale sparsification, hybrid attention, native multimodality, and the visual self-check loop together form the technical backbone of a new generation of cost-effective multimodal models. For teams, real competitiveness comes from embedding model capabilities into an observable, measurable, and rollback-capable engineering pipeline. Building your own multimodal application loop on top of the general container, storage, and monitoring capabilities of cloud platforms such as Baidu AI Cloud is the sustainable path.