Saved in:
Bibliographic Details
Main Authors: Zhang, Zhexin, Lei, Leqi, Wu, Lindong, Sun, Rui, Huang, Yongkang, Long, Chong, Liu, Xiao, Lei, Xuanyu, Tang, Jie, Huang, Minlie
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2309.07045
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917702247907328
author Zhang, Zhexin
Lei, Leqi
Wu, Lindong
Sun, Rui
Huang, Yongkang
Long, Chong
Liu, Xiao
Lei, Xuanyu
Tang, Jie
Huang, Minlie
author_facet Zhang, Zhexin
Lei, Leqi
Wu, Lindong
Sun, Rui
Huang, Yongkang
Long, Chong
Liu, Xiao
Lei, Xuanyu
Tang, Jie
Huang, Minlie
contents With the rapid development of Large Language Models (LLMs), increasing attention has been paid to their safety concerns. Consequently, evaluating the safety of LLMs has become an essential task for facilitating the broad applications of LLMs. Nevertheless, the absence of comprehensive safety evaluation benchmarks poses a significant impediment to effectively assess and enhance the safety of LLMs. In this work, we present SafetyBench, a comprehensive benchmark for evaluating the safety of LLMs, which comprises 11,435 diverse multiple choice questions spanning across 7 distinct categories of safety concerns. Notably, SafetyBench also incorporates both Chinese and English data, facilitating the evaluation in both languages. Our extensive tests over 25 popular Chinese and English LLMs in both zero-shot and few-shot settings reveal a substantial performance advantage for GPT-4 over its counterparts, and there is still significant room for improving the safety of current LLMs. We also demonstrate that the measured safety understanding abilities in SafetyBench are correlated with safety generation abilities. Data and evaluation guidelines are available at \url{https://github.com/thu-coai/SafetyBench}{https://github.com/thu-coai/SafetyBench}. Submission entrance and leaderboard are available at \url{https://llmbench.ai/safety}{https://llmbench.ai/safety}.
format Preprint
id arxiv_https___arxiv_org_abs_2309_07045
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle SafetyBench: Evaluating the Safety of Large Language Models
Zhang, Zhexin
Lei, Leqi
Wu, Lindong
Sun, Rui
Huang, Yongkang
Long, Chong
Liu, Xiao
Lei, Xuanyu
Tang, Jie
Huang, Minlie
Computation and Language
With the rapid development of Large Language Models (LLMs), increasing attention has been paid to their safety concerns. Consequently, evaluating the safety of LLMs has become an essential task for facilitating the broad applications of LLMs. Nevertheless, the absence of comprehensive safety evaluation benchmarks poses a significant impediment to effectively assess and enhance the safety of LLMs. In this work, we present SafetyBench, a comprehensive benchmark for evaluating the safety of LLMs, which comprises 11,435 diverse multiple choice questions spanning across 7 distinct categories of safety concerns. Notably, SafetyBench also incorporates both Chinese and English data, facilitating the evaluation in both languages. Our extensive tests over 25 popular Chinese and English LLMs in both zero-shot and few-shot settings reveal a substantial performance advantage for GPT-4 over its counterparts, and there is still significant room for improving the safety of current LLMs. We also demonstrate that the measured safety understanding abilities in SafetyBench are correlated with safety generation abilities. Data and evaluation guidelines are available at \url{https://github.com/thu-coai/SafetyBench}{https://github.com/thu-coai/SafetyBench}. Submission entrance and leaderboard are available at \url{https://llmbench.ai/safety}{https://llmbench.ai/safety}.
title SafetyBench: Evaluating the Safety of Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2309.07045