arXiv:2506.00641cs.AI2025-06NeurIPS被引 85

让大模型像人类专家一样评估AI代理的安全风险。

AgentAuditor: Human-Level Safety and Security Evaluation for LLM Agents

  • 构建记忆库,动态调用过往经验进行推理判断。
  • 在2293条数据上达到人类级准确率,显著优于现有方法。
  • 适合安全评测、AI治理和大模型开发团队使用。

尽管基于大语言模型(LLM)的智能体发展迅速,其安全与可靠性评估仍面临重大挑战。现有基于规则或大模型的评估工具常忽略智能体行为中的潜在危险、细微语义,难以察觉小问题的累积效应,且易受模糊规则干扰。为此,我们提出AgentAuditor,一种无需训练、具备记忆增强推理能力的通用评估框架,使大模型评估者能模拟人类专家的判断。该框架通过自适应提取结构化语义特征(如场景、风险、行为)并生成思维链,构建经验记忆库;再通过多阶段、上下文感知的检索增强生成机制,动态召回最相关的历史案例以指导新案例评估。此外,我们构建了ASSEBench——首个专门用于检验大模型评估者识别安全风险与安全威胁能力的基准,包含2293条精细标注的交互记录,覆盖15类风险和29个应用场景。其采用“严格”与“宽松”双重判别标准,精准应对模糊风险情境。实验表明,AgentAuditor不仅在所有基准上持续提升大模型评估性能,更在大模型作为裁判的代理安全与安全评估任务中达到新标杆,实现人类级准确率。代码已开源:https://github.com/Astarojth/AgentAuditor。

原文摘要 · Abstract (English)

Despite the rapid advancement of LLM-based agents, the reliable evaluation of their safety and security remains a significant challenge. Existing rule-based or LLM-based evaluators often miss dangers in agents' step-by-step actions, overlook subtle meanings, fail to see how small issues compound, and get confused by unclear safety or security rules. To overcome this evaluation crisis, we introduce AgentAuditor, a universal, training-free, memory-augmented reasoning framework that empowers LLM evaluators to emulate human expert evaluators. AgentAuditor constructs an experiential memory by having an LLM adaptively extract structured semantic features (e.g., scenario, risk, behavior) and generate associated chain-of-thought reasoning traces for past interactions. A multi-stage, context-aware retrieval-augmented generation process then dynamically retrieves the most relevant reasoning experiences to guide the LLM evaluator's assessment of new cases. Moreover, we developed ASSEBench, the first benchmark designed to check how well LLM-based evaluators can spot both safety risks and security threats. ASSEBench comprises 2293 meticulously annotated interaction records, covering 15 risk types across 29 application scenarios. A key feature of ASSEBench is its nuanced approach to ambiguous risk situations, employing "Strict" and "Lenient" judgment standards. Experiments demonstrate that AgentAuditor not only consistently improves the evaluation performance of LLMs across all benchmarks but also sets a new state-of-the-art in LLM-as-a-judge for agent safety and security, achieving human-level accuracy. Our work is openly accessible at https://github.com/Astarojth/AgentAuditor.

安全评估大模型智能体评测基准

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