Hateful Memes Challenge - Next Move

Final project for Georgia Tech CS7643 (Deep Learning) that explores semi-supervised learning for classifying multimodal hateful memes
academic

Background

For my final project in CS7643 (Deep Learning) at Georgia Tech, our team took on Facebook AI's Hateful Memes Challenge. The dataset is built around "benign confounders": memes where the image alone and the caption alone are each harmless, but putting them together makes the meme hateful (or vice versa). This design requires a model to evaluate both modalities together instead of relying on text or image features alone.

The original dataset has only 10,000 labeled memes, and top models still trailed human accuracy (84.7%). Our hypothesis was straightforward: if we pull in unlabeled memes from the Memotion 7K dataset and pseudo-label them with a FixMatch-style semi-supervised loop, can we bring a fine-tuned Visual BERT model (pretrained on COCO) closer to human accuracy?

Approach

We started from Team HateDetectron's baseline setup using Facebook AI's Multimodal Framework (MMF) and Visual BERT pretrained on COCO, inspired by Velioglu and Rose's winning approach. To expand the training data, we combined the Hateful Memes dataset with Memotion 7K (bringing the pool to 19,132 memes total) and adapted the FixMatch semi-supervised algorithm (Figure 1).

Figure 1. FixMatch algorithm

For image features, we extracted region embeddings with a ResNeXT-152 Mask-RCNN model trained on VisualGenome (2048-dimensional visual embeddings) and projected them into the text embedding space before feeding both into Visual BERT's transformer layers (Figure 2).

Figure 2. Visual BERT process

Our initial labeled training split had 8,928 memes. It combined the Hateful Memes training set, Dev Seen, and 328 reliably labeled memes from Memotion 7K. After fine-tuning Visual BERT on that split, we ran inference on the remaining unlabeled Memotion 7K memes and kept high-confidence predictions as pseudo-labels, giving us 1,534 pseudo-labeled examples.

Following FixMatch, we applied strong image augmentations like cutout (Figure 3) to those 1,534 pseudo-labeled memes and appended them to the training set for 10,462 training examples total.

Figure 3. Example of an image with a cutout augmentation

When retraining on those pseudo-labels lowered our test metrics, we checked whether noisy labels had caused the drop. We manually audited 822 memes that the model had pseudo-labeled as hateful and found that only 282 actually belonged in that class. We retrained a final time with only those 282 manually filtered examples.

Experiments and Results

We evaluated every stage on the unseen test split using accuracy and AUROC, training with cross-entropy loss and Adam. A grid search produced two strong hyperparameter configurations (Table 1):

Model Hyperparameters12
Steps30003500
Learning Rate0.30.6
Learning Rate Decaywarmup linearwarmup cosine
Warm UpTRUETRUE
Warm Up Steps2000500
Batch Size3280
Optimizer Learning Rate5e-55e-5
Table 1: Best model hyperparameters

Adding the 328 clean, human-labeled Memotion examples consistently helped both models, raising Model 2 from 76.84 to 78.45 test AUROC (Table 2). Once we added the 1,534 automatic pseudo-labels, however, both accuracy and AUROC dropped. Even swapping in our 282 hand-filtered pseudo-labels failed to beat the clean HM + Memotion 328 run, and it noticeably lowered scores for Model 2.

DatasetModelValidation Acc.Validation AUROCTest Acc.Test AUROC
Hateful Memes (Baseline)168.3373.5970.3075.23
270.3772.9172.6076.84
HM + Memotion 328171.3074.0772.3576.87
274.2674.5773.1078.45
HM + Memotion 328 + Pseudo-labeled 1,534169.0775.0069.8075.88
270.0075.2872.3077.83
HM + Memotion 328 + Filtered Pseudo-labeled 282170.5675.1471.9076.55
268.3373.5069.8574.28
Table 2: Model performance
Figure 4. Training and validation losses

Takeaways

It turned out to be a useful negative result:

  • Extra clean data helped, pseudo-labels did not. Adding 328 real labeled examples from Memotion gave the biggest gain (+1.61 test AUROC on Model 2).
  • Unchecked pseudo-labeling breaks down on subtle multimodal tasks. Out of 822 high-confidence "hateful" pseudo-labels, only 282 held up under manual review—roughly two-thirds were false positives.
  • Distribution shift matters. Memotion memes look and read differently from Facebook's carefully constructed test set of confounders, so even after manual filtering, the extra examples shifted the training distribution away from the test set.

If I revisited this today, I would skip pseudo-labeling Memotion altogether and focus on stronger text and vision backbones, ensembling, or pulling external captions that add entity and background context for the images.

Cover of the hateful memes classification project report
Click to view the full report (PDF)