TL;DR
MLCommons introduces the v0.5 AI Safety Benchmark, a novel framework for evaluating the safety of language models. This preliminary release outlines a principled approach to safety benchmarking, including a new taxonomy of hazards and a methodology for generating and evaluating test items, aiming to drive innovation and improve AI safety practices.
What Problem Does This Paper Address?
The rapid advancement and widespread deployment of generative AI, particularly Large Language Models (LLMs), have raised significant concerns about their potential to cause harm. Existing methods for evaluating AI safety are often fragmented, lack standardization, and may not adequately capture the nuanced risks associated with these powerful systems. This paper addresses the need for a comprehensive, principled, and reproducible benchmark to systematically assess and improve the safety of AI systems, specifically focusing on LLMs. The authors aim to provide a standardized tool that can facilitate better AI safety processes and stimulate innovation in the field.
Methods
The v0.5 AI Safety Benchmark employs a principled approach to specifying and constructing the benchmark. Key elements include:
- Use Cases and Personas: A single use case (adult chatting with a general-purpose assistant in English) and three personas (typical user, malicious user, and vulnerable user) are defined to scope the evaluation.
- Taxonomy of Hazard Categories: A new, hierarchical taxonomy of 13 hazard categories was developed, with 7 included in v0.5. These categories are based on societal and personal risks, and legal recognition of harms.
- Test Item Generation: Test items (prompts) are created by combining sentence fragments (describing hazards) with templates representing different interaction types. This approach aims for clarity, interpretability, and to avoid ambiguity.
- Automated Evaluation: An automated evaluator, LlamaGuard, is used to assess model responses for safety.
- Grading System: A five-point grading scale ("Low risk" to "High risk") is used to categorize SUT performance on each test, combining absolute cutoffs and a reference model approach.
- ModelBench Platform: An open-source evaluation tool called ModelBench is provided for implementing and running the benchmark.
Datasets
The v0.5 benchmark utilizes a newly introduced dataset comprising 43,090 test items (prompts). These prompts were generated by combining 725 sentence fragments with 32 templates across 13 interaction types. The dataset is designed to cover 7 hazard categories and is limited to the English language and a Western Europe/North America context. The authors note that existing datasets were found to have incomplete coverage of their hazard categories and varied in quality.
Key Insights and Ideas
- Principled Approach to Safety: The paper emphasizes the importance of a structured and principled methodology for AI safety evaluation, moving beyond ad-hoc testing.
- Persona-Based Evaluation: The use of distinct personas (typical, malicious, vulnerable) is crucial for understanding how AI systems respond to different user intents and potential risks.
- Taxonomy as a Foundation: Developing a comprehensive and well-defined taxonomy of hazards is essential for systematic safety assessment and clear communication.
- Limitations of v0.5: The authors are transparent about the preliminary nature of v0.5, highlighting its limited scope and the need for future expansion. This openness is intended to solicit feedback and guide future development.
- Challenges in Defining "Unsafe": The paper acknowledges the difficulty in setting thresholds for safety and the need for interpretable grading systems that can be adapted to different contexts and hazard types.
Key Results
- The v0.5 benchmark was used to evaluate 13 anonymized LLMs.
- 5 out of 13 SUTs were graded as high risk (H) on a benchmark grading level.
- 3 out of 13 SUTs were graded as high risk (H) across all hazard categories.
- The percentage of unsafe responses was substantially higher for prompts associated with malicious or vulnerable user personas compared to typical users.
- The "Sex-related crimes" hazard category showed a significantly higher percentage of unsafe responses compared to other categories.
- The automated evaluator, LlamaGuard, achieved an accuracy of 70.4% on a human-verified subset of responses.
Limitations and Future Work
The authors explicitly acknowledge several limitations of the v0.5 benchmark:
- Limited Scope: The benchmark is restricted to English language, a single use case, and three personas within a specific geographical/cultural context.
- Incomplete Taxonomy: Only 7 out of 13 identified hazard categories are covered.
- Simple Test Design: Test items are designed to be clear-cut and easy to interpret, which may not fully challenge more sophisticated adversarial attacks.
- Automated Evaluation Errors: While LlamaGuard is validated, it still makes errors that could lead to incorrect grades.
- Low Temperature Evaluation: Models were evaluated at a low temperature (0.01), which reduces response variability but might not reflect safety at higher temperatures.
- Lack of False Refusal Testing: The benchmark currently only tests for unsafe responses, not for false refusals of benign prompts.
Future work will focus on expanding the taxonomy, incorporating more use cases and personas, developing more sophisticated test items, addressing false refusal, and potentially making future versions of the benchmark less open to prevent gaming. The authors also plan to explore different modalities beyond text and support for multiple languages.
Summary updated