首页|期刊导航|计算机工程与应用|多尺度上下文与动态词典增强的中文毒性言论检测

多尺度上下文与动态词典增强的中文毒性言论检测OA

Chinese Toxic Speech Detection Integrating Multi-Scale Context and Dynamic Dictionary Enhancement

中文摘要英文摘要

当前中文毒性言论检测模型在处理表达隐晦、形式多变的"语义变体"时,普遍因采用孤立分析文本的方法而能力受限.为打破此局限,提出一种多尺度上下文与动态词典增强的中文毒性言论检测方法(GLL-Tox).该方法的核心思想是构建一个系统性的分析框架,将待测文本置于"宏观-微观-先验"三维信息场中进行综合研判.具体而言,方法通过宏观语义基准建模捕获语料的宏观语义分布以提供稳定判别基准;借助局部环境特征模块检索相似样本构建微观语境以增强对变体的识别鲁棒性;并利用词典特征增强模块将领域先验知识动态注入到语义焦点上.在TOXICN和COLDataset两个公开数据集上的实验表明,GLL-Tox的F1分数分别达到83.98%和83.65%,相较RoBERTa基线模型显著提升3.68和3.35个百分点,性能全面优于现有对比方法.研究证明,系统性地融合宏观语料分布、微观相似语境与领域先验知识,是提升中文毒性言论检测准确性与鲁棒性的有效范式.

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.

彭明阳;罗卫萍;罗云;黄晓辉

中国人民解放军国防科技大学,南京 210039中国人民解放军国防科技大学,南京 210039中国人民解放军国防科技大学,南京 210039中国人民解放军国防科技大学,南京 210039

信息技术与安全科学

RoBERTa毒性言论检测特征融合多尺度上下文特征动态词典特征增强

RoBERTatoxic speech detectionfeature fusionmulti-scale context featuresdynamic dictionary feature enhancement

《计算机工程与应用》 2026 (18)

112-123,12

国家社会科学基金(23BGJ078).

10.3778/j.issn.1002-8331.2507-0274

评论