Native Multimodal Agent Architecture: Design Principles and Engineering Practices

    This article explains why bolt-on multimodal systems often fall short and how native multimodal agents unify visual and textual representations across perception, reasoning, and action. It covers architecture, multimodal training, reinforcement learning with execution feedback, engineering toolchains, evaluation, and practical scenarios such as Design2Code, UI automation, document understanding, and video analysis.

    Native Multimodal Agent Architecture: Design Principles and Engineering Practices

    1. Why Bolt-On Multimodality Is Not Enough

    Large language models have become highly capable at reasoning, writing, and coding. However, real-world inputs extend far beyond text. Common scenarios include:

    • Interface understanding: Web screenshots, mobile screens, and desktop application states;
    • Document processing: Scanned PDFs, charts, formulas, and tables;
    • Design reconstruction: Converting design mockups into frontend code;
    • Video analysis: Surveillance footage, meeting recordings, and operation demonstrations.

    A common approach is to attach a vision encoder to a text model, convert an image into a textual description, and then pass that description to the language model. In essence, this is a post hoc multimodal patch rather than native multimodality. It has three major limitations:

    1. Information loss: Once visual information is compressed into a textual description, spatial layout, color relationships, and fine-grained interactive elements may be lost.
    2. Disconnection between perception and reasoning: The vision encoder is not necessarily optimized for the downstream task, while the language model cannot directly access the original visual evidence. This increases the risk of unsupported assumptions and hallucinations.
    3. No complete action loop: An agent must interpret a screen and then perform actions such as clicking, typing, or scrolling. Bolt-on systems make it difficult to align visual grounding precisely with action decisions.

    As a result, the industry is increasingly moving toward native multimodality. Images, videos, and text should be incorporated into the same perception–reasoning–execution loop through architecture, training data, and tooling, rather than being connected through an after-the-fact conversion layer.

    2. Architecture: A Unified Multimodal Foundation

    A native multimodal agent architecture typically includes the following layers:

    1. Raw input (image / video / text / UI screenshot)
    2. │
    3. ▼
    4. Unified multimodal encoding layer
    5. (visual and text tokens share a representation space)
    6. │
    7. ▼
    8. Multimodal reasoning backbone
    9. (task planning and reasoning based on perceptual evidence)
    10. │
    11. ▼
    12. Action and tool-calling layer
    13. (clicking, typing, code generation, retrieval, and more)
    14. │
    15. ▼
    16. Environment feedback ──────────────► Back to the perception layer
    17. to form a closed loop

    Key design considerations include:

    1. Shared representation space: Visual and text tokens interact within the same attention mechanism. During reasoning, the model can directly reference regions in an image instead of relying on an intermediate textual summary.
    2. Native action and coordinate outputs: For UI operation tasks, the model must produce structured action instructions and location information. This requires grounding and localization to be modeled during pretraining rather than added through post-processing rules.
    3. Long-video and streaming input support: Video understanding can consume a large number of tokens. The architecture therefore needs dynamic resolution, keyframe sampling, and temporal compression to balance quality with inference cost.

    3. Training Strategy: Jointly Evolving Perception and Action

    Native multimodality cannot be achieved simply by adding an encoder and applying fine-tuning. The training pipeline usually consists of several stages.

    1. Multimodal Alignment Pretraining

    Alignment pretraining on large-scale image–text and video–text datasets helps visual tokens acquire a semantic granularity comparable to that of text tokens. The data should cover structured visual content such as documents, charts, and UI screenshots, rather than focusing only on natural images.

    2. Mixed-Task Post-Training

    Instruction following, code generation, UI operation, visual grounding, and mathematical reasoning can be trained together. This helps prevent capability degradation, such as losing coding performance while improving vision. The central challenge at this stage is curriculum design:

    • Early stage: General image–text understanding and question answering;
    • Middle stage: Cross-modal generation tasks, such as design-to-code conversion and document question answering;
    • Late stage: Multi-turn, multi-step UI operation and tool-calling tasks.

    3. Reinforcement Learning with Execution Feedback

    For agent tasks such as mobile automation, supervised fine-tuning alone is often insufficient to handle environmental uncertainty. Reinforcement learning based on execution results provides signals tied to whether an action achieves its intended goal. Over time, the model can learn to:

    • Capture a new screenshot or perform retrieval when information is insufficient;
    • Recover and retry when an action fails;
    • Plan multi-step action sequences and adjust them dynamically.

    4. Tooling: A Critical Part of Production Engineering

    Beyond architecture and training, the toolchain determines whether a multimodal agent can be deployed reliably. A complete toolchain typically includes:

    1. Multimodal data pipelines: Support for cleaning, balancing, and quality control across heterogeneous data, including images, video frames, OCR annotations, and UI control trees;
    2. Evaluation systems: Coverage of design reconstruction, mobile agent operation, document understanding, and text-only coding, preventing the model from becoming overly specialized in one capability;
    3. Inference optimization: Visual token compression, batch scheduling, and caching strategies to control latency and cost;
    4. Agent runtimes: Interfaces for screen perception, action execution, and environment-state feedback, allowing model capabilities to map to real operations.

    Public evaluations indicate that models following a native multimodal plus agent-loop approach can achieve approximately 94 points on design-to-code evaluations and approximately 75 points on mobile UI operation evaluations, while maintaining solid text-based coding performance. These results suggest that a unified architecture can substantially improve multimodal capabilities without significant degradation of the text foundation model.

    5. Common Applications and Implementation Considerations

    1. Design-to-Code

    The model receives a high-fidelity design mockup and produces runnable frontend code. Important engineering considerations include:

    • Understanding layout hierarchy, spacing, typography, and color systems;
    • Producing componentized code rather than a hard-coded page that merely looks similar;
    • Combining visual regression testing with rendered-output comparisons to create automated feedback against the original design.

    2. Mobile and Web UI Automation

    The agent interprets the current page from a screenshot and plans a sequence of operations:

    1. {
    2. "thought": "The target button is in the lower-right corner, so I need to scroll first to bring it into view.",
    3. "action": "scroll",
    4. "target": {"direction": "down", "distance": 400}
    5. }

    The key requirement is to perceive the environment again after every action. This prevents state drift from invalidating all subsequent operations.

    3. Document and Video Understanding

    For scanned documents, native visual capabilities can directly parse tables and formulas. For video, keyframe sampling can be combined with temporal modeling to answer questions that require reasoning across multiple points in time.

    6. Conclusion

    The core of a native multimodal agent is not simply adding more modalities. It is about enabling perception to support reasoning, reasoning to drive execution, and execution feedback to update perception. Together, these capabilities form a closed loop.

    For developers, there are three primary areas of focus:

    • Architecture: Unify multimodal representations and action outputs;
    • Training: Combine cross-task training with reinforcement from execution feedback;
    • Tooling: Connect data pipelines, evaluation systems, and agent runtimes.

    When these three layers work together, a model can reliably understand, reason about, and act within real interfaces, documents, and videos. This is the foundation for practical multimodal agent applications.