arXiv:2605.06737cs.SEcs.AI2026-05被引 1

让大模型代理自动识别并修复错误,提升系统可靠性。

A Self-Healing Framework for Reliable LLM-Based Autonomous Agents

  • 构建故障检测与自愈机制,结合内部推理和外部执行判断异常
  • 实验显示任务成功率显著提升,故障传播大幅减少
  • 适合需要高稳定性的大模型应用开发与部署

基于大语言模型(LLMs)的自主代理在复杂软件系统中应用日益广泛,但其可靠性仍面临幻觉、执行错误和推理不一致等不可预测故障的挑战。本文提出一种面向可靠性的自愈框架,集成故障检测、可靠性评估与自动化恢复机制。首先定义故障类型分类,并提出量化可靠性评估模型;其次设计基于执行模式与输出一致性的异常行为检测方法;最后提出通过自适应重规划与纠正提示实现动态恢复的自愈机制。该框架在多代理工作流环境中实现并测试,结果表明相较现有方法,任务成功率明显提高,故障传播减少,系统整体鲁棒性增强。研究创新点在于构建了融合代理内部推理过程与外部执行结果的综合监控系统,有助于保障先进自主系统的稳定性,降低大模型在生产环境中的应用门槛。

原文摘要 · Abstract (English)

Autonomous agents based on Large Language Models (LLMs) are increasingly being utilized in complex software systems. However, reliability remains a significant challenge due to unpredictable failures such as hallucinations, execution errors, and inconsistent reasoning. This paper proposes a reliability-aware self-healing framework for LLM-based software agents. The framework integrates failure detection, reliability assessment, and automated recovery mechanisms. First, we define a taxonomy of failure types and introduce a quantitative reliability assessment model. Next, we propose a failure detection method that identifies abnormal agent behavior based on execution patterns and output consistency. Finally, we design a self-healing mechanism that dynamically recovers from failures through adaptive replanning and corrective prompting strategies. The proposed framework was implemented in a multi-agent workflow environment and evaluated using real-world task scenarios. Experimental results demonstrate that our approach significantly increases task success rates, reduces failure propagation, and enhances overall system robustness compared to existing methods. In particular, this study distinguishes itself by establishing an integrated monitoring system that combines the agent's internal reasoning process with external execution results. These findings are expected to contribute to securing the stability of advanced autonomous systems and lowering the barriers to LLM adoption in production environments.

大模型代理自愈机制可靠性

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。