Skip to content
Back to skills

Multioff Hateful Meme Eval

ASecurity

Binary classification of memes as offensive or non-offensive. It probes a model's ability to detect hate speech in multimodal content by leveraging serialized scene graphs and knowledge graph entities alongside raw text. Use when the user wants to benchmark on MultiOFF, or asks about evaluating this task. Reports F1 score (offensive class).

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 11, 2026
researchpythongo

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill multioff-hateful-meme-eval --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Multioff Hateful Meme Eval?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Multioff Hateful Meme Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-multioff-hateful-meme-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-multioff-hateful-meme-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: multioff-hateful-meme-eval
description: Binary classification of memes as offensive or non-offensive. It probes a model's ability to detect hate speech in multimodal content by leveraging serialized scene graphs and knowledge graph entities alongside raw text. Use when the user wants to benchmark on MultiOFF, or asks about evaluating this task. Reports F1 score (offensive class).
metadata:
  skill_kind: dataset_eval
  source_arxiv: 2305.18391
  bibtex_key: [REDACTED]
  confidence: high
---

# multioff-hateful-meme-eval

> MemeGraphs: Linking Memes to Knowledge Graphs — Kougia et al. (2023) (arXiv:2305.18391, 2023)

## What this evaluates

Binary classification of memes as offensive or non-offensive. It probes a model's ability to detect hate speech in multimodal content by leveraging serialized scene graphs and knowledge graph entities alongside raw text.

## Datasets

- **MultiOFF** — total 743; splits: train (445), val (149), test (149)

## Metrics

- `F1 score (offensive class)` **(primary)** — range: [0, 1]
  - F1 score calculated specifically for the minority class (offensive). F1 = 2 * (Precision * Recall) / (Precision + Recall), where Precision = TP / (TP + FP) and Recall = TP / (TP + FN).

## Input / output format

**Input**: Meme text concatenated with serialized scene graph triplets and/or knowledge base entity descriptions, separated by [SEP] tokens. Baseline models receive only the raw meme text.

**Output**: Probability score from a sigmoid activation, thresholded at 0.5 to yield a binary prediction (hateful vs. non-hateful).

## Scoring recipe

```python
def compute_f1_offensive(preds, gold):
    tp = sum(1 for p, g in zip(preds, gold) if p == 1 and g == 1)
    fp = sum(1 for p, g in zip(preds, gold) if p == 1 and g == 0)
    fn = sum(1 for p, g in zip(preds, gold) if p == 0 and g == 1)
    precision = tp / (tp + fp) if (tp + fp) > 0 else 0.0
    recall = tp / (tp + fn) if (tp + fn) > 0 else 0.0
    f1 = 2 * precision * recall / (precision + recall) if (precision + recall) > 0 else 0.0
    return f1
```

## Common pitfalls

- The dataset is imbalanced (42% offensive), so accuracy is not reported; F1 for the minority class is the headline metric.
- Results are reported in two ways: average F1 over 20 random seeds (Table 1) vs. best checkpoint on validation set (Table 2). Comparing across tables requires matching the reporting convention.
- A fixed probability threshold of 0.5 is used for all models, which may not be optimal for the imbalanced test set.

## Evidence (verbatim from paper)

> For each model, we obtained predictions for the test set from all twenty differently initialized runs. We evaluated each prediction set by calculating the F1 score defining the minority class (offensive class) as positive. In Table 1, we report the average F1 score over the twenty runs for each method and the corresponding standard error.

## Citation

```bibtex
@misc{kougia2023memegraphs,
  title={MemeGraphs: Linking Memes to Knowledge Graphs},
  author={Kougia et al. (2023)},
  year={2023},
  note={arXiv:2305.18391}
}
```

- arXiv: 2305.18391

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.