Engineering Path for Native Multimodal Agents: From Vision Architecture to Execution

    This article explores the engineering path for developing native multimodal agents, emphasizing the necessity of integrating vision as a core reasoning capability rather than an external add-on. It covers the limitations of cascaded visual approaches, a three-layer design for native multimodality spanning architecture, training, and toolchain, task-oriented evaluation strategies, practical deployment considerations, common pitfalls, and a recommended implementation roadmap for teams adopting multimodal agents.

    1. Why Vision Must Be a Native Capability

    A significant amount of information in real-world scenarios exists in visual formats. Web interfaces, mobile screenshots, design drafts, scanned documents, and surveillance videos are frequent inputs in daily business operations. If a system can only process text, it must first convert images into text descriptions before handing them over to a language model for reasoning. This conversion step discards critical information such as spatial location, color hierarchy, and UI component states. No matter how accurate the subsequent reasoning is, it can only be based on incomplete input.

    Therefore, the key to multimodal capability is not simply “whether the model can see images,” but whether the model’s understanding of visual content participates in the reasoning process itself. The essence of native multimodality is that visual information enters the same representation space from the input stage, participates in attention computation alongside text, and maintains a consistent context with the model’s decisions and tool calls.

    2. Typical Issues with Bolted-on Approaches

    Common multimodal applications often use a cascading approach: an independent image recognition module or vision model first generates a description, which is then concatenated into the prompt. While this approach is quick to implement, it suffers from several structural issues.

    First, there is a disconnect between perception and reasoning. The visual module outputs a summary, and the language model cannot look back at the original image. If the description omits the disabled state of a button or misaligns a table column, the model will make seemingly reasonable judgments based on incorrect premises—a phenomenon commonly known as hallucination.

    Second, errors compound at each stage. The visual module, text module, and planning module each have their own errors, which accumulate when cascaded. A coordinate deviation of a few pixels for a UI element can result in clicking the wrong location in an automated operation task, causing the entire workflow to fail.

    Third, latency and costs stack up. Each step requires calling additional models, and network round-trips and repeated encoding significantly increase response time. This is especially noticeable in agentic scenarios that require continuous operations.

    Fourth, pure text capabilities degrade. Patch-like training conducted to add visual capabilities can easily cause the model to regress on its original code, math, and language understanding tasks.

    3. Three-Layer Design for Native Multimodality

    To address these issues, a simultaneous design across three levels—architecture, training, and toolchain—is required. All three are indispensable; optimizing just one layer often leaves the overall performance constrained by the others.

    3.1 Architecture Layer: Unified Input Representation

    The core of the architecture layer is to process images, video frames, and text within the same sequence. Typical practices include:

    • The vision encoder splits an image into patches and maps them into a sequence of vectors with the same dimensions as text tokens.
    • Videos are sampled into multiple frames over time, with each frame retaining timestamp information so the model can understand chronological order.
    • Images and text are interleaved; for example, a descriptive text can be immediately followed by a screenshot, allowing the model to establish associations within the same context.
    • Position encoding accounts for both text positions and 2D image coordinates to prevent spatial information loss.

    The benefit of this design is that visual information and text interact directly within the attention mechanism. When generating a response, the model can look back at specific regions of the image at any time rather than relying on a pre-written description.

    3.2 Training Layer: Data Ratio and Capability Preservation

    The training layer focuses on two questions: how to enable the model to understand visuals, and how to avoid damaging existing text capabilities.

    In terms of data, common components include image-text pairs, document parsing data, UI screenshots paired with structured descriptions, video clips with temporal annotations, and large-scale pure text corpora. Among these, paired data of UI screenshots and code is particularly important for agents, as it helps the model establish the mapping between “seeing the interface, understanding the structure, and generating the implementation.”

    Regarding training strategy, the mixing ratio is critical. If the proportion of visual data is too high, the model tends to regress on text tasks; if too low, visual capabilities become hard to develop. In practice, a phased training approach is typically adopted: first establishing alignment on large-scale image-text data, followed by fine-tuning with high-quality task data. Throughout each phase, text evaluation sets are retained to continuously monitor for capability regression.

    3.3 Toolchain Layer: The Closed Loop from Perception to Execution

    The value of an agent lies in its ability to take action. If perception results cannot be translated into operations, multimodal capabilities remain at the Q&A level. The toolchain layer needs to define a clear action space, such as clicking a specific coordinate, entering text, scrolling a page, reading a file, or calling an API, allowing the model to decide the next action based on the latest visual feedback at each step.

    Below is a generic closed-loop illustration showing how perception, reasoning, and execution connect. The functions are illustrative placeholders and should be replaced with actual screenshot capture, model invocation, and action execution modules in practice.

    1. def run_agent(task, max_steps=20):
    2. history = []
    3. for step in range(max_steps):
    4. # Perception: capture the visual state of the current interface or environment
    5. observation = capture_screen()
    6. # Reasoning: determine the next step based on the task goal, action history, and current screen
    7. decision = model_decide(
    8. task=task,
    9. image=observation,
    10. history=history,
    11. )
    12. # Termination check
    13. if decision.action == "finish":
    14. return decision.result
    15. # Safety check: high-risk actions require human confirmation
    16. if is_high_risk(decision.action):
    17. if not request_human_confirmation(decision):
    18. return "Execution cancelled by user"
    19. # Execution: map the decision to a specific action
    20. outcome = execute_action(decision.action, decision.params)
    21. # Record the result for use in the next reasoning round
    22. history.append({
    23. "action": decision.action,
    24. "params": decision.params,
    25. "outcome": outcome,
    26. })
    27. return "Maximum steps reached, task incomplete"

    This code demonstrates several key points of closed-loop design. The screen is re-captured in each round rather than relying on a one-time description, which allows for correcting deviations from previous actions. The history record lets the model know what it has already done, avoiding repeated operations. The safety check is placed before execution, ensuring that irreversible operations are subject to human confirmation.

    4. Evaluation: Task-Oriented Over Single Leaderboards

    When evaluating native multimodal agents, a single general benchmark score rarely reflects real-world effectiveness. A more reliable approach is to break down evaluation dimensions according to business tasks and define quantifiable metrics for each dimension.

    • UI Understanding and Code Generation: Input UI screenshots and check the layout similarity, component completeness, and interaction accuracy of the rendered generated code.
    • Mobile or Desktop Automation: Design a fixed set of operational tasks and track the task completion rate, average steps, and number of misoperations.
    • Document Understanding: For scanned documents and tables, check the accuracy of key field extraction and the degree of structural restoration.
    • Video Temporal Understanding: Construct questions requiring chronological judgment to verify whether the model correctly determines the sequence of events.
    • Text Capability Regression: Retain pure text test sets for coding, math, and summarization, and compare against baselines after each version iteration to confirm no significant degradation.

    Evaluation sets should ideally be sourced from real business data and desensitized. Additionally, fixed test versions should be established to prevent incomparable results caused by changes in the evaluation set.

    5. Considerations for Practical Deployment

    5.1 Data Privacy and Desensitization

    Screenshots often contain sensitive information such as account details, phone numbers, and order information. Before feeding them into the model, regional masking or field desensitization should be applied, and the retention period for screenshots should be limited. Logs should not directly record original images; only necessary metadata should be retained.

    5.2 Least Privilege

    The actions an agent can invoke should be strictly restricted. For example, only allow access to specified applications or pages, expose only necessary APIs, and set human confirmation for operations like deletion, payment, or permission changes. Permission configurations should be bound to the task and promptly revoked once the task concludes.

    5.3 Cost and Latency Control

    Higher image resolutions result in more visual tokens, increasing both inference cost and latency. In practice, resolution can be selected based on task requirements: retaining only key regions for UI screenshots, and sampling keyframes for videos. For repeatedly occurring interfaces, intermediate perception results can be cached to reduce redundant computation.

    5.4 Rollback and Auditability

    Every action should record the input screen, model decision, execution result, and timestamp. In the event of an erroneous operation, logs can be used to locate the issue, and pre-defined rollback steps can restore the state. For operations that cannot be rolled back, mandatory confirmation should be enforced prior to execution.

    6. Common Misconceptions

    The first misconception is equating multimodal capability with “the ability to recognize text in images.” Text recognition is only a small part of perception; agents also need to understand spatial relationships, UI component hierarchies, and state changes.

    The second misconception is assuming that simply scaling up the model will automatically solve vision problems. While scaling up does improve capabilities, data quality, training ratios, and action space design have an equally significant impact on the outcome.

    The third misconception is ignoring feedback. Execution without visual feedback is blind. Re-perceiving after each action is necessary to determine if the expected outcome has been achieved.

    The fourth misconception is relying solely on a total score for evaluation. A total score may mask obvious shortcomings in specific task categories; task-oriented breakdowns help identify issues earlier.

    For teams looking to adopt multimodal agents, the following sequence is recommended. First, select a task with clear boundaries and defined value, such as converting UI screenshots to code or automating a fixed workflow. Next, build a minimal closed loop to verify that the three phases—perception, reasoning, and execution—function properly. Then, establish a business-relevant evaluation set and record baseline data. Finally, gradually expand the range of actions under human supervision, continuously monitoring the misoperation rate and cost variations.

    The core concept of native multimodal agents is to make vision an integral part of the model’s reasoning, rather than just a preprocessing step before input. Understanding this principle enables consistent decision-making in architecture selection, data preparation, tool design, and evaluation methodologies.