Safety Assessment of Chinese Large Language Models

Hao Sun, Zhexin Zhang, Jiawen Deng, Jiale Cheng, Minlie HuangarXiv 2023 · DOI

Introduction

As Large Language Models (LLMs) like ChatGPT and GPT-4 become increasingly integrated into daily life, their potential to generate harmful or "toxic" output—ranging from hate speech and biased social values to instructions for illegal acts—poses a significant societal risk. While safety research for English-centric models is maturing, a comprehensive, standardized safety assessment for Chinese LLMs has been notably absent.

Safety in a Chinese context involves more than just translating English benchmarks; it requires navigating specific linguistic nuances, cultural values, and sophisticated "instruction attacks." These adversarial prompts attempt to bypass a model's safety filters through clever semantic phrasing rather than simple keywords. Researchers from Tsinghua University have addressed this gap by introducing a comprehensive safety benchmark specifically designed for the Chinese LLM ecosystem.

The Safety Assessment Framework

The researchers developed a multi-tiered framework to rigorously test model robustness across 14 safety dimensions. This framework categorizes risks into two primary types: "Typical Safety Scenarios" and "Instruction Attacks."

The multi-tiered safety assessment framework, including taxonomy and evaluation loop.

Methodology

  1. Taxonomy Construction: The benchmark defines 8 "Typical Safety Scenarios" (e.g., Insult, Mental Health, Privacy) and 6 "Instruction Attacks" (e.g., Goal Hijacking, Prompt Leaking, Reverse Exposure).
  2. LLM-as-a-Judge: To overcome the limitations of human evaluation, the researchers utilized InstructGPT as an automated safety evaluator. Through prompt engineering, the LLM acts as a judge to determine if a model's response to a hazardous prompt is safe.
  3. Adversarial Prompting: The team employed "red-teaming" tactics, incentivizing crowd-workers to trigger unsafe content generation.
  4. Data Augmentation: Using GPT-3.5-turbo, they expanded a small set of manual prompts into a massive library of 100,000 safety-related prompts to facilitate further research.

Datasets

The study introduces two primary resources for the community:

  • The Benchmark Set: A collection of manually written prompts covering the 14 safety dimensions, split into a public test set (~2k prompts) and a private set for official leaderboard rankings.
  • SAFETYPROMPTS: A large-scale dataset containing 100,000 augmented prompts and their corresponding responses, intended as a training resource to help fine-tune models against harmful inputs.

Key Findings and Model Performance

The researchers evaluated 15 major models, revealing critical insights into the current state of LLM safety. A primary finding is that Instruction Tuning acts as a safety shield; models fine-tuned to follow instructions (like ChatGPT or ChatGLM) performed significantly better than raw pre-trained models (like BLOOM).

Comparison of safety scores across typical scenarios and instruction attacks.

The "Instruction Attack" Gap

While many Chinese models are nearly as safe as ChatGPT in typical scenarios, they fall behind significantly when faced with "Instruction Attacks." For example, in Goal Hijacking, ChatGPT scored over 20 points higher than the next best model. This confirms that semantic "jailbreaking" remains the frontier of LLM vulnerability.

Scenario-Dependent Safety

Safety performance is often uneven across categories. Interestingly, in the "Sensitive Topics" category, some Chinese models outperformed ChatGPT, suggesting that localized safety training is highly effective for specific cultural and political contexts. Conversely, "Role Play" instructions proved particularly effective at "breaking" models, as attackers can bypass filters by asking a model to "act as" a harmful persona.

Conclusion and Future Directions

The study concludes that model scale does not guarantee safety; rather, the quality of safety-specific fine-tuning is the primary predictor of performance. While current benchmarks provide a vital baseline, the authors acknowledge that using an LLM as a judge may introduce its own biases.

Future work will focus on multi-turn dialogues, where a model might be coaxed into an unsafe state over several exchanges, and the continuous update of the benchmark to keep pace with increasingly sophisticated adversarial prompting techniques.

Summary updated

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