SpecGUI: Co-Designing Phase-Specialised Speculative Decoding and Visual Token Pruning for Efficient GUI Agents
Guanxi Lu, Young D. Kwon, Miles Williams, Stylianos I. Venieris
Abstract
Vision-Language Model (VLM)-based GUI agents operate in multi-turn cycles, observing the screen and determining the next action. This process is computationally expensive: accumulating screenshots incurs substantial prefill overhead, while generating reasoning and actions demands extensive decoding. We present SpecGUI, a training-free, plug-and-play framework that co-designs speculative decoding and visual token pruning for efficient GUI agent inference. First, to accelerate decoding, we observe a pronounced asymmetry in the decoding stage. The long, open-ended reasoning phase is hard to predict, whereas the short, structured action phase is easy to draft. To exploit this asymmetry, we propose Phase-Specialised Speculative Decoding, combining Survival-Guided Hybrid Drafting for reasoning with Schema-Constrained Decoding for actions. Second, to reduce the remaining prefill latency, we study the interaction between speculative decoding and visual token pruning. We find that acceptance length is more robust to pruning historical screenshots than the current one, and that drafter attention effectively highlights task-relevant regions. Motivated by this, we propose Drafter-Guided Historical Pruning to guide historical visual token pruning with drafter attention. We implement SpecGUI in SGLang and evaluate it across three GUI agents and two diffusion drafters. Phase-Specialised Speculative Decoding achieves up to decoding speedup over autoregressive baselines. Drafter-Guided Historical Pruning prunes 90% of historical visual tokens while retaining 96.8% of baseline accuracy on average. Our work sets a new frontier for full-pipeline GUI agent acceleration.
Create a lesson
Metadata
- Comments
- Preprint. Under Review
Related papers
A2Optimizer: Accelerating Time-to-Efficiency of LLM Serving with Agents
Shared title terminologycs.AITaekwon Lee, Kyoungho Jeun, Hyeseong Kim et al.
GameAtlas: Bringing LLM Agents Back to Basics in Visual Coding and Spatial Reasoning for Game Development
Shared title terminologycs.AIYusong Sun, Jingtan Chen, Zixuan Zhang et al.
How Good Are Coding Agents at Automatic Algorithm Design?
Shared title terminologycs.AIHaoze Lv, Shaofeng Zhang, Shengcai Liu et al.
VGR-Searcher: Enhancing Visually Grounded Reasoning for Multimodal Search Agents
Shared title terminologycs.AIZixian Guo, Feng Zhu, Rongzhi Zhang et al.
Evolving Pixel-Based Game Agent: Generalizable Strategy Learning from Open-World Exploration
Shared title terminologycs.AIXinyu Liu, Chenwei Tang, Zizhou Wang et al.
G-Skill: Graph-Grounded Skill Evolution for Agentic Reinforcement Learning
Shared title terminologycs.AIJue Hou, Chengyi Yang, Renxu Bao et al.