Abstract
GUI grounding—the ability of Vision-Language Models (VLMs) to translate natural language instructions into precise screen coordinates—is a critical bottleneck for autonomous AI agents. Traditional approaches rely on implicit mappings that struggle with reliability and resolution changes. This paper introduces RULER (Rotary position-to-pixeL mappER) tokens and Interleaved MRoPE (I-MRoPE) to transform grounding into an explicit "reference-and-adjust" task. Our method achieves significant accuracy improvements, particularly on high-resolution interfaces, by providing the model with explicit spatial anchors.
The Challenge of GUI Grounding
When an AI agent is tasked to "Record the sound," it must identify the correct icon and generate its exact (x, y) pixel coordinates. Current VLMs typically treat this as a text generation problem, attempting to "guess" coordinates based on abstract visual features. This implicit approach suffers from two primary issues:
- Unreliability: The lack of an explicit spatial reference makes the mapping inconsistent.
- Resolution Brittleness: Models trained on specific resolutions often fail when deployed on different screen sizes (e.g., moving from 1080p to 4K) because the learned implicit math does not scale.
Methodology: Explicit Spatial Guidance
To address these flaws, researchers proposed two architectural innovations designed to bake spatial awareness directly into the model's input.
RULER Tokens
RULER tokens act as digital "yardsticks" within the model's input sequence. These auxiliary tokens are assigned fixed coordinate values and share positional IDs with image patches. Instead of calculating coordinates from scratch, the model identifies a nearby RULER token (an "anchor") and calculates a small offset. This shifts the task from high-stakes regression to a simpler "copy-and-adjust" mechanism.
Interleaved MRoPE (I-MRoPE)
Standard Multidimensional Rotary Positional Embeddings (MRoPE) used in models like Qwen2-VL often exhibit a frequency bias, where one axis (e.g., height) receives higher-frequency signals than the other (e.g., width). This results in unbalanced spatial perception. I-MRoPE solves this by interleaving these frequencies, ensuring that both dimensions receive an equal distribution of "sharp" and "broad" spatial information.
Evaluation and Results
The models were trained on UGround, a dataset of 8M element annotations across 775K screenshots, and evaluated on benchmarks including ScreenSpot and the high-resolution ScreenSpot-Pro.
Key Performance Gains
- High-Resolution Accuracy: On the ScreenSpot-Pro benchmark, integrating RULER tokens into Qwen2.5-VL improved accuracy from 34.6% to 37.2%.
- Generalization: In the LLaVA-NeXT framework, the combination of I-MRoPE and RULER tokens yielded a 5.3% absolute accuracy boost over the baseline (32.1% vs 26.8%).
- Efficiency: RULER tokens are computationally inexpensive, adding less than 1% to the total token count even for 8K displays.
Conclusion
The transition from implicit to explicit coordinate mapping represents a significant step forward for GUI agents. By providing models with "gridlines" (RULER tokens) and balanced spatial encodings (I-MRoPE), we enable more reliable and resolution-agnostic grounding. Future work will explore extending these principles to dynamic video interfaces and adaptive token placement.
Summary updated