A Chinese Dataset for Evaluating the Safeguards in Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Yuxia, Zhai, Zenan, Li, Haonan, Han, Xudong, Lin, Lizhi, Zhang, Zhenxuan, Zhao, Jingru, Nakov, Preslav, Baldwin, Timothy
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866929447947468800
author Wang, Yuxia
Zhai, Zenan
Li, Haonan
Han, Xudong
Lin, Lizhi
Zhang, Zhenxuan
Zhao, Jingru
Nakov, Preslav
Baldwin, Timothy
author_facet Wang, Yuxia
Zhai, Zenan
Li, Haonan
Han, Xudong
Lin, Lizhi
Zhang, Zhenxuan
Zhao, Jingru
Nakov, Preslav
Baldwin, Timothy
contents Many studies have demonstrated that large language models (LLMs) can produce harmful responses, exposing users to unexpected risks when LLMs are deployed. Previous studies have proposed comprehensive taxonomies of the risks posed by LLMs, as well as corresponding prompts that can be used to examine the safety mechanisms of LLMs. However, the focus has been almost exclusively on English, and little has been explored for other languages. Here we aim to bridge this gap. We first introduce a dataset for the safety evaluation of Chinese LLMs, and then extend it to two other scenarios that can be used to better identify false negative and false positive examples in terms of risky prompt rejections. We further present a set of fine-grained safety assessment criteria for each risk type, facilitating both manual annotation and automatic evaluation in terms of LLM response harmfulness. Our experiments on five LLMs show that region-specific risks are the prevalent type of risk, presenting the major issue with all Chinese LLMs we experimented with. Our data is available at https://github.com/Libr-AI/do-not-answer. Warning: this paper contains example data that may be offensive, harmful, or biased.
format Preprint
id arxiv_https___arxiv_org_abs_2402_12193
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Chinese Dataset for Evaluating the Safeguards in Large Language Models
Wang, Yuxia
Zhai, Zenan
Li, Haonan
Han, Xudong
Lin, Lizhi
Zhang, Zhenxuan
Zhao, Jingru
Nakov, Preslav
Baldwin, Timothy
Computation and Language
Many studies have demonstrated that large language models (LLMs) can produce harmful responses, exposing users to unexpected risks when LLMs are deployed. Previous studies have proposed comprehensive taxonomies of the risks posed by LLMs, as well as corresponding prompts that can be used to examine the safety mechanisms of LLMs. However, the focus has been almost exclusively on English, and little has been explored for other languages. Here we aim to bridge this gap. We first introduce a dataset for the safety evaluation of Chinese LLMs, and then extend it to two other scenarios that can be used to better identify false negative and false positive examples in terms of risky prompt rejections. We further present a set of fine-grained safety assessment criteria for each risk type, facilitating both manual annotation and automatic evaluation in terms of LLM response harmfulness. Our experiments on five LLMs show that region-specific risks are the prevalent type of risk, presenting the major issue with all Chinese LLMs we experimented with. Our data is available at https://github.com/Libr-AI/do-not-answer. Warning: this paper contains example data that may be offensive, harmful, or biased.
title A Chinese Dataset for Evaluating the Safeguards in Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2402.12193