M3-SafetyBench: a comprehensive benchmark for evaluating the safety of large language models across multiple domains, scenarios, and dimensions
In recent years, the widespread application of large language models (LLMs) in fields such as natural language processing, intelligent education, and content generation has increasingly highlighted their potential security risks. Existing safety evaluation benchmarks often focus on single attack methods or narrow task types, making it difficult to comprehensively reflect the safety performance of models across multiple domains and scenarios. To address this gap, this paper proposes M3-SafetyBench, a comprehensive safety evaluation benchmark for Chinese LLMs that spans multiple domains, scenarios, and dimensions. This framework innovatively adopts a two-layer architecture—“content safety and functional safety"—covering both general and educational vertical domains, and integrates various assessment tasks including open-ended generation and multiple-choice questions. Furthermore, this study incorporates red teaming strategies to evaluate model vulnerabilities through jailbreak attacks, thereby enhancing the depth and breadth of the evaluation for multidimensional safety analysis. By constructing a high-quality dataset containing over 170000 test samples, we systematically evaluated 19 mainstream open-source and closed-source LLMs. Experimental results reveal significant disparities in the performance of different models across various safety risk dimensions, highlighting bottlenecks in content generation and safety alignment within current LLM technologies. The proposed M3-SafetyBench not only provides quantitative metrics and methodological processes for improving the safety of LLMs but also offers reliable data support for industry regulation and compliance testing.