TLDR: V2P is a new method for training AI agents to interact with graphical user interfaces (GUIs) more precisely. It solves two main problems: preventing the AI from getting distracted by background elements and helping it distinguish between the center and edges of a clickable item. By suppressing attention on irrelevant areas and focusing it on the most clickable center point (inspired by how humans interact), V2P significantly improves the accuracy of GUI grounding tasks on complex interfaces.
In the rapidly evolving world of artificial intelligence, GUI (Graphical User Interface) agents are becoming increasingly vital. These AI systems are designed to understand and interact with digital interfaces, much like a human user would, across various platforms like desktops, mobile devices, and web applications. A core challenge for these agents is ‘GUI grounding’ – the ability to accurately identify and locate specific UI elements based on natural language instructions.
Historically, GUI grounding methods often relied on simply predicting a bounding box or a single (x, y) coordinate for a target element. However, these approaches faced limitations. They struggled with the inherent uncertainty of spatial interactions and often treated coordinates as mere words, lacking true spatial meaning. More recent advancements have incorporated attention mechanisms, allowing models to focus on relevant parts of an image. Yet, even these methods encountered two persistent issues:
The Persistent Problems
Firstly, there’s the problem of background distraction. Current AI models are often trained to increase attention on the target area but aren’t explicitly told to ignore the background. This can lead to ‘attention leakage,’ where the model assigns high scores to visually prominent but irrelevant background regions. Consequently, the AI’s focus can drift away from the intended target, leading to inaccurate interactions.
Secondly, there’s center-edge confusion. Existing labeling methods often treat every pixel within a UI element’s bounding box as equally important. This uniform labeling prevents the model from distinguishing between the most clickable center of an element and its less precise edges. As a result, the AI might click inaccurately, missing the optimal interaction point. This problem is exacerbated when UI elements overlap, as uniform labels can cause the model to over-focus on less relevant edge regions.
Introducing Valley-to-Peak (V2P)
Inspired by how humans naturally interact with interfaces – first isolating a target and then focusing on its most clickable point – researchers have developed a novel method called Valley-to-Peak (V2P). This framework aims to guide the model’s visual attention more precisely, tackling both background distraction and center-edge confusion synergistically.
V2P introduces two key components:
1. Suppression Attention: To combat background distractions, V2P incorporates an ‘inverse attention regularization.’ This mechanism actively penalizes high attention weights outside the target area. By creating ‘valleys’ of low attention around non-target regions, it forces the model to suppress irrelevant information and focus more intently on the true actionable UI elements.
2. Fitts-Gaussian Peak Modeling: Addressing the center-edge confusion, V2P draws inspiration from Fitts’ Law, a principle that describes human target acquisition performance. It models the ideal spatial distribution of interaction likelihood as a 2D Gaussian heatmap. This heatmap is centered on the target element, with the highest weight at its core, gradually decreasing towards the edges. The spread of this Gaussian (its variance) is adjusted based on the target’s size, reflecting that larger targets allow for more spatial tolerance. This approach teaches the model to concentrate on the most essential and clickable point of a UI element.
By jointly optimizing these two components, V2P reshapes the AI’s attention landscape. It suppresses distractions to form ‘valleys’ in irrelevant areas while emphasizing a sharp ‘peak’ at the target’s actionable center. This balanced design significantly enhances grounding precision, aligning the model’s behavior more closely with human interaction patterns.
Also Read:
- Unlocking Desktop Intelligence with Reinforcement Learning
- Streamlining Multi-Modal AI for Image and Video Segmentation
Performance and Impact
The V2P method was evaluated using the Qwen2.5-VL-7B-Instruct model as its backbone. It was tested on two widely recognized GUI visual grounding benchmarks: ScreenSpot-v2 and the more challenging ScreenSpot-Pro, which features high-resolution professional applications and diverse domain variability.
V2P-7B achieved impressive results, reaching 92.3% accuracy on ScreenSpot-v2 and a notable 50.5% on ScreenSpot-Pro. This represents a significant relative improvement, especially on the complex ScreenSpot-Pro dataset. Remarkably, V2P achieved these gains through supervised fine-tuning alone, without the added complexity of reinforcement learning pipelines used by some other advanced models.
Ablation studies further confirmed the effectiveness of each V2P component. Removing Fitts-Gaussian Labeling led to a noticeable drop in accuracy on ScreenSpot-Pro, and removing Suppression Attention caused a further decline. This highlights that both mechanisms are crucial for robust performance, particularly in complex scenarios. The Fitts-Gaussian Peak Modeling was found to be especially effective for small UI elements, improving accuracy by 7.4% in those cases.
In conclusion, V2P offers a robust and generalizable solution for precise GUI grounding tasks. By mimicking human visual processing – first isolating a target and then focusing on its most clickable point – V2P enhances the ability of AI agents to interact with digital interfaces with unprecedented accuracy and human-like precision. You can read the full research paper here.


