arXiv:2410.10153cs.CLcs.CY2024-10被引 4

对比人机对仇恨言论的判断差异,发现机器在长文本上更准,短骂词却容易漏判。

Diagnosing Hate Speech Classification: Where Do Humans and Machines Disagree, and Why?

  • 用余弦相似度和嵌入回归分析标注不一致问题
  • 模型测试准确率达94%,但对短骂词识别能力弱
  • 因模型对齐机制导致对极端语言敏感性下降,适合研究标注偏差者

本研究采用余弦相似度比率、嵌入回归与人工重新标注的方法,诊断仇恨言论分类问题。基于包含135,556条社交媒体评论的'Measuring Hate Speech'数据集,我们首先计算余弦相似度比率,展示其作为仇恨言论内容描述的初步应用。接着,通过嵌入回归诊断人类标注的不一致性,发现女性标注者对针对黑人群体的种族侮辱语更敏感。进一步使用当前最优预训练大语言模型NV-Embed-v2将文本转换为嵌入,并运行逻辑回归构建分类器,该模型在测试集上达到94%准确率。在诊断机器与人类标注者的分歧时发现,尽管人类标注被视为训练集的真值,机器反而犯错更少;机器在正确标注长篇事实性陈述方面表现更优,但在短骂词标注上表现较差。我们推测这源于模型对齐机制——虽然模型训练中避免生成明显仇恨言论,但也削弱了其检测此类内容的能力。

原文摘要 · Abstract (English)

This study uses the cosine similarity ratio, embedding regression, and manual re-annotation to diagnose hate speech classification. We begin by computing cosine similarity ratio on a dataset "Measuring Hate Speech" that contains 135,556 annotated comments on social media. This way, we show a basic use of cosine similarity as a description of hate speech content. We then diagnose hate speech classification starting from understanding the inconsistency of human annotation from the dataset. Using embedding regression as a basic diagnostic, we found that female annotators are more sensitive to racial slurs that target the black population. We perform with a more complicated diagnostic by training a hate speech classifier using a SoTA pre-trained large language model, NV-Embed-v2, to convert texts to embeddings and run a logistic regression. This classifier achieves a testing accuracy of 94%. In diagnosing where machines disagree with human annotators, we found that machines make fewer mistakes than humans despite the fact that human annotations are treated as ground truth in the training set. Machines perform better in correctly labeling long statements of facts, but perform worse in labeling short instances of swear words. We hypothesize that this is due to model alignment - while curating models at their creation prevents the models from producing obvious hate speech, it also reduces the model's ability to detect such content.

仇恨言论标注差异模型对齐

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。