Abstract
Tool-using LLM agents face a reliability-cost tradeoff: routing every decision through the LLM improves correctness but incurs high latency and inference cost, while pre-coded workflow graphs reduce cost but become brittle under unanticipated compound tool failures. We present Self-Healing Router, a fault-tolerant orchestration architecture that treats most agent control-flow decisions as routing rather than reasoning. The system combines (i) parallel health monitors that assign priority scores to runtime conditions such as tool outages and risk signals, and (ii) a cost-weighted tool graph where Dijkstra's algorithm performs deterministic shortest-path routing. When a tool fails mid-execution, its edges are reweighted to infinity and the path is recomputed -- yielding automatic recovery without invoking the LLM. The LLM is reserved exclusively for cases where no feasible path exists, enabling goal demotion or escalation. Prior graph-based tool-use systems (ControlLLM, ToolNet, NaviAgent) focus on tool selection and planning; our contribution is runtime fault tolerance with deterministic recovery and binary observability -- every failure is either a logged reroute or an explicit escalation, never a silent skip. Across 19 scenarios spanning three graph topologies (linear pipeline, dependency DAG, parallel fan-out), Self-Healing Router matches ReAct's correctness while reducing control-plane LLM calls by 93% (9 vs 123 aggregate) and eliminating the silent-failure cases observed in a well-engineered static workflow baseline under compound failures.
Abstract (translated)
工具使用的大型语言模型(LLM)代理面临可靠性和成本之间的权衡:将每个决策都通过LLM来执行可以提高正确性,但会带来高延迟和推理成本;而预先编码的工作流图则可以在降低成本的同时,在未预料的复合故障下变得脆弱。我们提出了自我修复路由器(Self-Healing Router),这是一种容错编排架构,它将大多数代理控制流程决策视为路由而不是推理。该系统结合了(i)并行健康监控器,它们根据运行时条件(如工具中断和风险信号)为这些条件分配优先级分数;以及(ii)一个带有迪杰斯特拉算法进行确定性最短路径路由的成本加权工具图。当工具在执行过程中发生故障时,其边会被重新赋以无穷大权重,并且路径将被重新计算——从而实现无需调用LLM的自动恢复。只有在不存在可行路径的情况下才保留LLM用于目标降级或升级。 之前的基于图的工具使用系统(如ControlLLM、ToolNet和NaviAgent)主要集中在工具选择和规划上;而我们的贡献在于运行时容错性,包括确定性的故障恢复和二元可观察性——每一个故障要么是记录的日志重路由事件,要么是一个明确的目标升级请求,绝不会发生静默失败。 在19个跨越三种图拓扑结构(线性流水线、依赖DAG和平行扇出)的场景中,自我修复路由器实现了与ReAct相同的正确性,同时将控制平面LLM调用减少了93%(从总和123次减少到9次),并且在复合故障下消除了静默失败的情况,这在精心设计的静态工作流基线中也能观察到。 这段文字介绍了自我修复路由器系统如何通过智能化地管理工具使用过程中的故障来优化性能和成本,并确保系统的可靠性和稳定性。
URL
https://arxiv.org/abs/2603.01548