Abstract
Precise GUI grounding—mapping natural language instructions to screen coordinates—is essential for autonomous computer-using agents. Current monolithic Vision-Language Models (VLMs) struggle with spatial dilution on high-resolution displays and semantic ambiguity in user commands. We introduce MEGA-GUI, a multi-stage framework that orchestrates specialized agents for feasibility assessment, bidirectional region-of-interest (ROI) deduction, and fine-grained grounding. MEGA-GUI achieves state-of-the-art performance, reaching 73.18% on ScreenSpot-Pro and 68.63% on OSWorld-G, significantly outperforming existing single-shot and agentic baselines.
Introduction
As the industry moves toward agents capable of general computer control, the "needle-in-a-haystack" problem of GUI grounding has become a primary bottleneck. On modern 4K displays, target elements often occupy less than 0.1% of the screen area, saturating the perceptual capacity of standard VLMs. Furthermore, vague instructions like "close the window" require deep contextual reasoning to distinguish between multiple similar UI elements. MEGA-GUI addresses these challenges by reformulating grounding as a structured, multi-stage control task.
The MEGA-GUI Framework
MEGA-GUI decomposes the grounding process into three distinct stages to ensure precision and robustness. By moving away from monolithic models, the system can leverage the specific strengths of different VLMs at each step.
Stage 0: Feasibility Assessment
A dedicated Refusal Agent evaluates whether the user's instruction is executable on the current screen. This stage prevents hallucinations by allowing the system to terminate early if the target element is missing or the request is invalid. In testing, this agent correctly identified infeasible tasks with 68.5% accuracy.
Stage 1: Bidirectional ROI Deduction
The core innovation of MEGA-GUI is the Bidirectional ROI Zoom algorithm. Unlike traditional unidirectional crops, this closed-loop system can "zoom in" to enhance detail or "zoom out" to restore context if a predicted point falls outside the current view. This allows the agent to recover from initial localization errors, providing a mean accuracy gain of +2.22 percentage points over zoom-in only variants.
Stage 2: Fine-Grained Grounding
Once a candidate ROI is identified, two sub-agents refine the prediction:
- Context-Aware Rewrite Agent: Uses high-reasoning models to transform vague instructions into explicit directives (e.g., "Click the blue 'Share' button") based on visual cues. This step provided a massive +9.61 pp boost on semantically complex tasks.
- Conservative Scale Agent: Employs 3× bicubic upscaling to ensure the grounding model can resolve individual pixels of small widgets.
Experimental Results
We evaluated MEGA-GUI on two rigorous benchmarks: ScreenSpot-Pro (SSP), designed for 4K resolution precision, and OSWorld-G (OSG), which focuses on functional commonsense and semantic ambiguity in standard OS interfaces.
As shown in the results, MEGA-GUI sets a new state-of-the-art across both benchmarks. On ScreenSpot-Pro, it achieved 73.18% accuracy, a substantial improvement over the previous SOTA, RegionFocus (61.60%). On OSWorld-G, it reached 68.63%, significantly outperforming strong single-shot baselines like UI-TARS-72B (55.67%).
Key Insights
- Model Specialization: The authors found that VLMs have scale-dependent strengths. For instance, Gemini 2.5 Pro excelled at broad contextual search, while UI-TARS-72B was more accurate at pinpointing final coordinates.
- The Grounding Benchmark Toolkit (GBT): Alongside the model, the authors released GBT to help researchers systematically evaluate individual grounding components rather than just end-to-end performance.
Conclusion
MEGA-GUI demonstrates that a multi-stage, agentic approach is superior to monolithic models for complex GUI grounding tasks. By combining closed-loop spatial search with semantic refinement, it overcomes the limitations of current VLMs on high-resolution interfaces. While the sequential nature of the pipeline introduces some latency, the gains in accuracy and reliability mark a significant step toward robust autonomous computer agents.
Summary updated