Hate-CLIPper: Multimodal Hateful Meme Classification based on Cross-modal Interaction of CLIP Features

Gokul Karthik Kumar, Karthik NandakumararXiv 2022

TL;DR

This paper introduces Hate-CLIPper, a novel architecture for detecting hateful memes by explicitly modeling the interactions between image and text features using CLIP. By employing a feature interaction matrix (FIM), Hate-CLIPper achieves state-of-the-art performance, even surpassing human capabilities on the Hateful Memes Challenge dataset.

What Problem Does This Paper Address?

Hateful memes are a pervasive problem on social media, and their detection is challenging due to their multimodal nature. Unlike traditional image-text tasks where text often describes the image, hateful memes rely on the subtle interplay between visual and textual elements, where each modality can be harmless in isolation but hateful when combined. Existing methods often focus on either multimodal pre-training or intermediate fusion, but not both, leading to suboptimal performance. The paper aims to bridge this gap by proposing a method that effectively models these crucial cross-modal interactions.

Methods

The core of Hate-CLIPper lies in its innovative use of Contrastive Language-Image Pre-training (CLIP) encoders. These encoders are used to generate aligned image and text representations. The novelty comes in how these representations are fused:

  • Projection Layers: Trainable projection layers are added after the CLIP encoders to further align the image and text feature spaces, adapting them to the specific nuances of meme content.
  • Feature Interaction Matrix (FIM): The projected image and text features are combined using a bilinear pooling (outer product) to create a Feature Interaction Matrix (FIM). This FIM explicitly models the correlations between every dimension of the image and text features, capturing complex cross-modal relationships.
  • Fusion Variants: Two primary fusion strategies are explored:
  • Cross-Fusion: Utilizes the entire FIM, leading to a high-dimensional representation.
  • Align-Fusion: Uses only the diagonal elements of the FIM, which represent element-wise products and intuitively measure alignment between individual feature dimensions. This is a more computationally efficient variant.
  • Classification: The FIM (or its diagonal elements) is flattened and fed into a shallow neural network classifier for the final hate detection.

Datasets

The paper evaluates Hate-CLIPper on three datasets:

  • Hateful Memes Challenge (HMC) dataset: The primary benchmark, containing memes curated to require multimodal understanding.
  • Propaganda Memes dataset: Used for evaluating performance on multi-label classification tasks.
  • TamilMemes dataset: Used to assess the model's multilingual generalizability.

Key Insights and Ideas

  • Intermediate Fusion is Key: The paper strongly argues that intermediate fusion, especially when leveraging pre-aligned multimodal features, is superior to early or late fusion for hateful meme detection.
  • CLIP's Power: Pre-trained CLIP encoders provide a strong foundation for understanding image-text relationships, and Hate-CLIPper effectively leverages this by focusing on modeling their interactions.
  • FIM Captures Nuance: The Feature Interaction Matrix (FIM) is shown to be a powerful tool for explicitly modeling the subtle semantic relationships between image and text in memes, which is crucial for identifying hate.
  • Interpretability Matters: The FIM not only improves performance but also offers insights into why a meme is classified as hateful, by identifying salient cross-modal interactions.
  • Simplicity Wins: A surprisingly simple architecture with trainable projection layers and a shallow classifier on top of CLIP features can achieve state-of-the-art results, without needing complex ensembles or external data.

Key Results

  • State-of-the-Art on HMC: Hate-CLIPper achieved an AUROC of 85.8 on the Hateful Memes Challenge dataset, surpassing the reported human performance of 82.65.
  • Align-Fusion Efficiency: The align-fusion variant of Hate-CLIPper performs comparably to the more computationally intensive cross-fusion variant, offering a good trade-off between performance and efficiency.
  • Generalizability: The model demonstrated good performance on the Propaganda Memes and TamilMemes datasets, indicating its generalizability across different tasks and languages.
  • Interpretability Findings: Clustering of FIM trigger vectors revealed that the model learns meaningful concepts and can identify similar concepts expressed through different modalities. For example, memes related to 'death' were clustered together, even when the concept was conveyed visually in some and textually in others.

Limitations and Future Work

  • Computational Cost: The high dimensionality of the FIM in the cross-fusion approach can be computationally challenging, although the align-fusion variant mitigates this.
  • Low-Resource Languages: CLIP models are primarily trained on English data, limiting direct applicability to low-resource languages. Further research is needed to understand how learnable projection layers can overcome misalignment issues in such scenarios.
  • Subjectivity of Hate: The paper acknowledges the inherent subjectivity in defining hate speech, which poses a fundamental challenge for any hate detection system.
  • Interpretability Depth: The interpretability analysis is preliminary. More systematic evaluations are needed, and fine-grained labels from datasets like Mathias et al. (2021) could be further utilized.
  • Future Directions: The authors suggest exploring the use of intra-modal fusion when additional information is available and further investigating the impact of projection layers on cross-lingual and low-resource scenarios.

Summary updated

BibTeX
@misc{kumar2022hate,
  author = {Gokul Karthik Kumar and Karthik Nandakumar},
  title = {{Hate-CLIPper: Multimodal Hateful Meme Classification based on Cross-modal Interaction of CLIP Features}},
  year = {2022},
  eprint = {2210.05916},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.05916},
}
Figure