On Zero-Shot Counterspeech Generation by LLMs

Punyajoy Saha, Aalok Agrawal, Abhik Jana, Chris Biemann, Animesh Mukherjee

TL;DR

This paper investigates the effectiveness of large language models (LLMs) like GPT-2, DialoGPT, FlanT5, and ChatGPT in generating counterspeech without task-specific fine-tuning (zero-shot). They propose and evaluate three prompting strategies to control the type of counterspeech generated, finding that ChatGPT excels across most metrics, while prompting significantly improves generation quality for all models.

What Problem Does This Paper Address?

The proliferation of hate speech online is a significant societal problem. Counterspeech, a direct response to hateful content, is a promising strategy to combat this. While recent research has focused on fine-tuning LLMs with hate speech-counterspeech pairs, there's a gap in understanding the intrinsic capabilities of these models for counterspeech generation in a zero-shot setting. This paper aims to fill that gap by analyzing how different LLMs perform and how prompting strategies can influence the generation of specific types of counterspeech without requiring extensive labeled data.

Methods

The authors evaluate four LLMs: GPT-2, DialoGPT, FlanT5, and ChatGPT. For GPT-2 and DialoGPT, they analyze the impact of model size (small, medium, large). They introduce and test three prompting strategies to guide the generation of specific counterspeech types:

  • Manual Prompting: Authors create 2-3 example beginnings for each counterspeech type.
  • Frequency-Based Prompting: Identifies common four-word sub-strings from existing counterspeech examples for each type.
  • Cluster-Centered Prompting: Uses sentence embeddings to cluster counterspeech examples and selects representative sentences to form prompts.

They evaluate the generated counterspeech using various metrics, including generation quality (gleu, meteor, bleurt), engagement, argument quality, counterargument quality, counterspeech quality, and toxicity. A type classifier is also used to assess the accuracy of type-specific generation.

Datasets

The study utilizes several datasets for evaluation:

  • CONAN: Contains hate speech and counterspeech pairs, with counterspeech provided by expert NGO operators.
  • CONAN-MT: Similar to CONAN but with counterspeech generated by a model and then reviewed.
  • Reddit: A dataset of hate speech and counterspeech from Reddit.
  • Gab: Another dataset of hate speech and counterspeech from Gab.

For type-specific generation, they use a combined dataset from Mathew et al. (2019) and Chung et al. (2021a), which includes type information for counterspeech. A counterargument dataset from Stab et al. (2018) is also used for evaluating counterargument quality.

Key Insights and Ideas

  • ChatGPT's Zero-Shot Prowess: ChatGPT significantly outperforms other LLMs in zero-shot counterspeech generation across multiple metrics, suggesting that its scale and training methodology are highly effective for this task even without fine-tuning.
  • Prompting is Key: Carefully designed prompting strategies are crucial for controlling the type of counterspeech generated and significantly improve performance across all tested LLMs.
  • Model Size vs. Toxicity: While larger models generally show improved generation quality, there's a concerning trend of increased toxicity, particularly for GPT-2 on real-world datasets like Gab and Reddit.
  • Manual Prompts Reign Supreme (Mostly): Manual prompts, despite being labor-intensive, often yield the best results for type-specific generation, especially for smaller models. However, their effectiveness can vary across different LLMs and counterspeech types.
  • Readability Trade-off: ChatGPT's generated counterspeech, while high quality, shows a notable decrease in readability.

Key Results

  • Overall Performance: ChatGPT achieved the highest scores in generation metrics (gleu, meteor, bleurt) and significantly improved counterspeech and argument quality.
  • Model Size Impact: Increasing model size led to a 25-30% increase in toxicity for GPT-2 on Gab and Reddit. For DialoGPT, readability dramatically increased with model size on Reddit.
  • Type-Specific Generation:
    • For affiliation, frequency-based prompts improved type precision by 0.49 units for ChatGPT.
  • Manual prompts generally performed best for denouncing, facts, and humor types.
  • GPT-2 and FlanT5 showed better performance than DialoGPT for facts-type counterspeech.
  • Surprisingly, none of the models achieved high type precision for the "question" type.

Limitations and Future Work

  • Human Judgment Correlation: While automatic metrics show promise, the paper acknowledges the need for further validation against human judgments to ensure reliability.
  • Readability Concerns: The decrease in readability for ChatGPT-generated counterspeech is a notable limitation.
  • Prompting Strategy Development: The authors suggest future research should focus on designing more effective prompting strategies, particularly for models like ChatGPT, to better leverage their capabilities for type-specific generation.
  • Ethical Considerations: The paper emphasizes that LLMs are not yet capable of generating fully coherent and reliable counterspeech, advocating for human oversight and against the deployment of fully automatic pipelines. Future work could explore how to better integrate human feedback and expertise into these systems.

Summary updated

BibTeX
@inproceedings{saha2024zero,
  author = {Punyajoy Saha and Aalok Agrawal and Abhik Jana and Chris Biemann and Animesh Mukherjee},
  title = {{On Zero-Shot Counterspeech Generation by LLMs}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
}
Figure