GUI-AIMA: Aligning Intrinsic Multimodal Attention with a Context Anchor for GUI Grounding

Shijie Zhou, Viet Dac Lai, Hao Tan, Jihyung Kil, Wanrong Zhu, Changyou Chen, Ruiyi Zhang · DOI

Introduction

GUI grounding—the task of mapping natural language instructions to specific pixel coordinates on a screen—is a fundamental requirement for autonomous computer-use agents. Traditional approaches often treat this as a text-generation task, where Multimodal Large Language Models (MLLMs) output coordinate strings. However, this method is prone to hallucinations and fails to leverage the rich spatial information inherent in the model's internal attention maps. GUI-AIMA introduces a coordinate-free framework that aligns a model's "internal eyes" with visual patches, achieving high precision through a novel attention aggregation mechanism.

Methodology

GUI-AIMA mimics human visual behavior by scanning regions and refining focus. The framework is built upon three primary technical innovations designed to extract and weight grounding information from the model's hidden states.

The <ANCHOR> Token and Attention Aggregation

Aggregating attention from multiple text tokens in a user instruction is often noisy. GUI-AIMA addresses this by appending a learnable <ANCHOR> token to the instruction. This token serves as a surrogate aggregator, learning to summarize the semantic relationship between the entire instruction and the corresponding visual patches.

The GUI-AIMA architecture utilizes a learnable <ANCHOR> token to aggregate attention across visual patches, simplifying the grounding process compared to vanilla attention mechanisms.

Visual-sink Query Token Weighting

To identify which attention heads are most relevant for grounding, the authors utilize "visual-sink" query token weighting. By measuring the cosine similarity between text tokens and visual patches in the hidden states, the model prioritizes "semantic heads" that demonstrate strong alignment with screen elements.

Overlap- and Center-Aware Labeling

Instead of binary classification for patches, GUI-AIMA employs a soft labeling scheme. Patches are weighted based on their Intersection over Union (IoU) with the target element and their Gaussian distance to the element's center. This encourages the model to target the center of UI components, improving robustness.

Two-Step Zoom-In Inference

To handle high-resolution displays where small icons might be overlooked, GUI-AIMA employs a plug-and-play two-step inference process. The model first identifies a broad candidate region and then "zooms in" on a cropped version of that region to refine the final click location. This process requires no additional training.

The two-step inference strategy: Step 1 localizes a candidate region, and Step 2 performs a crop-and-zoom to refine the precise click location.

Experimental Results

The model was trained on a curated dataset of 85,000 screenshots across various platforms (mobile, desktop, web). Despite its relatively small size (3B parameters), GUI-AIMA-3B achieved state-of-the-art performance across several benchmarks:

  • ScreenSpot-v2: 91.5% accuracy.
  • ScreenSpot-Pro: 59.6% accuracy, outperforming models twice its size.
  • OSWorld-G: 63.8% accuracy.

The two-step zoom-in strategy proved particularly effective on the ScreenSpot-Pro benchmark, which features complex professional software, yielding an accuracy improvement of over 10%.

Discussion and Conclusion

GUI-AIMA demonstrates that MLLMs possess latent grounding capabilities that can be triggered through lightweight attention alignment rather than heavy supervision of coordinate generation. By treating grounding as a patch-wise prediction task, the model achieves superior data efficiency and robustness. Future work will focus on extending this framework to multi-region grounding and more general visual grounding tasks beyond software interfaces.

Summary updated

BibTeX
@misc{zhou2025gui,
  author = {Shijie Zhou and Viet Dac Lai and Hao Tan and Jihyung Kil and Wanrong Zhu and Changyou Chen and Ruiyi Zhang},
  title = {{GUI-AIMA: Aligning Intrinsic Multimodal Attention with a Context Anchor for GUI Grounding}},
  year = {2025},
  eprint = {2511.00810},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.00810},
}
Figure