MANTRA: 为使用工具的LLM代理合成经过SMT验证的合规性基准
MANTRA: Synthesizing SMT-Validated Compliance Benchmarks for Tool-Using LLM Agents
AI总结:
MANTRA通过自动合成可机检验的合规性基准,解决LLM代理在复杂手册下的合规性验证问题,支持任意领域和长流程手册,并提供可调节的任务复杂度,生成285个任务的基准套件。
摘要:
使用大型语言模型(LLM)的代理越来越多地部署在需要严格流程手册保证可靠行为的环境中。确保此类代理遵守手册规则具有挑战性,因为手册通常是为人类用自然语言编写,而代理行为表现为工具调用的执行轨迹。现有的LLM代理评估依赖于手动构建的基准或基于LLM的判断者,这些方法在复杂、长周期手册上缺乏可扩展性和可靠性。为克服这些限制,我们提出了MANTRA,一个框架,用于从自然语言手册和工具模式自动合成可机检验的合规性基准。MANTRA独立生成(i)一个符号世界模型,捕捉过程依赖性,以及(ii)一组轨迹级合规性检查,针对给定任务,并使用SMT求解器验证其一致性。结构化的修复循环解决不一致,仅在必要时要求人类干预。这产生了经过正式验证的基准。重要的是,MANTRA支持任意领域和长流程手册,并提供可调节的任务复杂度概念,用于自动推导具有挑战性的任务,伴随合规性检查。使用MANTRA,我们构建了一个新的基准套件,包含285个任务,覆盖6个领域,可扩展到50多页的手册,仅需最小的人工努力。实证上,我们显示合规性检查更丰富,约束执行更强,相比现有基准。此外,检查的粒度可用于调试代理的失败模式。这些结果表明,结合自动基准生成与正式基础的验证方法,能够实现可扩展且可靠的工具使用代理的基准测试。
英文摘要:
Tool-using large language model (LLM) agents are increasingly deployed in settings where their reliable behavior is governed by strict procedural manuals. Ensuring that such agents comply with the rules from these manuals is challenging, as they are typically written for humans in natural language while agent behavior manifests as an execution trace of tool calls. Existing evaluations of LLM agents rely on manually constructed benchmarks or LLM-based judges, which either do not scale or lack reliability for complex, long-horizon manuals. To overcome these limitations, we present MANTRA, a framework for automatically synthesizing machine-checkable compliance benchmarks from natural-language manuals and tool schemas. MANTRA independently generates (i) a symbolic world model capturing procedural dependencies, and (ii) a set of trace-level compliance checks for a given task, and validates their consistency using SMT solving. A structured repair loop resolves inconsistencies, requiring human intervention only as a fallback. %This yields benchmarks that are formally validated. Importantly, MANTRA supports arbitrary domains and long procedural manuals, and provides a tunable notion of task complexity which is utilized to automatically derive challenging tasks accompanying compliance checks. Using MANTRA, we build a new benchmark suite with 285 tasks across 6 domains scaling to 50+ page manuals with minimal human effort. Empirically, we show that the compliance checks are richer with stronger constraint enforcement compared to existing benchmarks. Additionally, the granularity of the checks can be used for debugging the agents' failure modes. These results demonstrate that combining automated benchmark generation with formally grounded validation methods enables scalable and reliable benchmarking of tool-using agents.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。