TL;DR
This paper introduces a framework to improve how Vision-Language Models (VLMs) locate UI elements on a screen, a task known as GUI grounding. By introducing RULER tokens as explicit spatial anchors and Interleaved MRoPE (I-MRoPE) to balance horizontal and vertical spatial encoding, the authors transform unstable coordinate regression into a robust "reference-and-adjust" mechanism that generalizes significantly better to high-resolution displays.
What Problem Does This Paper Address?
For an AI agent to use a computer, it must be able to click the right buttons. This requires "GUI grounding": mapping a natural language instruction (e.g., "Click the record button") to precise pixel coordinates.
Current state-of-the-art models struggle with this because they treat coordinate prediction as a standard text generation task. The model receives visual patches and must implicitly learn to map high-dimensional visual features to numerical strings like "x=523, y=217." This approach has two major flaws:
- Unreliability: Without explicit spatial guidance, the mapping is unstable and requires massive amounts of training data.
- Resolution Brittleness: Models trained on specific screen resolutions often fail when deployed on different or higher-resolution displays because the implicit mapping doesn't scale.
Methods
The authors propose two primary innovations to bridge the gap between abstract visual features and concrete pixel values:
1. RULER Tokens (Rotary position-to-pixeL mappER)
Instead of forcing the model to guess coordinates from scratch, the authors inject "RULER tokens" into the input sequence. These are auxiliary tokens that share the same positional embeddings as image patches but carry explicit coordinate values.
Think of RULER tokens as gridlines on a map. Instead of the model having to estimate its location in a void, it can now identify the nearest "anchor" token and simply calculate a small, bounded offset to reach the target. This shifts the task from difficult regression to a more stable retrieval-based mechanism.
2. Interleaved MRoPE (I-MRoPE)
Standard Multidimensional Rotary Positional Embeddings (MRoPE) often assign frequency bands to spatial dimensions (height and width) sequentially. This creates an imbalance where one axis might receive only high-frequency signals (good for local detail) while the other receives only low-frequency signals (good for global context).
I-MRoPE fixes this by interleaving the frequencies, ensuring that both the width and height dimensions have equal representational capacity. This allows the model to distinguish nearby positions equally well on both axes.
Datasets
The models were trained on the UGround dataset, which contains ~8M element annotations across 775K website screenshots.
For evaluation, the authors used three major benchmarks:
- ScreenSpot: A standard benchmark covering mobile, desktop, and web platforms.
- ScreenSpot-V2: An updated version of ScreenSpot with corrected annotations.
- ScreenSpot-Pro: A more challenging benchmark featuring 23 professional desktop applications (like CAD tools and IDEs) with high-resolution interfaces that were not seen during training.
Key Insights and Ideas
- Retrieval > Regression: The "aha moment" is that models are much better at copying and adjusting existing values (induction) than they are at regressing exact numbers from abstract embeddings.
- Resolution Invariance: Because the adjustment needed from a RULER token to a target is bounded by a constant (the patch size), the model's accuracy becomes largely independent of the overall screen resolution.
- Frequency Balance is Critical: The discovery that standard MRoPE implementations were "blind" to certain frequencies on specific axes explains why previous models often struggled with horizontal vs. vertical precision.
Key Results
The proposed framework achieved consistent improvements across all benchmarks with minimal overhead (adding less than 1% to the total token count):
- ScreenSpot-Pro: The model showed its strongest gains here, improving Qwen2.5-VL’s accuracy from 34.6% to 37.2% (+2.6%). This confirms that the RULER method excels at generalizing to high resolutions unseen during training.
- Efficiency: Even on 8K displays, the RULER tokens only add a negligible number of tokens (e.g., 68 tokens for an 8K screenshot), maintaining high inference speed.
- Ablation Success: The authors found that all RULER token intervals (s=4, 8, 16) yielded improvements, proving the robustness of the "reference-and-adjust" mechanism.
Limitations and Future Work
- Mobile Performance: In extremely low-resolution settings (like small mobile screens), using a very high RULER interval (s=16) can sometimes result in only a single anchor token, which slightly degrades performance.
- Domain Specificity: While the model generalizes well to professional apps, it was still primarily trained on website data (UGround). Future work could involve training on a more diverse set of native desktop and mobile application data.
- Integration: While I-MRoPE is highly effective, the authors noted that modifying the positional encoding of a pre-trained model requires careful handling to avoid invalidating learned representations.
Summary updated