GUI-KV: Efficient GUI Agents via KV Cache with Spatio-Temporal Awareness
该论文提出了一种名为GUI-KV的GUI代理KV缓存压缩方法,通过空间显著性和时间冗余评分机制,有效地提高了GUI代理的性能和效率。
更新于 2025-10-02。作者:Kung-Hsiang Huang、Haoyi Qiu、Yutong Dai、Caiming Xiong、Chien-Sheng Wu。
中文摘要
图形用户界面(GUI)代理建立在视觉-语言模型之上,已成为自动化人机工作流程的一种有希望的途径。然而,它们也面临着处理长序列高分辨率截图和解决长期任务的低效挑战,这使得推理变得缓慢、成本高昂且受内存限制。尽管键值(KV)缓存可以缓解这一问题,但在图像密集型环境中存储完整的缓存是受限的。现有的缓存压缩方法效率不高,因为它们没有考虑到GUI的空间和时间冗余。在本研究中,我们首先分析了GUI代理工作负载中的注意力模式,并发现与自然图像不同,注意力稀疏性在所有Transformer层中都是均匀高的。这一发现促使我们采用了一种简单的均匀预算分配策略,我们通过实证研究表明,这种策略比更复杂的层变方案表现更好。在此基础上,我们引入了GUI-KV,这是一种为GUI代理提供的即插即用型KV缓存压缩方法,它无需重新训练。GUI-KV结合了两种新颖的技术:(i)空间显著性引导,通过将隐藏状态的L2范数添加到注意力得分中,更好地保留语义上重要的视觉标记;(ii)时间冗余评分,将前一帧的键投影到当前帧的键子空间中,优先剪枝冗余历史。在标准的GUI代理基准和模型中,GUI-KV优于竞争性的KV压缩基线,在适度的预算下与全缓存精度相匹配。值得注意的是,在AgentNetBench基准上的5张截图设置中,GUI-KV将解码FLOPs减少了38.9%,同时将步骤准确性提高了4.1%,超过全缓存基线。这些结果表明,利用GUI特定的冗余可以实现高效且可靠的代理性能。
英文摘要
Graphical user interface (GUI) agents built on vision-language models have emerged as a promising approach to automate human-computer workflows. However, they also face the inefficiency challenge as they process long sequences of high-resolution screenshots and solving long-horizon tasks, making inference slow, costly and memory-bound. While key-value (KV) caching can mitigate this, storing the full cache is prohibitive for image-heavy contexts. Existing cache-compression methods are sub-optimal as they do not account for the spatial and temporal redundancy of GUIs. In this work, we first analyze attention patterns in GUI agent workloads and find that, unlike in natural images, attention sparsity is uniformly high across all transformer layers. This insight motivates a simple uniform budget allocation strategy, which we show empirically outperforms more complex layer-varying schemes. Building on this, we introduce GUI-KV, a plug-and-play KV cache compression method for GUI agents that requires no retraining. GUI-KV combines two novel techniques: (i) spatial saliency guidance, which augments attention scores with the L2 norm of hidden states to better preserve semantically important visual tokens, and (ii) temporal redundancy scoring, which projects previous frames' keys onto the current frame's key subspace to preferentially prune redundant history. Across standard GUI agent benchmarks and models, GUI-KV outperforms competitive KV compression baselines, closely matching full-cache accuracy at modest budgets. Notably, in a 5-screenshot setting on the AgentNetBench benchmark, GUI-KV reduces decoding FLOPs by 38.9% while increasing step accuracy by 4.1% over the full-cache baseline. These results demonstrate that exploiting GUI-specific redundancies enables efficient and reliable agent performance.
解读
一句话总结
该论文提出了一种名为GUI-KV的GUI代理KV缓存压缩方法,通过空间显著性和时间冗余评分机制,有效地提高了GUI代理的性能和效率。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:基于视觉-语言模型的GUI代理在处理高分辨率截图和解决长期任务时面临效率低下的问题,导致推理速度慢、成本高和内存限制。
- 现有方案不足:现有的KV缓存方法未能考虑到GUI的空间和时间冗余。
- 研究目标:开发一种适用于GUI代理的KV缓存压缩方法,以减少内存占用并提高效率。
问题2:论文的核心创新点是什么?
- 技术创新:GUI-KV结合了空间显著性引导和临时冗余评分两种创新技术。
- 方法改进:空间显著性引导通过添加隐藏状态的L2范数来增强注意力得分,更好地保留语义重要的视觉标记;临时冗余评分通过将前一帧的键投影到当前帧的键子空间中,优先剪枝冗余历史。
- 优势:GUI-KV在标准GUI代理基准和模型上优于竞争性的KV压缩基线,在适度的预算下接近全缓存精度。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在AgentNetBench基准上的5张截图设置中,GUI-KV将解码FLOPs减少了38.9%,同时将步骤准确性提高了4.1%。
- 性能提升:GUI-KV在六项基准测试中实现了近全缓存精度,同时显著减少了内存占用。
- 对比结果:GUI-KV在大多数情况下都优于基线方法,尤其是在中等预算下。
问题4:这个研究的实际应用价值是什么?
- 应用场景:GUI代理在自动化任务、导航复杂数字环境和实现用户指定目标方面具有广泛的应用。
- 实施建议:GUI-KV可以直接应用于现有的GUI代理系统中,以减少内存占用并提高效率。
- 局限与展望:GUI-KV在处理非常长的交互序列时可能需要进一步优化;未来可以探索更复杂的压缩技术和更高效的缓存管理策略。
来源
机器可读索引:llms.txt