[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-675589-105":59,"doc-detail-675589-en":130,"doc-similar-675589":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","sherlock-reliable-and-efficient-agentic-workflow-execution","Sherlock - Reliable and Efficient Agentic Workflow Execution","","With the adoption of large language models, agentic workflows that compose multiple LLM calls with tools, retrieval, and reasoning increasingly replace traditional applications. Such workflows are error-prone because incorrect intermediate outputs can propagate and amplify through later stages. Existing verification approaches validate outputs but often require verifying every step, creating substantial latency and cost. This work proposes Sherlock, which uses counterfactual analysis to identify error-prone nodes and attaches selective cost-optimal verifiers only when needed. At runtime, it speculatively executes downstream tasks while verification runs in the background, rolling back on failure. Benchmarks show an 18.3% average accuracy gain, up to 48.7% faster execution with reduced verification cost by 26.0% versus Monte Carlo search methods.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/sherlock-reliable-and-efficient-agentic-workflow-execution/675589/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/sherlock-reliable-and-efficient-agentic-workflow-execution/675589.png","ImageObject",300,407,{"name":92,"@type":93},"Melati","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-11-04",true,{"@type":102,"interactionType":103,"userInteractionCount":24},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does Sherlock address in agentic workflows?","Question",{"text":112,"@type":113},"Agentic workflows are inherently error-prone, and mistakes in early nodes can propagate and amplify through subsequent stages, degrading final output quality. Sherlock targets this by selectively verifying the most error-prone nodes.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does Sherlock decide which nodes to verify?",{"text":117,"@type":113},"Sherlock uses fault-injection–based vulnerability analysis with counterfactual reasoning to identify error-prone nodes and quantify their influence. It then applies a learning-based selector to pick a cost-optimal verifier per node.",{"name":119,"@type":110,"acceptedAnswer":120},"How does Sherlock reduce latency during verification?",{"text":121,"@type":113},"At runtime, Sherlock speculatively executes downstream tasks while verification runs in the background. If verification fails, execution is rolled back to the last verified output to maintain reliability.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},675589,1793773597,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":24,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":19,"preview_urls":145},962085570644,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","arXiv :2511 .00330v1 [ cs .MA] 1 Nov 2025  \nSherlock: RELIABLE AND EFFICIENT AGENTIC WORKFLOW EXECUTION  \nYeonju Ro † * Haoran Qiu ‡ ´Iigo Goiri ‡ Rodrigo Fonseca ‡ Ricardo Bianchini § Aditya Akella † Zhangyang Wang † Mattan Erez † Esha Choukse ‡  \n‡Microsoft Azure Research §Microsoft Azure †The University of Texas at Austin  \nABSTRACT  \nWith 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 deliversan 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.  \n1 INTRODUCTION  \nLarge language models (LLMs) are increasingly used across domains, from general-purpose tasks such as reasoning (Yao et al., 2023b ; Gou et al., 2023) and coding (Huang et al., 2023 ; Zhang et al., 2024b) to high-stakes applications like medical diagnosis (Ghezloo et al., 2025), scientific research (Ayg¨un et al., 2025), and data center management (Zhaodong Wang & Zhang, 2025) . For complex tasks, a single inference often proves insufficient; instead, these tasks are decomposed into multiple LLM calls (i.e., subtasks) involving tool use, retrieval, and aggregation. This decomposition results in an agentic workflow, naturally modeled as a graph where nodes represent operations (e.g., API call or LLM inference) and edges capture information flow and dependencies.  \nMotivation. LLM inference is inherently error-prone and may produce incorrect results due to hallucinations, reason-  \n*  \nYeonju Ro is affiliated with the University of Texas at Austin, but was at Microsoft Azure Research during this work. Correspondence to: Esha Choukse \u003C[esha.choukse@microsoft.com](esha.choukse@microsoft.com) >, Yeonju Ro \u003C[yro@cs.utexas.edu](yro@cs.utexas.edu) >.  \ning flaws, or inadequate context (Yao et al., 2023a ; Boye & Moell, 2025) . In agentic workflows, these errors are particularly problematic: mistakes made in the early nodes propagate down along the edges, amplifying as they go downstream, and contaminate the final output. To address this, researchers have proposed numerous verification methods, such as self-reflection (Madaan et al., 2023), debate (Duet al., 2023), self-consistency (Wang et al., 2023), and LLMas-a-Judge (Zheng et al., 2023), to validate LLM outputs and improve the safety and reliability of LLM inferences. While effective, each verification incurs additional LLM calls, significantly increasing both latency along the critical path and monetary cost (e.g., up to 28.9× and 53.2× for instructionfollowing","cbCaigIG6412UQlu","https://ap.wps.com/l/cbCaigIG6412UQlu","pdf",1876474,22,"English","# Abstract\n# Introduction\n## Motivation\n## Challenges\n## Our Work","[{\"question\":\"What problem does Sherlock address in agentic workflows?\",\"answer\":\"Agentic workflows are inherently error-prone, and mistakes in early nodes can propagate and amplify through subsequent stages, degrading final output quality. Sherlock targets this by selectively verifying the most error-prone nodes.\"},{\"question\":\"How does Sherlock decide which nodes to verify?\",\"answer\":\"Sherlock uses fault-injection–based vulnerability analysis with counterfactual reasoning to identify error-prone nodes and quantify their influence. It then applies a learning-based selector to pick a cost-optimal verifier per node.\"},{\"question\":\"How does Sherlock reduce latency during verification?\",\"answer\":\"At runtime, Sherlock speculatively executes downstream tasks while verification runs in the background. If verification fails, execution is rolled back to the last verified output to maintain reliability.\"}]","Sherlock - Reliable and Efficient Agentic Workflow Execution | PDF",55,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/77143366b8ca6d6a2ae9d2c5c336e8e9.webp",983,1272,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/75854f8705ad67690f87fec660bdba7b.webp",982,1270,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/26de39b8af0c2762643441139090757e.webp",981,1269,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/9f5d2d6bb4588319ccb914a5a24bad18.webp",980,1268,{"list":163,"token":66},[164,170,177,183,189,196,202,209,215,221],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":19,"category_name":40,"create_tm":169},684982,"Free Guide: How to Implement Digital Inspections in Your Organization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000074606/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=7nQuKy8jtvXp9CCZefb8sVfKYgg%3D","free-guide-how-to-implement-digital-inspections-in-your-organization",1794007358,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":40,"create_tm":176},536499,"Verification and Error-Prone Applications - Guidance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229943896181/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=aPlZ%2F9CPoyimTH2RZOV2GDfxt7o%3D","verification-and-error-prone-applications-guidance",14,1791602774,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":46,"category_name":40,"create_tm":182},328156,"What Predicts Correctness in Text-to-SQL? - A SelectivePrediction Study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909366448/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=nIPqRxa5aNtBxrJEncghqjGRXNY%3D","what-predicts-correctness-in-text-to-sql-a-selectiveprediction-study",1789978750,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":44,"category_name":40,"create_tm":188},536559,"Income Application Error Prone Guidelines - Mark Error-Prone Household Eligibility Applications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229943897814/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=No13PoRvDzE47Y2B0d0rMJkN4EI%3D","income-application-error-prone-guidelines-mark-error-prone-household-eligibility-applications",1791602895,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":40,"create_tm":195},273802,"When Failures Propagate: Causal Failure Attribution in Agentic Retrieval-Augmented Generation - Abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899965352/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=wB%2F5n4%2B7WissOBEFPcKQdP6DRj0%3D","when-failures-propagate-causal-failure-attribution-in-agentic-retrieval-augmented-generation-abstract",26,1789472834,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":36,"category_name":40,"create_tm":201},84046,"PolyWorkBench: Multilingual Long-Horizon LLM Agents Benchmarking","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809127126/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=kAcZZpJ8qVJHXFBll0DKOTib7cw%3D","polyworkbench-multilingual-long-horizon-llm-agents-benchmarking",1784192221,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":40,"create_tm":208},117954,"Machine Learning and Knowledge - Why Robustness Matters","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834725691/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=b1wASb3mNrP4CCaWdWEZYxotH28%3D","machine-learning-and-knowledge-why-robustness-matters",18,1785680519,{"doc_id":210,"doc_title":211,"file_type":137,"home_preview_img_url":212,"slug":213,"view_count":41,"category_name":40,"create_tm":214},84993,"LLM Assisted Verification Assertion Generation: Challenges and Future Directions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809083943/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=J6gjrInolhJPaN%2B3Vuz8mxnWTCM%3D","llm-assisted-verification-assertion-generation-challenges-and-future-directions",1784200091,{"doc_id":216,"doc_title":217,"file_type":137,"home_preview_img_url":218,"slug":219,"view_count":34,"category_name":40,"create_tm":220},621558,"Lodge Park Academy - BTEC Services Case Study - myBTEC","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229963091202/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=BBp1Bs6V2R6xZkuwsE8ehrIUTR4%3D","lodge-park-academy-btec-services-case-study-mybtec",1792465662,{"doc_id":222,"doc_title":223,"file_type":137,"home_preview_img_url":224,"slug":225,"view_count":24,"category_name":40,"create_tm":226},692276,"Agent-Assisted Metadata Deployment in Salesforce - A Strategic and Technical Framework for Cross-Environment Automation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002715735/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=cDNcqe0PsCxGdByeg88YtkvGHhE%3D","agent-assisted-metadata-deployment-in-salesforce-a-strategic-and-technical-framework-for-cross-environment-automation",1794191172]