Native Multimodal Agents: Architecture Principles and Engineering Practices

    This article examines native multimodal agents as systems that use visual evidence throughout task planning, execution, and verification, rather than merely describing images. It outlines why simple visual-module add-ons often break down in complex interactive tasks, then presents an architecture spanning perception, fusion, planning, execution, and memory. It also covers training strategies from image-text alignment to closed-loop action feedback, two representative scenarios—UI code generation from visual designs and screenshot-based UI operation—and an engineering loop for observation, validation, and recovery. Finally, it discusses multidimensional evaluation, security and data governance, and a staged deployment path for building reliable multimodal agents.

    1. From “Understanding Images” to “Completing Tasks Based on Vision”

    In real business environments, information cannot always be fully expressed through text. Layout relationships on web pages, button states on mobile interfaces, table structures in scanned documents, and object motion in videos all contain details that are difficult to preserve with simple textual descriptions.

    For example, “click the submit button in the upper right corner” may look like a clear instruction, but executing it requires answering several questions: Does the button exist on the current page? Is it covered by a pop-up? Is it disabled? Which page should appear after clicking? These questions involve visual recognition, contextual reasoning, and verification of execution results.

    Therefore, the goal of a multimodal agent should not stop at image question answering. It should establish a continuous closed loop:

    Acquire environment observations → Extract task-relevant evidence → Reason and plan → Execute actions → Acquire new observations → Verify and adjust.

    Here, “native multimodal” is not an architecture name with a single implementation standard. A more meaningful way to judge it is whether visual information continuously participates in task decisions during training and inference, whether the model can use new frames after an operation to correct its judgment, and whether there is an explicit alignment mechanism between perception and action.

    A visual encoder itself is not a sign of being “non-native.” Many deep fusion approaches still use independent encoding modules. The real distinction is whether the system only converts an image into a one-time textual description, or retains enough visual information for subsequent reasoning and execution.

    2. Why Simple Visual-Module Add-Ons Often Hit Bottlenecks

    A common approach is to first recognize image content and then pass the recognition result to a language model. This approach has low implementation cost and is useful for tasks such as document classification and simple screenshot question answering. However, it exposes three problems when handling complex interactive tasks.

    2.1 Information Compression May Lose Critical Relationships

    If a screenshot is only converted into “the page has a search box, a list, and a button,” the model loses information such as element coordinates, mutual occlusion, font hierarchy, and selected states.

    For interface operations, two buttons with the same name may correspond to different regions. For table understanding, identical numbers may belong to different columns. Recognizing text does not mean preserving the relationship between text and spatial position.

    2.2 Perception Errors Can Propagate into Later Reasoning

    When an upstream recognition module misjudges a gray button as clickable, subsequent planning may proceed on a false premise. If the system does not re-observe the interface and instead executes multiple actions in sequence, errors can accumulate.

    The problem is not only whether the model hallucinates, but whether the system has mechanisms to detect insufficient evidence, recognition failures, and state inconsistencies.

    2.3 There Is a Gap Between Static Understanding and Dynamic Execution

    Being able to describe an interface correctly does not mean being able to operate it reliably. Execution also involves scrolling, animations, network latency, permission pop-ups, and asynchronous data updates.

    A multimodal agent must handle state changes instead of treating each screenshot as an unrelated, independent question. Complex tasks usually require cross-step memory: which fields have been filled, which operations have been completed, and whether the current state has deviated from the goal.

    3. Architecture Design: Bringing Visual Evidence into the Decision Chain

    A general multimodal agent system can be divided by responsibility into five parts: perception, fusion, planning, execution, and memory. They can be handled by one model or implemented through collaboration among multiple modules.

    3.1 Perception Layer: Handling Different Forms of Input

    Image input needs to preserve text, local details, and spatial structure. For high-resolution pages, a combination of global views and local crops can be used: the global view helps understand page layout, while local crops are used to read small text or locate small controls.

    This processing involves cost trade-offs. Higher resolution usually increases computation, while over-shrinking an image may make critical content unrecognizable. In engineering practice, the observation granularity should be selected according to the task rather than always using the highest resolution.

    Video input also needs to consider temporal relationships. Independent frame-by-frame recognition cannot fully describe event order such as “open the menu first, then select an option.” Frame sampling, keyframe selection, and short temporal clip analysis can be used, but attention must be paid: too sparse sampling may miss brief events, while too dense sampling increases latency and context burden.

    3.2 Fusion Layer: Establishing Cross-Modal Correspondences

    A visual encoding module can convert an image into a feature sequence and then combine it with text representations through projection mapping, attention interaction, or other methods. The common goal of different technical routes is to enable task instructions to be associated with specific visual regions.

    For example, when a user asks to “change the title of the second card,” the model must not only recognize the title but also understand the order and containment relationships among cards.

    For operation tasks, the coordinate system should also be made explicit. Screenshot coordinates, window coordinates, and actual execution coordinates may not be consistent. Scaling ratios, page scrolling, and window margins can all cause offsets. The system must complete conversion and validation before execution and must not treat model-output coordinates directly as reliable actions.

    3.3 Planning Layer: Generating Verifiable Small Steps

    Rather than generating a long action sequence at once, it is better to decompose a complex goal into short steps whose results can be observed.

    For example, filling out a form can be broken down into: locate the target field, enter content, check the echo, locate the next field, review before submission, execute submission, and check the result. Each step should have completion conditions and failure handling.

    This design adds some observation overhead, but it usually makes faults easier to locate and reduces the impact of earlier errors on later steps.

    3.4 Execution Layer: Constraining Actions Within Clear Boundaries

    The model should not directly have unrestricted control over the environment. The execution layer should validate action types, target ranges, and business permissions.

    Low-risk actions such as reading a page, scrolling the interface, and filling in a draft can be executed automatically within the authorized scope. High-impact actions such as sending messages, deleting data, submitting orders, or modifying permissions should require human confirmation according to business rules.

    Auditable and locatable structured operations should be preferred. When the environment cannot provide reliable structural information, visual coordinate operations can be used. The two can complement each other, and more stable execution channels should not be abandoned merely to emphasize visual capabilities.

    3.5 Memory Layer: Preserving Task State Rather Than Accumulating History

    Long tasks are not suitable for infinitely appending screenshots and conversations. A more practical approach is to maintain structured state that records the goal, completed steps, key fields, recent observations, and items awaiting confirmation.

    Memory should also distinguish between “observed facts” and “model speculation.” For example, “the submit button appears gray” is a current observation; “possibly because a required field is missing” is only a hypothesis to be verified. Mixing the two can easily turn unverified judgments into the basis for subsequent decisions.

    4. Training Strategy: From Image-Text Understanding to Closed-Loop Action

    To develop stable multimodal task capabilities, training data needs to cover different levels rather than merely increasing the number of images.

    4.1 Build Basic Image-Text Alignment Capabilities

    Basic training should help the model learn the connections among objects, text, regions, spatial relationships, and textual descriptions. Document scenarios also require handling paragraph order, table cell relationships, and chart meanings.

    Data quality is critical. Incorrect descriptions, blurred images, and inaccurate position annotations can all weaken the model’s reliance on visual evidence.

    4.2 Use Task-Level Instruction Data

    Task data should extend from “what is in the image” to “what should be completed based on the image.”

    For example, generate page structure from a design mockup, compare interface differences before and after a change, extract specified fields from a scanned table, and determine whether the current step meets user requirements. These tasks help connect perception capabilities with actual goals.

    4.3 Learn from Operation Trajectories and Result Feedback

    Operation trajectories should include observations, actions, and environment changes after execution. If only correct actions are recorded without the frames before and after the action, it is difficult for the model to learn why the action was taken and how to determine whether it succeeded.

    Failure trajectories are equally valuable. For example, re-locating after a click produces no response, pausing the original plan after discovering a pop-up, and checking focus after an input failure. Such data can help the model learn recovery strategies rather than only reproduce ideal paths.

    If feedback-based training is used, reward design should consider completion, action cost, error recovery, and safety constraints at the same time. Rewarding only “looking successful in the end” may encourage the model to take unnecessary risks or satisfy surface metrics in the wrong way.

    4.4 Prevent Improvement in One Capability from Squeezing Others

    The training objectives for visual tasks, code tasks, and general text tasks are not fully consistent. After adding a certain type of data, continuous checks should be made to see whether other capabilities have degraded.

    In engineering practice, this trade-off can be managed through data ratios, staged training, and multi-task validation. However, a single visual test result is not enough to conclude that the model’s text reasoning or coding capabilities have been preserved.

    5. Technical Challenges in Two Representative Scenarios

    5.1 Generating Interface Code from Visual Design

    This type of task is not just about reproducing a screenshot. It also requires inferring the structural rules behind the screenshot: which regions belong to the same container, whether spacing follows a consistent scale, how text hierarchy is organized, and how the layout should adjust across screen sizes.

    An iterative approach of “analyze—generate—render—compare—revise” is recommended. First extract layout and style constraints, then generate structured code, render the result in a controlled environment, and finally compare visual differences and interactive behavior.

    Evaluation must consider both visual similarity and engineering quality. Using many fixed coordinates to assemble a similar-looking screen may not produce a maintainable, accessible, and responsive page. Layout structure, semantic markup, component reuse, and basic interactions should all be included in acceptance criteria.

    5.2 Operating Application Interfaces Based on Screenshots

    A UI agent needs to solve not only “where to click” but also “when to operate” and “how to confirm success.”

    After a page transition, it should wait for the necessary state signals rather than covering all cases with a fixed delay. Before input, it should check focus and field type. After submission, it should observe success prompts or read verifiable business state.

    For loading failures, pop-up occlusion, and control position changes, a limited number of retries should be set with clear exit conditions. Unlimited retries not only increase cost but may also repeatedly trigger business operations.

    6. Engineering Loop: Observation, Validation, and Recovery

    The following illustrative pseudocode expresses a controlled execution flow. The names are used only to explain system responsibilities and are not specific product interfaces:

    1. state = init_task_state(user_goal)
    2. while step_budget is not exceeded:
    3. observation = get_current_environment()
    4. candidate_action = plan_from_goal_and_observation(state, observation)
    5. if evidence is insufficient:
    6. gather_more_observations_or_request_user_clarification()
    7. continue
    8. if action_violates_permissions_or_risk_rules:
    9. stop_automatic_execution_and_request_confirmation()
    10. break
    11. execution_result = execute_action(candidate_action)
    12. new_observation = get_current_environment()
    13. validation_result = check_expected_changes(execution_result, new_observation)
    14. update_task_state(state, validation_result)
    15. if goal_is_verified_complete:
    16. return completed_result
    17. if failure_threshold_is_reached:
    18. return failure_reason_and_recovery_suggestions

    The key here is not whether the model can produce an action, but whether every execution has boundaries, every result has evidence, and every failure has a clear handling path.

    Idempotency also needs to be considered. For actions that may produce business side effects, before retrying, the system should check whether the previous execution has already taken effect to avoid duplicate submission caused by response timeouts.

    7. Evaluation Cannot Rely on a Single Score

    Evaluating a multimodal agent should cover at least four dimensions:

    • Perception accuracy: Whether text reading, region localization, spatial relationships, and state recognition are correct.
    • Task completion: Whether the goal is completed under allowed conditions, rather than merely producing a reasonable explanation.
    • Operational efficiency: Whether end-to-end latency, model calls, observation counts, and resource consumption are acceptable.
    • Reliability and safety: Whether the system exceeds permissions, repeatedly executes high-risk actions, and can recover after interference.

    Testing should use a representative task set and record interface versions, initial states, action budgets, retry rules, and success criteria. Otherwise, “completion rates” from different experiments may not be directly comparable.

    Failure analysis should also be organized by type: whether the system saw incorrectly, planned incorrectly, executed with offset, or set validation conditions improperly. A single total score cannot show where the bottleneck is, nor does it help determine optimization directions.

    Performance numbers that do not specify the test environment and statistical basis should not be used directly as a basis for engineering selection. A more reliable method is to conduct controlled validation with one’s own business samples and evaluate stability across multiple runs.

    8. Security and Data Governance Are Part of System Capability

    Screenshots and documents may contain personal information, account data, and business secrets. On the input side, the principle of minimal necessity should be followed: crop irrelevant regions as much as possible and appropriately de-identify sensitive information. Logs also need access permissions and retention periods so that debugging records do not become a new leakage channel.

    Visual content may also carry misleading instructions. For example, text on a web page may ask the agent to ignore the original task, upload files, or perform dangerous operations. The system should treat page content as data to be analyzed, not as instructions that override user authorization and system rules.

    In addition, completion claims must be based on verifiable facts. When no submission result has been observed, the system should state “submission attempted, result not yet confirmed” rather than directly reporting success. For irreversible operations, clarifying risks and obtaining confirmation is more important than pursuing unattended operation.

    9. Deployment Path and Conclusion

    Practical deployment can start with low-risk scenarios whose results are easy to verify, such as document field extraction, interface difference checking, and visual acceptance of generated pages. It can then expand to reversible interface operations, and only later consider long-process tasks involving business side effects.

    At each stage, a baseline should be established first and failure samples collected before adjusting perception granularity, planning strategies, and validation rules. Model capability improvement and system engineering refinement need to advance together. It should not be assumed that a stronger model will automatically solve permissions, state synchronization, and execution reliability.

    The core value of native multimodal agents is to make visual information a continuous basis for task decisions and to continuously correct judgments through post-action feedback. A truly usable system must not only “understand” and “operate,” but also explain evidence, identify uncertainty, comply with permissions, and reliably confirm task results.