arXiv:2410.18491cs.CL2024-10被引 8

构建中文安全评测基准,揭示大模型在中文场景下的安全漏洞。

ChineseSafe: A Chinese Benchmark for Evaluating Safety in Large Language Models

  • 构建包含20.5万条数据的中文安全评测集,覆盖4类10子类风险内容。
  • 发现多个主流大模型在政治敏感、色情及谐音变体内容上存在显著安全缺陷。
  • 适合模型开发者、合规研究人员及中文AI安全方向从业者使用。

随着大语言模型(LLMs)的快速发展,理解其识别不安全内容的能力变得愈发重要。尽管已有若干评测基准用于评估LLMs的安全风险,但学界对当前大模型在中文语境下识别违法不良信息的能力仍缺乏充分认识。为此,本文提出中文安全评测基准ChineseSafe,以推动大语言模型内容安全研究。为契合中国网络内容治理规范,ChineseSafe涵盖205,034个样本,覆盖4大类10子类安全问题,特别加入了政治敏感、色情内容及谐音变体等中文特有风险类型。我们采用两种方法评估了多个主流开源模型与API接口的法律风险,结果表明,许多模型在特定类型内容上存在明显脆弱性,可能引发在中国的法律风险。本工作为开发者和研究者提供了安全优化指南。相关结果已发布于https://huggingface.co/spaces/SUSTech/ChineseSafe-Benchmark。此外,我们公开了含20万条样本的测试集,可访问https://huggingface.co/datasets/SUSTech/ChineseSafe。

原文摘要 · Abstract (English)

With the rapid development of Large language models (LLMs), understanding the capabilities of LLMs in identifying unsafe content has become increasingly important. While previous works have introduced several benchmarks to evaluate the safety risk of LLMs, the community still has a limited understanding of current LLMs' capability to recognize illegal and unsafe content in Chinese contexts. In this work, we present a Chinese safety benchmark (ChineseSafe) to facilitate research on the content safety of large language models. To align with the regulations for Chinese Internet content moderation, our ChineseSafe contains 205,034 examples across 4 classes and 10 sub-classes of safety issues. For Chinese contexts, we add several special types of illegal content: political sensitivity, pornography, and variant/homophonic words. Moreover, we employ two methods to evaluate the legal risks of popular LLMs, including open-sourced models and APIs. The results reveal that many LLMs exhibit vulnerability to certain types of safety issues, leading to legal risks in China. Our work provides a guideline for developers and researchers to facilitate the safety of LLMs. Our results are also available at https://huggingface.co/spaces/SUSTech/ChineseSafe-Benchmark. Additionally, we release a test set comprising 200,000 examples, which is publicly accessible at https://huggingface.co/datasets/SUSTech/ChineseSafe.

安全评测中文LLM内容安全基准测试

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。