计算机工程与应用2026,Vol.62Issue(18):112-123,12.DOI:10.3778/j.issn.1002-8331.2507-0274
多尺度上下文与动态词典增强的中文毒性言论检测
Chinese Toxic Speech Detection Integrating Multi-Scale Context and Dynamic Dictionary Enhancement
摘要
Abstract
Current Chinese toxicity detection models are generally limited in their ability to handle the"semantic vari-ants"that are expressed in an obscure and diverse manner due to their isolated text analysis approach.To break this limita-tion,this paper proposes a multi-scale context and dynamic dictionary enhanced Chinese toxicity detection method(GLL-Tox).The core idea of this method is to construct a systematic analysis framework,placing the text to be tested in a three-dimensional information field of"macro-micro-prior"for comprehensive judgment.Specifically,the method captures the macro semantic distribution of the corpus through macro semantic benchmark modeling to provide a stable discrimination benchmark;it retrieves similar samples through the local environment feature module to construct a micro context to enhance the robustness of variant recognition;and it dynamically injects domain prior knowledge into the semantic focus through the dictionary feature enhancement module.Experiments on the TOXICN and COLDataset public datasets show that the F1 scores of GLL-Tox reach 83.98%and 83.65%respectively,significantly improving by 3.68 and 3.35 percentage points compared to the RoBERTa baseline model,and outperforming existing comparison methods in all aspects.This study proves that systematically integrating macro corpus distribution,micro similar context and domain prior knowledge is an effective paradigm for improving the accuracy and robustness of Chinese toxicity detection.关键词
RoBERTa/毒性言论检测/特征融合/多尺度上下文特征/动态词典特征增强Key words
RoBERTa/toxic speech detection/feature fusion/multi-scale context features/dynamic dictionary feature enhancement分类
信息技术与安全科学引用本文复制引用
彭明阳,罗卫萍,罗云,黄晓辉..多尺度上下文与动态词典增强的中文毒性言论检测[J].计算机工程与应用,2026,62(18):112-123,12.基金项目
国家社会科学基金(23BGJ078). (23BGJ078)