arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.05624cs.CLcs.AIcs.HC
收藏

高效检测仇恨、辱骂和亵渎内容的模型

Efficient Models for the Detection of Hate, Abuse and Profanity

IBM Research AI(IBM研究院人工智能部门)

Christoph Tillmann, Aashka Trivedi, Bishwaranjan Bhattacharjee

AI总结:

本文针对大型语言模型因训练数据含仇恨、辱骂和亵渎内容而产生不当输出,提出创建HAP检测器并介绍多种应用方式,以提升模型输出的文明性与可接受性。

摘要:

大型语言模型(LLMs)是许多自然语言处理(NLP)任务的基石,如情感分析、文档分类、命名实体识别、问答、摘要等。LLMs通常基于源自网络的数据进行训练,这些数据容易包含仇恨、辱骂和亵渎(HAP)内容。关于HAP的详细定义,请参考附录。由于LLMs在训练期间接触到HAP内容,模型会学习这些内容,并可能生成仇恨或亵渎性的输出。例如,当来自HuggingFace(HF)Transformers库的开源RoBERTa模型(具体为RoBERTa base模型)被提示填充`I do not know that Persian people are that MASK`中的掩码标记时,它以最高得分返回单词`stupid`。这在文明对话中是不可接受的。在文本中检测仇恨、辱骂和亵渎内容是构建文明且无偏见的LLMs的关键组成部分,这不仅对英语必要,而且对所有语言都必要。在本文中,我们简要描述了HAP检测器的创建方法,以及使用它们使模型在生成输出时保持文明和可接受的多种方式。

英文摘要:

Large Language Models (LLMs) are the cornerstone for many Natural Language Processing (NLP) tasks like sentiment analysis, document classification, named entity recognition, question answering, summarization, etc. LLMs are often trained on data which originates from the web. This data is prone to having content with Hate, Abuse and Profanity (HAP). For a detailed definition of HAP, please refer to the Appendix. Due to the LLMs being exposed to HAP content during training, the models learn it and may then generate hateful or profane content. For example, when the open-source RoBERTa model (specifically, the RoBERTA base model) from the HuggingFace (HF) Transformers library is prompted to replace the mask token in `I do not know that Persian people are that MASK` it returns the word `stupid` with the highest score. This is unacceptable in civil discourse.The detection of Hate, Abuse and Profanity in text is a vital component of creating civil and unbiased LLMs, which is needed not only for English, but for all languages. In this article, we briefly describe the creation of HAP detectors and various ways of using them to make models civil and acceptable in the output they generate.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑