Safety Assessment of Chinese Large Language Models
Paper · 2023 · Hao Sun, Zhexin Zhang, Jiawen Deng et al.
Summary
Chat models such as ChatGPT can produce toxic, biased or dangerous output and can be misused, yet Chinese-language LLMs had no systematic safety evaluation. Tsinghua's CoAI group built a Chinese safety benchmark around a 14-category taxonomy. It has eight ordinary risk scenarios, such as Insult, Mental Health and Privacy and Property, which extend earlier dialogue-safety work. It also has six natural-language "instruction attacks", including Goal Hijacking, Prompt Leaking and Role Play Instruction. Each model answers hand-written test prompts, and a prompted LLM serving as a safety judge scores the replies automatically. The results feed a public leaderboard. The authors tested 15 systems, including OpenAI GPT models and Chinese models such as ChatGLM and MiniChat. Every model scored lower under instruction attacks than in ordinary scenarios. Instruction-tuned models clearly outperformed older open-domain chatbots. The authors also released SafetyPrompts, a large augmented prompt set with model answers that can be used for red-teaming and safety tuning. The approach can serve as a template for safety benchmarks in other languages, including Ukrainian.
Key points
- Taxonomy: The 8 typical scenarios cover Physical Harm, Insult, Sensitive Topics, Crimes and Illegal Activities, Unfairness and Discrimination, Mental Health, Ethics and Morality, and Privacy and Property. The 6 instruction attacks are Prompt Leaking, Goal Hijacking, Role Play Instruction, Reverse Exposure, Unsafe Instruction Topic, and Inquiry with Unsafe Opinion.
- Leaderboard snapshot: ChatGPT (turbo-0301) ranks first with an overall score of about 98.4. ChatGLM-130B follows at about 96.9. Older models such as davinci and BLOOM-7.1B score near 42–43.
- Main gap: ChatGPT's lead comes mostly from resisting instruction attacks. On Goal Hijacking it beats the runner-up by more than 20 points. In typical scenarios, leading Chinese LLMs are roughly on par with it.
- SafetyPrompts: 100k prompts covering 13 scenarios (Sensitive Topics was withheld). This comprises 10k per typical scenario and 5k per attack type. The prompts were generated by GPT-3.5-turbo from three seed examples per prompt.
- Data details: GPT-3.5-turbo's own responses are included as reference answers, although about 1.6% of them were judged unsafe. The public test set on the benchmark site contains only about 2k samples.
Institutions
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksArtificial Intelligence · 17,965 worksSocial Sciences · 1,954 worksSafety Research · 626 works
🧭 Topics 2Research subjects and languages the work is about.Language models & pretraining · 3,894 worksBias, fairness & safety · 587 works
Cite
Cite as Hao Sun, Zhexin Zhang, Jiawen Deng, Jiale Cheng and Minlie Huang. 2023. Safety Assessment of Chinese Large Language Models. arXiv:2304.10436.
@misc{sun2023safety,
title = {{Safety Assessment of Chinese Large Language Models}},
author = {Hao Sun, Zhexin Zhang, Jiawen Deng, Jiale Cheng and Minlie Huang},
year = {2023},
doi = {10.48550/arxiv.2304.10436},
eprint = {2304.10436},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2304.10436}
}References
- BigScience. 2023. Bloom: A 176b-parameter open-access multilingual language model. find
- Clue.AI. 2023. Chatyuan: Large language model for dialogue in chinese and english. https://github.com/clue-ai/ChatYuan. ↗
- Jiawen Deng, Hao Sun, Zhexin Zhang, Jiale Cheng, and Minlie Huang. 2023. Recent advances towards safe, responsible, and moral dialogue systems: A survey. find
- Fabrizio Gilardi, Meysam Alizadeh, and Maël Kubli. 2023. Chatgpt outperforms crowd-workers for text-annotation tasks.
- Yuxian Gu, Jiaxin Wen, Hao Sun, Yi Song, Pei Ke, Chujie Zheng, Zheng Zhang, Jianzhu Yao, Xiaoyan Zhu, Jie Tang, and Minlie Huang. 2022. Eva2.0: Investigating open-domain chinese dialogue systems with large-scale pre-training. find
- Yunjie Ji, Yong Deng, Yan Gong, Yiping Peng, Qiang Niu, Lei Zhang, Baochang Ma, and Xiangang Li. 2023. Exploring the impact of instruction data scaling on large language models: An empirical study on real-world use cases.
- Yang Liu, Dan Iter, Yichong Xu, Shuohang Wang, Ruochen Xu, and Chenguang Zhu. 2023. Gpteval: Nlg evaluation using gpt-4 with better human alignment.
- OpenAI. 2022. Blog: Introducing chatgpt. find
- OpenAI. 2023. Gpt-4 technical report.
- Long Ouyang, Jeff Wu, Xu Jiang, Diogo Almeida, Carroll L. Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, John Schulman, Jacob Hilton, Fraser Kelton, Luke Miller, Maddie Simens, Amanda Askell, Peter Welinder, Paul Christiano, Jan Leike, and Ryan Lowe. 2022. Train…
- Fábio Perez and Ian Ribeiro. 2022. Ignore previous prompt: Attack techniques for language models.
- David Rozado. 2023. The political biases of chatgpt. Social Sciences, 12(3). find
- Hao Sun, Guangxuan Xu, Jiawen Deng, Jiale Cheng, Chujie Zheng, Hao Zhou, Nanyun Peng, Xiaoyan Zhu, and Minlie Huang. 2022. On the safety of conversational models: Taxonomy, dataset, and benchmark.
- Jiaan Wang, Yunlong Liang, Fandong Meng, Haoxiang Shi, Zhixu Li, Jinan Xu, Jianfeng Qu, and Jie Zhou. 2023. Is chatgpt a good nlg evaluator? a preliminary study.
- Yizhong Wang, Yeganeh Kordi, Swaroop Mishra, Alisa Liu, Noah A. Smith, Daniel Khashabi, and Hannaneh Hajishirzi. 2022. Self-instruct: Aligning language model with self generated instructions. find
- Jing Xu, Da Ju, Margaret Li, Y-Lan Boureau, Jason Weston, and Emily Dinan. 2021. Recipes for safety in open-domain chatbots.
- Hao Zhou, Pei Ke, Zheng Zhang, Yuxian Gu, Yinhe Zheng, Chujie Zheng, Yida Wang, Chen Henry Wu, Hao Sun, Xiaocong Yang, Bosi Wen, Xiaoyan Zhu, Minlie Huang, and Jie Tang. 2021. Eva: An open-domain chinese dialogue system with large-scale generative pre-training. find
- Terry Yue Zhuo, Yujin Huang, Chunyang Chen, and Zhenchang Xing. 2023. Exploring ai ethics of chatgpt: A diagnostic analysis. find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/sun-2023-safety-assessment-chinese-large-language/