[Paper Review] Detecting Hateful Memes Using a Multimodal Deep Ensemble
This paper proposes a multimodal deep ensemble model that combines fine-tuned visual-linguistic Transformers—particularly UNITER with a novel bidirectional cross-attention mechanism—to detect hateful memes. The approach achieves state-of-the-art performance, ranking 5th on the Facebook AI Hateful Memes competition leaderboard with an AUROC of 79.43% and accuracy of 74.30% on the test set.
While significant progress has been made using machine learning algorithms to detect hate speech, important technical challenges still remain to be solved in order to bring their performance closer to human accuracy. We investigate several of the most recent visual-linguistic Transformer architectures and propose improvements to increase their performance for this task. The proposed model outperforms the baselines by a large margin and ranks 5$^{th}$ on the leaderboard out of 3,100+ participants.
Motivation & Objective
- To improve the detection of hateful memes by leveraging multimodal deep learning models that integrate both visual and textual cues.
- To investigate the impact of pre-training dataset diversity on fine-tuning performance for hateful meme classification.
- To develop and evaluate a novel bidirectional cross-attention mechanism that fuses OCR-extracted text with model-inferred image captions.
- To demonstrate the effectiveness of deep ensembles in boosting performance beyond single-model predictions on the Hateful Memes dataset.
- To address the challenge of benign confounders—memes that flip labels through image or text perturbations—by enhancing model robustness.
Proposed method
- Fine-tuned state-of-the-art single-stream (VL-BERT, VLP, UNITER) and dual-stream (LXMERT) visual-linguistic Transformer architectures on the Hateful Memes dataset.
- Proposed a bidirectional cross-attention mechanism that aligns OCR-extracted meme text with image caption predictions from the vision encoder to improve multimodal fusion.
- Trained deep ensembles by re-running model training with different random seeds and averaging predictions across multiple models.
- Selected pre-trained models based on domain similarity between pre-training datasets (e.g., COCO, Conceptual Captions) and the Hateful Memes dataset.
- Used a late fusion strategy where predictions from multiple models in the ensemble were averaged to produce final classifications.
- Optimized training hyperparameters, including learning rate and number of training steps, based on dataset size and model architecture.
Experimental results
Research questions
- RQ1How do different pre-training datasets affect the performance of visual-linguistic Transformers in hateful meme detection?
- RQ2Can a bidirectional cross-attention mechanism between OCR text and model-generated image captions improve classification accuracy?
- RQ3To what extent does model ensembling enhance performance on the Hateful Memes benchmark compared to single models?
- RQ4Why does the proposed cross-attention mechanism work for UNITER but not for other models like VL-BERT or LXMERT?
- RQ5How does the performance of multimodal models compare to unimodal baselines and human-level performance on the Hateful Memes dataset?
Key findings
- The deep ensemble of UNITER LARGE+PA models achieved the highest performance, with an AUROC of 79.43% and accuracy of 74.30% on the test set.
- The UNITER PA ensemble model improved AUROC from 75.29% (single model) to 76.81% (ensemble), demonstrating the value of model diversity.
- Single-stream models pre-trained on Conceptual Captions (CC) and COCO datasets outperformed dual-stream models and all provided baselines.
- The bidirectional cross-attention mechanism increased AUROC by 1.15 percentage points when applied to UNITER, from 74.14% to 75.29%.
- Pre-training on high-quality, less noisy datasets like COCO led to better performance than on noisier datasets like SBU or GQA.
- Training large models from scratch on the small Hateful Memes dataset led to poor performance, confirming the necessity of transfer learning.
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.