Abstract
As Large Language Models (LLMs) become increasingly integrated into daily digital interactions, ensuring their safety across diverse linguistic and cultural contexts is critical. We introduce SafetyBench, a comprehensive bilingual benchmark consisting of 11,435 multiple-choice questions (MCQs) spanning seven distinct safety categories. Our evaluation of 25 prominent LLMs reveals that while GPT-4 maintains a substantial lead, a significant "safety gap" exists for most models. Furthermore, we demonstrate a high correlation between a model's ability to correctly answer safety-related MCQs and its propensity for safe content generation in real-world applications, validating SafetyBench as an efficient proxy for safety evaluation.
Introduction
The rapid deployment of LLMs in search engines, creative tools, and personal assistants has made safety—defined as the avoidance of toxicity, bias, and illegal advice—a paramount concern. However, evaluating safety remains a significant challenge for the research community. Existing benchmarks often suffer from a narrow focus on single dimensions like gender bias, high evaluation costs due to the need for human graders of open-ended text, and a heavy bias toward the English language.
To address these limitations, we propose SafetyBench. By utilizing a multiple-choice format, SafetyBench provides a fast, objective, and cost-effective methodology for measuring safety across a broad spectrum of concerns in both Chinese and English.
Methodology
SafetyBench departs from traditional open-ended "chat" evaluations, which are often subjective and difficult to scale. Instead, it adopts a Multiple-Choice Question (MCQ) format inspired by general capability benchmarks like MMLU. This allows for deterministic, automated scoring that is both reproducible and inexpensive.
The dataset was constructed using a three-pronged approach:
- Data Transformation: Existing safety datasets, such as Jigsaw (toxicity) and BBQ (bias), were converted into MCQ formats.
- Exam Sourcing: Real-world exam questions were harvested from middle school "health and safety" and "morality and law" tests to capture grounded societal values.
- LLM Augmentation: For categories with sparse existing data, such as privacy and illegal activities, ChatGPT was used to generate diverse questions. These were then subjected to rigorous human verification to ensure quality and the inclusion of challenging distractors.
The SafetyBench Dataset
SafetyBench comprises 11,435 diverse samples available in both Chinese and English. The benchmark covers seven primary categories: Offensiveness, Unfairness and Bias, Physical Health, Mental Health, Illegal Activities, Ethics and Morality, and Privacy and Property.
Unlike previous benchmarks that were restricted to a single language, SafetyBench provides a parallel English version. This facilitates cross-linguistic safety research and allows for a more global assessment of model alignment.
Key Insights and Analysis
Our evaluation yielded several critical insights into the current state of LLM safety:
- The Safety Gap: A significant disparity exists between top-tier models and the rest of the field. While GPT-4 achieved a score near 89%, 22 out of the 25 models tested scored below 80%. This indicates that most models still struggle with the nuances of safety alignment.
- Understanding vs. Generation: We found a remarkably high correlation (Pearson coefficients between 0.91 and 0.99) between a model’s SafetyBench score and its performance in generating safe responses to open-ended prompts. This suggests that a model's "understanding" of safety in a test format is a reliable proxy for its real-world behavior.
- The Alignment Tax: Some models, notably gpt-3.5-turbo, exhibited lower performance in few-shot settings compared to zero-shot settings. This suggests that safety alignment may occasionally conflict with a model's in-context learning capabilities.
- Cultural Nuance: Models developed by Chinese organizations generally demonstrated superior performance on Chinese-specific safety nuances. Conversely, OpenAI’s models showed the most balanced performance across both languages.
Experimental Results
The results across Chinese and English datasets highlight the dominance of proprietary models. GPT-4 emerged as the clear leader, outperforming gpt-3.5-turbo by nearly 10 percentage points in zero-shot accuracy.
While models generally performed well in "Physical Health" and "Mental Health," they struggled significantly with "Unfairness and Bias," where complex social contexts often led to incorrect choices. Interestingly, on a filtered "Chinese subset" of 2,100 questions—designed to bypass API filters by removing highly sensitive keywords—Chinese models like ChatGLM2 performed impressively, narrowing the gap with GPT-4 to just 3%.
Limitations and Future Work
SafetyBench is a significant step forward, but it is not without limitations. Safety is an evolving target, and niche or emerging concerns may not yet be fully represented. Furthermore, to maintain consistency across languages, "Sensitive Topics" (politics) were excluded due to the high variability of "correct" answers across different regional laws and cultures. Finally, as with all static benchmarks, there is a risk of data contamination in future model training.
Future work will focus on continuously updating the leaderboard and developing more challenging, reasoning-heavy safety questions to keep pace with the rapid advancement of LLM capabilities.
Summary updated