HABERTOR:一种高效的深度Hatespeech检测器
HABERTOR: An Efficient and Effective Deep Hatespeech Detector
摘要:
我们提出了我们的HABERTOR模型检测大规模用户生成的内容中的仇恨言论。受最近成功的BERT模型的启发,我们提出了几个修改BERT,以提高下游hatespeech分类任务的性能。HABERTOR继承了BERT的体系结构,但在四个方面有所不同:(i)它生成自己的词汇表,并使用最大规模的hatespeech数据集从头开始进行预训练;(ii)它由基于四元数的因子分解组件组成,导致参数数量少得多,训练和推理速度更快,以及内存使用量更少;(iii)它使用我们提出的多源集成头,其中具有用于单独输入源的池化层,以进一步提高其有效性;以及(iv)它使用正则化对抗训练,其中具有我们提出的细粒度和自适应噪声幅度,以提高其鲁棒性。通过对具有1.4M注释评论的大规模真实世界仇恨语音数据集的实验,我们表明HABERTOR的效果优于15种最先进的仇恨语音检测方法,包括微调语言模型。特别是,与BERT相比,我们的HABERTOR在训练/推理阶段的速度快4~5倍,使用不到1/3的内存,并且具有更好的性能,即使我们用不到1%的单词数对其进行预训练。我们的概括性分析表明,HABERTOR转移到其他看不见的仇恨言论数据集,是一个更有效和有效的替代BERT的仇恨言论分类。
英文摘要:
We present our HABERTOR model for detecting hatespeech in large scale user-generated content. Inspired by the recent success of the BERT model, we propose several modifications to BERT to enhance the performance on the downstream hatespeech classification task. HABERTOR inherits BERT's architecture, but is different in four aspects: (i) it generates its own vocabularies and is pre-trained from the scratch using the largest scale hatespeech dataset; (ii) it consists of Quaternion-based factorized components, resulting in a much smaller number of parameters, faster training and inferencing, as well as less memory usage; (iii) it uses our proposed multi-source ensemble heads with a pooling layer for separate input sources, to further enhance its effectiveness; and (iv) it uses a regularized adversarial training with our proposed fine-grained and adaptive noise magnitude to enhance its robustness. Through experiments on the large-scale real-world hatespeech dataset with 1.4M annotated comments, we show that HABERTOR works better than 15 state-of-the-art hatespeech detection methods, including fine-tuning Language Models. In particular, comparing with BERT, our HABERTOR is 4~5 times faster in the training/inferencing phase, uses less than 1/3 of the memory, and has better performance, even though we pre-train it by using less than 1% of the number of words. Our generalizability analysis shows that HABERTOR transfers well to other unseen hatespeech datasets and is a more efficient and effective alternative to BERT for the hatespeech classification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。