arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.12193cs.CL
收藏

一个用于评估大型语言模型安全防护措施的中文数据集

A Chinese Dataset for Evaluating the Safeguards in Large Language Models

LibrAI;MBZUAI;Tsinghua University(清华大学);MiraclePlus;The University of Melbourne(墨尔本大学)

Yuxia Wang, Zenan Zhai, Haonan Li, Xudong Han, Lizhi Lin, Zhenxuan Zhang, Jingru Zhao, Preslav Nakov, Timothy Baldwin

AI总结:

本文构建中文LLM安全评估数据集,扩展两类场景以识别风险提示拒绝中的假阴性与假阳性,并制定细粒度标准,实验发现地区特定风险是中文LLM最突出的安全问题。

摘要:

许多研究表明,大型语言模型(LLM)可能生成有害回复,在部署LLM时会让用户面临意外风险。以往研究已经提出了LLM所带来风险的全面分类体系,以及可用于检查LLM安全机制的相应提示词。然而,相关关注点几乎完全集中在英语上,对其他语言的探索很少。本文旨在弥合这一差距。我们首先介绍一个用于中文LLM安全评估的数据集,随后将其扩展到另外两个场景,以便在风险提示拒绝方面更好地识别假阴性和假阳性样本。我们还针对每种风险类型提出了一套细粒度安全评估标准,以促进围绕LLM回复有害性的人工标注和自动评估。我们在五个LLM上的实验表明,地区特定风险是最普遍的风险类型,也是我们实验中所有中文LLM面临的主要问题。我们的数据可在 https://github.com/Libr-AI/do-not-answer 获取。警告:本文包含可能具有冒犯性、有害或带有偏见的示例数据。

英文摘要:

Many studies have demonstrated that large language models (LLMs) can produce harmful responses, exposing users to unexpected risks when LLMs are deployed. Previous studies have proposed comprehensive taxonomies of the risks posed by LLMs, as well as corresponding prompts that can be used to examine the safety mechanisms of LLMs. However, the focus has been almost exclusively on English, and little has been explored for other languages. Here we aim to bridge this gap. We first introduce a dataset for the safety evaluation of Chinese LLMs, and then extend it to two other scenarios that can be used to better identify false negative and false positive examples in terms of risky prompt rejections. We further present a set of fine-grained safety assessment criteria for each risk type, facilitating both manual annotation and automatic evaluation in terms of LLM response harmfulness. Our experiments on five LLMs show that region-specific risks are the prevalent type of risk, presenting the major issue with all Chinese LLMs we experimented with. Our data is available at https://github.com/Libr-AI/do-not-answer. Warning: this paper contains example data that may be offensive, harmful, or biased.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑