SafeLawBench: Towards Safe Alignment of Large Language Models
With the growing prevalence of large language models (LLMs), the safety of LLMs has raised significant concerns.However, there is still a lack of definitive standards for evaluating their safety due to the subjective nature of current safety benchmarks.To address this gap, we conducted the first exploration of LLMs' safety evaluation from a legal perspective by proposing the SafeLawBench benchmark.SafeLawBench categorizes safety risks into three levels based on legal standards, providing a systematic and comprehensive framework for evaluation.It comprises 24,860 multi-choice questions and 1,106 open-domain question-answering (QA) tasks.Our evaluation included 2 closed-source LLMs and 18 open-source LLMs using zero-shot and fewshot prompting, highlighting the safety features of each model.We also evaluated the LLMs' safety-related reasoning stability and refusal behavior.Additionally, we found that a majority voting mechanism can enhance model performance.Notably, even leading SOTA models like Claude-3.5-Sonnetand GPT-4o have not exceeded 80.5% accuracy in multi-choice tasks on SafeLawBench, while the average accuracy of 20 LLMs remains at 68.8%.We urge the community to prioritize research on the safety of LLMs.Our dataset and code are available.
Authors
- Jiaming Ji (ORCID: https://orcid.org/0009-0000-6385-8141)
- Zhu Han (ORCID: https://orcid.org/0000-0002-8602-864X)
- Yike Guo (ORCID: https://orcid.org/0000-0002-3075-2161)
- Sirui Han (ORCID: https://orcid.org/0000-0001-9461-8538)
- Zining Zhu (ORCID: https://orcid.org/0000-0002-9746-9977)
- Yaodong Yang (ORCID: https://orcid.org/0000-0001-8132-5613)
- Josef Dai
- Quan Sun (ORCID: https://orcid.org/0000-0003-4672-0794)
- Cewen Cao (ORCID: https://orcid.org/0000-0003-1129-0720)
- Wu Yinyu
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.findings-acl.721
- Citations
- 2
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 4.96
Funders
- Hong Kong University of Science and Technology