Agent-SafetyBench: Evaluating the Safety of LLM Agents

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Zhexin, Cui, Shiyao, Lu, Yida, Zhou, Jingzhuo, Yang, Junxiao, Wang, Hongning, Huang, Minlie
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910954339434496
author Zhang, Zhexin
Cui, Shiyao
Lu, Yida
Zhou, Jingzhuo
Yang, Junxiao
Wang, Hongning
Huang, Minlie
author_facet Zhang, Zhexin
Cui, Shiyao
Lu, Yida
Zhou, Jingzhuo
Yang, Junxiao
Wang, Hongning
Huang, Minlie
contents As large language models (LLMs) are increasingly deployed as agents, their integration into interactive environments and tool use introduce new safety challenges beyond those associated with the models themselves. However, the absence of comprehensive benchmarks for evaluating agent safety presents a significant barrier to effective assessment and further improvement. In this paper, we introduce Agent-SafetyBench, a comprehensive benchmark designed to evaluate the safety of LLM agents. Agent-SafetyBench encompasses 349 interaction environments and 2,000 test cases, evaluating 8 categories of safety risks and covering 10 common failure modes frequently encountered in unsafe interactions. Our evaluation of 16 popular LLM agents reveals a concerning result: none of the agents achieves a safety score above 60%. This highlights significant safety challenges in LLM agents and underscores the considerable need for improvement. Through failure mode and helpfulness analysis, we summarize two fundamental safety defects in current LLM agents: lack of robustness and lack of risk awareness. Furthermore, our findings suggest that reliance on defense prompts alone may be insufficient to address these safety issues, emphasizing the need for more advanced and robust strategies. To drive progress in this area, Agent-SafetyBench has been released at https://github.com/thu-coai/Agent-SafetyBench/ to facilitate further research in agent safety evaluation and improvement.
format Preprint
id arxiv_https___arxiv_org_abs_2412_14470
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Agent-SafetyBench: Evaluating the Safety of LLM Agents
Zhang, Zhexin
Cui, Shiyao
Lu, Yida
Zhou, Jingzhuo
Yang, Junxiao
Wang, Hongning
Huang, Minlie
Computation and Language
As large language models (LLMs) are increasingly deployed as agents, their integration into interactive environments and tool use introduce new safety challenges beyond those associated with the models themselves. However, the absence of comprehensive benchmarks for evaluating agent safety presents a significant barrier to effective assessment and further improvement. In this paper, we introduce Agent-SafetyBench, a comprehensive benchmark designed to evaluate the safety of LLM agents. Agent-SafetyBench encompasses 349 interaction environments and 2,000 test cases, evaluating 8 categories of safety risks and covering 10 common failure modes frequently encountered in unsafe interactions. Our evaluation of 16 popular LLM agents reveals a concerning result: none of the agents achieves a safety score above 60%. This highlights significant safety challenges in LLM agents and underscores the considerable need for improvement. Through failure mode and helpfulness analysis, we summarize two fundamental safety defects in current LLM agents: lack of robustness and lack of risk awareness. Furthermore, our findings suggest that reliance on defense prompts alone may be insufficient to address these safety issues, emphasizing the need for more advanced and robust strategies. To drive progress in this area, Agent-SafetyBench has been released at https://github.com/thu-coai/Agent-SafetyBench/ to facilitate further research in agent safety evaluation and improvement.
title Agent-SafetyBench: Evaluating the Safety of LLM Agents
topic Computation and Language
url https://arxiv.org/abs/2412.14470