arXiv:2605.06334cs.CLcs.LG2026-05被引 2

用自动验证方法生成可机检的工具型大模型合规测试集

MANTRA: Synthesizing SMT-Validated Compliance Benchmarks for Tool-Using LLM Agents

  • 基于自然语言手册与工具定义,自动生成符号化世界模型和执行轨迹检查
  • 通过SMT求解器验证检查一致性,支持50页以上长手册的复杂任务生成
  • 适合需要高可靠性的工具型大模型评测与故障诊断场景

工具使用型大语言模型代理在需严格遵守规程的场景中日益普及,但其行为(工具调用序列)与人类可读的手册之间存在语义鸿沟。现有评估依赖人工构建或大模型评判,难以扩展且可靠性不足。为此,本文提出MANTRA框架,可从自然语言手册和工具模式中自动合成机器可验证的合规性基准。MANTRA独立生成(i)刻画程序依赖关系的符号化世界模型,(ii)针对特定任务的轨迹级合规检查,并通过SMT求解验证其一致性。不一致由结构化修复循环处理,仅在必要时才需人工介入。该方法支持任意领域和长篇手册,提供可调的任务复杂度,可自动生成带有合规检查的挑战性任务。基于MANTRA构建的新基准套件涵盖6个领域、285个任务,覆盖50页以上手册,人力投入极低。实证表明,其合规检查更丰富、约束更强;检查粒度还可用于调试代理失败模式。结果证明,结合自动化基准生成与形式化验证,可实现可扩展、可靠的工具型代理评测。

原文摘要 · Abstract (English)

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.

大模型评测合规验证SMT求解自动基准

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