EdgeWise:通过选择性云委派将长时程智能体带到边缘
研究论文 · 2026/10/16
复杂的长时程智能体任务通常依赖云端的前沿模型来获得强劲性能。然而,在长时程轨迹的每一步都使用这些模型会带来高昂的推理成本,尽管并非所有步骤都需要相同水平的模型能力。本文发现,仅将LLM分配给一小部分关键步骤,即可达到与全程使用LLM相当的性能,同时显著降低推理成本。受此观察启发,我们提出EdgeWise,一种边云协作框架,在本地设备上部署SLM作为主要求解器,并在需要更强模型能力时选择性地将关键步骤委托给云端LLM。为在推理时无需额外模型即可实现自主委托,我们引入一种步骤级强化学习方法,联合优化任务求解与委托,并对单个委托决策进行细粒度信用分配。我们还引入基于外部评判者的委托策略,并用它系统性地研究边云协作中的关键设计选择,包括何时委托、如何做出委托决策、应共享什么上下文以及云端LLM应被调用的频率。实验表明,EdgeWise在SWE-Rebench上达到或超过纯LLM执行的效果,同时将推理成本降低最多62%,在Terminal-Bench 2.1上降低34%。我们进一步在本地工作站上部署EdgeWise,证明在实际边云设置中具有相当的成本节省。
该研究提出了一种实用的边云协作框架,通过选择性委托关键步骤,在保持长时程智能体任务性能的同时显著降低推理成本,为在资源受限的边缘设备上部署复杂智能体提供了可行方案。
Complex and long-horizon agent tasks often rely on frontier models deployed in the cloud to achieve strong performance. However, using these models for every step of a long-horizon trajectory incurs substantial inference cost, even though not all steps may require the same level of model capability. In this paper, we find that allocating the LLM to only a small subset of key steps can achieve performance comparable to full LLM execution while significantly reducing inference cost. Motivated by this observation, we propose EdgeWise, an edge-cloud collaboration framework that deploys an SLM on the local device as the primary solver and selectively delegates critical steps to a cloud LLM when stronger model capacity is needed. To enable autonomous delegation without additional models at inference time, we introduce a step-level RL method that jointly optimizes task solving and delegation, with fine-grained credit assignment for individual delegation decisions. We also introduce an external judge-based delegation strategy and use it to systematically investigate key design choices in edge-cloud collaboration, including when to delegate, how delegation decisions should be made, what context should be shared, and how frequently the cloud LLM should be invoked. Experiments show that EdgeWise matches or outperforms pure-LLM execution while reducing inference cost up to 62% on SWE-Rebench and 34% on Terminal-Bench 2.1. We further deploy EdgeWise on a local workstation, demonstrating comparable cost savings in a practical edge-cloud setting.