一次写入,多次核查:用于智能体轨迹事后策略合规性审计的可复用账本
Write Once, Check Many: Reusable Ledgers for Post-Hoc Policy Compliance Auditing of Agent Trajectories
AI总结:
该研究提出“一次写入,多次核查”框架,将智能体轨迹转换为与策略无关的账本,可高效审计LLM智能体,在多项基准测试中表现优于基线模型,减少了标记使用量。
摘要:
针对策略对大语言模型(LLM)智能体进行审计是确保安全的关键,但针对每一项策略都需要重新读取冗长的轨迹。我们能否改为仅记录一次轨迹,并将该记录用于事先未知的策略?我们提出了“一次写入,多次核查”(write once, check many)框架,其中写入模型将每条智能体轨迹转换为与策略无关的智能体动作和结果账本。随后,读取器仅通过账本即可核查每项新策略,无需访问原始轨迹。在来自SHADE-Arena、τ-bench和τ²-bench的900条轨迹上,我们表明,使用叙事账本的12B参数读取器的AUC要么与读取完整轨迹的相同12B模型相当,甚至更高。在结合多项事实的SHADE-Arena策略上,我们的方法优于读取轨迹的31B模型(AUC为0.777对比0.713)。当分别核查8项SHADE-Arena策略时,账本(含写入成本)使用的标记数减少了约5倍。更深入的分析显示,基于规则的提取在某些单动作策略上表现更好,且账本可能会遗漏长工具输出和消息内容中的证据。我们的结果表明,可复用的、与策略无关的记录可使智能体的追溯审计更高效、更有效,并强调了账本设计中的重要考量因素。
英文摘要:
Auditing LLM agents against policies is critical to ensure safety but requires rereading long trajectories once per policy. Can we instead record each trajectory once and reuse that record for policies not known in advance? We propose write once, check many, a framework in which a writer model converts each agent trajectory into a policy-independent ledger of the agent's actions and outcomes. A reader then checks each new policy against the ledger alone, without access to the original trajectory. On 900 trajectories from SHADE-Arena, $τ$-bench, and $τ^2$-bench, we show that a 12B reader of narrative ledgers can either match or in fact achieve higher AUC than the same 12B model reading full trajectories. On SHADE-Arena policies that combine several facts, our approach outperforms a 31B model reading the trajectory (.777 vs. .713 AUC). When checking eight SHADE-Arena policies separately, ledgers use about $5\times$ fewer tokens, including the cost of writing them. A deeper analysis shows that rule-based extraction performs better on some single-action policies, and ledgers can miss evidence in long tool outputs and message contents. Our results suggest that reusable, policy-independent records can make retrospective agent auditing more efficient and effective, and highlight important considerations in ledger design.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。