图书馆员万岁!面向节能多智能体软件工程系统的持久搜索子智能体
Long Live the Librarian! A Persistent Search Sub-Agent for Energy-Efficient Multi-Agent Software Engineering Systems
AI总结:
针对多智能体系统中输出令牌冗余导致的高能耗问题,提出持久搜索子智能体Librarian,通过跟踪仓库搜索历史并抑制重复探索,减少输出令牌量,在SWE-Bench Verified上实现高达25%的GPU能耗降低且不损失任务性能。
摘要:
多智能体系统(MAS)显著推进了自主软件工程(SWE),但其日益增长的推理能量需求引发了可持续性问题。在本文中,我们证明这种成本集中在一个被忽视的来源上:跨智能体生成的冗余输出令牌。两个实证发现支持了这一主张。首先,我们对MAS的每令牌能量归因揭示了一个显著的不对称性:一个输出令牌消耗的能量是输入或缓存令牌的30到1000倍。其次,MAS增加了每回合输出量,因为智能体反复重新探索重叠的仓库区域。为了解决这一低效问题,我们提出了Librarian,一个持久搜索子智能体,它跟踪仓库搜索历史并抑制跨智能体的冗余探索动作。通过返回文件区域的简短引用而不是完整的文件摘录,Librarian进一步减少了输出令牌量。在SWE-Bench Verified上,Librarian将现有多智能体SWE系统的每回合GPU能耗降低了高达25%,同时保持了任务性能。
英文摘要:
Multi-agent systems (MAS) have substantially advanced autonomous software engineering (SWE), but their growing inference energy demands raise sustainability concerns. In this paper, we demonstrate that this cost is concentrated in an overlooked source: redundant output tokens generated across agents. Two empirical findings ground this claim. First, our per-token energy attribution for MAS reveals a sharp asymmetry: an output token consumes 30 to 1,000 times more energy than an input or cached token. Second, MAS inflate per-episode output because agents repeatedly re-explore overlapping repository regions. To address this inefficiency, we propose Librarian, a persistent search sub-agent that tracks repository-search history and suppresses redundant exploration actions across agents. By returning short references to file regions instead of full file excerpts, Librarian further reduces output-token volume. On SWE-Bench Verified and SWE-Bench-Live, Librarian reduces per-episode GPU energy consumption of existing multi-agent SWE systems by 11 to 30% while preserving task performance. Our code is available at https://github.com/ml-postech/Librarian.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。