Skip to main content
QUICK REVIEW

[Paper Review] Hate Speech in Pixels: Detection of Offensive Memes towards Automatic Moderation

Benet Oriol Sàbat, Cristian Canton-­Ferrer|arXiv (Cornell University)|Oct 5, 2019
Hate Speech and Cyberbullying DetectionComputer Science14 references66 citations
TL;DR

The paper presents a multimodal approach to detecting hate speech in memes by fusing visual (VGG-16) and textual (OCR+BERT) representations, showing that multimodal is better than either modality alone but the task remains challenging.

ABSTRACT

This work addresses the challenge of hate speech detection in Internet memes, and attempts using visual information to automatically detect hate speech, unlike any previous work of our knowledge. Memes are pixel-based multimedia documents that contain photos or illustrations together with phrases which, when combined, usually adopt a funny meaning. However, hate memes are also used to spread hate through social networks, so their automatic detection would help reduce their harmful societal impact. Our results indicate that the model can learn to detect some of the memes, but that the task is far from being solved with this simple architecture. While previous work focuses on linguistic hate speech, our experiments indicate how the visual modality can be much more informative for hate speech detection than the linguistic one in memes. In our experiments, we built a dataset of 5,020 memes to train and evaluate a multi-layer perceptron over the visual and language representations, whether independently or fused. The source code and mode and models are available https://github.com/imatge-upc/hate-speech-detection .

Motivation & Objective

  • Motivate automated moderation for hate memes on social media.
  • Investigate whether combining visual and textual information improves hate-speech detection in memes.
  • Assess the relative informativeness of vision versus language modalities in memes.
  • Provide a reproducible baseline using state-of-the-art encoders for both modalities.

Proposed method

  • Extract text from memes using OCR (Tesseract 4.0.0).
  • Encode text with BERT (bert-base-multilingual-cased) and average word embeddings to obtain a sentence representation.
  • Encode images with VGG-16 pretrained on ImageNet and use the last hidden layer (4096-dim) as image features.
  • Concatenate text and image features to form a 4,864-dim multimodal representation.
  • Train a two-hidden-layer MLP (two hidden layers of 100 neurons, ReLU) ending in a single output neuron for hate score.
  • Train with Adam optimizer (lr 0.1, betas 0.9/0.999, eps 1e-8), batch size 25, dropout 0.2, MSE loss evaluated by binary accuracy.

Experimental results

Research questions

  • RQ1Can hate speech in memes be detected using a multimodal approach that fuses text and image information?
  • RQ2Does the multimodal model outperform vision-only or text-only models in this task?
  • RQ3How does OCR quality and language encoding impact hate-speech detection in memes?
  • RQ4What is the practical benefit of multimodal fusion versus using a single modality?

Key findings

  • Multimodal fusion yields the best performance among the three configurations.
  • Best max accuracy achieved: 0.833; smoothed max accuracy: 0.823.
  • Vision-only accuracy: 0.830 (0.804 smoothed).
  • Text-only accuracy: 0.761 (0.750 smoothed).
  • Average precision for the best multimodal model: 0.81 (precision–recall).
  • OCR and textual encoding quality can affect language-based results due to meme distortion and OCR limitations.

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.