Native Multimodal Agents: The Technical Pathway from Perception to Execution
As business data becomes increasingly visual, native multimodal agents are replacing traditional fragmented approaches by fusing visual and textual understanding directly within the model. This article explores the architecture and training methodology of native multimodal models, explains how agents form a closed loop from perception to action, and provides engineering best practices for implementing these agents in real-world scenarios, covering input governance, action space design, and evaluation systems.
1. Why Visual Capability Must Be a Foundational Model Feature
In recent years, pure-text large language models have made significant progress in reasoning, coding, and knowledge-based question answering. However, much business information does not exist in text format. Web interfaces, mobile screenshots, UI design drafts, scanned PDFs, surveillance videos, and reporting charts often serve as the core inputs for tasks.
An early and common approach was the “stitched” solution: using standalone vision models—such as OCR, object detection, or image captioning—to convert images into text before passing them to a text LLM for reasoning. This method has three notable flaws.
First, perception and reasoning are decoupled. Vision and language modules are trained separately, connected only by text. Layouts, spatial relationships, and fine-grained visual features are easily lost during this conversion.
Second, front-end recognition errors cascade into the reasoning phase. The model may generate conclusions that appear logical but are factually wrong based on flawed inputs.
Third, it fails to form a closed loop. Agent tasks require a cycle of “observe, think, act, and re-observe.” Stitched solutions typically require manual orchestration for each step, leading to high latency and fragility when unexpected situations arise.
The native multimodal route aims to process images, videos, and text within a unified architecture, from pre-training data and alignment methods to tool-calling chains. Visual capabilities are handled internally by the model, eliminating the need for external patches.
2. Architecture: How Visual Information Enters the Unified Model
The primary difference between native multimodal models and stitched solutions lies in the depth of integration between visual and linguistic information.
2.1 Visual Encoding and Tokenization
The mainstream approach uses a vision encoder, typically based on a Vision Transformer architecture, to split images into patches. These patches are then mapped into the same vector space as text tokens. This allows visual tokens to be fed into the backbone network alongside text tokens, interacting through self-attention mechanisms.
Two design points significantly impact practice:
Dynamic Resolution: Web screenshots and long documents vary greatly in size. Fixed resolutions either lose small-font details or waste computing power on large images. Mechanisms like variable resolution partitioning and windowed attention can balance detail and overall layout. However, larger images consume more visual tokens, increasing inference costs.
Video Temporal Modeling: Video is not merely a stack of images. Models require temporal position encoding and inter-frame attention to understand actions and state changes. Frame count and sampling frequency directly determine the token budget, requiring trade-offs based on the task.
2.2 Phased Training and Applicable Boundaries
Training is typically divided into three stages:
- Alignment Pre-training: Large-scale image-text pairs are used to train the projection layer, placing visual features into a semantic space understandable by the language model.
- Multimodal Instruction Tuning: A mix of tasks—visual QA, document understanding, interface understanding, and pure text reasoning—is used to prevent the model from excelling only in a single modality.
- Reinforcement Learning Alignment: Outcome feedback is introduced in agent tasks (e.g., whether an operation succeeded, whether generated code runs), using verifiable rewards to optimize the decision process.
A frequently mentioned goal of this pipeline is acquiring visual capabilities without degrading text capabilities. However, this outcome is not guaranteed automatically. Data quality, task ratios, model scale, and compute investment all influence the final result. Before adopting a specific model or training scheme, teams should conduct regression tests using text benchmarks like code generation and mathematical reasoning, rather than relying solely on vendor claims.
3. From “Understanding” to “Doing”: The Agent Closed Loop
The ultimate value of multimodal understanding lies in execution. Native multimodal agents typically operate around the following cycle:
Observe (screenshot or video frame) -> Understand (identify UI elements, infer current state)-> Plan (decompose task, decide next step) -> Execute (call tools, APIs, or simulate clicks)-> Re-observe (acquire new state) -> Loop until task completion or failure
3.1 Two Typical Scenarios
Design to Code (Design2Code): The model takes a UI design draft screenshot as input and outputs runnable front-end code. This requires the model to understand layout hierarchies, colors/fonts, and component semantics, and map them into structured code. Evaluation usually compares the visual similarity of the rendered result against the design draft, while also checking if the code runs. These two metrics have different meanings and should not be conflated. Specific scores should reference official leaderboards or original papers, noting the evaluation date and metric definitions.
Mobile Operations (e.g., AndroidWorld-class benchmarks): The model autonomously completes multi-step operations based on mobile screen screenshots, such as opening apps, finding entry points, filling out forms, and submitting. These tasks test long-chain decision-making and error recovery. Whether a model can recognize an anomaly and roll back after clicking the wrong button is often a better differentiator than single-step recognition. Similarly, specific success rates require consulting the latest public results, confirming task set scale and success criteria.
A commonality between these scenarios is that outcomes can be automatically verified. Whether code renders the target interface or an operation achieves the goal can be determined programmatically. Verifiable reward signals provide direct training grounds for reinforcement learning, which is one reason this domain iterates rapidly.
4. Engineering Implementation Key Points
The following recommendations stem from common practices when integrating these capabilities into business workflows and can serve as a design starting point.
4.1 Input Side: Retain Essential Information and Desensitize First
Screenshots should be cropped to task-relevant areas. Resolution and token consumption must be balanced: too low to read text, too high to increase cost and latency. Document tasks should prioritize retaining the original layout rather than OCR-ing it and discarding the layout.
Screenshots may contain sensitive information like personal details, order numbers, phone numbers, accounts, and passwords. Before inputting into the model, desensitization should be applied, such as masking sensitive areas or replacing them with placeholders. When involving third-party interfaces or copyrighted materials, usage authorization must be confirmed first.
4.2 Toolchain: Small but Complete Action Space
Encapsulate “screenshot, reasoning, action” into a unified function call interface. Keep the action space small but complete, such as click, swipe, input text, and call API. The fewer the action types, the easier it is for the model to learn, and errors are easier to locate. Each action should have explicit parameter formats and failure return values.
4.3 State and Memory Management
Multi-step tasks require maintaining a structured historical trajectory, recording the observation, action, and result of each step, rather than dumping all screenshots into the context. Infinite context growth slows down inference and distracts the model with irrelevant information. Key nodes can be written to object storage or logging services for easy playback, troubleshooting, and auditing.
4.4 Evaluation-Driven Iteration
Establish an evaluation set with automatically determinable outcomes, such as whether code runs or task completion flags appear. After modifying prompts or action strategies, run regressions on the same evaluation set to avoid fixing one issue while breaking another. The evaluation set should cover anomalous interfaces in real business scenarios, such as pop-ups, network errors, and loading pages.
4.5 Cost and Latency
Multimodal inference consumes significantly more compute than pure text. Elastic scaling and monitoring alerts on container platforms can be used to schedule inference resources based on load. For simple steps, consider using a smaller model, reserving larger models for complex decisions.
4.6 Pre-Launch Checklist
- Screenshots are cropped, sensitive information is desensitized, and data usage authorization is confirmed.
- Action space is defined, with parameter validation and failure returns for each action.
- Observations, actions, and results for each step are logged and replayable.
- Maximum step counts and timeout limits are set to prevent infinite loops.
- Failure recovery strategies exist, such as re-screenshotting, rolling back a step, or transferring to human agents.
- The evaluation set covers anomalous interfaces and supports automatic regression.
- Cost and latency alert thresholds are configured.
5. Common Mistakes
- Treating visual input as “the clearer the better.” As resolution increases, token count and latency rise simultaneously; most tasks do not require full-image HD.
- Designing an oversized action space. If one interface handles multiple operations, the model easily gets confused, and errors are hard to locate.
- Lacking timeout and step limits. An agent repeatedly clicking on a page will continuously drain resources.
- Focusing solely on single-step accuracy. The success rate of long tasks depends on cumulative results; high single-step accuracy does not guarantee overall usability.
- Directly adopting public scores for model selection. Different benchmarks have varying task definitions, evaluation methods, and test dates. Scores are for reference only; final testing should occur on your own business data.
6. Frequently Asked Questions
What is a native multimodal agent?
It refers to an agent that unifies images, video, and text from the training phase. The model itself completes the perception-reasoning-execution loop without relying on external vision modules for preliminary conversion.
What scenarios are suitable for this route?
Tasks that depend on visual input and have automatically verifiable outcomes are highly suitable, such as interface operations, UI testing, design draft restoration, and document structuring. Pure text processing or latency-sensitive scenarios can continue using stitched solutions or pure text models.
How to get started?
It is recommended to select a small, verifiable scenario (e.g., auto-filling a specific form), build an evaluation set and action interface, and gradually expand to more complex processes.
7. Conclusion
The core shift in native multimodal agents is that vision transforms from an auxiliary input for text models into an equal perception channel, further serving execution. Its technical foundation includes unified tokenization and fusion architecture, phased alignment training, verifiable-reward-based optimization, and execution closed loops built around screenshots and tool calls.
For developers, scenarios like RPA automation, UI testing, document structuring, and design-to-code—previously requiring complex pipeline stitching—now have the opportunity to be implemented end-to-end. However, the success of implementation depends on input governance, action design, state management, and evaluation systems, rather than just the model itself. Before scaling up investment, it is advisable to conduct small-scale validation using your own data.
