SpecGUI:为高效GUI智能体协同设计阶段专用投机解码与视觉令牌剪枝
SpecGUI: Co-Designing Phase-Specialised Speculative Decoding and Visual Token Pruning for Efficient GUI Agents
AI总结:
提出无需训练的即插即用框架SpecGUI,通过阶段专用投机解码和草拟器引导的历史剪枝,在3个GUI智能体和2个扩散草拟体上实现解码最高3.35倍加速、剪枝90%历史视觉令牌且保留96.8%平均精度。
摘要:
基于视觉语言模型(VLM)的GUI智能体以多轮循环运行,观察屏幕并确定下一个动作,该过程计算成本高昂:累积屏幕截图会产生大量预填充开销,而生成推理和动作则需要大量解码。我们提出SpecGUI,这是一种无需训练、即插即用的框架,协同设计投机解码与视觉令牌剪枝以实现高效GUI智能体推理。首先,为加速解码,我们观察到解码阶段存在显著不对称性:冗长、开放式的推理阶段难以预测,而简短、结构化的动作阶段易于草拟。为利用这种不对称性,我们提出阶段专用投机解码,将用于推理的生存引导混合草拟与用于动作的模式约束解码相结合。其次,为减少剩余的预填充延迟,我们研究了投机解码与视觉令牌剪枝之间的相互作用,发现接受长度对历史屏幕截图的剪枝比对当前屏幕截图更具鲁棒性,且草拟器注意力能有效突出任务相关区域。基于此,我们提出草拟器引导的历史剪枝,利用草拟器注意力指导历史视觉令牌剪枝。我们在SGLang中实现SpecGUI,并在3个GUI智能体和2个扩散草拟器上进行评估。阶段专用投机解码相比自回归基线实现了高达3.35倍的解码加速;草拟器引导的历史剪枝在平均保留96.8%基线精度的同时,剪枝了90%的历史视觉令牌。我们的工作为全流程GUI智能体加速开辟了新方向。
英文摘要:
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\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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。