辅助验证工具增强大语言模型代理的政策合规性
Solver-Aided Verification of Policy Compliance in Tool-Augmented LLM Agents
AI总结:
本文提出一种基于SMT求解器的框架,用于确保工具增强大语言模型代理在工具使用上的政策合规性,通过将自然语言政策转化为形式逻辑约束,并在运行时检查工具调用以防止违规。
摘要:
工具增强的大语言模型(TaLLMs)通过调用外部工具扩展了LLM的能力,使其能够与现实世界环境互动。然而,在敏感应用如客户服务和业务流程自动化中部署TaLLMs的主要限制是缺乏可靠遵守特定领域操作政策的能力。当前方法仅通过将政策描述纳入LLM上下文来引导LLM遵守政策,但无法保证防止政策违规。本文介绍了一种基于SMT求解器的框架,用于强制TaLLM代理遵守工具使用政策。具体来说,我们采用一种由LLM辅助的人类引导方法,将自然语言指定的工具使用政策转化为形式逻辑(SMT-LIB-2.0)约束,覆盖代理可观察的状态和工具参数。在运行时,计划的工具调用会被拦截并使用Z3求解器检查这些约束作为工具调用的先决条件。违反政策的工具调用会被阻止。我们在TauBench基准上进行了评估,证明了求解器辅助的政策检查在减少政策违规的同时保持了整体任务准确性。这些结果表明,将形式推理整合到TaLLM执行中可以提高工具调用政策的合规性和整体可靠性。
英文摘要:
Tool-augmented Large Language Models (TaLLMs) extend LLMs with the ability to invoke external tools, enabling them to interact with real-world environments. However, a major limitation in deploying TaLLMs in sensitive applications such as customer service and business process automation is a lack of reliable compliance with domain-specific operational policies regarding tool-use and agent behavior. Current approaches merely steer LLMs to adhere to policies by including policy descriptions in the LLM context, but these provide no guarantees that policy violations will be prevented. In this paper, we introduce an SMT solver-aided framework to enforce tool-use policy compliance in TaLLM agents. Specifically, we use an LLM-assisted, human-guided approach to translate natural-language-specified tool-use policies into formal logic (SMT-LIB-2.0) constraints over agent-observable state and tool arguments. At runtime, planned tool calls are intercepted and checked against the constraints using the Z3 solver as a pre-condition to the tool call. Tool invocations that violate the policy are blocked. We evaluated on the TauBench benchmark and demonstrate that solver-aided policy checking reduces policy violations while maintaining overall task accuracy. These results suggest that integrating formal reasoning into TaLLM execution can improve tool-call policy compliance and overall reliability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。