Practices in Visual Understanding and Computer Control for Multimodal Agents

    This article explores the evolution of multimodal agents in executing complex enterprise tasks, shifting from simple text generation to visual understanding and controlled computer operations. It outlines a five-layer architecture—input intake, planning, perception, execution, and verification/audit—designed to manage cross-modal task orchestration. Through practical case studies like financial statement cross-analysis and video gameplay mechanism replication, the article emphasizes the importance of outputting computable structures, ensuring operational safety (such as sandbox isolation and action whitelisting), and maintaining low-hallucination engineering practices (like evidence chains and cross-validation) to build reliable and auditable AI systems.

    1. Evolving Capability Boundaries: From Answering to Seeing and Doing

    Traditional text-based large models excel at summarization, generation, and dialogue. However, real-world enterprise tasks often involve non-text inputs such as table screenshots, scanned documents, video attachments, desktop software interfaces, and cross-referenced files. Users need more than just a conclusion; they expect the agent to understand materials, execute steps, provide evidence, and allow for review.

    Therefore, the core capabilities of a multimodal agent can be abstracted into three closed loops:

    1. Perception Loop: Identifying images, tables, video frames, and interface elements, transforming unstructured inputs into computable and referenceable intermediate structures.
    2. Action Loop: Executing clicks, inputs, file processing, and data queries within a controlled desktop or tool environment.
    3. Verification Loop: Cross-validating execution results, performing rule checks, and tracing back evidence to reduce hallucination and misoperation risks.

    Compared to pure text solutions, the main challenge lies not in single-point recognition but in cross-modal task orchestration: the model must understand visual materials, plan steps, and read environmental feedback after operations to form a state-machine progression. Engineering-wise, “understanding” and “executing correctly” must be governed separately; otherwise, it is easy to end up with seemingly reasonable conclusions backed by untraceable evidence.

    2. Overall Architecture: Perception, Planning, Execution, Verification, and Audit

    A viable cross-modal execution system typically consists of five layers:

    • Input Intake Layer: Registers task instructions, attachments, permissions, and data sensitivity levels, generating a unified index for assets like tables, images, and videos.
    • Planning Layer: Breaks down tasks into verifiable sub-goals, such as “extract specific subjects from three financial statements,” “identify game mechanics rules,” or “generate a consistent, runnable prototype.”
    • Perception Layer: Performs layout analysis, table recognition, and element localization for images; executes frame extraction, object tracking, and state change recognition for videos.
    • Execution Layer: Executes actions in a sandbox desktop, file workspace, or controlled tools. Actions must support whitelisting, idempotency, and rollback.
    • Verification and Audit Layer: Records the input, action, output, and evidence location for each step, supporting manual review and failure replay.

    The main loop can be described using the following pseudocode:

    1. task = load_task(instruction, attachments)
    2. assets = register_assets(task.attachments)
    3. plan = decompose(task.instruction, assets)
    4. state = init_state()
    5. while not plan.finished(state):
    6. observation = perceive(assets, state)
    7. action = decide(plan, observation, state)
    8. if action.risk_level > threshold:
    9. action = require_human_confirm(action)
    10. result = execute_in_sandbox(action)
    11. state = checkpoint(state, observation, result)
    12. assert verify(state, plan.acceptance_criteria)
    13. report = build_evidence_report(state)

    The key to this pseudocode is not the function names but the engineering constraints: high-risk actions require human confirmation; a checkpoint must be saved after each execution; acceptance criteria must be verifiable; and the final report must include an evidence chain.

    3. Visual Understanding: Outputting Computable Structures over Vague Conclusions

    In financial statement analysis scenarios, models face multiple tables such as the balance sheet, cash flow statement, and income statement. Simply asking the model to “summarize the financial condition” often yields vague descriptions. A more reliable approach requires it to output structured intermediate results:

    • The period, unit, currency, and accounting caliber for each table.
    • Account names, original values, corresponding regions, and confidence levels.
    • Cross-table mapping relationships, such as net profit, net profit attributable to shareholders of the parent company, minority interest, and net cash flow from operating activities.
    • Calculated metrics and their formulas, such as net profit margin, cash-to-profit ratio, and the proportion of net profit attributable to the parent company.
    • The evidence coordinates corresponding to each conclusion.

    Only by separating “account extraction” from “conclusion generation” can effective cross-validation be achieved. For instance, if the income statement shows a slight increase in net profit but the net profit attributable to the parent company’s shareholders decreases, the system should check whether minority interest contributed significantly. If profit is positive while operating cash flow is significantly negative, further examination of changes in accounts like accounts receivable, inventory, and contract liabilities is required. The model should not just perform arithmetic; it should explain “why profit diverges from cash flow” and “where the discrepancy between the parent and consolidated calibers originates.”

    4. Computer Control: Controlled, Rollbackable, and Auditable

    “Computer operation capability” does not mean allowing the model to control the desktop without boundaries. Instead, it abstracts actions into controlled tools: opening files, locating elements, inputting text, clicking buttons, reading window states, and saving results. Engineering practices should adhere to the following principles:

    • Minimum Privilege: Only grant access to directories and software required for the task.
    • Action Whitelisting: High-risk actions such as deletion, submission, and payment must undergo secondary confirmation.
    • Sandbox Isolation: Execute operations within a containerized desktop or temporary workspace.
    • Idempotency and Rollback: Every step is replayable, and failures can be restored to the nearest checkpoint.
    • Full-Link Logging: Record screenshots, actions, outputs, and execution durations for auditing purposes.

    5. Case Study 1: Financial Statement Cross-Analysis

    A complete financial analysis task can be decomposed into: identifying the three statements, extracting accounts, unifying calibers, calculating metrics, cross-validating, attributing anomalies, and generating an evidence-backed report. Validation rules should at least include: assets equal liabilities plus owner’s equity; the articulation among net profit, net profit attributable to the parent company, and minority interest; a divergence check between operating cash flow and profit trends; and key conclusions must cite original table regions. This ensures the system can both “balance the books accurately” and “understand the bigger picture.”

    6. Case Study 2: Video Gameplay Mechanism Replication

    For video attachments, the system can first extract frames to identify movement methods, collection/trigger logic, and win/loss conditions. It can then establish a state machine and re-implement the prototype using 2D drawing or 3D rendering interfaces. The goal is not pixel-level restoration but mechanism consistency: input responses, collision/trigger conditions, and scoring and end conditions must align. Long tasks require checkpoints, phase logging, and failure recovery mechanisms to avoid uncontrollable failures during a single, lengthy execution.

    7. Low Hallucination and Engineering Implementation

    Low hallucination cannot be achieved through slogans; it requires evidence chains, executable validation, cross-checks, and human review. Evaluation metrics should cover task success rate, step accuracy rate, tool call success rate, evidence traceability rate, recovery success rate, latency, and cost. When deployed on the cloud, general service categories such as object storage, container platforms, logging services, and monitoring alerts can be combined (for example, using relevant general services provided by Baidu AI Cloud), deployed according to minimum privilege and auditing requirements. Starting with a small-scale gray release and gradually expanding task types is essential to making multimodal agents truly capable and usable “assistants.”