English

Enhancing LLM-based Hatred and Toxicity Detection with Meta-Toxic Knowledge Graph

Computation and Language 2025-06-03 v4 Artificial Intelligence

Abstract

The rapid growth of social media platforms has raised significant concerns regarding online content toxicity. When Large Language Models (LLMs) are used for toxicity detection, two key challenges emerge: 1) the absence of domain-specific toxic knowledge leads to false negatives; 2) the excessive sensitivity of LLMs to toxic speech results in false positives, limiting freedom of speech. To address these issues, we propose a novel method called MetaTox, leveraging graph search on a meta-toxic knowledge graph to enhance hatred and toxicity detection. First, we construct a comprehensive meta-toxic knowledge graph by utilizing LLMs to extract toxic information through a three-step pipeline, with toxic benchmark datasets serving as corpora. Second, we query the graph via retrieval and ranking processes to supplement accurate, relevant toxic knowledge. Extensive experiments and in-depth case studies across multiple datasets demonstrate that our MetaTox significantly decreases the false positive rate while boosting overall toxicity detection performance. Our code is available at https://github.com/YiboZhao624/MetaTox.

Keywords

Cite

@article{arxiv.2412.15268,
  title  = {Enhancing LLM-based Hatred and Toxicity Detection with Meta-Toxic Knowledge Graph},
  author = {Yibo Zhao and Jiapeng Zhu and Can Xu and Yao Liu and Xiang Li},
  journal= {arXiv preprint arXiv:2412.15268},
  year   = {2025}
}

Comments

8 pages of content

R2 v1 2026-06-28T20:42:53.931Z