Building the Execution Loop for Multimodal Agents
This article explains how multimodal agents move from answering questions to completing tasks through a closed execution loop. It covers why native visual understanding outperforms bolt-on vision pipelines, how to narrow the action space for reliable computer use, and the engineering meaning of cutting hallucination rates in half. It also outlines a four-layer deployment architecture, practical selection guidance by scenario, and the remaining capability gaps in long-horizon planning and cross-application coordination.
1. From Answering to Executing: The Capability Leap of Multimodal Agents
Over the past two years, large model evaluation has centered on text generation quality: whether responses read fluently, whether reasoning is complete, and whether generated code runs. Once models are asked to finish tasks on a user’s behalf, the evaluation criteria shift fundamentally. A model must now understand what is on the screen, take correct actions within a graphical interface, and self-correct when an action fails.
The new generation of open-source models referenced in the source material follows a technical path that abstracts into three directions: a significant increase in base parameter count, native visual understanding, and new capabilities for operating graphical interfaces, while compressing the hallucination rate to roughly half that of the previous generation. Together these point to a single engineering goal: building an agent that can execute within a closed loop.
It is worth stressing that scaling parameters alone does not produce a capability leap. Execution reliability is determined by three things: perception accuracy, action space design, and the feedback loop after failure. This article breaks down the implementation essentials of these three layers from a general technical perspective.
2. Native Visual Understanding: Why “Native” Beats “Bolt-On”
Two common multimodal approaches exist. The first passes an image to a standalone vision model that produces a text description, then hands that description to a text model for reasoning. The second trains the vision encoder and the language model jointly during pre-training, forming native visual understanding.
The first approach suffers from irreversible information loss. Control positions, hierarchy relationships, and color states in a screenshot, such as whether a button is grayed out and unclickable or highlighted and clickable, are largely lost when converted to text, leaving the model to guess from an incomplete description. The second approach preserves spatial and pixel-level information, so it can directly answer “where is this button” and “which layer does the current dialog belong to.”
To judge whether visual understanding is reliable, a few dimensions are worth examining:
- Spatial grounding: whether the model outputs usable coordinates or bounding boxes rather than vague directional words;
- Fine-grained recognition: recognition rates for small text, low-contrast icons, and occluded elements;
- State awareness: distinguishing selected from unselected, enabled from disabled, loading from complete;
- Layout reconstruction: parsing the interface into an actionable control tree rather than a flat image.
An illustrative interface parsing output looks like this:
{"screen_id": 1734,"resolution": "2560x1440","elements": [{"type": "button", "label": "Submit", "bbox": [1120, 980, 1240, 1024], "enabled": true},{"type": "input", "label": "Username", "bbox": [1080, 420, 1600, 468], "value": ""},{"type": "dialog", "label": "Confirm deletion", "bbox": [900, 500, 1660, 900], "z_index": 10}]}
With structured output in place, action decisions shift from guessing coordinates to selecting elements, which is the key step in improving reliability.
3. Computer Use: Narrowing the Action Space to Something Learnable
Having a model operate a graphical interface is fundamentally sequential decision-making over an action space. If that space is defined as “any pixel plus any drag trajectory,” the search space is too large and the success rate stays very low. The mature approach converges it into a finite action set:
- Click (element center point or specified coordinates)
- Type text (including focus handling and input method state)
- Scroll and drag (bounded direction and magnitude)
- Key combinations (for cross-window and system-level operations)
- Wait and verify state (explicitly modeling “the page is still loading”)
The execution loop in pseudocode:
while step < MAX_STEPS:obs = capture_screen() # Perception: screenshot + control treestate = parse(obs) # Structuring: elements, states, dialogsif verify(goal_reached(state)):return success(state)action = policy(goal, history, state) # Decision: emit a finite actionresult = executor.run(action) # Execution: with timeout and retryhistory.append((action, result)) # Memory: failures are recorded toostep += 1return failure(history)
Three easily overlooked engineering details. First, explicit waiting is mandatory; clicking into a void caused by asynchronous rendering is the most common failure source. Second, state must be verified after every action rather than validated in one pass at the end. Third, failure history must enter the context, otherwise the model repeatedly retries the same wrong path.
4. What Halving the Hallucination Rate Means in Practice
In question answering, hallucination shows up as fabricated facts. In execution, it shows up as claiming a task is complete when no action was taken, or describing an interface element that does not exist. The latter is more damaging, because it lets upstream workflows proceed on a false premise.
General techniques for suppressing execution-type hallucination include:
- Mandatory evidence binding: every conclusion the model outputs must reference a specific element ID from the current screenshot, and output without a reference is treated as invalid;
- Verifiable results: “task complete” is determined by environment state, not by the model’s own account;
- Structured output constraints: a fixed schema constrains action format and reduces ambiguity from free text;
- Escalating uncertainty: when confidence falls below a threshold, request human confirmation instead of guessing;
- Training-side alignment: introduce real environment feedback on operation success or failure as a reward signal during preference optimization.
5. Closing the Ecosystem Loop and the Path to Production
The value of cross-modal execution only materializes inside real business flows. A deployable design typically has four layers:
- Access layer: a unified wrapper for tasks to be executed, hiding differences between business systems;
- Execution layer: the agent runs containerized, with interface operations carried out in an isolated environment so production endpoints are unaffected;
- Data layer: object storage holds screenshots and operation traces, while a message queue smooths peaks and drives asynchronous tasks;
- Observability layer: logging and monitoring services track success rate, average step count, and timeout rate, forming a continuous optimization loop.
On the cloud, this can be assembled from general-purpose Baidu AI Cloud capabilities: a container platform hosts the execution sandbox, object storage archives trace data, a message queue handles task distribution, and the logging and monitoring stack provides observability. This delivers elastic scaling while meeting audit and replay requirements.
6. Capability Boundaries and Selection Guidance
Objectively, open-source models in China have reached a usable level on cross-modal execution paths, but they still trail the most advanced closed-source models in ultra-long-horizon task planning, complex cross-application coordination, and resilience against extreme interface conditions. Selection should be layered by scenario:
- High-frequency, fixed-flow interface operations: favor short-step, strongly constrained approaches that prioritize stability and cost;
- Long-chain tasks requiring cross-system coordination: introduce task decomposition and human confirmation checkpoints to control risk;
- Operations involving sensitive data: run fully isolated, keep an operation trail, and prohibit sending screenshots externally.
7. Conclusion
“Sharp eyes” solve seeing accurately and “skilled hands” solve acting correctly, but what actually determines whether an agent can enter production is how tight the feedback loop between the two is. For developers, rather than chasing rankings on a single metric, the better investment is making action space convergence, state verification, evidence binding, and observability solid. That is the dividing line between a cross-modal execution demo and reliable productivity.
