Lune

ACL2021Top-tier venue

HateCheck: Functional Tests for Hate Speech Detection Models

Paul Röttger, Bertie Vidgen, Dong Nguyen, Zeerak Waseem, Helen Z. Margetts, Janet B. Pierrehumbert

Abstract

Detecting online hate is a difficult task that even state-of-the-art models struggle with. Typically, hate speech detection models are evaluated by measuring their performance on held-out test data using metrics such as accuracy and F1 score. However, this approach makes it difficult to identify specific model weak points. It also risks overestimating generalisable model performance due to increasingly well-evidenced systematic gaps and biases in hate speech datasets. To enable more targeted diagnostic insights, we introduce HATECHECK, a suite of functional tests for hate speech detection models. We specify 29 model functionalities motivated by a review of previous research and a series of interviews with civil society stakeholders. We craft test cases for each functionality and validate their quality through a structured annotation process. To illustrate HATECHECK's utility, we test near-state-of-the-art transformer models as well as two popular commercial models, revealing critical model weaknesses.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

52 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Adversarial NLI: A New Benchmark for Natural Language Understanding cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
  • Evaluating Models' Local Decision Boundaries via Contrast Sets cites Adversarial NLI: A New Benchmark for Natural Language Understanding
  • Evaluating Models' Local Decision Boundaries via Contrast Sets cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
  • Evaluating Models' Local Decision Boundaries via Contrast Sets cites Predictive Biases in Natural Language Processing Models: A Conceptual Framework and Overview
  • Perturbation Augmentation for Fairer NLP cites Adversarial NLI: A New Benchmark for Natural Language Understanding
  • Perturbation Augmentation for Fairer NLP cites Dynaboard: An Evaluation-As-A-Service Platform for Holistic Next-Generation Benchmarking
  • Red Teaming Language Models with Language Models cites Adversarial NLI: A New Benchmark for Natural Language Understanding
  • Dynaboard: An Evaluation-As-A-Service Platform for Holistic Next-Generation Benchmarking cites Adversarial NLI: A New Benchmark for Natural Language Understanding
  • Dynaboard: An Evaluation-As-A-Service Platform for Holistic Next-Generation Benchmarking cites Beyond Accuracy: Behavioral Testing of NLP Models with CheckList
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers52

  1. Red Teaming Language Models with Language ModelsEthan Perez, Saffron Huang, H. Francis Song, Trevor Cai et al.EMNLP 2022 · 239 citations
  2. Dynaboard: An Evaluation-As-A-Service Platform for Holistic Next-Generation BenchmarkingZhiyi Ma, Kawin Ethayarajh, Tristan Thrush, Somya Jain et al.NeurIPS 2021 · 76 citations
  3. You Only Prompt Once: On the Capabilities of Prompt Learning on Large Language Models to Tackle Toxic ContentXinlei He, Savvas Zannettou, Yun Shen, Yang ZhangS&P 2024 · 74 citations
  4. Is Your Toxicity My Toxicity? Exploring the Impact of Rater Identity on Toxicity AnnotationNitesh Goyal, Ian D. Kivlichan, Rachel Rosen, Lucy VassermanCSCW 2022 · 74 citations
  5. Perturbation Augmentation for Fairer NLPRebecca Qian, Candace Ross, Jude Fernandes, Eric Michael Smith et al.EMNLP 2022 · 54 citations

Builds on9

  1. Learning The Difference That Makes A Difference With Counterfactually-Augmented DataDivyansh Kaushik, Eduard H. Hovy, Zachary Chase LiptonICLR 2020 · 625 citations
  2. Adversarial NLI: A New Benchmark for Natural Language UnderstandingYixin Nie, Adina Williams, Emily Dinan, Mohit Bansal et al.ACL 2020 · 602 citations
  3. Evaluating Models' Local Decision Boundaries via Contrast SetsMatt Gardner, Yoav Artzi, Victoria Basmova, Jonathan Berant et al.EMNLP Findings 2020 · 260 citations
  4. Predictive Biases in Natural Language Processing Models: A Conceptual Framework and OverviewDeven Shah, H. Andrew Schwartz, Dirk HovyACL 2020 · 93 citations
  5. Beyond Accuracy: Behavioral Testing of NLP Models with CheckListMarco Túlio Ribeiro, Tongshuang Wu, Carlos Guestrin, Sameer SinghACL 2020 · 51 citations

Related papers

  1. Learning from the Worst: Dynamically Generated Datasets to Improve Online Hate DetectionBertie Vidgen, Tristan Thrush, Zeerak Waseem, Douwe KielaACL 2021
  2. LJPCheck: Functional Tests for Legal Judgment PredictionYuan Zhang, Wanhong Huang, Yi Feng, Chuanyi Li et al.ACL Findings 2024 · 4 citations
  3. HateDay: Insights from a Global Hate Speech Dataset Representative of a Day on TwitterManuel Tonneau, Diyi Liu, Niyati Malhotra, Scott A. Hale et al.ACL 2025 · 12 citations
  4. HARE: Explainable Hate Speech Detection with Step-by-Step ReasoningYongjin Yang, Joonkee Kim, Yujin Kim, Namgyu Ho et al.EMNLP Findings 2023 · 24 citations
  5. HateBench: Benchmarking Hate Speech Detectors on LLM-Generated Content and Hate CampaignsXinyue Shen, Yixin Wu, Yiting Qu, Michael Backes et al.USENIX Security 2025
Dusk over the sea between two cliffs drawn in fine vertical lines