arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.00641cs.AI
收藏

AgentAuditor: 为LLM代理提供人类水平的安全性和安全性评估

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

New York University Abu Dhabi(纽约大学阿布扎比分校);Nanyang Technological University(南洋理工大学);KTH Royal Institute of Technology(瑞典皇家理工学院);University of Sydney(悉尼大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);National University of Singapore(新加坡国立大学);Mohamed bin Zayed University of AI(穆罕默德·本·扎耶德人工智能大学)

Hanjun Luo, Shenyu Dai, Chiming Ni, Xinfeng Li, Guibin Zhang, Kun Wang, Tongliang Liu, Hanan Salam

AI总结:

AgentAuditor通过构建经验记忆和多阶段检索生成过程,提升LLM在代理安全性和安全性评估中的性能,达到人类水平的准确性。

摘要:

尽管LLM基于的代理技术迅速发展,但对其安全性和安全性进行可靠评估仍然是重大挑战。现有的基于规则或LLM的评估器往往无法发现代理在逐步行动中的危险,忽视微妙含义,无法看到小问题的累积效应,并且在不清楚的安全或安全规则时感到困惑。为了解决这个评估危机,我们引入了AgentAuditor,一种通用的、无需训练的、具有记忆增强的推理框架,使LLM评估器能够模拟人类专家评估器。AgentAuditor通过让LLM自适应地提取结构化的语义特征(例如场景、风险、行为)并生成相关的推理链轨迹来构建经验记忆。随后,一个多阶段、上下文感知的检索增强生成过程会动态检索最相关的推理经验,以指导LLM评估器对新案例的评估。此外,我们开发了ASSEBench,第一个旨在检查LLM评估器能否发现安全风险和安全威胁的基准。ASSEBench包含2293个精心标注的交互记录,涵盖15种风险类型和29种应用场景。ASSEBench的一个关键特点是其对模糊风险情况的细致处理,采用“严格”和“宽松”的判断标准。实验表明,AgentAuditor不仅在所有基准上一致提高了LLM的评估性能,而且在LLM作为法官的代理安全和安全性方面达到了新的状态,实现了人类水平的准确性。我们的工作在https://github.com/Astarojth/AgentAuditor上公开可访问。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑