Sherlock: Reliable and Efficient Agentic Workflow Execution
On the map: LLM reasoning → Reasoning for agents, planning and code
also in 1 more
Abstract (arXiv)
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.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 46 of its 58 references that are in the map. First posted on arXiv 1 Nov 2025.
Builds on
46 of 58 references.
Closest ancestors · 3
Same direction, newest first
- 2024AI Metropolis: Scaling Large Language Model-based Multi-Agent Simulation with Out-of-order Execution5 Nov
- 2024AFlow: Automating Agentic Workflow Generation14 Oct
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code12 Mar
Other references · 43
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
31 more
- 2023Qwen Technical Reportcited by 3,273
- 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2025Why Do Multi-Agent LLM Systems Fail?cited by 559
- 2024Automated Design of Agentic Systemscited by 360
- 2024CodeAgent: Enhancing Code Generation with Tool-Integrated Agent Systems for Real-World Repo-level Coding Challengescited by 278
- 2023LLM Lies: Hallucinations are not Bugs, but Features as Adversarial Examplescited by 177
- 2023Evaluating Correctness and Faithfulness of Instruction-Following Models for Question Answeringcited by 150
- 2023The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuningcited by 106
- 2024GTA: A Benchmark for General Tool Agentscited by 77
- 2024AutoFlow: Automated Workflow Generation for Large Language Model Agentscited by 76
- 2022Tomayto, Tomahto. Beyond Token-level Answer Equivalence for Question Answering Evaluationcited by 66
- 2025Autellix: An Efficient Serving Engine for LLM Agents as General Programscited by 57
- 2025An AI system to help scientists write expert-level empirical softwarecited by 52
- 2025LLM-based Agents Suffer from Hallucinations: A Survey of Taxonomy, Methods, and Directionscited by 49
- 2025OMEGA: Can LLMs Reason Outside the Box in Math? Evaluating Exploratory, Compositional, and Transformative Generalizationcited by 48
- 2022Two-stage LLM Fine-tuning with Less Specialization and More Generalizationcited by 39
- 2025PathFinder: A Multi-Modal Multi-Agent System for Medical Diagnostic Decision-Making Applied to Histopathologycited by 36
- 2025Optimizing Model Selection for Compound AI Systemscited by 34
- 2025Flow: Modularized Agentic Workflow Automationcited by 31
- 2025Atla Selene Mini: A General Purpose Evaluation Modelcited by 27
- 2024Revisiting Code Similarity Evaluation with Abstract Syntax Tree Edit Distancecited by 26
- 2025Optimas: Optimizing Compound AI Systems with Globally Aligned Local Rewardscited by 23
- 2025Large Language Models and Mathematical Reasoning Failurescited by 22
- 2025Speculative Actions: A Lossless Framework for Faster Agentic Systemscited by 20
- 2025Murakkab: Resource-Efficient Agentic Workflow Orchestration in Cloud Platformscited by 18
- 2024Conveyor: Efficient Tool-aware LLM Serving with Tool Partial Executioncited by 16
- 2025Control the Temperature: Selective Sampling for Diverse and High-Quality LLM Outputscited by 15
- 2025Compass: SLO-aware Query Planner for Compound AI Serving at Scalecited by 5
- 2025Divide, Optimize, Merge: Fine-Grained LLM Agent Optimization at Scalecited by 3
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026Atomix: Timely, Transactional Tool Use for Reliable Agentic Workflowscited by 27
- 2026Agentic Coding in the Wild: Characterizing GitHub Copilot Traces at Production Scalecited by 9
- 2026SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusterscited by 5
- 2026Delayed Verification Destabilizes Multi-Agent LLM Belief: Instability Thresholds and Optimal Corrector Placementcited by 4
- 2026A Policy-Driven Runtime Layer for Agentic LLM Servingcited by 3
- 2026KAIROS: Stateful, Context-Aware Power-Efficient Agentic Inference Servingcited by 1
- 2026BaseRT: Best-in-Class LLM Inference on Apple Silicon via Native Metalcited by 1
- 2026Engineering Reliable Commit Gates for Agentic AI: Cost-Aware Verification Portfolios under Common-Mode Data Failurescited by 1
- 2026Engineering Robustness into Personal Agents with the AI Workflow Storecited by 0
- 2026ASAP: Agent-System Co-Design for Wall-Clock-Centered Auto HPO Research for ML Experimentscited by 0
- 2026Engineering Reliable Commit Gates for Agentic AI: Cost-Aware Verification Portfolios under Common-Mode Data Failures10 Sep 2026
- 2026Agentic Coding in the Wild: Characterizing GitHub Copilot Traces at Production Scale30 Jul 2026
- 2026BaseRT: Best-in-Class LLM Inference on Apple Silicon via Native Metal1 Jul 2026
- 2026Delayed Verification Destabilizes Multi-Agent LLM Belief: Instability Thresholds and Optimal Corrector Placement25 Jun 2026
- 2026ASAP: Agent-System Co-Design for Wall-Clock-Centered Auto HPO Research for ML Experiments23 Jun 2026
- 2026A Policy-Driven Runtime Layer for Agentic LLM Serving26 May 2026
- 2026Engineering Robustness into Personal Agents with the AI Workflow Store11 May 2026
- 2026SAGA: Workflow-Atomic Scheduling for AI Agent Inference on GPU Clusters1 May 2026
- 2026KAIROS: Stateful, Context-Aware Power-Efficient Agentic Inference Serving17 Apr 2026
- 2026Atomix: Timely, Transactional Tool Use for Reliable Agentic Workflows16 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2026COVENANT: Natural-Language Workflow Compilation for Aligned Agent Execution
- 2026Characterizing Large Language Model Agentic Workflows: A Study on N8n Ecosystem
- 2026From Static Templates to Dynamic Runtime Graphs: A Survey of Workflow Optimization for LLM Agents
- 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective
- 2026Toward Reliable Design of LLM-Enabled Agentic Workflows: Optimizing Latency-Reliability-Cost Tradeoffs
- 2026Complete Cyclic Subtask Graphs for Tool-Using LLM Agents: Flexibility, Cost, and Bottlenecks in Long-Horizon Workflows
- 2026BabelArena: A Large-Scale Multilingual Benchmark for LLM Agents
- 2026Maat: Independent Deterministic Contract-Based Governance for Multi-Agent LLM Workflows