Sparse Architectures and Native Multimodal Models: Rethinking AI Coding Costs
This article examines how sparse mixture-of-experts activation and native multimodal pretraining are changing the cost equation for AI-assisted coding. It explains the capacity-compute trade-off and deployment overheads of MoE, the difference between native and bolt-on multimodal models for visual code inspection, and why teams should evaluate cost per successful task rather than sticker price alone. It also stresses verifying benchmark details and official pricing before drawing conclusions about any specific model.
Introduction: The Old Equation Between Capability and Price Is Loosening
For a long time, many teams assumed an equation: to get frontier reasoning, coding, and long-context capabilities, they had to accept high invocation costs. When designing architectures, teams often traded off quality against budget.
Recent public progress in open-source large models has opened new room for discussion around this equation. According to official disclosures, a natively multimodal model using a new architecture has about 320B total parameters, activates about 18B parameters per inference, and comes close to leading closed-source flagship models on several composite benchmarks. The model is open-sourced under the MIT license, and the official disclosure also states that inference services run on domestically produced chips.
These claims are worth attention but need verification. Benchmark results should be checked against the specific evaluation sets, scores, test dates, and compared model versions; prices should be checked against the date and billing basis on the official pricing page. This article does not draw conclusions about any specific product. Instead, it discusses what this type of technical route means for developers and enterprises from four perspectives: sparse activation, native multimodality, cost modeling, and engineering deployment.
1. Sparse Activation Architecture: Carrying More Parameters with Less Compute
1.1 Basic Idea of Mixture-of-Experts
Mixture-of-Experts (MoE) splits the feed-forward network into multiple expert subnetworks. A router dynamically selects a small number of experts for each token to participate in computation, while the remaining experts stay idle at this step.
Using public numbers as an example, the ratio of 18B to 320B is about 5.6%. This means the amount of computation in a single forward pass is close to that of an 18B-class dense model, while the knowledge capacity is carried by all 320B parameters. The actual activation ratio varies with routing strategy, batch size, and input content, so this ratio can only serve as an order-of-magnitude estimate.
MoE mainly brings three benefits:
- Capacity-compute decoupling: parameter scale can grow while per-token computation is determined by activated parameters;
- Training efficiency: under a similar compute budget, MoE models can often achieve lower training loss than dense models with an equivalent activated size;
- Lower inference cost: per-token computation is lower than that of a dense model with the same total parameters.
1.2 Engineering Costs
MoE also has costs. There are three main issues during deployment:
- Memory footprint: inactive expert weights still need to reside in GPU memory or fast-accessible memory, so the deployment threshold is mainly determined by total parameters;
- Load balancing: if routing concentrates on a few experts, some GPUs become overloaded while others sit idle, requiring auxiliary losses or capacity factors to constrain;
- Communication overhead: under multi-GPU parallelism, tokens need to be sent to the devices hosting the corresponding experts, and cross-GPU communication often becomes a latency bottleneck.
When building their own inference clusters, enterprises should include these three points in hardware selection and parallelism strategy design. Looking only at activated parameters will underestimate actual deployment costs.
2. Native Multimodality: Letting the Model See the Interface It Writes
2.1 Difference Between Bolt-on and Native Multimodality
The shortcoming of many coding models is that they cannot check their own output. They can write front-end code but cannot render the page or see misalignment, overflow, or insufficient contrast. Developers have to manually open the page and check it item by item, and the automation flow breaks at the final step.
An early common remedy was bolt-on multimodality: train a visual encoder independently, then connect it to the language model through an adapter layer. Native multimodality instead trains visual data and text data jointly during pretraining, aligning visual tokens and text tokens in the same representation space. The main differences are:
- Bolt-on: visual-language alignment depends on an adapter layer, and fine-grained visual reasoning is usually limited;
- Native: multimodal data runs through the pretraining process, and the model has a deeper understanding of the mapping between UI screenshots and code structure.
Native multimodality can broaden the coverage of visual inspection, but it does not guarantee correct results. The model’s inspection accuracy on a given type of interface still needs to be validated in your own projects.
2.2 Impact on Coding Workflows
Visual capability allows the coding, rendering, inspection, and repair loop to be completed by the model itself. The following is a workflow outline, not runnable code:
Workflow outlineUser requirement → Generate front-end code → Render and capture screenshot automatically→ Visual inspection (misalignment, overflow, contrast, etc.)→ Locate code issues → Automatic repair → Recheck
The value of this workflow is mainly reflected in three points:
- Reduce manual acceptance: preliminary checks for UI requirements can be completed by the model first, and humans only handle issues flagged by the model;
- Improve first-pass rate: the model has already completed several rounds of correction before delivery;
- Support longer autonomous task chains: an agent can execute multiple steps in succession with fewer manual confirmations in between. This is one of the foundational capabilities for building autonomous coding agents.
3. Cost Model: Selection Should Look at Cost per Effective Task
3.1 Low Unit Price Does Not Equal Low Cost
Assume a task consumes an average of 10,000 input tokens and 2,000 output tokens. For illustration, the following uses hypothetical prices; actual prices should follow official pricing.
- Model A: input CNY 2 per million tokens, output CNY 8 per million tokens, 60% success rate per attempt;
- Model B: input CNY 0.5 per million tokens, output CNY 2 per million tokens, 10% success rate per attempt.
For Model A, the cost per attempt is calculated as follows:
Model A: 10000 × 2 / 1000000 + 2000 × 8 / 1000000 = 0.02 + 0.016 = CNY 0.036.
Unit price alone does not equal lower cost.
