Native Multimodal Agents: Technical Highlights of Unified Vision and Tool Use
This article explains why vision and tool use need to be upgraded together, and walks through the shift from a language-first pipeline to full-joint optimization of text and vision. It covers native-resolution vision encoding with shared image-video weights, a decoupled encoder training workflow, parallel agent orchestration for lower latency, a vendor-neutral evaluation framework, and practical guidance for running these systems on the cloud. The goal is to give developers a reliable, measurable path they can build and adapt to their own cloud environment.
1. Background: Why Vision and Tools Must Be Upgraded Together
Over the past two years, multimodal model capability has generally evolved along a “language first, vision later” path: train a text-only backbone, then bolt on a vision encoder through an adapter layer. This path is convenient from an engineering standpoint, but it has structural limits on the capability ceiling. At the same time, the main challenge on the agent side has shifted from “can it call tools at all” to “how efficiently can it execute multi-tool, multi-step tasks.”
Together, these two problems are the real motivation for this round of upgrades:
- Modality imbalance: A vision branch stitched on later is not trained in sync with the language backbone, which easily leads to language capability regression or shallow visual understanding.
- Lossy preprocessing: Fixed-resolution cropping and scaling break aspect ratio and fine detail, with especially noticeable loss on dense text, charts, and UI screenshots.
- Video as a separate track: Images and video often go through different branches, so knowledge on the image side is hard to transfer to the video side.
- Sequential execution bottleneck: A single agent calling tools serially has end-to-end latency that grows linearly with the number of steps, giving a poor experience on complex tasks.
2. The Paradigm Shift: From “Language-Centric” to Full Text-Vision Joint Optimization
The core claim of native multimodality is that vision is not an add-on but a first-class input on equal footing with text. The overall pipeline can be abstracted into three stages:
Visual feature extraction → Cross-modal projection alignment → Unified backbone modeling(vision encoder) (MLP projection layer) (mixture-of-experts backbone)
Images and video are passed through the encoder to obtain visual features. The projection layer maps those features into the language model’s embedding space, then concatenates them with text tokens into a unified sequence that is fed to the backbone for end-to-end modeling. The direct benefit is unified representation within the same semantic space: the model does not need to “translate” visual information, but reasons jointly under the same attention mechanism.
To judge whether a model is truly “native” from an engineering standpoint, look at three things: whether vision and text share the same positional and attention mechanisms; whether the projection layer is very thin (usually just one or two MLP layers, since a thicker one indicates insufficient alignment capability); and whether training includes regression monitoring for language capability during the text-only stage.
3. The Vision Encoder: Native Resolution and Shared Image-Video Weights
3.1 Native-Resolution Input
A relatively mature industry approach is patch packing: split an image into patches, flatten them, and concatenate them into a 1D sequence, using 2D positional encoding to restore spatial relationships. Compared with fixed-resolution schemes, it brings two practical benefits:
- Arbitrary aspect ratios and resolutions can be input directly, with no cropping or scaling in preprocessing, so detail and text fidelity are higher.
- Compute is controlled by sequence length rather than resolution, so long images and multiple images can be flexibly truncated or chunked according to budget.
3.2 Sharing One Set of Weights Between Images and Video
Extending the packing idea from space to time is the key design of this upgrade: treat several consecutive frames (a common choice is 4 frames) as a spatio-temporal volume, jointly pack the 2D patches of multiple frames, and have the same encoder perform attention modeling across the spatial and temporal dimensions.
# Illustration: images and video go through the same encoding pathdef encode(frames: list[Image]) -> Tensor:# When len(frames) == 1, this is a single image; no branch neededpatches = [to_patches(f) for f in frames] # patch each frame independentlyseq = pack_with_2d_pos(patches) # flatten + 2D/3D positional encodingreturn shared_encoder(seq) # images and video fully share weights
The significance of fully shared weights lies in knowledge transfer: fine-grained recognition ability learned on the image side applies directly to video frames, with no need to design a separate module or branch for video, and it avoids doubling training and inference costs from a dual-branch design.
4. Training Engineering: A Decoupled Encoder Training Workflow
The most common failure mode in large-scale multimodal training is load imbalance and gradient interference. A reusable engineering practice is staged decoupling:
- Independent pre-training of the vision encoder: Train the encoder first with general visual understanding objectives, to avoid being led astray by language objectives early on.
- Projection-layer alignment training: Freeze the backbone and encoder, and train only the projection layer to quickly establish a mapping between modalities.
- Joint training with capability safeguards: Unfreeze and optimize jointly, while using a text-only evaluation set for regression monitoring to prevent language capability regression.
Supporting engineering details include load-balanced sampling of visual tokens and text tokens, packing variable-length sequences to reduce padding waste, and layered learning rates for the encoder and backbone. None of this depends on a specific vendor’s approach; any in-house or fine-tuning team can put it into practice.
5. Tool Capability: From Serial Single Agent to Parallel Orchestration
The bottleneck in tool calling is often not the model but the orchestration. When a single agent executes sequentially, latency ≈ the sum of all steps. Parallel orchestration (often called the agent swarm approach in the industry) splits parallelizable subtasks across multiple agent instances, then has a coordinator merge the results:
Task decomposition → Dependency graph construction → Parallel scheduling → Result merging → Validation and retry
Pseudocode illustration:
def run(goal, tools, max_parallel=8):plan = decompose(goal) # get a DAG of subtasks with dependenciesready = [n for n in plan if not n.deps]results = {}while ready:batch, ready = ready[:max_parallel], ready[max_parallel:]outs = parallel_map(lambda n: call_tool(n, tools), batch)results.update(outs)for n in plan:if n not in results and all(d in results for d in n.deps):ready.append(n) # enqueue when dependencies are satisfiedreturn merge_and_verify(results)
The gains come from two places: for parallel branches, wall-clock time changes from “sum” to “max”; and a failed subtask can be retried locally without rerunning the whole pipeline. The cost is higher coordination complexity, which requires supporting idempotency design, timeouts and concurrency limits, and isolation of tool side effects.
6. How to Validate: A Vendor-Neutral Evaluation Framework
Do not rely on a single leaderboard score. It is recommended to cross-validate across four dimensions:
- Visual understanding: chart reading, dense-text OCR, UI screenshot element localization, and inputs with extreme aspect ratios.
- Code and math: multi-turn repository-level changes, and problems that require explicit reasoning chains.
- Agent execution: success rate and end-to-end latency (P50/P95) on multi-tool chained tasks.
- Computer control: fault tolerance of GUI localization and operation sequences.
For each item, record both a “capability metric” and a “cost metric” (token consumption, concurrency, latency percentiles); otherwise you cannot judge whether the upgrade is worthwhile.
7. Recommendations for Cloud Deployment
Beyond model capability, the engineering side determines success. You can build a closed loop with general cloud product categories: use a container platform to host inference and orchestration services with elastic scaling; use object storage for images/videos and datasets; use a message queue to decouple subtask distribution and result collection; use a logging service to retain the full call chain; use monitoring and alerting to watch latency percentiles and failure rates; and use model hosting and fine-tuning capabilities for the model service layer. Baidu AI Cloud offers corresponding products across these general categories, which you can combine according to your own scale.
8. Common Pitfalls
- Treating “supports image input” as equivalent to native multimodal, while ignoring whether language capability regression exists.
- Using fixed-resolution preprocessing for convenience, sacrificing text and chart detail.
- Adding a separate branch for video, doubling training and inference costs.
- Blindly parallelizing, running steps with strong dependencies concurrently, which instead increases coordination overhead and uncertainty.
Conclusion: The technical highlights of this round of upgrades concentrate in three areas—full-joint optimization of text and vision, unified modeling of images and video at native resolution, and the reshaping of the latency structure through parallel agent orchestration. The practical value for developers is more reliable understanding of visual detail, lower latency on complex tasks, and a self-buildable, measurable practice path that can be migrated to your own cloud engineering system.
