Towards Robust Detection of Chinese Toxic Variants via Dynamic Knowledge Graph–LLM Reasoning

Read full text
Authors: Shaochen Yang, Kefei Zhou, Wei Xiang Xu
Cited by: 1
References: 9

Abstract

With the growing importance of content safety, toxic language detection, especially in Chinese online environments, has become a key task in natural language processing. However, real-world toxic expressions often appear in obfuscated forms such as pinyin abbreviations, symbol insertion, or visually similar substitutions, making them difficult to detect using traditional rule-based or static models. To address this challenge, we propose a dynamic knowledge graph construction method for toxic text variants, named Variant-KG. This graph encodes diverse structural relations between canonical toxic terms and their variants based on phonetic similarity, visual resemblance, and contextual co-occurrence. A small amount of labeled data is further used to fine-tune large language models (LLMs), enabling initial normalization and variant recognition. On top of this, we design a collaborative detection framework that combines the Variant-KG with frozen LLMs. It performs graph augmented prompting for structure-aware reasoning and adopts a Think-Search-Generate paradigm to dynamically recover broken paths when graph connections are incomplete, enabling both data self-enhancement and knowledge completion during inference. Evaluations on multiple Chinese toxic language datasets show that our model consistently outperforms both non-knowledge-enhanced and existing knowledge-enhanced baselines, demonstrating the effectiveness of our proposed dynamic reasoning framework in handling diverse toxic expressions.

Fields of Study & Subjects

Hate Speech and Cyberbullying Detection Topic Modeling Natural Language Processing Techniques

Publication details

Journal / source
Proceedings of the ACM Web Conference 2026
Publisher
ACM
Pages
3183–3194
Publication date
12 April 2026
Language
EN