DOI: 10.3390/app16157805 ISSN: 2076-3417

Neuron-Level Iterative Debiasing and Semantic Compensation for Chinese Toxic Language Detection

Shan Jin, Daoxiang Cheng, Xiaochao Fan, Yujie Liu

Toxic language detection is an important task for online content moderation. However, existing models often associate neutral group-related terms—such as identity, regional, or demographic expressions—with toxic labels, producing false-positive bias in which benign texts containing such terms are misclassified as toxic. To address this, we propose NISC, a neuron-level iterative debiasing and semantic compensation framework for Chinese toxic language detection. Starting from a trained detector, NISC first identifies bias sources from high-confidence false-positive samples without a manually predefined lexicon. It then builds paired samples with and without each bias source and compares neuron-level toxic contributions between them. Guided by this contribution difference, NISC locates neurons that drive false-positive predictions and weakens them through iterative pruning. To offset the semantic degradation that pruning may cause, NISC uses a large language model to generate benign non-toxic samples that contain the identified bias sources but express no attack, insult, discrimination, or hatred, and applies them for lightweight compensation training with the pruning mask fixed. Experiments on multiple Chinese toxic language datasets show that NISC lowers the false-positive rate on group-related neutral texts while largely preserving conventional detection performance.

More from our Archive