TL;DR
Current Vision-Language Models struggle with GUI grounding because they try to implicitly map abstract visual features directly to text-based pixel coordinates, failing completely on unseen high-resolution screens. This paper introduces RULER tokens to act as explicit digital gridlines for coordinate retrieval and Interleaved MRoPE (I-MRoPE) to balance spatial frequency encoding across width and height. Together, these innovations significantly boost grounding accuracy on high-resolution interfaces with negligible computational overhead.
What Problem Does This Paper Address?
For autonomous agents to interact with software (e.g., clicking buttons, filling forms), they need accurate GUI grounding—the ability to map natural language instructions to precise pixel coordinates on a screen. While pure vision-based approaches are highly flexible because they don't rely on underlying HTML/DOM metadata, current models treat coordinate prediction as a standard text generation task (e.g., outputting the string "x=523, y=217").
This forces the model to implicitly learn a complex mapping from high-dimensional visual positional embeddings to exact numerical coordinates. Consequently, models suffer from unstable training dynamics and fail to generalize when deployed on higher-resolution screens than those seen during training. Additionally, existing spatial encoding methods like Multidimensional Rotary Positional Embedding (MRoPE) assign frequency bands sequentially, creating an imbalance where one axis gets high-frequency details while the other gets stuck with low-frequency signals.
Methods
The authors introduce two core techniques to move from implicit regression to explicit spatial mapping:
- RULER (Rotary position-to-pixeL mappER) tokens: These are auxiliary tokens injected into the input sequence that explicitly encode pixel coordinates and share positional embeddings with corresponding image patches. Instead of guessing coordinates from scratch, the model finds the closest RULER token (leveraging the transformer's natural copying/induction mechanism) and performs simple, bounded arithmetic adjustments. This acts like map gridlines, turning a difficult regression problem into a robust reference-and-adjustment task.
- Interleaved MRoPE (I-MRoPE): Standard MRoPE partitions and assigns frequency bands consecutively to different dimensions (e.g., height gets high frequencies, width gets low frequencies). I-MRoPE fixes this by cyclically interleaving the frequency components across spatial dimensions, ensuring both width and height receive a balanced, full spectrum of frequencies for fine-grained localization and long-range dependencies.
Datasets
- UGround: Used for training; contains ~8M element annotations across 775K screenshots from websites. Coordinates were pre-processed to raw pixel values to maintain consistency with RULER tokens.
- ScreenSpot & ScreenSpot-V2: Evaluation benchmarks containing 1,272 instructions across mobile, desktop, and web platforms.
- ScreenSpot-Pro: A challenging evaluation benchmark with 1,581 tasks from 23 professional desktop applications. It features much higher-resolution images and significant domain shifts, serving as a rigorous test for resolution generalization.
Key Insights and Ideas
- Shifting from Regression to Retrieval: Treating coordinate generation as text token prediction forces the model to act as a calculator. RULER changes the paradigm to a "look-up table with interpolation," which is much easier for transformers to learn via induction heads.
- Resolution Invariance via Bounded Arithmetic: Because the model anchors its predictions to explicit RULER tokens spaced at regular intervals, the remaining coordinate adjustment is bounded by a small constant regardless of the overall screen size. This breaks the resolution dependency.
- The Axis Bias in Positional Encodings: Standard multidimensional positional encodings inadvertently bias models to perceive one dimension (like height) with sharper detail than another (like width) due to sequential frequency allocation. Interleaving restores spatial symmetry.
Key Results
- High-Resolution Generalization: On the challenging ScreenSpot-Pro benchmark, adding RULER tokens via fine-tuning alone improved Qwen2.5-VL's accuracy from 31.1% to 37.2%, showing massive gains on screens larger than the training data resolution.
- From-Scratch Training Improvements: Integrating I-MRoPE and RULER into a LLaVA-NeXT framework boosted average ScreenSpot-Pro accuracy from 26.8% (baseline) to 32.1%.
- Negligible Overhead: RULER tokens are injected at regular intervals (default interval $s=8$). Even on massive 8K displays, RULER adds fewer than 1% to the total token count (only 68 additional tokens in extreme scenarios), ensuring high efficiency.
Limitations and Future Work
- Domain Constraints: The models were trained primarily on the web-focused UGround dataset, meaning they still lag behind state-of-the-art models that utilize broader multi-domain training data.
- Fixed Token Placement: The current implementation uses a fixed interval for RULER tokens. The authors suggest that future work could explore adaptive token placement based on UI complexity.
- Static vs. Dynamic: The framework is currently designed for static screenshots and needs extension to handle video or highly dynamic streaming interfaces.
Summary updated