Native Omni-Modal Open-Source LLMs: A Technical Breakdown of Architecture, Evaluation, and Cost
This article examines the technical shift from拼接式 multimodal pipelines to native omni-modal modeling, using Baidu's open-sourced ERNIE 4.5 series as the reference case. It explains how a unified Transformer backbone handles text, image, audio, and video tokens, why Mixture-of-Experts (MoE) sparse activation has become standard in open-source LLMs, and the operational trade-offs it introduces around memory and load balancing. It then presents a reusable four-dimension evaluation framework covering accuracy, latency, token consumption, and unit cost, walks through benchmark results across seven domains, and shows how to convert token usage into a predictable budget. Readers will find selection guidance for knowledge-intensive QA, high-concurrency online services, and AI agent tool-calling scenarios.
1. Open-Source Omni-Modal Models: From Bolted-On Multimodality to Native Unified Modeling
Baidu recently open-sourced the ERNIE 4.5 series, bringing renewed attention to the “native omni-modal” approach. Understanding the value of this release starts with distinguishing two fundamentally different ways to build multimodal systems.
The traditional approach is bolted-on: a text encoder, a vision encoder, and an audio encoder are trained independently, then a projection layer or adapter maps vectors from each modality into a shared semantic space, which a language model uses for joint reasoning. This architecture is cheap to engineer, but it carries two hard-to-avoid flaws. First, an information bottleneck exists between modalities, and the projection layer discards a large amount of fine-grained detail. Second, the training objectives of each modality are inconsistent, which makes alignment quality unstable.
Native omni-modal unified modeling instead represents text, images, audio, and video as discrete or continuous token sequences, and models them with a single Transformer backbone and one attention mechanism. The key benefit is that any modality can serve as either input or output, and the model learns shared cross-modal representations rather than stitching things together after the fact.
From an engineering standpoint, the most immediate change is a simpler inference path. Illustrative call logic:
# Pseudocode: unified multimodal input and outputmessages = [{"role": "user", "content": [{"type": "text", "text": "Analyze whether the actions in this video follow the correct procedure"},{"type": "video", "data": video_bytes},{"type": "audio", "data": audio_bytes},]}]resp = client.chat.completions.create(model="ernie-4.5", # Refer to the official documentation for the exact model IDmessages=messages,stream=True, # Streaming is recommended for long outputs)
Developers should note that unified modeling is not zero-cost. Tokenizing video and audio significantly lengthens the context, which raises the bar for context window management, chunked preprocessing, and caching strategies.
2. Mixture-of-Experts Architecture: Why Sparse Activation Became the Open-Source Default
The ERNIE 4.5 series uses a Mixture-of-Experts (MoE) sparse architecture, which is also the mainstream choice among open-source LLMs today. The core idea is to split the feed-forward layers into multiple “expert” subnetworks, with a gating network selecting a few experts to participate in computation for each token.
The value of sparse activation can be understood through a simple capacity formula:
Total parameters ≈ activated parameters × number of experts / activated expertsEffective compute ≈ activated parameters × number of tokens
This means a model can retain very large parameter capacity (knowledge storage) while keeping the actual compute per inference at a level comparable to a much smaller model. For developers, this has two practical consequences:
- Memory footprint and compute consumption are decoupled. Deployment must reserve memory for all experts, but throughput depends only on activated parameters, so “can it fit” tends to become the bottleneck before “is it fast.”
- Load balancing becomes an operational priority. If the gating network distributes expert selection unevenly, some experts become overloaded while others sit idle, which is constrained during training through an auxiliary loss function.
3. Evaluation Methodology: A Reusable Framework Built on Four Dimensions
The original evaluation data reveals an important fact: model iteration does not improve every dimension in lockstep. Objectively judging the benefit of a version upgrade requires a multi-dimensional metric system covering at least the following four categories:
| Metric | Meaning | Optimization target |
|---|---|---|
| Accuracy | Task correctness rate, broken down by domain | Capability gains |
| Average latency | End-to-end time per call | Better experience |
| Token consumption | Total input and output tokens per call | Cost control |
| Unit cost | Cost per thousand calls | Predictable budget |
In a typical full evaluation run (roughly 15,000 questions), the release version showed the following structural changes versus the preview version: overall accuracy rose from 67.5% to 70.9%, a gain of 3.4 percentage points, and the composite ranking jumped from 22nd to 7th. Average latency dropped from 301 seconds to 225 seconds, an improvement of about 25%. Meanwhile, average token consumption per call increased from 3,202 to 3,897, up about 21.7%.
The internal logic of this data set is worth digging into: latency falling while token usage rises indicates that scheduling efficiency and parallelism in the inference path were optimized, offsetting the extra overhead of a longer reasoning process. In other words, the model “thinks longer” but “thinks faster.”
Domain-level data further confirms that capability transfer is uneven:
- Education: 50.4% → 55.7% (+5.3)
- Reasoning and math: 74.0% → 78.7% (+4.7)
- Finance: 74.1% → 78.8% (+4.7)
- Healthcare and mental health: 76.0% → 80.3% (+4.3)
- Agents and tool calling: 58.4% → 61.9% (+3.5)
- Language and instruction following: 65.9% → 68.0% (+2.1)
- Legal and administrative affairs: 82.3% → 81.7% (-0.6)
The small decline in the legal domain is a classic capability trade-off: when training resources shift toward reasoning and tool calling, knowledge-heavy tasks that were already at a high baseline can regress slightly. The takeaway for anyone doing model selection is that no single general-purpose model is best on every dimension; there are only models that match a given workload distribution.
4. Cost Modeling: Turning Token Consumption into a Budget
Cost accounting is the part most often underestimated during deployment. A reusable estimation template:
# Illustrative cost estimate; refer to the official pricing documentation for actual ratesdef estimate_cost(calls_per_day, tokens_per_call, price_per_million):daily_tokens = calls_per_day * tokens_per_calldaily_cost = daily_tokens / 1_000_000 * price_per_millionreturn daily_tokens, daily_cost# 15,000-question evaluation, roughly 3,897 tokens per calltokens, cost = estimate_cost(15000, 3897, price_per_million=1.0)print(tokens, cost) # about 5.85e7 tokens
Scaled against the reported order of magnitude per thousand calls, a budget for 100,000 calls per day needs to be scaled linearly by the same ratio. Optimization options include enabling result caching for high-frequency repeated requests, reducing reasoning depth for non-critical scenarios, using streaming output to improve perceived latency, and applying retrieval-based trimming to long documents before they enter the model.
5. Deployment Guidance: Selection Strategy for Three Scenario Types
- Knowledge-intensive QA: prioritize accuracy and hallucination rate; higher token consumption is acceptable.
- High-concurrency online services: treat average latency and unit cost as hard constraints, and split traffic across large and small models when necessary.
- Agents and tool calling: focus on validating multi-turn planning stability and structured output success rate; this dimension remains a relative weak spot today (around 61.9%).
Overall, open-sourcing native omni-modal models with a sparse expert architecture turns multimodal capability from a proprietary service offered by a handful of vendors into infrastructure developers can compose freely. Real engineering skill shows up in whether you can use a rigorous evaluation framework to identify capability boundaries, and convert a token budget into a predictable cost curve.
