Efficient Models for the Detection of Hate, Abuse and Profanity

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tillmann, Christoph, Trivedi, Aashka, Bhattacharjee, Bishwaranjan
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913227671076864
author Tillmann, Christoph
Trivedi, Aashka
Bhattacharjee, Bishwaranjan
author_facet Tillmann, Christoph
Trivedi, Aashka
Bhattacharjee, Bishwaranjan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2402_05624
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Models for the Detection of Hate, Abuse and Profanity
Tillmann, Christoph
Trivedi, Aashka
Bhattacharjee, Bishwaranjan
Computation and Language
Artificial Intelligence
Human-Computer Interaction
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.
title Efficient Models for the Detection of Hate, Abuse and Profanity
topic Computation and Language
Artificial Intelligence
Human-Computer Interaction
url https://arxiv.org/abs/2402.05624