[Paper Review] SafetyBench: Evaluating the Safety of Large Language Models
SafetyBench introduces a comprehensive, multilingual safety benchmark with 11,435 multiple-choice questions across 7 safety categories to evaluate LLMs, revealing GPT-4’s leading safety performance but notable remaining gaps.
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}.
Motivation & Objective
- Motivates the need for a comprehensive, scalable safety evaluation benchmark for LLMs across diverse safety concerns.
- Proposes a multilingual (Chinese and English) MCQ-based evaluation to enable automated, cost-effective safety assessment.
- Compiles data from diverse sources (datasets, exams, augmentation) and applies rigorous quality control for reliability.
- Evaluates 25 LLMs in zero-shot and few-shot settings to benchmark safety performance and identify gaps.
- Offers data, guidelines, and leaderboard access to foster rapid safety improvements in LLMs.
Proposed method
- Collects 11,435 MCQs spanning 7 safety categories from diverse sources.
- Excludes a Sensitive Topics category to ensure cross-language consistency.
- Translates data between Chinese and English using a commercial translation API for uniform bilingual evaluation.
- Uses data from existing datasets, safety-related exams, and LLM-assisted augmentation with human verification.
- Evaluates models in zero-shot and five-shot settings with fixed-temperature sampling and extraction rules for answers.
- Provides a public leaderboard and evaluation protocol (no CoT-based evaluation in this version).
Experimental results
Research questions
- RQ1What are the key safety dimensions to evaluate in LLMs across Chinese and English data?
- RQ2How do popular LLMs compare in safety performance under zero-shot and few-shot conditions?
- RQ3Which safety categories are most challenging for current LLMs, and where do gaps remain?
- RQ4How does bilingual data affect safety evaluation and cross-language generalization?
- RQ5What data sources and quality controls are effective for building a scalable safety benchmark?
Key findings
- GPT-4 achieves the highest safety accuracy across evaluated LLMs, outperforming the next best model by about 10 percentage points in zero-shot results.
- In zero-shot tests, GPT-4 leads significantly, with notable gaps in Physical Health and Ethics/Morality categories.
- Many LLMs score below 80% average accuracy and below 70% in some categories like Unfairness and Bias, indicating room for improvement.
- Five-shot results show variable gains across models, with some models improving markedly and others exhibiting alignment-related tradeoffs.
- Chinese-origin LLMs tend to perform better on Chinese data, while OpenAI GPT-series show more balanced bilingual performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.