An Information Retrieval Approach to Building Datasets for Hate Speech Detection

Md Mustafizur Rahman, Dinesh Balakrishnan, Dhiraj Murthy, Mucahid Kutlu, Matthew Lease
6/17/2021
cs.CLcs.IR

Official code: mdmustafizurrahman/An-Information-Retrieval-Approach-to-Building-Datasets-for-Hate-Speech-Detection (8 stars, Python, BSD-3-Clause, last commit 2021-11-12).

Abstract

Building a benchmark dataset for hate speech detection presents various challenges. Firstly, because hate speech is relatively rare, random sampling of tweets to annotate is very inefficient in finding hate speech.

Show full abstract

To address this, prior datasets often include only tweets matching known "hate words". However, restricting data to a pre-defined vocabulary may exclude portions of the real-world phenomenon we seek to model. A second challenge is that definitions of hate speech tend to be highly varying and subjective. Annotators having diverse prior notions of hate speech may not only disagree with one another but also struggle to conform to specified labeling guidelines. Our key insight is that the rarity and subjectivity of hate speech are akin to that of relevance in information retrieval (IR). This connection suggests that well-established methodologies for creating IR test collections can be usefully applied to create better benchmark datasets for hate speech. To intelligently and efficiently select which tweets to annotate, we apply standard IR techniques of {\em pooling} and {\em active learning}. To improve both consistency and value of annotations, we apply {\em task decomposition} and {\em annotator rationale} techniques. We share a new benchmark dataset for hate speech detection on Twitter that provides broader coverage of hate than prior datasets. We also show a dramatic drop in accuracy of existing detection models when tested on these broader forms of hate. Annotator rationales we collect not only justify labeling decisions but also enable future work opportunities for dual-supervision and/or explanation generation in modeling. Further details of our approach can be found in the supplementary materials.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

A hate speech data set constructed using IR pooling technique to enhance diversity

81Python, HTMLJul 2, 20215 years agoBSD-3-Clause
hatespeechinformation-retrievalpooling

Similar Papers

Cite this paper

@article{rahman2021information,
  title  = {An Information Retrieval Approach to Building Datasets for Hate Speech Detection},
  author = {Md Mustafizur Rahman and Dinesh Balakrishnan and Dhiraj Murthy and Mucahid Kutlu and Matthew Lease},
  year   = {2021},
  eprint = {2106.09775},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.09775}
}

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/2106.09775.svg)](https://codeofpaper.com/paper/2106.09775)

Discussion