Native Multimodal Agents: Vision and Tool Capability Upgrades
This article examines the design of native multimodal agents that jointly model vision and language for general agent tasks. It covers the overall architecture, native-resolution visual encoding for images and videos, tool execution as a verifiable and recoverable closed loop, dynamic parallel orchestration based on task graphs, and training and evaluation engineering. Readers will learn the key technical considerations for upgrading vision and tool capabilities, including cross-modal projection, sparse expert backbones, sandboxed tool execution, observability, latency reduction, data composition, and multidimensional evaluation.
1. Design Background: From Language-First Models with Vision Add-ons to Native Multimodal Agents
Traditional multimodal models often train a text-only language backbone first and then attach a visual encoder for later adaptation. This path has relatively low engineering cost, but it tends to introduce two problems. First, language and visual capabilities are not fully aligned in training objectives, so the model may trade off one modality against the other. Second, the visual module often only performs feature extraction and struggles to participate deeply in language reasoning, tool selection, and the execution-feedback loop. For agent tasks that require reading screens, parsing documents, understanding charts, and operating interfaces, visual input is not merely additional information; it is part of the decision chain.
A more appropriate design goal for multimodal models aimed at general agent tasks is to jointly model vision and language in the same semantic space and to form a closed loop across tool invocation, execution feedback, and error recovery. This article discusses key technical points and implementation considerations for upgrading vision and tool capabilities across five layers: architecture, visual encoding, tool capabilities, parallel orchestration, and engineering training.
2. Overall Architecture: Visual Feature Extraction, Cross-Modal Projection, and Unified Language Backbone Modeling
The overall architecture can be abstracted into a three-stage pipeline: visual feature extraction, cross-modal projection, and unified language backbone modeling. Image and video inputs are first encoded by a unified visual encoder, then aligned to the embedding space of the language backbone through a multilayer perceptron projection layer, and finally fed together with text tokens into the language backbone for end-to-end modeling. The core of this design is not simple concatenation. It lets visual tokens and text tokens participate in attention computation within the same context, thereby supporting cross-modal reference, spatial relationship reasoning, and multi-step task planning.
On the language backbone side, a sparse mixture-of-experts structure can be used to improve parameter efficiency: different tokens or task segments activate different experts, expanding model capacity while keeping inference cost controllable. From an engineering perspective, attention must be paid to the sequence-length ratio between visual and text tokens, expert load balancing, projection-layer initialization, and training stability. Too many visual tokens can crowd out the context and increase memory usage; too few can cause fine-grained interface elements and small document text to be ignored. Therefore, practical systems usually need dynamic cropping or chunking based on input resolution, task type, and context budget.
3. Native-Resolution Vision Encoding: Reducing Preprocessing Loss and Supporting Unified Image-Video Modeling
One key upgrade for visual encoders is native-resolution and variable-input support. Traditional fixed-resolution resizing damages details such as small text, table lines, and interface controls, which is especially harmful for screen reading and document understanding. A more reasonable approach is to divide an image into patches, flatten and pack them into a one-dimensional sequence, and natively support arbitrary aspect ratios and resolutions, avoiding information loss caused by forced cropping or resizing. To avoid losing spatial relationships, two-dimensional positional information or equivalent coordinate encoding must be preserved during sequence packing, and attention masks should be used to distinguish different image blocks.
Unified image and video modeling is equally important. Continuous video frames can be treated as a spatiotemporal volume, with multiple frames of two-dimensional patches jointly packed and processed by a shared-weight visual encoder that performs attention modeling across spatial and temporal dimensions. Shared weights allow image understanding capabilities to transfer more naturally to video and reduce the data and engineering burden of a separate video branch. The cost is a significant increase in sequence length, which requires more careful frame sampling, block merging, and memory optimization. In engineering practice, frame rate and resolution should be selected dynamically according to the task: static document tasks should prioritize high-resolution single frames, while operation-oriented tasks should prioritize keyframes and cropped interface regions.
4. Tool Capability Upgrades: From “Can Call” to Verifiable, Recoverable, and Observable
Tool capability is not simply function calling. It is a complete execution loop: intent recognition, tool selection, parameter generation, permission validation, sandbox execution, result parsing, error recovery, and result aggregation. Multimodal input plays a key role in this loop: interface screenshots can help locate elements, document images can help extract parameters, and charts can help validate data. Tool descriptions should be structured, including capability descriptions, input parameter schemas, output formats, failure semantics, and idempotency markers, so that the model can generate valid parameters and determine retry strategies.
Security and observability must be designed upfront. Tool execution should run in an isolated sandbox and be authorized according to the principle of least privilege. Write operations, payment operations, and operations with external side effects should require human confirmation or secondary validation. Each invocation should record an input summary, parameters, result status, latency, and error code to form a traceable chain. For operations that may be executed repeatedly, idempotency keys or deduplication strategies should be required to avoid duplicate submissions under parallel orchestration. After result parsing, consistency validation is also needed, for example, cross-checking structured results returned by tools against key fields in the visual input to reduce hallucination risk.
5. Dynamic Parallel Agent Orchestration: Using Task Graphs to Reduce End-to-End Latency
Sequential execution by a single agent can easily create long-tail latency in complex tasks. The core of dynamic parallel orchestration is to decompose a task into a dependency graph, execute independent subtasks concurrently in groups, and then merge results and resolve conflicts. The scheduler needs to identify task granularity, dependency edges, resource quotas, and failure retry policies. The executor needs to support concurrency control, timeout cancellation, result caching, and idempotency guarantees. More parallelism is not always better; excessive decomposition increases coordination overhead and result-merging complexity. Therefore, concurrency should be dynamically adjusted based on the critical path of the task graph.
A pseudocode example is shown below:
def run_task(task):plan = planner.plan(task)graph = build_dependency_graph(plan)groups = topological_parallel_groups(graph)results = []for group in groups:group_results = execute_parallel(group, timeout=..., retry=...)results.extend(validate_and_merge(group_results))return aggregate_final(results)
The key points of this process are: the dependency graph ensures correctness, parallel grouping reduces waiting time, and validation and merging ensure result consistency. For failed subtasks, local retry or degradation should be preferred over a full rollback. For conflicting results, rule validation, confidence ranking, or secondary model review can be used. Through dynamic parallel orchestration, many parallelizable retrieval, parsing, validation, and tool-calling steps in complex tasks can overlap, significantly reducing end-to-end latency while improving task throughput and stability.
6. Training and Evaluation Engineering: Decoupled Training, Data Composition, and Multidimensional Validation
Large-scale multimodal training must balance stability and efficiency. From an engineering perspective, a decoupled encoder training workflow can be used: first optimize the visual encoder and language backbone separately, then perform cross-modal alignment and joint fine-tuning, reducing modality conflict and instability in the early training stage. For data composition, coverage should include documents, interface screenshots, charts, natural images, video keyframes, and tool-calling trajectories. Tool trajectory data should annotate invocation intent, parameters, execution results, and error recovery processes, not just final answers.
Evaluation should not rely only on single-point accuracy. It should cover general dimensions such as code generation, visual understanding, mathematical reasoning, agent execution, and computer control, and should include process metrics: tool invocation success rate, parameter validity rate, retry count, task completion latency, parallel speedup, failure recovery rate, and safety block rate. For deployment, it is advisable to start with small-scale canary validation and then gradually expand task types. High-risk tools should be placed on an allowlist and require human confirmation. Visual-intensive tasks should be evaluated separately for resolution and chunking strategies. Parallel tasks should be evaluated for resource contention and idempotency. Only by balancing correctness, latency, cost, and safety can vision and tool capability upgrades become reusable engineering capabilities.
