大型语言模型(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.
Detoxify: A framework for abusive text transformation using LLMs
Transitional Artificial Intelligence Research Group, School of Mathematics and Statistics, UNSW(过渡人工智能研究组,数学与统计学学院,新南威尔士大学);Centre for Artificial Intelligence and Innovation, Pingla Institute(人工智能与创新中心,Pingla研究所)
University of Southern California(南加州大学);Information Sciences Institute(信息科学研究所);Cyber-Defence Campus, armasuisse Science and Technology(瑞士联邦国防科技局网络防御园区)
HateMirage: An Explainable Multi-Dimensional Dataset for Decoding Faux Hate and Subtle Online Abuse
Indian Institute of Information Technology Dharwad(印度信息技术学院达尔瓦德);Manipal Institute of Technology, Manipal Academy of Higher Education(曼普及高等教育学院技术学院);Indraprastha Institute of Information Technology Delhi(印度普拉斯塔信息技术学院德里)
AbuseAnalyzer: Abuse Detection, Severity and Target Prediction for Gab Posts
International Institute of Information Technology Hyderabad(海得拉巴国际信息技术研究所);Indraprastha Institute of Information Technology Delhi(德里英德拉普拉斯塔信息技术研究所);Microsoft(微软)
Overview of the HASOC Subtrack at FIRE 2021: Hate Speech and Offensive Content Identification in English and Indo-Aryan Languages
University of Hildesheim(希尔德斯海姆大学);LDRP-ITR;University of Duisburg-Essen(杜伊斯堡-埃森大学);Indian Institute of Science(印度科学理工学院);DA-IICT;University of Wolverhampton(伍尔弗汉普顿大学);Rochester Institute of Technology(罗切斯特理工学院);University of Bamberg(班贝格大学);University of Bedfordshire(贝德福德大学);University of Leeds(利兹大学)
仇恨言论等攻击性内容在网上的广泛传播构成了日益严重的社会问题。人工智能工具对于支持在线平台的审核过程是必要的。为了评估这些识别工具,需要对不同语言的数据集进行连续实验。HASOC(Hate Speech and Offensive Content Identification,仇恨言论和攻击性内容识别)专门为此目的开发基准数据。本文介绍了英语,印地语和马拉地语的HASOC子轨道。该数据集来自Twitter。此子路径有两个子任务。任务A是针对所有三种语言的二元分类问题(仇恨和不冒犯)。任务B是一个细粒度的分类问题,分为三类(仇恨)仇恨言论,进攻和专业提供的英语和印地语。总共有65支球队提交了652次跑步。任务A的最佳分类算法的性能是F1措施0.91,0.78和0.83马拉地语,印地语和英语,分别。本概述介绍了任务和数据开发以及详细结果。提交竞赛的系统应用了各种技术。性能最好的算法主要是Transformer架构的变体。
Overview of the HASOC track at FIRE 2020: Hate Speech and Offensive Content Identification in Indo-European Languages
University of Hildesheim(希尔德斯海姆大学);LDRP-ITR;University of Duisburg-Essen(杜伊斯堡-埃森大学);University of Bedfordshire(贝德福德大学);University of Leeds(利兹大学);University of Bamberg(班贝格大学);Dalhousie University(达尔豪斯大学);DA-IICT
VAIS Hate Speech Detection System: A Deep Learning based Approach for System Combination
Vietnam Artificial Intelligence System(越南人工智能系统);Hanoi University of Science and Technology(河内理工大学);Thai Nguyen University of Education(太原师范大学);Thai Nguyen University(太原大学);Hanoi University of Mining and Geology(河内矿业地质大学)
The Uli Dataset: An Exercise in Experience Led Annotation of oGBV
University of Copenhagen(哥本哈根大学);Tattle Civic Tech(塔特尔公民科技);Bebaak Collective(贝巴克集体);National Council of Women Leaders(全国女性领袖委员会);Chambal Media/Khabar Lahariya(昌巴尔媒体/赫拉哈里亚新闻);Center for Internet and Society(互联网与社会中心)