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

中文大语言模型的安全性评估

Safety Assessment of Chinese Large Language Models

Institute for Artificial Intelligence(人工智能研究院);Tsinghua University(清华大学)

Hao Sun, Zhexin Zhang, Jiawen Deng, Jiale Cheng, Minlie Huang

AI总结:

本文构建中文 LLM 安全评估基准,从典型安全场景与指令攻击两方面评估 15 个模型,并发布含 100k 条提示及响应的 SafetyPrompts。

摘要:

随着 ChatGPT 和 GPT-4 等大语言模型的迅速普及,其安全问题受到越来越多关注。这些模型可能生成侮辱性和歧视性内容,反映不正确的社会价值观,并可能被用于欺诈和传播误导性信息等恶意目的。评估并提升其安全性,对于大语言模型(LLM)的广泛应用尤为关键。为进一步推动 LLM 的安全部署,我们开发了一个中文 LLM 安全评估基准。该基准从两个视角考察 LLM 的综合安全性能:8 类典型安全场景和 6 类更具挑战性的指令攻击。我们的基准基于一个直接流程:提供测试提示,并评估受测模型所生成响应的安全性。在评估中,我们利用 LLM 强大的评估能力,通过提示将其开发为安全评估器。基于该基准,我们对包括 OpenAI GPT 系列和其他知名中文 LLM 在内的 15 个 LLM 进行了安全评估与分析,并观察到一些有趣发现。例如,我们发现指令攻击更容易暴露所有 LLM 的安全问题。此外,为推动安全、负责任且合乎伦理的 AI 的开发与部署,我们公开发布了 SafetyPrompts,其中包含由 LLM 生成的 100k 条增强提示和响应。

英文摘要:

With the rapid popularity of large language models such as ChatGPT and GPT-4, a growing amount of attention is paid to their safety concerns. These models may generate insulting and discriminatory content, reflect incorrect social values, and may be used for malicious purposes such as fraud and dissemination of misleading information. Evaluating and enhancing their safety is particularly essential for the wide application of large language models (LLMs). To further promote the safe deployment of LLMs, we develop a Chinese LLM safety assessment benchmark. Our benchmark explores the comprehensive safety performance of LLMs from two perspectives: 8 kinds of typical safety scenarios and 6 types of more challenging instruction attacks. Our benchmark is based on a straightforward process in which it provides the test prompts and evaluates the safety of the generated responses from the evaluated model. In evaluation, we utilize the LLM's strong evaluation ability and develop it as a safety evaluator by prompting. On top of this benchmark, we conduct safety assessments and analyze 15 LLMs including the OpenAI GPT series and other well-known Chinese LLMs, where we observe some interesting findings. For example, we find that instruction attacks are more likely to expose safety issues of all LLMs. Moreover, to promote the development and deployment of safe, responsible, and ethical AI, we publicly release SafetyPrompts including 100k augmented prompts and responses by LLMs.

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

↑