Visual Test-time Scaling for GUI Agent Grounding

Tiange Luo, Lajanugen Logeswaran, Justin Johnson, Honglak Lee

TL;DR

This paper introduces RegionFocus, a novel test-time scaling approach for GUI agents that dynamically zooms into relevant interface regions to improve action selection accuracy. By employing an "image-as-map" mechanism to record visual history, RegionFocus helps agents overcome the challenges of cluttered GUIs and achieve state-of-the-art performance on benchmarks like ScreenSpot-Pro and WebVoyager.

What Problem Does This Paper Address?

Modern graphical user interfaces (GUIs) are visually complex, often filled with numerous irrelevant elements like advertisements and navigation bars. This complexity poses a significant challenge for AI agents designed to interact with these interfaces, leading to frequent errors such as clicking the wrong button or navigating to unintended sections. Existing Vision-Language Models (VLMs) struggle with this visual clutter, as they often rely on either text-based reasoning that can be ambiguous or vision-based approaches that may have overly broad visual attention, inadvertently interacting with non-target elements. This can lead to a compounding effect of errors, ultimately degrading the agent's overall performance. The paper aims to address this by providing a more focused and robust visual grounding mechanism for GUI agents.

Methods

The core innovation is RegionFocus, a visual test-time scaling framework. When a GUI agent encounters a potential error (e.g., clicking an empty region, repeating actions, or a VLM judge flags an issue), RegionFocus is activated.

  1. Visual Region Focus: Instead of processing the entire screenshot, RegionFocus identifies a focal point near the suspected target and generates a bounding box around it. This bounding box is derived from the focal point, rather than being directly predicted, acknowledging the difficulty VLMs have in precise bounding box prediction. A simple heuristic approach defines these boxes with fixed dimensions and aspect ratios, ensuring they stay within image boundaries.
  2. Action Candidate Prediction: The agent then independently predicts candidate actions for each identified sub-region. For interactive environments like webpages, a zoomed-in, high-resolution view of the region is provided.
  3. Action Aggregation: Candidate actions from all regions are aggregated into a single, refined action. To aid this process, coordinate-based actions are visually marked with "pink-star landmarks" on the snapshot, simplifying the mapping of textual coordinates to visual locations.
  4. Image-as-Map History: To prevent revisiting already examined regions and to help distinguish between similar elements, RegionFocus employs an "image-as-map" mechanism. Previously examined focal points are annotated on the UI screenshot with numbered pink stars. This visual history is more effective than textual representations for conveying temporal information and guiding the agent. Landmarks are refreshed when an action successfully takes effect.

RegionFocus is designed as a modular plug-in, operating at inference time without requiring retraining of the base VLM agent.

Datasets

The paper evaluates RegionFocus on two existing benchmarks:

  • ScreenSpot-Pro: A benchmark for GUI grounding in complex, high-resolution desktop environments, covering various applications and operating systems. It focuses on text-based and icon-based grounding accuracy.
  • WebVoyager: A benchmark for autonomous web agents, involving open-ended tasks across 15 popular websites. This benchmark allows for active interaction with real-world web environments.

The authors also mention ablation studies using SAM (Segment Anything) for bounding box generation.

Key Insights and Ideas

  • Visual Focus is Key: The paper strongly advocates for dynamically focusing visual attention on salient regions rather than processing the entire cluttered GUI. This simple shift significantly boosts performance.
  • Image-as-Map for History: The "image-as-map" approach for tracking visited regions is a crucial innovation. It proves more effective than text-based histories for GUI agents, enabling better navigation and avoiding redundant exploration, especially in distinguishing visually similar elements.
  • Test-Time Scaling for GUI Agents: Applying test-time scaling principles, traditionally used for LLMs, to GUI agents by dynamically adjusting visual focus offers a powerful way to enhance performance without architectural changes.
  • Heuristics for Bounding Boxes: Acknowledging the difficulty of precise bounding box prediction, the paper shows that simple, fixed-ratio bounding boxes derived from focal points are sufficient to achieve significant gains, highlighting the robustness of the core idea.

Key Results

  • ScreenSpot-Pro: RegionFocus achieved significant performance gains, with UI-TARS-72B + RegionFocus showing a 31.8% improvement and Qwen2.5-VL-72B + RegionFocus achieving a 28.9% gain. The approach enabled Qwen2.5-VL-72B to reach a state-of-the-art grounding performance of 61.6%.
  • WebVoyager: RegionFocus consistently improved performance across various websites and tasks, demonstrating its effectiveness in interactive web browsing scenarios.
  • General Improvement: The method consistently improved performance for both UI-TARS and Qwen2.5-VL models across different categories.
  • Runtime Overhead: For interactive environments, RegionFocus was triggered in 61.7% of trajectories, incurring an average overhead of 66.8% per trajectory. For static environments, it occurred in over 60% of cases, with varying overheads depending on parallel/sequential execution.

Limitations and Future Work

  • Element Not Visible: RegionFocus is less effective when the target element is not visible on the current screen and requires scrolling actions.
  • Non-Interactable Elements: The framework can struggle if relevant text on a webpage is non-clickable, leading to RegionFocus zooming into irrelevant but visually prominent text.
  • Wrong Focal Points: In rare cases, RegionFocus might propose an incorrect focal point, directing attention to irrelevant regions.
  • Future Work: The authors suggest that accurately generating attention regions directly via VLMs is an open research direction. They also note that addressing issues like bot blocking and intermittent VPNs could further improve performance. Further research could explore optimizing the number of regions to zoom into and whether to execute region predictions sequentially or in parallel, depending on the use case. The paper also hints at further improvements by leveraging SAM for bounding box generation and increasing trajectory steps.

Summary updated

BibTeX
@inproceedings{luo2025visual,
  author = {Tiange Luo and Lajanugen Logeswaran and Justin Johnson and Honglak Lee},
  title = {{Visual Test-time Scaling for GUI Agent Grounding}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure