Abstract
This paper presents a novel framework for generating multilingual counter-speech to combat online hate speech by leveraging Direct Preference Optimization (DPO) on Large Language Models (LLMs). By grounding responses in factual knowledge and using GPT-4o to synthetically generate "rejected" responses for preference alignment, the authors demonstrate that DPO-aligned models produce more assertive, contextually relevant, and factually accurate counter-narratives than standard supervised fine-tuning (SFT). Notably, the approach successfully scales to multiple languages—including Basque, Italian, and Spanish—despite being trained primarily on English data, showcasing robust zero-shot cross-lingual transfer.
Introduction
Traditional methods for moderating hate speech on social media, such as post removal or user banning, often lead to ban evasion and concerns regarding free expression. A more constructive alternative is Counter-Speech (CS)—responding to hate speech with informed, fact-based arguments designed to de-escalate hostility and challenge prejudices. However, generating high-quality counter-speech at scale is difficult; off-the-shelf LLMs often produce generic, passive responses or hallucinate when they lack context. This research addresses the challenge of generating precise, culturally sensitive, and impactful counter-speech across multiple languages without requiring massive, language-specific labeled datasets.
Methodology
The authors fine-tuned the Llama-3 model (both base and instruct versions) using Low-Rank Adaptation (LoRA). Their training pipeline consisted of two main phases:
- Supervised Fine-Tuning (SFT): The models were first trained on a dataset containing Hate Speech (HS), Grounded Knowledge (KN), and ground-truth Counter Narratives (CN).
- Direct Preference Optimization (DPO): To make the model's tone more impactful and aligned with human preferences, the authors applied DPO.
The Synthetic Negative Sampling Innovation
DPO requires pairs of "preferred" and "rejected" responses. To generate the rejected (negative) samples without expensive human annotation, the authors used GPT-4o. They prompted GPT-4o to generate sentences that supported the original hate speech without directly repeating it. By contrasting the ground-truth counter-narrative against these synthetically generated "bad" responses, the DPO process trained the Llama-3 model to actively avoid unpersuasive or harmful outputs.
Datasets and Experimental Setup
The study utilized a multilingual dataset provided for a shared task, derived from the MTCONAN dataset. Each Hate Speech-Counter Narrative pair is accompanied by five background knowledge sentences to provide factual context. The dataset is relatively small, containing roughly 600 examples per language (396 Train, 100 Validation, 100 Test) covering English, Basque, Italian, and Spanish. Crucially, model supervision and alignment were conducted entirely in English, with the resulting model evaluated zero-shot on the other languages.
Key Results and Insights
The DPO-aligned Llama-3 base model ("run3") consistently outperformed the SFT baselines across both quantitative metrics and qualitative evaluations.
Quantitative Performance
As shown in the results table, the DPO model achieved superior scores in JudgeLM, ROUGE-L, and BERTScore across all tested languages. For instance, in Italian, the JudgeLM score improved significantly from 905.5 (SFT) to 1004.0 (DPO), while BLEU scores rose from 33.7% to 36.2%.
Qualitative Impact
- Assertiveness over Passivity: Standard SFT models tend to generate verbose, neutral responses. DPO-aligned models learn to be more assertive and interrogative, directly confronting hateful viewpoints to force cognitive dissonance.
- Information Filtering: SFT models often regurgitate irrelevant details from background knowledge. The DPO model proved superior at filtering out extraneous information, delivering concise and punchy rebuttals.
- Cross-Lingual Transfer: The preference alignment learned in English successfully transferred to Basque, Italian, and Spanish, highlighting the potential of DPO to scale counter-speech generation globally without needing preference datasets for every target language.
Limitations and Future Work
The authors acknowledge that the simple prompt used for generating "rejected" responses limited the diversity of negative samples. Additionally, hardware constraints prevented experimentation with larger models like Llama-3 70B. Future work will focus on designing more advanced prompts for negative sampling and exploring human-in-the-loop systems to capture a broader range of valid counter-narratives.
Conclusion
By integrating Direct Preference Optimization with synthetic negative sampling, this research demonstrates a scalable method for enhancing the quality and assertiveness of counter-speech. The success of zero-shot cross-lingual transfer suggests that high-quality alignment in a high-resource language like English can effectively combat hate speech in lower-resource languages, providing a powerful tool for digital safety.
Summary updated