Safety Assessment of Chinese Large Language Models

Hao Sun, Zhexin Zhang, Jiawen Deng, Jiale Cheng, Minlie Huang
4/20/2023
cs.CL

No official code found. Best implementation: thu-coai/Safety-Prompts (1,217 stars, Apache-2.0, last commit 2024-02-27).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Chinese safety prompts for evaluating and improving the safety of LLMs. 中文安全prompts,用于评估和提升大模型的安全性。

1,21789Apr 18, 20232 years agoApache-2.0
attack-defensechatgptchinese-languageinstructionllm+3 more

Similar Papers

Cite this paper

@article{sun2023safety,
  title  = {Safety Assessment of Chinese Large Language Models},
  author = {Hao Sun and Zhexin Zhang and Jiawen Deng and Jiale Cheng and Minlie Huang},
  year   = {2023},
  eprint = {2304.10436},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.10436v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.10436.svg)](https://codeofpaper.com/paper/2304.10436)

Discussion