Skip to main content
QUICK REVIEW

[Paper Review] Safety Assessment of Chinese Large Language Models

Hao Sun, Zhexin Zhang|arXiv (Cornell University)|Apr 20, 2023
Adversarial Robustness in Machine LearningComputer Science16 citations
TL;DR

The paper presents a Chinese LLM safety benchmark evaluating 15 models across 8 safety scenarios and 6 instruction-attack types, using LLM evaluators to score safety and releasing SafetyPrompts for community use.

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.

Motivation & Objective

  • Promote safe deployment of Chinese LLMs by developing a comprehensive safety taxonomy and benchmark.
  • Assess safety performance of multiple Chinese and OpenAI models using automated LLM evaluation.
  • Provide a public safe-prompt resource to aid safety testing and model improvement.

Proposed method

  • Define a taxonomy of 8 typical safety scenarios and 6 instruction-attack types.
  • Create manually written safety prompts and use LLM evaluators to judge safety of model responses.
  • Compute scenario-wise safety scores and macro averages to derive overall safety S.
  • Collect and evaluate 15 models including GPT series and Chinese LLMs on the benchmark website.
  • Augment prompts with 100k SafetyPrompts and release them publicly.
  • Provide a leaderboard and open-source resources for safety evaluation.

Experimental results

Research questions

  • RQ1What is the safety performance of current Chinese LLMs across standard safety scenarios?
  • RQ2How do instruction attacks affect the safety of LLMs compared to typical safety scenarios?
  • RQ3Can an automatic LLM-based evaluator reliably judge the safety of model outputs?
  • RQ4What is the impact of safety prompt augmentation on model safety?
  • RQ5How do different models compare on a unified safety leaderboard?

Key findings

  • OpenAI’s ChatGPT leads in safety scores across most scenarios due to rejection of unsafe inputs and safety data.
  • Instruction-attacks consistently yield lower safety scores than typical scenarios across models.
  • Models trained on instruction data generally outperform open-domain conversational models in safety.
  • In some scenarios, ChatGPT matches Chinese LLMs like ChatGLM and MiniChat, but instruction-attack gaps remain large.
  • Instruction-attack safety scores lag behind typical-scenario scores, driving overall safety gaps between ChatGPT and other models.
  • SafetyPrompts library consists of 100k augmented prompts and responses released publicly.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.