TL;DR
HiViG is a new test-time intervention framework that acts as a pre-execution safety net for Computer Use Agents (CUAs). By combining long-term history tracking with pixel-level visual grounding, it intercepts spatial and reasoning errors before they can cause irreversible damage to a user's environment. Across web, mobile, and desktop benchmarks, HiViG significantly boosts the success rates of frontier models like Gemini-3-Flash and Qwen3-VL by preventing them from falling into repetitive failure loops.
What Problem Does This Paper Address?
Computer Use Agents (CUAs) are designed to automate complex, multi-step tasks directly on Graphical User Interfaces (GUIs)—like navigating websites, managing desktop files, or using mobile apps. However, these agents frequently make mistakes, such as clicking the wrong button or hallucinating screen states. Because many GUI actions are irreversible (e.g., deleting a folder or sending an email), relying on post-execution fixes is risky and impractical.
To solve this, researchers use "critic" models to evaluate an agent's proposed action before it executes. Unfortunately, existing critics suffer from two major flaws:
- Short-sightedness: They fail to track historical states, meaning they quickly forget what the agent has already tried and allow it to get trapped in repetitive, suboptimal decision loops.
- Lack of Visual Grounding: They tend to rely heavily on the agent's textual description of its intent rather than the actual pixel coordinates. As a result, they often approve actions that sound logical but are physically misaligned on the screen.
Methods
The authors introduce HiViG (History-aware Visually Grounded critic), an efficient 8B multimodal model that operates alongside a primary CUA policy to provide two core capabilities:
- History State Tracking: Instead of feeding a massive, context-heavy sequence of raw past screenshots to the agent, HiViG recursively compresses past interactions into a compact "macro-action history." This text summary tracks long-term goal achievements (e.g., "Successfully opened the Downloads directory and confirmed the folder is empty"), helping the agent maintain global task awareness.
- Visually Grounded Error Analysis: When the agent proposes an action with specific pixel coordinates, HiViG dynamically injects a physical visual marker (a red 'X' or blue arrow) onto the screenshot at those exact coordinates. It then evaluates the UI element directly beneath the marker, predicts the immediate visual state transition, and checks if it aligns with the user's instructions. If the action is flawed, it intercepts it and provides natural language feedback to help the agent self-correct.
To train this critic, the authors used a larger model (Qwen3-VL-32B-Thinking) as an automated annotator to construct a high-quality dataset based on real GUI trajectories, categorizing failures into a taxonomy of 12 distinct error dimensions (such as Visual Hallucination, Action Formulation Error, and Observation Neglect).
Datasets
- Training: A newly constructed Supervised Fine-Tuning (SFT) dataset containing 52k mixed samples derived from the open-source ScaleCUA corpus. This includes 20k samples for history state tracking and 32k samples for visually grounded error analysis.
- Evaluation: The framework was cross-evaluated across three diverse computing ecosystems:
- WebArenaLitev2 (Web navigation tasks across 5 distinct websites)
- AndroidLab (Mobile tasks spanning 9 native applications)
- WindowsAgentArena (Desktop tasks executed within a fully functional Windows 11 virtual machine)
Key Insights and Ideas
- The "Text Shortcut" Phenomenon: The authors discovered that if an agent's verbalized intent is always visible during training, critic models will take a shortcut—they ignore the visual screenshot and just read the text. To force true visual grounding, the authors had to mask the textual intent in 30% of the training data.
- Visual Markers as Spatial Anchors: Multimodal Large Language Models (MLLMs) are notoriously bad at interpreting raw numerical coordinates on a dense screen. Injecting a physical marker directly onto the image acts as a vital spatial anchor that dramatically improves coordinate verification.
- Orthogonal Synergy: Ablation studies revealed that history tracking and visual grounding fix completely different types of errors. History tracking prevents planning loops, while visual grounding stops execution slips. Combining them yields a powerful synergistic effect that far outperforms either component alone.
Key Results
HiViG consistently outperformed all baseline scalar reward models and text-only critics across web, mobile, and desktop environments:
- Gemini-3-Flash: Achieved an average absolute success rate gain of 9.0% across all three domains, including a massive jump from 30.5% to 45.5% on the WebArenaLitev2 benchmark.
- Qwen3-VL-32B-Thinking: Saw an average absolute improvement of 5.8% over the strongest baseline.
- Cross-Platform Generalization: Because HiViG relies purely on raw screenshots and pixel-level understanding—without requiring platform-specific metadata like the DOM or accessibility trees—it generalized seamlessly across Windows, Android, and web browsers.
Limitations and Future Work
Despite its strong performance, HiViG has a few limitations that pave the way for future research:
- Fine-Grained Vision Limits: The critic occasionally misses highly nuanced visual discrepancies, such as mistaking a "dark red" color option for "red" in a painting application.
- Textual Bias in History: In rare cases, if a visual change is subtle or ambiguous (e.g., an app hiding a menu view rather than deleting an item), the critic's history tracker can be misled by textual bias and log an incorrect macro-achievement.
- Static Taxonomy: The 12-error taxonomy is bounded by current GUI landscapes and will need to be iteratively expanded as digital interfaces and agent capabilities evolve.
Summary updated