Open-Source Multimodal LLMs in China: Technical Routes and a Practical Guide
This article breaks down two emerging technical routes in the open-source multimodal model space: document-centric visual processing redesign and unified all-in-one architectures. It explains how each route works, how to interpret evaluation metrics, where throughput gains actually come from, and what to consider when choosing between them. Readers will find practical guidance on building their own evaluation loops, controlling cost, and setting up supporting engineering infrastructure.
1. Open-Source Multimodal: From “Reading Images” to “Understanding Tasks”
Over the past two years, the mainstream narrative around multimodal capability has been “chop an image into patches and splice them into a language model.” But as real workloads move from demos to production, engineering teams quickly discover that the bottleneck is not whether the model can recognize objects. It comes down to three things: whether document inputs can be structurally reconstructed reliably, whether vision and code/agent capabilities can be unified in a single model, and whether throughput and cost per unit remain under control. The recent wave of open-weight multimodal releases essentially pushes all three questions to the forefront at once.
Two technical routes are becoming clear. One centers on document understanding intelligence, reworking the logic of visual information processing to turn a model from “a machine that only takes pictures” into “an expert that understands reading comprehension.” The other pursues a unified all-in-one architecture, converging vision, text, dialogue, agent, and coding capabilities into a single model that covers many task types with one set of weights. The two are not mutually exclusive; they optimize for “deep structured understanding” and “broad task generalization” respectively.
2. Route One: Reworking Visual Processing for Document Understanding Intelligence
2.1 The Key Change Is the Information Path, Not the Parameters
The difficulty in document scenarios lies in layout: multi-column formatting, cross-page tables, mixed figure captions, and interference from headers and footers. The traditional approach scales a page proportionally and encodes it in one pass, so small fonts and thin bounding lines are lost during encoding. Reworking the visual processing logic usually means introducing higher-resolution patch encoding, dynamic resolution, and positional encoding enhancements, so the model retains legible glyph details and layout geometry at the encoding stage.
2.2 A Two-Stage Flow: “Plan the Reading Path First, Then Extract Information”
This can be abstracted into a three-part pipeline:
- Global perception: use bidirectional attention to perform a coarse-grained scan of the whole page, locating elements such as titles, body blocks, tables, and figures along with their relative positions;
- Path planning: generate a set of causally structured planning tokens that express the semantic order of “which column to read first, whether a table goes row-wise or column-wise, which paragraph a caption belongs to”;
- Sequential reconstruction: autoregressively output text along the planned path, so multi-column newspapers and complex forms can be reconstructed in an order that matches human reading habits.
Illustrative pseudocode (expressing the flow only, not corresponding to any specific API):
layout = encoder.global_perceive(page_image) # elements and positionsplan = planner(layout) # reading-order tokenstext = decoder.generate(plan, page_image) # reconstruct in order
The value of this “planning first” approach is that it moves layout ambiguity from the decoding stage forward into the planning stage, significantly reducing order scrambling and cross-column bleed in long documents.
2.3 How to Read the Metrics
Document understanding evaluations typically focus on two kinds of metrics: an overall score for recognition and structural reconstruction, and reading-order quality, commonly measured with edit distance—a lower value means the output order is closer to the annotated order. Keep in mind that public leaderboard scores are heavily affected by evaluation-set version, preprocessing, and post-processing. For engineering selection, run a small-scale regression on your own business samples rather than relying on leaderboards alone.
2.4 Efficiency Comes from the System, Not a Single Trick
High throughput is rarely the result of one technique; it is a combination: controlling the visual encoder’s parameter count, visual token compression and merging, per-page batching with operator fusion, and quantization plus cache reuse on the inference side. General approaches worth attention in engineering include capping dynamic resolution, batch scheduling with per-page concurrency, KV cache reuse, and placing lightweight models such as layout analysis up front to filter out invalid pages.
3. Route Two: The All-in-One Unified Multimodal Foundation Model
3.1 Mixture-of-Experts Architecture and Capability Convergence
Another route uses a large-scale mixture-of-experts (MoE) foundation, placing visual understanding, code generation, tool calling, and multi-step agent behavior in the same model. Its core engineering implication is that the routing network activates a subset of experts per token, controlling the activated compute per inference while keeping the total parameter count large. For developers, this means simplified deployment of “one model, many tasks,” but it also brings tuning needs around memory footprint and uneven routing load.
3.2 Image to Code: From Design Mockups to Runnable Interfaces
A typical capability of a unified model is “write code from an image”: given a UI screenshot or floor plan as input, output structured code. Taking floor-plan-to-3D-layout generation as an example, the workflow can be abstracted as follows:
Input: floor plan / screenshot↓ Visual encoding and element recognition (walls, doors/windows, furniture, annotations)↓ Semantics to intermediate representation (room graph / component tree / style tokens)↓ Code synthesis (componentization + style system + interaction binding)↓ Static checks and visual previewOutput: a runnable front-end project
In practice, it is advisable to add an “intermediate representation” layer to avoid the model jumping straight from pixels to code with uncontrollable structure; use automated static checks and screenshot regression for closed-loop validation.
3.3 Agents and Parallel Tasks
The advantage of a unified model shows in parallel complex tasks: parsing a document while calling retrieval and computation tools while generating outputs. Key points for implementation are to define clear tool contracts, set step and budget limits, require human confirmation for critical actions, and write the whole process into logging services and monitoring alerts for traceability and cost control.
4. Selection and Implementation Recommendations
- Prioritize the task profile: choose the document understanding intelligence route if structured document reconstruction is the main goal; choose the unified architecture if the focus is multiple tasks and multiple output forms.
- Build a closed-loop evaluation: construct a small benchmark from business samples covering layout complexity, table density, code runnability, and end-to-end latency.
- Three cost factors: throughput (pages/sec or tokens/sec), memory and concurrency, and cost per task—look at all three together, not just one.
- Engineering support: use object storage for raw and output files, a message queue for peak shaving and task decoupling, a container platform for elastic inference, and logging plus monitoring for observability.
- Security and compliance: desensitize sensitive documents before feeding them to the model, and run generated code through license and vulnerability scans.
5. Conclusion
The intense competition in open-source multimodal models means real benefits for developers: more choices, lower costs, and faster iteration. Understanding the mechanistic differences between the two routes and building an evaluation and engineering loop centered on business samples is what turns leaderboard buzz into stable production capability. If needed, you can build your own evaluation and inference pipelines on top of general capabilities from Baidu AI Cloud (such as container platform, object storage, and logging and monitoring), keeping your technology stack neutral and portable.
