SpecGUI introduces a training-free, plug-and-play framework that co-designs speculative decoding and visual token pruning to accelerate Vision-Language Model (VLM)-based GUI agents implemented in SGLang. The system addresses two primary bottlenecks: extensive decoding latency for reasoning and action generation, and substantial prefill overhead from accumulating multi-turn screenshot histories. For decoding, SpecGUI exploits a pronounced phase asymmetry by proposing Phase-Specialised Speculative Decoding. It applies Survival-Guided Hybrid Drafting during the long, open-ended reasoning phase, which is difficult to predict, and switches to Schema-Constrained Decoding for the short, structured action phase, which is easier to draft. This combination achieves up to 3.35× decoding speedup over autoregressive baselines across three GUI agents and two diffusion drafters. For prefill reduction, the work analyzes the interaction between speculative decoding and visual pruning, finding that acceptance length is more robust to pruning historical screenshots than the current observation, and that drafter attention effectively highlights task-relevant regions. Leveraging this, Drafter-Guided Historical Pruning uses drafter attention maps to guide the removal of 90% of historical visual tokens while retaining 96.8% of baseline accuracy on average. The integrated approach establishes a new frontier for full-pipeline GUI agent acceleration.
Read original
huggingface/daily-papers