Attention-driven GUI Grounding: Leveraging Pretrained Multimodal Large Language Models without Fine-Tuning
Hai-Ming Xu, Qi Chen, Lei Wang, Lingqiao Liu
TL;DR
This work introduces TAG, a tuning-free Attention-driven Grounding framework that exploits the inherent attention patterns of a pretrained Multimodal LLM (MiniCPMV2.5) to ground GUI elements without fine-tuning. TAG combines adaptive text token selection with attention-driven grounding and selective head filtering to map user queries to GUI components via cross- and self-attention maps, achieving strong text localization and competitive GUI grounding across multiple benchmarks. Across OCG, ScreenSpot, Mind2Web agent evaluations, TAG consistently outperforms or matches tuning-based methods while reducing the need for costly fine-tuning and offering better generalization to varied aspect ratios and platforms. The approach demonstrates the untapped potential of pretrained attention mechanisms for scalable GUI automation and suggests broad applicability to other multimodal grounding tasks.
Abstract
Recent advancements in Multimodal Large Language Models (MLLMs) have generated significant interest in their ability to autonomously interact with and interpret Graphical User Interfaces (GUIs). A major challenge in these systems is grounding-accurately identifying critical GUI components such as text or icons based on a GUI image and a corresponding text query. Traditionally, this task has relied on fine-tuning MLLMs with specialized training data to predict component locations directly. However, in this paper, we propose a novel Tuning-free Attention-driven Grounding (TAG) method that leverages the inherent attention patterns in pretrained MLLMs to accomplish this task without the need for additional fine-tuning. Our method involves identifying and aggregating attention maps from specific tokens within a carefully constructed query prompt. Applied to MiniCPM-Llama3-V 2.5, a state-of-the-art MLLM, our tuning-free approach achieves performance comparable to tuning-based methods, with notable success in text localization. Additionally, we demonstrate that our attention map-based grounding technique significantly outperforms direct localization predictions from MiniCPM-Llama3-V 2.5, highlighting the potential of using attention maps from pretrained MLLMs and paving the way for future innovations in this domain.
