Skip to main content
QUICK REVIEW

[Paper Review] Transfer Learning for Hate Speech Detection in Social Media

Lanqin Yuan, Tianyu Wang|arXiv (Cornell University)|Jun 10, 2019
Hate Speech and Cyberbullying DetectionComputer Science17 citations
TL;DR

This paper proposes t-HateNet, a transfer learning framework that jointly trains on two unrelated hate speech datasets to create a shared, general-purpose representation space for hate speech. By leveraging cross-dataset knowledge transfer, the model improves detection performance with limited labeled data and enables the Map of Hate—a visual tool that reveals labeling inconsistencies and enhances interpretability of hateful content across diverse definitions.

ABSTRACT

Today, the internet is an integral part of our daily lives, enabling people to be more connected than ever before. However, this greater connectivity and access to information increase exposure to harmful content such as cyber-bullying and cyber-hatred. Models based on machine learning and natural language offer a way to make online platforms safer by identifying hate speech in web text autonomously. However, the main difficulty is annotating a sufficiently large number of examples to train these models. This paper uses a transfer learning technique to leverage two independent datasets jointly and builds a single representation of hate speech. We build an interpretable two-dimensional visualization tool of the constructed hate speech representation -- dubbed the Map of Hate -- in which multiple datasets can be projected and comparatively analyzed. The hateful content is annotated differently across the two datasets (racist and sexist in one dataset, hateful and offensive in another). However, the common representation successfully projects the harmless class of both datasets into the same space and can be used to uncover labeling errors (false positives). We also show that the joint representation boosts prediction performances when only a limited amount of supervision is available. These methods and insights hold the potential for safer social media and reduce the need to expose human moderators and annotators to distressing online messaging.

Motivation & Objective

  • To develop a general-purpose hate speech detection system that does not rely on expensive hand-crafted features.
  • To address data scarcity in hate speech detection by jointly learning from multiple small, unrelated datasets.
  • To create an interpretable visualization tool that enables comparative analysis of hate speech across different labeling schemes.
  • To detect and diagnose labeling errors and biases in existing hate speech datasets through shared representation learning.
  • To reduce model bias by exposing it to diverse definitions and labelers across multiple datasets.

Proposed method

  • The framework uses a shared bi-LSTM encoder with shared word embeddings to learn a joint representation space across two hate speech datasets.
  • It employs transfer learning by training a single model on two distinct datasets with different labeling schemes (e.g., racist/sexist vs. hateful/offensive).
  • The model uses pre-trained word embeddings fine-tuned via bi-LSTM units to adapt to task-specific hate speech detection.
  • A two-dimensional visualization tool—'Map of Hate'—is constructed using the shared embeddings to compare and analyze hate speech across datasets.
  • The system enables zero-shot transfer to new tasks by reusing the learned hate embeddings without retraining from scratch.
  • Labeling errors and false positives are diagnosed by analyzing the spatial clustering of 'harmless' texts in the shared embedding space.

Experimental results

Research questions

  • RQ1Can a shared representation space be learned across unrelated hate speech datasets with differing labeling schemes?
  • RQ2Can joint training on multiple small datasets improve hate speech detection performance with limited supervision?
  • RQ3Can the shared representation space reveal systematic labeling errors or biases in existing datasets?
  • RQ4Can the Map of Hate visualization tool effectively separate and characterize different types of hateful content?
  • RQ5To what extent does multi-dataset training reduce model bias compared to single-dataset training?

Key findings

  • The joint representation learned via t-HateNet successfully maps 'harmless' texts from both datasets into the same region of the shared embedding space, indicating semantic consistency.
  • The Map of Hate visualization reveals that hate classes are more separable when using joint embeddings than when training models individually on each dataset.
  • The model improves prediction performance on low-resource settings by transferring knowledge across datasets, especially when labeled data is scarce.
  • The framework identifies mislabeled examples by detecting outliers in the 'harmless' cluster, demonstrating its utility in diagnosing labeling errors.
  • Training on multiple datasets reduces the impact of individual labeler biases, leading to a more comprehensive and robust understanding of hate speech.
  • The system enables platform- and source-independent hate speech detection by relying solely on textual content and learned embeddings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.