HateRephrase: Zero- and Few-Shot Reduction of Hate Intensity in Online Posts using Large Language Models
Not on the map. Why?
Abstract (arXiv)
Hate speech has become pervasive in today's digital age. Although there has been considerable research to detect hate speech or generate counter speech to combat hateful views, these approaches still cannot completely eliminate the potential harmful societal consequences of hate speech -- hate speech, even when detected, can often not be taken down or is often not taken down enough; and hate speech unfortunately spreads quickly, often much faster than any generated counter speech. This paper investigates a relatively new yet simple and effective approach of suggesting a rephrasing of potential hate speech content even before the post is made. We show that Large Language Models (LLMs) perform well on this task, outperforming state-of-the-art baselines such as BART-Detox. We develop 4 different prompts based on task description, hate definition, few-shot demonstrations and chain-of-thoughts for comprehensive experiments and conduct experiments on open-source LLMs such as LLaMA-1, LLaMA-2 chat, Vicuna as well as OpenAI's GPT-3.5. We propose various evaluation metrics to measure the efficacy of the generated text and ensure the generated text has reduced hate intensity without drastically changing the semantic meaning of the original text. We find that LLMs with a few-shot demonstrations prompt work the best in generating acceptable hate-rephrased text with semantic meaning similar to the original text. Overall, we find that GPT-3.5 outperforms the baseline and open-source models for all the different kinds of prompts. We also perform human evaluations and interestingly, find that the rephrasings generated by GPT-3.5 outperform even the human-generated ground-truth rephrasings in the dataset. We also conduct detailed ablation studies to investigate why LLMs work satisfactorily on this task and conduct a failure analysis to understand the gaps.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 13 of its 41 references that are in the map. First posted on arXiv 21 Oct 2023.
Builds on
13 of 41 references.
References · 13
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 736
- 2023Can ChatGPT Reproduce Human-Generated Labels? A Study of Social Computing Taskscited by 89
- 2023Evaluating GPT-3 Generated Explanations for Hateful Content Moderationcited by 46
- 2021Generate, Prune, Select: A Pipeline for Counterspeech Generation against Online Hate Speechcited by 42
- 2022Using Pre-Trained Language Models for Producing Counter Narratives Against Hate Speech: a Comparative Studycited by 30
- 2020Countering hate on social media: Large scale classification of hate and counter speechcited by 22
- 2022Proactively Reducing the Hate Intensity of Online Posts via Hate Speech Normalizationcited by 17
- 2021Countering Online Hate Speech: An NLP Perspectivecited by 12
- 2020Impact and dynamics of hate and counter speech onlinecited by 11
1 more
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 2; 2026: 1.
8 papers.
- 2024What Does the Bot Say? Opportunities and Risks of Large Language Models in Social Media Bot Detectioncited by 25
- 2024CodeMirage: Hallucinations in Code Generated by Large Language Modelscited by 23
- 2024MedHalu: Hallucinations in Responses to Healthcare Queries by Large Language Modelscited by 21
- 2024MultiParaDetox: Extending Text Detoxification with Parallel Data to New Languagescited by 14
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLMcited by 9
- 2023Overview of the HASOC Subtrack at FIRE 2023: Identification of Tokens Contributing to Explicit Hate in English by Span Detectioncited by 2
- 2025Fine-Tuning Large Language Models with QLoRA for Offensive Language Detection in Roman Urdu-English Code-Mixed Textcited by 1
- 2026When Does Span-Guided Detoxification Help? Human Preferences and Evaluator Diagnostics in a Controlled Comparisoncited by 0
- 2026When Does Span-Guided Detoxification Help? Human Preferences and Evaluator Diagnostics in a Controlled Comparison29 Jul 2026
- 2025Fine-Tuning Large Language Models with QLoRA for Offensive Language Detection in Roman Urdu-English Code-Mixed Text4 Oct 2025
- 2025Guardians and Offenders: A Survey on Harmful Content Generation and Safety Mitigation of LLM7 Aug 2025
- 2024MedHalu: Hallucinations in Responses to Healthcare Queries by Large Language Models29 Sep 2024
- 2024CodeMirage: Hallucinations in Code Generated by Large Language Models14 Aug 2024
- 2024MultiParaDetox: Extending Text Detoxification with Parallel Data to New Languages2 Apr 2024
- 2024What Does the Bot Say? Opportunities and Risks of Large Language Models in Social Media Bot Detection1 Feb 2024
- 2023Overview of the HASOC Subtrack at FIRE 2023: Identification of Tokens Contributing to Explicit Hate in English by Span Detection16 Nov 2023
Similar, not cited
Close in wording, no citation either way
- 2023Probing LLMs for hate speech detection: strengths and vulnerabilities
- 2024Decoding Hate: Exploring Language Models' Reactions to Hate Speech
- 2026CATCH-ME if you RAG: a dataset of Contextually Annotated multi-Turn Counterspeech against Hate and Misinformation Exchanges
- 2025HateBench: Benchmarking Hate Speech Detectors on LLM-Generated Content and Hate Campaigns
- 2025Rethinking Hate Speech Detection on Social Media: Can LLMs Replace Traditional Models?
- 2026Enhancing Hate Speech Detection on Social Media: A Comparative Analysis of Machine Learning Models and Text Transformation Approaches
- 2024Consolidating Strategies for Countering Hate Speech Using Persuasive Dialogues
- 2025A Modular Taxonomy for Hate Speech Definitions and Its Impact on Zero-Shot LLM Classification Performance