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

符号约束智能体:挖掘形式化工具调用约束以防止智能体错误

Symbolic Constraint Agents: Mining Formal Tool-Call Constraints to Prevent Agent Errors

University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Microsoft Research(微软研究院)

Jinu Lee, Shraddha Barke

AI总结:

提出符号约束智能体(SCA)框架,从API文档挖掘符号约束并结合执行轨迹优化,运行时用SMT求解器检查工具调用,可提升错误检测与任务成功率,减少失败调用,还能迁移至其他基准。

摘要:

符号约束(对工具调用的程序化确定性检查)可实现对大语言模型(LLM)智能体工具调用的确定性验证,但现有方法主要执行预定义安全策略,而非复杂工具环境中的工具依赖关系。本文探究能否从预定义策略之外的环境与观测中挖掘符号约束,以及其能否提升端到端任务性能。我们提出符号约束智能体(Symbolic Constraint Agents, SCA)框架,该框架从API文档中挖掘符号约束,结合执行轨迹对其进行优化,并在运行时通过SMT求解器检查智能体的工具调用。约束违反会触发自然语言警告,若有效替换唯一则自动修复。在AppWorld环境中,优化步骤使GPT-5.5轨迹的错误检测F1值从37.0提升至58.3,Qwen3.5-27B轨迹的错误检测F1值从39.3提升至61.9;运行时修复使GPT-5.4-mini在40次调用预算下的任务成功率提升5.4个百分点,在环境错误隐藏时提升9.8个百分点,同时减少各模型59%至87%的失败调用,且该方法可迁移至τ²-bench,带来最高5.6个百分点的增益。这些发现表明,自动获取的符号约束可提升工具调用可靠性与任务完成度,尤其在故障代价高或难以诊断的场景中效果显著。

英文摘要:

Symbolic constraints (programmatic, deterministic checks for tool calls) enable deterministic verification of LLM agents' tool calls, but existing approaches primarily enforce predefined safety policies rather than tool dependencies in complex tool environments. We explore whether symbolic constraints can be mined from environments and observations beyond predefined policies, and whether they can improve end-to-end task performance. We present Symbolic Constraint Agents (SCA), a framework that mines symbolic constraints from API documentation, refines them against execution traces, and checks the agent's tool calls with an SMT solver at runtime. A violation triggers a natural-language warning or, when the valid replacement is uniquely determined, an automatic repair. On AppWorld, refinement raises error-detection F1 from 37.0 to 58.3 on GPT-5.5 traces and from 39.3 to 61.9 on Qwen3.5-27B traces. At runtime, repair raises GPT-5.4-mini's task success by 5.4 points under a 40-call budget and 9.8 points when environment errors are hidden, while removing 59--87\% of failed calls across models, and transfers to $τ^2$-bench with gains of up to 5.6 points. These findings show that automatically acquired symbolic constraints can improve tool-calling reliability and task completion, particularly when failures are costly or difficult to diagnose.

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

↑