Counterspeech the ultimate shield! Multi-Conditioned Counterspeech Generation through Attributed Prefix Learning

Aswini Kumar Padhi, Anil Bandhakavi, Tanmoy Chakraborty

Introduction

Online hate speech remains a critical challenge for digital platforms. While moderation often relies on censorship, "counterspeech"—direct, non-censorial responses designed to undermine hateful narratives—offers a more constructive alternative. However, automating effective counterspeech is complex. Most existing models focus on a single attribute, such as a specific communication strategy. In contrast, human communication is multi-dimensional, blending strategy with emotional resonance. This paper introduces HiPPrO (Hierarchical Prefix learning with Preference Optimization), a framework designed to generate nuanced counterspeech by conditioning on both communication strategies and emotional tones.

The HiPPrO Framework

HiPPrO addresses the challenge of multi-conditioned generation through a two-stage process built upon the FLAN-T5 base model.

1. Hierarchical Prefix Optimization (HIPO)

Rather than traditional fine-tuning, HiPPrO utilizes "prefix tuning," which involves adding trainable continuous vectors to the model's layers. The authors employ a hierarchical approach:

  • Strategy Prefixes: The model first learns prefixes for specific strategies (e.g., Questioning, Informative, Positive, Denouncing).
  • Emotion Prefixes: Once strategy prefixes are established, they are frozen, and a second set of prefixes is learned for specific emotions (e.g., Anger, Joy, Disgust, Sadness, Surprise).

This hierarchy captures the conditional dependencies between a communication strategy and its emotional delivery, ensuring the "how" (strategy) provides a structural foundation for the "feel" (emotion).

2. Preference Optimization

To further refine the model's output, the authors implement Odds Ratio Preference Optimization (ORPO). This reward-free alignment technique treats human-authored responses as "preferred" and the model's initial outputs as "rejected." By penalizing early-stage mistakes relative to human standards, ORPO aligns the model with high-quality human style and reduces toxicity without the computational burden of traditional Reinforcement Learning from Human Feedback (RLHF).

The MultiCONAN Dataset

To support this multi-conditioned approach, the study introduces MultiCONAN, the largest dataset of strategy-and-emotion-specific counterspeech to date. Extending the IntentCONANv2 dataset, MultiCONAN contains 13,973 counterspeech instances targeting hate speech against various groups, including Muslims, Women, LGBT+, Jews, and Refugees. Each instance is meticulously annotated with one of four strategies and one of five emotions.

Statistical analysis of MultiCONAN revealed that "Joy" is the most prevalent emotion in effective counterspeech. Joyful responses are typically longer and more elaborate, focusing on positive narratives and success stories to build emotional connections.

Experimental Results

HiPPrO was evaluated against several baselines, including DialoGPT, CoARL, and GPT-4. The results demonstrate significant improvements across multiple dimensions:

  • Strategy Conformity: HiPPrO achieved a ~38% improvement in following intended strategies compared to baseline models.
  • Linguistic Quality: The model showed consistent gains in ROUGE scores (ROUGE-1: ~3%, ROUGE-2: ~2%, ROUGE-L: ~3%).
  • Human Evaluation: In head-to-head tests, human experts overwhelmingly preferred HiPPrO’s responses, with win rates of 96% against CoARL, 91% against GPT-4, and 89% against GPT-3.5.
  • Attribute Balance: The model successfully balanced dual constraints, achieving a Strategy Conformity (SC) score of 0.929 and an Emotion Conformity (EC) score of 0.706.

Conclusion and Future Work

HiPPrO demonstrates that smaller, specialized models can outperform massive general-purpose models like GPT-4 in specific tasks like counterspeech by leveraging hierarchical learning and preference alignment. While the current framework is limited to single-turn responses and specific target groups, it provides a robust foundation for more sophisticated, multi-dimensional automated counterspeech. Future research will focus on expanding the dataset to include emerging forms of hostility and developing models capable of handling multi-turn dialogues.

Summary updated

BibTeX
@inproceedings{padhi2025counterspeech,
  author = {Aswini Kumar Padhi and Anil Bandhakavi and Tanmoy Chakraborty},
  title = {{Counterspeech the ultimate shield! Multi-Conditioned Counterspeech Generation through Attributed Prefix Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure