Weigh Your Own Words: Improving Hate Speech Counter Narrative Generation via Attention Regularization

Helena Bonaldi, Giuseppe Attanasio, Debora Nozza, Marco Guerini
9/5/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Recent computational approaches for combating online hate speech involve the automatic generation of counter narratives by adapting Pretrained Transformer-based Language Models (PLMs) with human-curated data. This process, however, can produce in-domain overfitting, resulting in models generating acceptable narratives only for hatred similar to training data, with little portability to other targets or to real-world toxic language. This paper introduces novel attention regularization methodologies to improve the generalization capabilities of PLMs for counter narratives generation. Overfitting to training-specific terms is then discouraged, resulting in more diverse and richer narratives. We experiment with two attention-based regularization techniques on a benchmark English dataset. Regularized models produce better counter narratives than state-of-the-art approaches in most cases, both in terms of automatic metrics and human evaluation, especially when hateful targets are not present in the training data. This work paves the way for better and more flexible counter-speech generation models, a task for which datasets are highly challenging to produce.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bonaldi2023weigh,
  title  = {Weigh Your Own Words: Improving Hate Speech Counter Narrative Generation via Attention Regularization},
  author = {Helena Bonaldi and Giuseppe Attanasio and Debora Nozza and Marco Guerini},
  year   = {2023},
  eprint = {2309.02311},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.02311v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.02311.svg)](https://codeofpaper.com/paper/2309.02311)

Discussion