Native Multimodal Agent Architecture: Closing the Perception-Reasoning-Execution Loop
This article explains why attaching a separate vision encoder to a text-only LLM often leads to modality alignment failures and multimodal hallucinations, and how a native multimodal agent architecture addresses the problem. It covers structured visual encoding for spatial reasoning, perception correction during reinforcement learning and supervised fine-tuning, a layered decoupled approach for GUI agents, and the unified architecture and cloud-native infrastructure required to close the perception-reasoning-execution loop.
Mainstream text-only large language models have already demonstrated impressive capabilities in natural language understanding and generation. However, in real-world digital scenarios, more than 70% of information exists in visual form—complex web interfaces, mobile app screenshots, design prototypes, densely formatted PDF documents, and surveillance video streams. Relying only on text LLM APIs and attaching a standalone vision encoder through an external add-on approach essentially separates perception from reasoning. This pattern is highly prone to modality alignment failures and can produce severe multimodal hallucinations. To address this industry pain point, frontier research teams have begun exploring native multimodal agent architectures, aiming to unify images, video, and text into a true perception-reasoning-execution loop from the underlying architecture and training paradigm to the toolchain layer.
1. Perception Is Not a One-Time Upfront Engineering Step
In traditional multimodal model design, perception is often treated as a preceding step: a vision encoder first compresses an image into a set of feature vectors, which are then fed directly into the input layer of a large language model (LLM). Subsequent reasoning and planning are left entirely to the LLM. However, this “solve it early and move on” approach has a critical flaw: the ceiling of perception quality directly caps the ceiling of higher-level cognition.
1. Structured Visual Encoding Feeds Back into Spatial Reasoning
During pretraining, if alignment is performed only with simple “image description” text, it is difficult for the model to build precise spatial concepts. An effective technical path is to introduce large amounts of “image-to-structured-code” data into the pretraining corpus, such as vector graphics or front-end page code. On the surface, this trains the model to generate front-end code, but the deeper logic is to force the model to deeply understand the layout, hierarchical nesting, relative position, and geometric structure of visual elements. Experiments show that this strongly structured perception training not only improves front-end reconstruction but also produces a significant capability spillover effect, directly driving improvements in downstream complex reasoning in STEM fields. The model learns to establish coordinate systems and logical associations on a two-dimensional plane, and this fine-grained underlying perception provides a solid foundation for high-level logical deduction.
2. Grounding and Correction During Reinforcement Learning
Perception tasks should not stop iterating after pretraining. During reinforcement learning (RL), adding precise GUI element grounding tasks—such as coordinate prediction and bounding box regression—can significantly improve an agent’s operation accuracy in real interfaces. In addition, during supervised fine-tuning (SFT), it is necessary to introduce a set of critique data specifically targeting perception-level errors such as misreading interface element states, clicking the wrong button, or ignoring occluded elements, using negative-sample training and correction. With this kind of fine-grained perception correction data, hallucination during task execution drops substantially. This demonstrates that perception is not a low-level module that can be solved early and then ignored; it must run through the entire model training lifecycle and continuously determine the upper bound of high-level multimodal capabilities.
2. Layered Decoupling Is More Efficient Than Blind End-to-End Training
For building a multimodal agent that can autonomously operate software and browse the web, “end-to-end” sounds highly appealing: directly input a goal and let the model output the final action sequence. In practice, however, end-to-end agent training is extremely painful. The compute cost of running real operating environments is very high, trajectory data is difficult to label manually, task success evaluation criteria are ambiguous, and gradient optimization is highly unstable. Therefore, a “layered decoupling and progressive breakdown” strategy is a more rational choice in current engineering practice.
Specifically, GUI agent capabilities can be decomposed into four interrelated but clearly layered subsystems:
- Element perception layer: Train the model to accurately identify various components on the screen and distinguish basic elements such as buttons, input fields, dropdown menus, and text labels, along with their current states such as disabled, selected, or hovered.
- Spatial grounding layer: Based on perceived elements, the model must map semantic instructions such as “click the login button” to specific screen coordinates, solving the “where” problem.
- Single-step action prediction layer: Based on the current interface screenshot and historical operation memory, predict the most reasonable next action type and parameters, such as clicking a coordinate, typing specific text into an input field, or swiping up on the screen.
- Trajectory-level planning layer: At the macro level, plan the multi-step action path required to complete a task, with forward-looking planning and backtracking error correction capabilities.
In the training workflow, these four layers are not isolated in series. Instead, they alternate during supervised fine-tuning (SFT) and reinforcement learning (RL). The SFT stage injects domain knowledge and basic operation patterns so that the model quickly converges into a reasonable behavior space. The RL stage introduces environment feedback rewards and performs fine-grained optimization against metrics such as grounding accuracy and task completion. Through this layered architecture, complex tasks are reduced to more tractable problems, which not only lowers data labeling difficulty but also greatly improves optimization stability and final deployment robustness.
3. Building a Unified Perception-Reasoning-Execution Loop
The ultimate goal of a native multimodal agent is to make vision a “native way of thinking” for the model rather than a post-hoc patch. This native capability requires the model to achieve true feature-level fusion in architecture design and to form a closed loop at the toolchain execution layer.
1. Deep Integration of Architecture and Toolchain
A unified architecture means there is no obvious modality gap before images, video, and text enter the model. Through shared attention mechanisms and a unified token space, the model can “read” visual changes as fluently as text when processing complex webpages with interleaved images and text or operation screen recordings. In the execution stage, the agent must be able to call external tools such as sandbox environments, API interfaces, and code interpreters to verify its reasoning results. After the model executes a piece of operation code, the new screenshot fed back by the environment becomes input again, triggering a new round of perception and reasoning and forming a true closed loop.
2. Engineering Support from Cloud-Native Infrastructure
Supporting the alignment training of massive multimodal data and complex reinforcement learning loops requires strong underlying compute and cloud-native infrastructure. For example, in engineering practice, R&D teams often rely on high-performance container platforms and object storage services from cloud providers such as Baidu AI Cloud to build elastic distributed training clusters. This not only addresses throughput bottlenecks for massive image and video data but also uses cloud-based log services and monitoring and alerting systems to track gradient changes and convergence states of each subtask module in layered training in real time, ensuring coordinated improvement of perception and reasoning capabilities.
Conclusion
Moving from “a language model plus a vision encoder” to a “native multimodal agent” is not merely an increase in parameter scale; it is a shift in technical paradigm. Integrating perception capability throughout lifecycle training, adopting a layered decoupled optimization strategy, and building a perception-reasoning-execution loop on cloud-native infrastructure are key paths for enabling large models to truly enter the real physical and digital world and complete complex automation tasks. As this architecture matures, multimodal agents will release substantial value in enterprise scenarios such as software testing, cross-application workflow automation, and design and R&D productivity.
