The Technical Upgrade Path for Native Multimodal Agent Models
This article explains why multimodal agents require an architecture-level upgrade, moving beyond the common approach of attaching a vision encoder to a text-only language backbone. It covers full-joint optimization of vision and language, including native fusion, native-resolution inputs, and shared weights for images and video, followed by dynamic parallel orchestration to replace serial agent loops. The article also outlines evaluation dimensions and practical deployment advice, such as canary rollouts and a serial fallback path.
1. Why Multimodal Agents Need an Architecture-Level Upgrade
Over the past two years, the common way to add multimodal capabilities has been to train a text-only language backbone first, then attach a vision encoder. This post-hoc adaptation route is cheap to engineer and fast to ship, but it has three structural problems.
First, capabilities trade off against each other. Once the language backbone converges on text-only corpora, its representation space is already fixed. Visual features injected later can only squeeze into that existing space, so visual understanding may improve while language reasoning degrades slightly.
Second, modality conflict. Visual tokens and text tokens differ clearly in positional encoding, length distribution, and attention statistics. Simply concatenating them lets long visual sequences dilute the effective weight of the text context.
Third, the latency bottleneck in agent scenarios. Sequential execution by a single agent means a serial chain of observe, reason, call a tool, and observe again. As the number of task steps grows, latency rises linearly, and the end-to-end wait time for complex tasks becomes unacceptable.
The industry is therefore turning to two parallel technical routes: full-joint optimization at the modality level, so vision and language reinforce each other in the same semantic space; and parallel orchestration at the execution level, turning the serial chain into multi-agent collaboration that can be scheduled dynamically.
2. Full-Joint Optimization of Vision and Language
2.1 From Post-Hoc Concatenation to Native Fusion
The core of native fusion is treating vision as a first-class input that shares the same modeling objective as text. The data flow can be abstracted as follows: an image or video is first passed through a vision encoder to extract unified features, a projection layer aligns them to the embedding space of the language backbone, and they are then mixed with text tokens and fed into the backbone for end-to-end modeling. The key is to optimize both modalities jointly during training, rather than freezing one side and training only the other.
The illustrative pseudocode below shows tensor shapes and where fusion happens:
# Vision branch: arbitrary-resolution input -> unified visual featuresvis_feat = vision_encoder(image_or_video) # [N_patch, D_vis]vis_embed = projector(vis_feat) # [N_patch, D_lm]# Text branchtxt_embed = text_embedding(input_ids) # [N_txt, D_lm]# Unified sequence: positional encoding must cover both modalitiesinputs = concat([txt_embed, vis_embed], dim=0)outputs = moe_backbone(inputs) # end-to-end joint modeling
2.2 Native Resolution and Variable Inputs
Traditional pipelines force images to be cropped or resized to a fixed size, which directly loses detail and significantly affects tasks such as document understanding, UI screenshot parsing, and chart reading. A more reasonable approach is to split an image into patches, flatten them, and concatenate them into a 1D sequence, combined with packed attention masks so that images from different sources can coexist in the same batch. This natively supports arbitrary aspect ratios and resolutions.
Two engineering points need attention. First, masks must strictly isolate unrelated samples to avoid cross-sample attention contamination. Second, sequence lengths fluctuate widely, so length bucketing and dynamic batching are needed; otherwise memory usage and throughput will swing sharply.
2.3 Full Weight Sharing Between Images and Video
A common approach to video modeling is to add a separate temporal branch or extra modules, at the cost of parameter growth and unstable training. A more economical option is to extend the packing idea to the time dimension: treat several consecutive frames as one spatiotemporal volume, jointly pack the 2D patches of multiple frames, and use the same encoder to model attention across both spatial and temporal dimensions.
This brings two benefits. Knowledge from image understanding transfers naturally to video, with no need to re-learn low-level visual regularities; and parameters and the inference path stay unified, making deployment simpler. The cost is a longer joint spatiotemporal sequence, which requires finer memory management and operator optimization.
3. Agent Clusters: Turning the Serial Chain into Dynamic Parallelism
3.1 The Latency Structure of a Single Agent
A typical tool-calling loop has three time costs: model inference, tool execution, and returning results. Under serial execution, total latency is roughly the sum of each step, and a failure in any step forces a retry of the whole chain.
3.2 The Basic Idea of Dynamic Orchestration
The agent cluster approach splits a task into parallelizable subtasks, with a scheduling role responsible for decomposition, dispatch, aggregation, and conflict resolution. Parallelization significantly shortens the critical path, with the largest gains when subtasks are independent of each other.
Serial: observe -> reason -> tool A -> observe -> tool B -> aggregateParallel: observe -> reason -> [tool A | tool B | tool C] -> aggregate
3.3 Practical Constraints
Parallelism is not free. Three kinds of problems need attention: dependency detection and data passing between subtasks; concurrent write conflicts on shared resources such as files, terminal sessions, and browser contexts; and local retry of failed subtasks versus overall rollback strategy. It is advisable to set a timeout, maximum step count, and budget cap for each sub-agent so that a single point of failure does not bring down the whole system.
4. Capability Evaluation and Engineering Practice Advice
Evaluation should cover four dimensions rather than a single leaderboard: visual understanding (documents, charts, UI), correctness of code and tool calls, completion rate of multi-step tasks, and end-to-end latency and cost. It is advisable to record time to first token, task success rate, and average number of steps together, since only the combination reflects the real experience.
On the deployment side, a closed loop can be built on general cloud capabilities: use a container platform to host inference services with elastic scaling, object storage to manage multimodal samples and model artifacts, a message queue to decouple scheduling from execution, and logging plus monitoring and alerting to track the failure distribution of long-chain tasks. Baidu AI Cloud can provide standardized resources and operational support for such general-purpose components, making it easier for teams to focus on the model and orchestration logic themselves.
For the practical path, start with a small-traffic canary rollout and compare bidirectional metrics on language and vision tasks before and after joint optimization. Confirm there is no capability regression, then gradually increase the degree of parallelism. Also keep a serial fallback channel that automatically degrades when parallel scheduling fails, keeping tasks controllable and results reproducible.
