[Paper Review] Understanding and Detecting Hateful Content using Contrastive Learning
This paper proposes using OpenAI's CLIP, a contrastive learning-based multimodal model, to detect antisemitic and Islamophobic content across text and images on 4chan’s /pol/ board. By leveraging Google’s Perspective API and manual annotations to identify 420 hateful phrases, the method detects 21,000 likely hateful images and 246,000 posts containing hateful phrases, achieving an F1 score of 0.54 and outperforming two baselines in detecting hateful imagery.
The spread of hate speech and hateful imagery on the Web is a significant problem that needs to be mitigated to improve our Web experience. This work contributes to research efforts to detect and understand hateful content on the Web by undertaking a multimodal analysis of Antisemitism and Islamophobia on 4chan's /pol/ using OpenAI's CLIP. This large pre-trained model uses the Contrastive Learning paradigm. We devise a methodology to identify a set of Antisemitic and Islamophobic hateful textual phrases using Google's Perspective API and manual annotations. Then, we use OpenAI's CLIP to identify images that are highly similar to our Antisemitic/Islamophobic textual phrases. By running our methodology on a dataset that includes 66M posts and 5.8M images shared on 4chan's /pol/ for 18 months, we detect 173K posts containing 21K Antisemitic/Islamophobic images and 246K posts that include 420 hateful phrases. Among other things, we find that we can use OpenAI's CLIP model to detect hateful content with an accuracy score of 0.81 (F1 score = 0.54). By comparing CLIP with two baselines proposed by the literature, we find that CLIP outperforms them, in terms of accuracy, precision, and F1 score, in detecting Antisemitic/Islamophobic images. Also, we find that Antisemitic/Islamophobic imagery is shared in a similar number of posts on 4chan's /pol/ compared to Antisemitic/Islamophobic textual phrases, highlighting the need to design more tools for detecting hateful imagery. Finally, we make available (upon request) a dataset of 246K posts containing 420 Antisemitic/Islamophobic phrases and 21K likely Antisemitic/Islamophobic images (automatically detected by CLIP) that can assist researchers in further understanding Antisemitism and Islamophobia.
Motivation & Objective
- To investigate whether large pre-trained models based on contrastive learning can detect hateful content across text and images.
- To evaluate CLIP’s performance in detecting antisemitic and Islamophobic imagery compared to existing baselines.
- To understand the prevalence of hateful textual and visual content on 4chan’s /pol/ board.
- To release a dataset of 246K posts with 420 hateful phrases and 21K likely hateful images for future research.
- To highlight limitations such as false positives, model bias, and sensitivity to input phrasing in automated hate content detection.
Proposed method
- Used Google’s Perspective API and manual annotations to identify 420 antisemitic and Islamophobic textual phrases from 66M posts on 4chan’s /pol/.
- Applied OpenAI’s CLIP model, which uses contrastive learning to embed text and images into a shared vector space, to detect images similar to the identified hateful phrases.
- Retrieved 21,000 images with high similarity scores to the hateful phrases, indicating potential antisemitic or Islamophobic content.
- Evaluated CLIP’s performance using standard metrics: accuracy (0.81), precision (0.54), recall (0.53), and F1 (0.54).
- Compared CLIP’s performance against two existing baselines for hateful imagery detection, finding CLIP outperformed them in all metrics.
- Conducted manual analysis to identify issues such as false positives, model bias (e.g., associating Muslims with terrorism), and sensitivity to long text inputs.
Experimental results
Research questions
- RQ1Can large pre-trained models like CLIP detect hateful content with acceptable performance, and how does it compare to state-of-the-art classifiers for hateful imagery?
- RQ2How prevalent are antisemitic and Islamophobic textual phrases and images on 4chan’s /pol/ board?
- RQ3How does CLIP’s performance vary with input phrasing length and image complexity, particularly when images contain large amounts of text?
- RQ4What biases are present in CLIP when detecting hate content, and how do they affect detection reliability?
- RQ5To what extent do false positives affect the usability of CLIP and the released dataset for downstream research?
Key findings
- CLIP achieved an F1 score of 0.54 in detecting antisemitic and Islamophobic images, with accuracy of 0.81, precision of 0.54, and recall of 0.53.
- CLIP outperformed two existing baselines in all evaluation metrics—accuracy, precision, and F1 score—when detecting hateful imagery.
- The method detected 246,000 posts containing 420 antisemitic and Islamophobic textual phrases and 21,000 images likely to be hateful.
- The prevalence of antisemitic and Islamophobic imagery on /pol/ is comparable to that of textual phrases, indicating a need for better detection tools for visual hate content.
- The CLIP model showed high sensitivity to input phrasing length, with performance degrading significantly on longer phrases and images containing extensive text.
- The released dataset contains a substantial number of false positives, and researchers should expect to perform additional manual annotation to reduce noise in downstream tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.