一句话:提出基于溯源分析的形式化框架与 ProvenanceGuard 流水线,在工具调用执行前检测 LLM 智能体的失准行为。
随着 LLM 智能体获得越来越强的工具调用能力,其动作是否契合用户意图变得至关重要,偏离意图的失准行为可能造成难以挽回的损害。现有运行时护栏多依赖 LLM-as-a-judge 范式,缺乏系统化的对齐推理框架,判断常不一致且难以审计。本文受溯源分析启发,将失准检测形式化为判断:候选工具调用是否被智能体上下文中的可追溯证据所支持。基于该框架实现 ProvenanceGuard——一个多阶段流水线,在执行前检查三类失准,仅放行有证据支持的动作。在 AgentSafetyBench 与 WorkBench 上跨 11 个基座 LLM 评估,相较 LLM-as-a-judge 基线显著降低了失准轨迹上的错误率。
As LLM agents gain increasing access to powerful tools, ensuring that their actions align with the user’s intent becomes critical. When an agent’s proposed action deviates from that intent—a phenomenon called misalignment— it may cause harm that is difficult to undo. Existing runtime guardrails rely on an LLM-as-a-judge paradigm that lacks a systematic framework for reasoning about alignment, often producing inconsistent or difficult-to-audit judgments. Motivated by provenance analysis, we propose a conceptual framework that formalizes misalignment detection as determining whether a proposed tool call is supported by traceable evidence in the agent’s context. Based on this framework, we build ProvenanceGuard, a multi-stage pipeline that analyzes the agent’s action for three types of misalignment before its execution and only allows aligned actions. We evaluated ProvenanceGuard on AgentSafetyBench and WorkBench, across 11 backbone LLMs. Compared to the LLM-as-a-judge baseline, ProvenanceGuard reduces error rate on misaligned traces from 44.3