SparseGUI: Accelerating Long-Horizon GUI Agents with Learned Sparse Attention
Graphical user interface (GUI) agents often need precise visual details from screenshots observed many steps earlier. Retaining the full screenshot history preserves this evidence but increases attention costs, while truncating or downsampling history risks losing important visual information. We introduce SparseGUI, a learned query-aware sparse attention framework that accelerates GUI agents while retaining the full screenshot history at its original resolution. A lightweight indexer learns from a frozen agent's dense attention and selects context tokens for each decoding query and layer. We also construct a long-range visual-dependency benchmark containing 264 actions that require evidence from distant screenshots. On this benchmark, SparseGUI achieves 48.9% strict accuracy, matching full-history dense attention, compared with 9.8% for short history. It also achieves comparable accuracy on a general evaluation set and comparable mean task scores on OSWorld-Verified. Across five 100-step replays with EvoCUA-8B, SparseGUI achieves a $1.28\times$ overall model-time speedup over shared steps and a $1.48\times$ per-step model-time speedup at 160-196k context tokens, with a…
- arXiv
- 2612.02762
- Authors
- Qianran Ma, Xiao Liang, Lu Lu, Lyle Ungar
- Categories
- cs.CV · cs.AI