[Paper Review] COLD: A Benchmark for Chinese Offensive Language Detection
This paper introduces COLD, a benchmark for Chinese offensive language detection comprising the COLDataset (37,480 annotated comments) and the COLDetector, a BERT-based classifier fine-tuned on the dataset. The benchmark reveals that both offensive and non-offensive inputs—especially anti-bias and group-targeting prompts—can trigger offensive generations in Chinese language models, highlighting critical safety risks in deployment.
Offensive language detection is increasingly crucial for maintaining a civilized social media platform and deploying pre-trained language models. However, this task in Chinese is still under exploration due to the scarcity of reliable datasets. To this end, we propose a benchmark --COLD for Chinese offensive language analysis, including a Chinese Offensive Language Dataset --COLDATASET and a baseline detector --COLDETECTOR which is trained on the dataset. We show that the COLD benchmark contributes to Chinese offensive language detection which is challenging for existing resources. We then deploy the COLDETECTOR and conduct detailed analyses on popular Chinese pre-trained language models. We first analyze the offensiveness of existing generative models and show that these models inevitably expose varying degrees of offensive issues. Furthermore, we investigate the factors that influence the offensive generations, and we find that anti-bias contents and keywords referring to certain groups or revealing negative attitudes trigger offensive outputs easier.
Motivation & Objective
- To address the lack of reliable datasets and detectors for Chinese offensive language detection.
- To evaluate the offensiveness of popular Chinese generative language models and identify triggers of offensive outputs.
- To investigate whether non-offensive inputs, such as anti-bias prompts, can still induce offensive generations.
- To provide a standardized benchmark for future research on offensive language in Chinese NLP.
- To raise awareness about overlooked safety risks in models prompted with seemingly neutral or ethical content.
Proposed method
- The COLDataset is constructed through semi-automated and manual annotation of 37,480 Chinese social media comments with binary offensive labels.
- A fine-grained annotation scheme is applied to the test set, categorizing offensive content into: attacking individuals, attacking groups, anti-bias, and other non-offensive types.
- COLDetector is a BERT-base-Chinese model fine-tuned on the COLDataset to serve as a baseline offensive language detector.
- The benchmark is used to evaluate offensive generation risks in three prominent Chinese generative models: CDialGPT, CPM, and EVA.
- Input prompts are systematically varied to analyze triggering factors, including anti-bias language, group-specific keywords, and negative attitude words.
- Statistical analysis compares offensive output rates across different input types to identify high-risk triggers.
Experimental results
Research questions
- RQ1To what extent do Chinese generative language models produce offensive outputs when prompted with non-offensive or anti-bias content?
- RQ2Which input types—such as group-targeting keywords or negative attitude words—are most likely to trigger offensive generations?
- RQ3How does the COLDetector perform compared to existing methods on Chinese offensive language detection?
- RQ4Can a benchmark like COLD help identify and mitigate safety risks in Chinese language models before deployment?
- RQ5Why do some non-offensive inputs induce offensive outputs at rates comparable to explicitly offensive inputs?
Key findings
- Both offensive and non-offensive inputs can trigger offensive generations in Chinese language models, with non-offensive inputs—especially anti-bias prompts—showing comparable offensive output rates to explicitly offensive inputs.
- Anti-bias content, which promotes fairness, is more likely to trigger offensive outputs due to embedded group-specific keywords and negative attitude words.
- The COLDetector achieves strong performance on the COLDataset, outperforming existing methods when fine-tuned on the proposed benchmark.
- The benchmark reveals that contextual information is not captured in the current dataset, suggesting a need for future work on dialogue-level offensive language detection.
- The baseline model's performance is limited by data coverage and training techniques, indicating room for improvement with more diverse and fine-grained annotations.
- The study underscores the risk of overlooking safety issues in inputs that appear ethically neutral or positive, calling for broader detection criteria in model evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.