Why Native Multimodal Agent Models Need an Architecture-Level Upgrade
This article explains why multimodal agents require an architecture-level upgrade, moving multimodal fusion into pretraining and shifting task orchestration from sequential single-agent execution to dynamic multi-agent parallelism. It walks through a unified three-layer multimodal architecture, native-resolution vision encoding based on patch packing, full parameter sharing between image and video, agent swarm orchestration, key evaluation dimensions, and a practical deployment approach on Baidu AI Cloud.
1. Why Multimodal Agents Need an Architecture-Level Upgrade
Over the past two years, the mainstream approach to multimodal models has been to first train a text-only backbone and then attach a vision encoder. This post-hoc adaptation path is cheaper from an engineering standpoint, but it has structural flaws. The language side has already converged to a fixed representation space during the text-only stage, so when the vision side is aligned afterward, it can only make compromises at the edges of that existing space. This often leads to regressions in text capability, shallow visual understanding, and information loss on long videos and high-resolution images.
The shortcomings become even more pronounced when the model’s goal shifts from “answering questions” to “autonomously completing tasks,” which is the essence of general-purpose agent intelligence. The key to agent tasks is not single-turn question answering, but the long-chain closed loop of multi-step planning, tool calling, interface operation, and result verification. At this point, if the vision side can only recognize coarse-grained content, it cannot support essential needs such as screen understanding, chart reading, and UI element localization. If the execution side can only advance sequentially with a single agent, latency grows linearly with the number of steps.
As a result, the industry is converging on two shared directions. First, modality fusion must be moved forward into the pretraining stage, performing joint optimization of text and vision throughout the entire process. Second, task orchestration must shift from “single-chain sequential” to “multi-agent dynamic parallel.” This article uses these two points as its main thread to present a reproducible technical approach.
2. The Three-Layer Chain of a Unified Multimodal Architecture
A deployable native multimodal architecture can usually be abstracted into a three-layer chain: visual feature extraction, cross-modal projection, and unified modeling by the language backbone.
- Vision encoding layer: converts images and videos into a unified sequence of visual tokens, and must support arbitrary resolutions and aspect ratios.
- Projection alignment layer: typically uses a lightweight MLP to map visual features into the language embedding space, aligning both dimensionality and distribution.
- Language backbone layer: usually a Mixture-of-Experts (MoE) structure that keeps per-token activation low while maintaining a large total parameter count, with visual and text tokens modeled end-to-end with attention in the same sequence.
Illustrative pseudocode (expresses only the data flow and is not the interface of any specific product):
# 1) Vision encoding: unify images/videos into visual tokensvis_tokens = vision_encoder(pixel_inputs) # [N_vis, D]# 2) Project and align to the language embedding spacevis_embeds = projector(vis_tokens) # [N_vis, D_model]# 3) Concatenate with text embeddings and feed into the MoE backboneinputs = concat([text_embeds, vis_embeds]) # [N, D_model]hidden = moe_backbone(inputs) # end-to-end joint modelinglogits = head(hidden)
The key is “joint optimization”: both the pretraining and post-training stages include text and vision objectives simultaneously, preventing language capability from being diluted during visual adaptation.
3. Native-Resolution Vision Encoding: Minimizing Preprocessing Loss
Traditional pipelines force images to be scaled or cropped to a fixed resolution, causing small text, dense charts, and edge controls in interfaces to be lost. A more reasonable approach is based on the idea of patch packing: split an image into patches, flatten them, and concatenate them into a 1D sequence, using position encoding and attention masks to distinguish sample boundaries, thereby natively supporting arbitrary-resolution inputs.
Three additional engineering issues must be handled:
- Sequence length inflation: high resolution causes a sharp increase in the number of tokens, so sparse or chunked attention and token compression strategies are needed to control overhead.
- Uneven in-batch load: the number of patches varies greatly across samples. Packing can significantly improve parallel efficiency, but sample boundary masks must be maintained precisely.
- Training stability: the gradient scales of visual tokens and text tokens differ considerably, usually requiring layer-wise learning rates and warm-up of the projection layer.
4. Full Parameter Sharing Between Images and Videos
A common approach to video understanding is to introduce a separate temporal branch or extra modules, at the cost of parameter inflation and hindered transfer of image knowledge. A more elegant solution is to extend the packing idea to the temporal dimension: treat several consecutive frames as a spatiotemporal volume, jointly pack the 2D patches of multiple frames, and have the same encoder perform both spatial and temporal attention modeling.
The benefits are explicit: images and videos share all parameters, so fine-grained recognition ability learned on the image side transfers naturally to video; at the same time, there is no need to maintain two inference paths, significantly reducing deployment complexity. Note that frame sampling strategy and spatiotemporal position encoding design matter: sampling that is too sparse loses motion details, while sampling that is too dense drives up sequence length.
5. Agent Swarm: Breaking the Latency Bottleneck with Dynamic Parallelism
With sequential single-agent execution, total latency is roughly the sum of the latencies of all steps. The idea of an Agent Swarm is to decompose a task into parallelizable subtasks, have an orchestration layer dynamically schedule multiple agent instances to collaborate, and perform result aggregation and conflict resolution at key points.
A simplified orchestration sketch:
plan = decompose(task) # task decomposition and dependency analysisgroups = group_by_independence(plan) # layer by dependencyfor layer in groups: # parallel within a layer, serial across layersresults = parallel_run(layer, workers=N)merged = aggregate(results) # result aggregation and verificationplan = replan(plan, merged) # dynamically replan based on intermediate results
Key implementation points include the accuracy of dependency graph construction, retry and fallback for failed subtasks, semantic consistency verification during aggregation, and resource quota and rate-limiting control brought by concurrency. The magnitude of latency reduction depends on how parallelizable the task is; the higher the parallelizability, the more obvious the benefit.
6. Evaluation Perspective: Which Dimensions Matter
Evaluating a multimodal agent cannot rely on single question-answering accuracy alone. It is recommended to cover at least four dimensions: visual understanding (recognition of high-resolution text and charts), code and mathematical reasoning, tool calling and task completion rate, and end-to-end latency and cost. Preconditions such as input resolution, context length, and concurrency should also be reported; otherwise the data lacks comparability.
7. Deployment Practice on Baidu AI Cloud
To support this kind of capability in production, you can combine general-purpose cloud components: use a container platform to host inference services and elastic scaling, use object storage to store image and video corpora, use a message queue for task decoupling and peak shaving, and use logging and monitoring/alerting systems to track the latency distribution and failure causes of long-chain tasks. On the model side, it is recommended to first run small-scale offline evaluation, then roll out gradually with a canary release, and keep a fallback path.
Overall, native multimodality and parallel agent orchestration are two sides of the same coin: the former determines whether the model “sees clearly and thinks deeply,” while the latter determines whether it “runs fast and runs reliably.” Only by combining the two can general-purpose agents move from demonstration to production.
