Skip to content

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

cs.AI

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 3.35×3.35\times 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