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

通过符号推理实现诊断驱动的智能工作流自动修复

Diagnosis-Driven Automatic Repair for Agentic Workflow via Symbolic Inference

State Key Laboratory of Complex System Modeling and Simulation Technology, Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所复杂系统建模与仿真技术国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学);Singapore Management University(新加坡管理大学)

Xuyan Ma, Yawen Wang, Junjie Wang, Xiaofei Xie, Boyu Wu, Mingyang Li, Dandan Wang, Qing Wang

AI总结:

针对智能工作流可靠性挑战,提出FlowFixer框架,通过将执行转化为符号跟踪、符号推理得行为规范,经规范验证进行故障归因与根因分析,生成修复补丁,还采用预执行评估降成本,实验证明其效果良好。

摘要:

平台编排的智能工作流成为开发基于大语言模型应用的流行范式,但其可靠性因多种因素面临挑战。现有方法主要依赖轨迹级反馈,修复计划针对性不足。我们提出FlowFixer,先将工作流执行转化为统一符号跟踪并进行符号推理以获得可执行行为规范,基于规范验证进行故障归因和根本原因分析,然后生成有针对性的修复补丁。为降低验证成本,FlowFixer进一步采用多维预执行评估在动态验证前过滤不可行的修复。我们在从三个流行开发平台收集的工作流故障上评估了FlowFixer。结果表明,FlowFixer实现了71.3%的修复成功率,比最先进的基线高出11.9%至27.6%。它还将故障归因准确率提高了4.8%至33.1%,将根本原因分析准确率提高了15.3%至38.8%。这项工作通过符号建模和推理为智能工作流的可靠诊断和修复提供了新视角。

英文摘要:

Platform-orchestrated agentic workflows have become a popular paradigm for developing LLM-based applications. However, their reliability remains a major challenge due to the uncertainty of LLM outputs, complex inter-node dependencies, and heterogeneous tool interactions. Existing agentic workflow optimization and agent enhancement methods primarily rely on trajectory-level feedback. Without explicitly identifying the underlying failure root causes, their resulting repair plans are often insufficiently targeted. We propose FlowFixer, a diagnosis-driven automated repair framework for agentic workflows. FlowFixer first transforms workflow executions into unified symbolic traces and performs symbolic inference to derive executable behavioral specifications that capture node correctness, temporal dependencies, and causal relationships. Based on specification verification, it conducts failure attribution and root cause analysis, and then generates targeted repair patches. To reduce verification costs, FlowFixer further employs a multi-dimensional pre-execution assessment to filter infeasible repairs before dynamic verification. We evaluate FlowFixer on workflow failures collected from three popular development platforms: Dify, Coze and n8n. Results show that FlowFixer achieves a repair success rate of 71.3%, outperforming state-of-the-art baselines by 11.9% to 27.6%. It also improves failure attribution accuracy by 4.8% to 33.1% and root cause analysis accuracy by 15.3% to 38.8%. This work offers a new perspective on reliable diagnosis and repair of agentic workflows through symbolic modeling and inference.

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

↑