arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.00330cs.MAcs.SE
收藏

Sherlock:可靠且高效的智能体工作流执行

Sherlock: Reliable and Efficient Agentic Workflow Execution

Microsoft Azure Research(微软Azure研究);The University of Texas at Austin(德克萨斯大学奥斯汀分校)

Yeonju Ro, Haoran Qiu, Íñigo Goiri, Rodrigo Fonseca, Ricardo Bianchini, Aditya Akella, Zhangyang Wang, Mattan Erez, Esha Choukse

AI总结:

本文提出智能体工作流执行框架Sherlock,通过反事实分析识别易错节点并附加成本最优验证器,结合推测性执行与回滚机制,在平衡效率与可靠性的同时实现了18.3%的准确率提升和显著的执行时间及验证成本降低。

摘要:

随着大型语言模型(LLM)的日益普及,将多个 LLM 调用与工具、检索和推理步骤组合在一起的智能体工作流正日益取代传统应用程序。然而,此类工作流本质上容易出错:某一步骤中不正确或部分正确的输出可能会在后续阶段传播甚至放大,从而对最终输出的影响产生复合效应。最近的研究提出集成验证器来验证 LLM 的输出或动作,例如自我反思、辩论或 LLM-as-a-judge(LLM作为评判者)机制。然而,验证每一个步骤会引入显著的延迟和成本开销。在这项工作中,我们试图回答三个关键问题:工作流中哪些节点最容易出错从而值得进行昂贵的验证,如何为每个节点选择最合适的验证器,以及如何以对延迟影响最小的方式使用验证?我们的解决方案 Sherlock 通过对智能体工作流进行反事实分析来解决这些问题,以识别易错节点,并仅在必要时有选择地附加成本最优的验证器。在运行时,Sherlock 推测性地执行下游任务以减少延迟开销,同时验证在后台运行。如果验证失败,执行将回滚到上一个已验证的输出。与不进行验证的基线相比,Sherlock 在各个基准测试上平均实现了 18.3% 的准确率提升。与非推测性执行相比,Sherlock 将工作流执行时间减少了高达 48.7%,并且与基于蒙特卡洛搜索的方法相比,验证成本降低了 26.0%,这表明原则性的、故障感知的验证能够有效平衡智能体工作流中的效率和可靠性。

英文摘要:

With the increasing adoption of large language models (LLM), agentic workflows, which compose multiple LLM calls with tools, retrieval, and reasoning steps, are increasingly replacing traditional applications. However, such workflows are inherently error-prone: incorrect or partially correct output at one step can propagate or even amplify through subsequent stages, compounding the impact on the final output. Recent work proposes integrating verifiers that validate LLM output or actions, such as self-reflection, debate, or LLM-as-a-judge mechanisms. Yet, verifying every step introduces significant latency and cost overheads. In this work, we seek to answer three key questions: which nodes in a workflow are most error-prone and thus deserve costly verification, how to select the most appropriate verifier for each node, and how to use verification with minimal impact to latency? Our solution, Sherlock, addresses these using counterfactual analysis on agentic workflows to identify error-prone nodes and selectively attaching cost-optimal verifiers only where necessary. At runtime, Sherlock speculatively executes downstream tasks to reduce latency overhead, while verification runs in the background. If verification fails, execution is rolled back to the last verified output. Compared to the non-verifying baseline, Sherlock delivers an 18.3% accuracy gain on average across benchmarks. Sherlock reduces workflow execution time by up to 48.7% over non-speculative execution and lowers verification cost by 26.0% compared to the Monte Carlo search-based method, demonstrating that principled, fault-aware verification effectively balances efficiency and reliability in agentic workflows.

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

↑