Generate, Prune, Select: A Pipeline for Counterspeech Generation against Online Hate Speech

Wanzheng Zhu, Suma Bhat

Abstract

Online hate speech poses a significant challenge to digital platforms, often leading to censorship-based moderation. Counterspeech—providing non-negative, fact-based responses—offers a promising alternative that preserves free speech while de-escalating conflict. However, automated counterspeech generation frequently suffers from genericness and irrelevance. This paper introduces GPS (Generate, Prune, Select), a modular three-stage pipeline designed to produce diverse and contextually relevant responses. By leveraging a Variational Autoencoder (VAE) for candidate generation, a BERT-based grammatical filter for pruning, and a novel embedding mapping for selection, GPS outperforms state-of-the-art models like BART in both automated metrics and human evaluation.

Introduction

The proliferation of hate speech on social media has necessitated scalable moderation solutions. While removing content is common, it can be perceived as restrictive. Counterspeech aims to challenge hateful narratives directly. The technical hurdle lies in moving beyond "canned" responses (e.g., "Please stop") toward specific, relevant arguments. Current models often trade off diversity for fluency, resulting in repetitive or disconnected outputs.

The GPS Framework

The GPS pipeline decomposes the generation task into three distinct phases to balance creativity with linguistic quality and relevance.

The GPS Pipeline: A three-stage process involving Candidate Generation, Candidate Pruning, and Response Selection.
  1. Candidate Generation: Unlike standard Seq2Seq models, GPS utilizes an RNN-based Variational Autoencoder (VAE). VAEs capture a global latent representation, allowing the system to sample from a noise distribution to generate a massive pool of up to 40,000 diverse candidates.
  2. Candidate Pruning: To ensure linguistic quality, a BERT model fine-tuned on the Corpus of Linguistic Acceptability (CoLA) filters out ungrammatical or nonsensical candidates generated by the VAE.
  3. Response Selection: The final stage identifies the most relevant response from the pruned pool. The authors employ a linear embedding mapping to align the latent spaces of hate speech and counterspeech, enabling the use of cosine similarity for precise selection.

Experimental Results

The GPS pipeline was evaluated on datasets from Reddit, Gab, and CONAN (expert-written counterspeech). It was compared against strong baselines, including Seq2Seq and BART.

Performance comparison of GPS against various baseline models across standard NLG metrics.

As shown in the comparative analysis, GPS consistently achieves high scores across metrics like BLEU-2, ROUGE-2, and Dist-1. Notably, on the Reddit dataset, GPS achieved a Dist-2 score of 0.53, significantly higher than BART (0.19). In terms of relevance, GPS reached a BM25 score of 5.43 on the CONAN dataset, nearly triple that of the next best model. Human annotators also preferred GPS for its ability to target specific claims within hateful content.

Key Insights

  • The Diversity-Relevance Correlation: A core finding is that forcing diversity pushes the model away from generic "safe" responses toward more specific, relevant arguments.
  • The "Elbow" Point: The researchers observed that while generating more candidates increases diversity, there is a point of diminishing returns (the "elbow"). Identifying this point allows for computational efficiency without sacrificing output quality.
  • VAE Superiority for Diversity: While Transformers like BART excel at local fluency, the VAE-based approach is superior at exploring the broader space of potential responses, which is critical for avoiding "bot-like" behavior.

Conclusion and Future Work

GPS represents a significant step toward effective, automated counterspeech. Future research will focus on incorporating stylistic nuances (e.g., humor vs. logic) and assessing the long-term social impact of deploying such systems in live environments. Ethical guardrails remain a priority to prevent the misuse of generative models.

Summary updated

BibTeX
@inproceedings{zhu2021generate,
  author = {Wanzheng Zhu and Suma Bhat},
  title = {{Generate, Prune, Select: A Pipeline for Counterspeech Generation against Online Hate Speech}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.12},
}
Figure