mlsanityData to 7 Oct 2026

GPT-HateCheck: Can LLMs Write Better Functional Tests for Hate Speech Detection?

arXiv 2402.15238 ↗First posted 23 Feb 2024cs.CL cs.CYcited by 3

Not on the map. Why?

Abstract (arXiv)

Online hate detection suffers from biases incurred in data sampling, annotation, and model pre-training. Therefore, measuring the averaged performance over all examples in held-out test data is inadequate. Instead, we must identify specific model weaknesses and be informed when it is more likely to fail. A recent proposal in this direction is HateCheck, a suite for testing fine-grained model functionalities on synthesized data generated using templates of the kind "You are just a [slur] to me." However, despite enabling more detailed diagnostic insights, the HateCheck test cases are often generic and have simplistic sentence structures that do not match the real-world data. To address this limitation, we propose GPT-HateCheck, a framework to generate more diverse and realistic functional tests from scratch by instructing large language models (LLMs). We employ an additional natural language inference (NLI) model to verify the generations. Crowd-sourced annotation demonstrates that the generated test cases are of high quality. Using the new functional tests, we can uncover model weaknesses that would be overlooked using the original HateCheck dataset.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 24 of its 40 references that are in the map. First posted on arXiv 23 Feb 2024.

Builds on

24 of 40 references.

References · 24

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
  5. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  6. 2022Emergent Abilities of Large Language Modelscited by 2,483
  7. 2022Red Teaming Language Models with Language Modelscited by 983
  8. 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
  9. 2020The Hateful Memes Challenge: Detecting Hate Speech in Multimodal Memescited by 485
  10. 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 484
  11. 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 419
  12. 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 337
12 more
  1. 2019Benchmarking Zero-shot Text Classification: Datasets, Evaluation and Entailment Approachcited by 299
  2. 2018Targeted Syntactic Evaluation of Language Modelscited by 239
  3. 2020HateCheck: Functional Tests for Hate Speech Detection Modelscited by 215
  4. 2018Stress Test Evaluation for Natural Language Inferencecited by 211
  5. 2020HateBERT: Retraining BERT for Abusive Language Detection in Englishcited by 206
  6. 2015Semantically Conditioned LSTM-based Natural Language Generation for Spoken Dialogue Systemscited by 134
  7. 2019Exploring Hate Speech Detection in Multimodal Publicationscited by 103
  8. 2021Towards generalisable hate speech detection: a review on obstacles and solutionscited by 66
  9. 2022Multilingual HateCheck: Functional Tests for Multilingual Hate Speech Detection Modelscited by 51
  10. 2021Hatemoji: A Test Suite and Adversarially-Generated Dataset for Benchmarking and Detecting Emoji-based Hatecited by 50
  11. 2020Confronting Abusive Language Online: A Survey from the Ethical and Human Rights Perspectivecited by 43
  12. 2017A Challenge Set Approach to Evaluating Machine Translationcited by 37

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.