IdleSpec: 通过投机规划利用空闲时间用于LLM代理
IdleSpec: Exploiting Idle Time via Speculative Planning for LLM Agents
AI总结:
本文提出IdleSpec,一种利用空闲时间提升LLM代理性能的方法,通过在空闲期间生成计划候选并减少延迟开销,从而在多种代理场景中显著提高性能。
摘要:
基于大型语言模型(LLM)的代理通过多步骤推理和迭代工具调用及环境交互来解决复杂任务,这在等待观察时会产生空闲时间。尽管大多数代理场景中普遍存在空闲时间,但现有工作将其视为不可避免的开销或提出受限解决方案,忽略了不同工具调用之间的不同计算预算和未来观察不确定性,从而导致空闲时间利用不充分。本文介绍IdleSpec,一种可扩展且通用的推理方法,利用空闲时间计算来提高代理性能同时最小化延迟开销。具体而言,IdleSpec在空闲期间迭代生成计划候选,并在观察可用时汇总它们以引导下一步推理。为了在观察不确定性下有效生成计划,IdleSpec从学习的分布中采样互补的起草策略(即渐进和恢复),该分布通过后验反馈更新。我们的实验表明,IdleSpec在各种代理场景中通过有效利用空闲时间显著提高了代理性能。特别是,在GAIA和FRAMES上,IdleSpec使用Gemini-2.5-Flash实现了55.6%的平均准确率,超过了不使用空闲时间的基线方法5.1%。此外,在涉及大量代码执行延迟的MLE-Bench上,IdleSpec在Any Medal速率上实现了高达9.1%的性能提升,突显了其在长周期任务中的通用性。
英文摘要:
Large language model (LLM)-based agents solve complex tasks by leveraging multi-step reasoning with iterative tool calls and environment interactions, which incur idle time while waiting for observations. Despite the prevalence of idle time in most agentic scenarios, existing works treat it as an unavoidable overhead or propose restricted solutions that overlook varying computational budgets across different tool calls and future observation uncertainty, thereby leading to suboptimal utilization of idle time. In this paper, we introduce IdleSpec, a scalable and generic inference approach that leverages idle-time computation to improve agent performance while minimizing latency overhead. Specifically, IdleSpec iteratively generates plan candidates during idle periods and, once observations become available, aggregates them to guide the next reasoning step. For effective plan generation under observation uncertainty, IdleSpec samples between complementary drafting strategies (i.e., progressive and recovery) from a learned distribution that is updated via posterior feedback. Our experiments demonstrate that IdleSpec significantly improves agent performance in various agentic scenarios by effectively utilizing idle time. In particular, on the GAIA and FRAMES, IdleSpec achieves 55.6% average accuracy with Gemini-2.5-Flash, surpassing the vanilla baseline without idle-time usage by 5.1%. Furthermore, for MLE-Bench, which involves substantial delay from code executions, IdleSpec achieves performance gains of up to 9.1% on the Any Medal rate, highlighting its generalizability to long-horizon tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。