Improving Adversarial Data Collection by Supporting Annotators: Lessons from GAHD, a German Hate Speech Dataset

Janis Goldzycher, Paul Röttger, Gerold Schneider

Abstract

Hate speech detection models often suffer from lexical overfitting, where they rely on specific keywords rather than semantic intent. To address this, we present the German Adversarial Hate speech Dataset (GAHD), a collection of approximately 11,000 examples generated through Dynamic Adversarial Data Collection (DADC). By providing annotators with specific support strategies—including translated examples, newspaper-sourced hard negatives, and contrastive editing tasks—this research demonstrates that guided data collection significantly enhances model robustness and data diversity compared to unguided methods. Models trained on GAHD showed an 18–20 percentage point improvement in macro $F_1$ on the HateCheck benchmark, performing competitively with state-of-the-art large language models.

Introduction

Automated hate speech detection is a cornerstone of modern content moderation, yet existing models remain notoriously brittle. Most classifiers are trained on datasets scraped from social media, leading to a phenomenon known as lexical overfitting. In these cases, models learn that the presence of certain "bad words" automatically constitutes hate speech, while failing to identify "polite" hate speech or misclassifying counter-speech (where slurs are used to denounce bigotry) as hateful.

Dynamic Adversarial Data Collection (DADC) has emerged as a standard solution to this problem. In a DADC workflow, humans attempt to author text that "tricks" a model into making an incorrect prediction. This data is then used to retrain and harden the model. However, DADC is often hampered by human limitations; annotators frequently encounter "writer's block" or fall into repetitive patterns. This paper explores how structured support strategies can make the DADC process more efficient and the resulting datasets more diverse.

Methodology: Supported Adversarial Collection

The researchers employed a "model-in-the-loop" approach over four distinct rounds (R1–R4), using gelectra-large as the target model. The core innovation of this study lies in the variation of support strategies provided to annotators in each round:

  1. R1: Unguided (Baseline): Annotators were given no specific prompts and were asked to freely generate text to trick the model.
  2. R2: Translated Examples: Annotators were provided with English adversarial examples (translated via machine translation) to serve as templates or creative inspiration.
  3. R3: Newspaper Sentences: The model was run against one million German news sentences. Annotators then validated "false positives"—sentences the model flagged as hate speech but which were likely neutral given their source.
  4. R4: Contrastive Examples: Annotators took challenging examples from previous rounds and made minor edits to flip the label (e.g., transforming a hateful statement into a non-hateful one through minimal lexical changes).

The GAHD Dataset

The primary output of this effort is the German Adversarial Hate speech Dataset (GAHD), which contains 10,996 examples (42.4% of which are labeled as hate speech). To evaluate the dataset's impact, the researchers compared it against baseline training data (a mix of DeTox, HASOC, and RP-Crowd) and tested it using HateCheck (German), a synthetic functional test suite designed to probe specific model weaknesses, such as the use of slurs in non-hateful contexts.

Key Insights and Results

The Efficacy of Support Strategies

The study found that mixing different collection methods outperformed any single approach. While unguided collection (R1) provides the most "organic" adversarial data, it is significantly less efficient than providing a starting point.

  • The Inspiration Effect: In R2, even clunky machine-translated examples acted as a "creative spark," leading annotators to develop high-quality German adversarial examples they might not have conceived independently.
  • Hard Negatives: Round 3 proved highly effective at identifying "hard negatives"—neutral reporting on sensitive topics (like war or refugees) that simpler models often misidentify as hate speech due to keyword triggers.
  • Decision Boundaries: The contrastive pairs generated in Round 4 were particularly valuable for forcing the model to learn the actual decision boundary rather than relying on keyword memorization.

Performance Benchmarks

Training on GAHD yielded a substantial robustness boost. The model's performance on the HateCheck benchmark improved by 18 to 20 percentage points in macro $F_1$ score compared to models trained only on standard web-sourced data.

Furthermore, the authors benchmarked GAHD against commercial APIs and Large Language Models (LLMs). While GPT-4 remained the top performer (>$80\% F_1$), a fine-tuned gelectra-large model (the target model of this study) achieved an $F_1$ of 0.822. This outperformed GPT-3.5 and approached the performance level of GPT-4, demonstrating that targeted adversarial training can make smaller, specialized models highly competitive.

Conclusion and Future Work

The GAHD project demonstrates that the bottleneck in adversarial data collection is often human creativity, not model capacity. By providing annotators with translated templates and contrastive tasks, researchers can generate more effective training data for non-English languages.

However, limitations remain. The current dataset consists of isolated sentences, missing the conversational context often found in social media threads. Additionally, while the study aimed for broad German-language coverage, geographic biases may still exist based on the annotator pool. Future work may involve using LLMs to automatically generate the "suggestions" for annotators, further streamlining the DADC process and scaling the creation of robust, linguistically diverse datasets.

Summary updated

BibTeX
@inproceedings{goldzycher2024improving,
  author = {Janis Goldzycher and Paul Röttger and Gerold Schneider},
  title = {{Improving Adversarial Data Collection by Supporting Annotators: Lessons from GAHD, a German Hate Speech Dataset}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.248},
}
Figure