arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.15206cs.LGcs.AIcs.DC
收藏

AgentStop: 早期终止本地AI代理以在消费设备中节省能源

AgentStop: Terminating Local AI Agents Early to Save Energy in Consumer Devices

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Brave Software, Imperial College London(Brave软件公司,伦敦帝国学院)

Dzung Pham, Kleomenis Katevas, Ali Shahin Shamsabadi, Hamed Haddadi

AI总结:

研究提出AgentStop方法,通过预测并提前终止可能失败的代理任务,减少能源消耗,提升本地AI代理的能效与隐私保护。

摘要:

自主代理由大型语言模型(LLMs)驱动,越来越多用于自动化复杂多步骤任务,如编码或基于网络的问题解答。尽管远程云代理提供可扩展性和易部署性,但存在隐私问题、依赖网络连接且有重复API费用。在用户设备上部署代理可缓解这些问题,但代理工作流比典型LLM交互更耗资源。迭代推理、工具使用和失败重试显著增加token消耗,常导致大量计算而任务未完成。本文研究本地部署LLM代理在消费硬件上的时间、token和能耗开销。测量显示代理执行比单次推理任务更耗GPU电力、温度和电池。为解决此低效性,引入AgentStop,一种轻量级效率监督器,利用低成本执行信号如token级对数概率,预测并提前终止可能失败的轨迹,减少15-20%的能源浪费,对任务性能影响小于5%。这些发现将预测性提前终止定位为在用户设备上实现可持续、隐私保护LLM代理的实用机制。项目代码和数据可在https://github.com/brave-experiments/AgentStop获取。

英文摘要:

Autonomous agents powered by large language models (LLMs) are increasingly used to automate complex, multi-step tasks such as coding or web-based question answering. While remote, cloud-based agents offer scalability and ease of deployment, they raise privacy concerns, depend on network connectivity, and incur recurring API costs. Deploying agents locally on user devices mitigates these issues by preserving data privacy and eliminating usage-based fees. However, agentic workflows are far more resource-intensive than typical LLM interactions. Iterative reasoning, tool use, and failure retries substantially increase token consumption, often expending significant compute without successfully completing tasks. In this work, we investigate the time, token, and energy overhead of locally deployed LLM-based agents on consumer hardware. Our measurements show that agentic execution increases GPU power draw, temperature, and battery drain compared to single-inference workloads. To address this inefficiency, we introduce AgentStop, a lightweight efficiency supervisor that predicts and preemptively terminates trajectories unlikely to succeed. Leveraging low-cost execution signals, such as token-level log probabilities, AgentStop can reduce wasted energy by 15-20% with minimal impact on task performance (<5% utility drop) for challenging web-based question answering and coding benchmarks. These findings position predictive early termination as a practical mechanism for enabling sustainable, privacy-preserving LLM agents on user devices. Our project code and data are available at https://github.com/brave-experiments/AgentStop.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑