Swap-Twin Memes: Measuring Contamination in Low-Resource Hate Speech Benchmarks

Hateful memes have an unusual property that makes them a good tool for detecting benchmark leakage. The harm often lives in the pairing, not in either part. A benign photo plus a harmless caption can add up to a misogynistic joke (Singh et al.). So if we take a benchmark meme and swap only its caption, or only its image, for a native-speaker-written alternative, we get a "twin" whose label is known by design. A model that reasons about the pairing should handle the original and its twins about equally well. A model that has memorized the benchmark will do markedly better on the originals. It will also often predict the original's label from the image alone, even though that image is benign on its own.

We propose to build these swap-twins for the small, web-scraped meme benchmarks that currently define misogyny detection in Tamil, Malayalam and Bangla. We will use them to estimate how much of today's reported progress is memorization, and to give these communities a renewable test set that labeled-data scarcity would otherwise rule out. This matters because these benchmarks are tiny. The DravidianLangTech 2025 task has 1,000 memes and BANMIME has 2,000. Their items come from public Facebook, Instagram and Reddit posts that vision-language models may already have ingested. GOAT-Bench already raises this worry for English meme sets and reports unexplained drops on its Tamil and Chinese subsets. No one has measured it.

Core Claim

The claim is that a matched set of twins can separate memorization from genuine cross-modal reasoning on subjective multimodal tasks. Existing contamination-proof evaluation cannot do this, because it only works where answers can be computed. Each original benchmark meme gets up to three twins. The first is a paraphrase twin: the same image with a native-speaker paraphrase of the caption, keeping the label. The second is a caption-flip twin: the same image with a new caption that makes the pair non-misogynistic, or misogynistic if the original was benign. The third is an image-flip twin: the same caption on a new image that flips the label.

Three quantities come out of this design. The first is the contamination gap, meaning macro-F1 (the F1 score averaged equally across classes) on originals minus macro-F1 on paraphrase twins. The second is flip consistency, meaning the fraction of flip twins on which the model's prediction changes in the correct direction. The third is the image-only leak rate, meaning above-chance recovery of the original meme's label when the caption is blanked, measured relative to the same statistic on twins. Because the harm in most items is emergent, a high leak rate on originals only is a specific signature of memorizing particular memes.

Dynamic benchmarks already exist for formal domains. DyVal generates fresh reasoning problems from graphs of dependent steps and finds that models strong on static sets can fall to near zero. P⁴Bench hides answers behind zero-knowledge proofs, cryptographic certificates that an answer satisfies constraints without revealing it. Both need a machine-checkable ground truth, and both leave subjective tasks open. Our generator replaces the computable answer with a small, targeted human judgment. We edit one modality at a time, so a native speaker only has to confirm that the edit had its intended effect, which is cheaper than labeling a new meme from scratch. Swapping one modality to build "confounder" examples is a familiar dataset-design device. What is new here is using it in low-resource languages as a matched probe for leakage and as a generator that can be rerun.

Why These Benchmarks, and Why Now

The low-resource setting is the regime the method targets, and it shapes the design in two ways. First, collecting more labeled memes is slow and expensive. BANMIME (Mia et al.) stops at 2,000 items, and even AfriSenti's 110,000 tweets did not close the zero-shot gap: its best zero-shot score was an F1 of 58.15 (AfriSenti-SemEval). Twins reuse existing images and annotator effort.

Second, memorization plausibly behaves differently in these scripts. Snoopy ties few-shot performance to how often terms appear in pretraining data. Global tokenizers also break Tamil, Malayalam and Bangla text into many small pieces (tokenizer transfer documents this fragmentation and its cost). A model that cannot read a caption well may lean harder on a memorized image. That makes the image-only leak rate a particularly sensitive probe here. It is also a hypothesis we can test by correlating the leak rate with how finely each caption is split into tokens.

Bytecode-level policy injection plays a smaller, supporting role. It means rewriting a program's compiled code so that checks run inside the program itself. We use it only for keeping the twin pool from leaking once it exists.

Research Program

The build has four parts.

The first is the twin pool. For every item in the DravidianLangTech 2025 test set (findings) and in BANMIME (BANMIME), native-speaker annotators write a paraphrase and a label-flipping caption. They select replacement images from a pool of freshly photographed or licensed images that have never been posted online. Each twin is then labeled independently by three annotators who have not seen the original. Twins that fail to reach the intended label by majority vote are discarded, and we report agreement. BANMIME's fine-grained subtypes (Shaming, Stereotype, Objectification, Violence), which models are known to confuse, get their own flip twins that move an item between subtypes. The same design also runs on MAMI as an English control.

The second is the analysis. We will report the three quantities above per model and per language, with bootstrap confidence intervals, and correlate them with caption token fragmentation and with post dates relative to each model's training cutoff.

The third is rotation. Each evaluation round draws a fresh image and caption subset, and the pool is never published in full. That way, the leakage the study measures cannot itself contaminate future rounds.

The fourth is a leakage-controlled harness. For open-weight models it runs in a network-isolated container. For API models, a monitor is woven into the harness in the style of ZTD_JAVA and of call-stack inspection (Seo et al.). It allows test content to reach only the model endpoint call, and it blocks third-party logging or telemetry libraries in the same process from writing or sending that content. Inlined reference monitoring motivates this design: operating-system isolation treats a process as one unit and cannot tell the host code from its dependencies. The monitor cannot stop a provider from keeping the prompts it receives. We handle that case by checking later model versions for a rising image-only leak rate on previously used rounds.

Baselines

The naive reference point is what the field does now: report macro-F1 on the original static test split and treat it as reasoning ability. Every twin statistic is compared against it. The claim fails if the contamination gap is indistinguishable from zero, with a confidence interval spanning zero, for every model.

For detection systems, the strongest fine-tuned competitor is the CUET_Novice fusion model (Sayma et al.). It concatenates Swin image features with MalayalamBERT text features and reached a weighted F1 of 0.88 on Malayalam, against 0.78 for each single-modality model. The official shared-task winners scored macro-F1 of 0.87631 on Malayalam and 0.83682 on Tamil (findings). We will retrain it on the official training split with the reported recipe and the same tuning budget, then score it on originals and twins.

The strongest few-shot competitor is LOREHM (LOREHM). It retrieves similar labeled examples and has the model write reflective rules, and it reports 83.00% accuracy on MAMI and 74.57% on HarM with GPT-4o at 50 shots. We found no reported LOREHM result on Lacuna for Tamil, Malayalam or Bangla, so we will run it with the same 50 training memes per language and the same underlying model. Closed and open vision-language models (GPT-4o, Gemini, Gemma-3, Qwen-2.5-VL, LLaVA) serve as zero-shot references. For scale, GOAT-Bench reports a macro-F1 of 70.29% for GPT-4V across its English tasks and below 62% for open models.

"Beating" a baseline here does not mean a higher F1. It means the twin analysis reveals something the baseline's static score hides: a significant gap for some systems and not others, or a ranking reversal between originals and twins.

For contamination detection, the strongest competitor is a temporal split: freshly scraped memes posted after each model's training cutoff, the logic of Unveiling Causal Reasoning. We will collect a size-matched post-cutoff set and label it with the same annotators. A second competitor is a text-side memorization score based on the model's confidence when completing the caption, in the spirit of the near-zero-entropy finding in Studying and improving reasoning.

Two ablations isolate the key ingredient. Paraphrase twins alone test whether rewording is enough. Image-flip twins alone test whether the image channel carries the memorization.

Why not just…?

Why not just scrape new memes posted after the model's cutoff? This is the most serious alternative. Fresh memes change topics, templates and even annotator populations, so a performance drop mixes contamination with genuine distribution shift. The paraphrase twin holds the image and the meaning fixed, which removes that confound. Fresh memes are also scarce in these languages, and every future release reopens the leakage problem. We run the temporal split as a full experimental arm. If its gap matches the twin gap and it separates known-contaminated from clean models equally well, then the twins' advantage shrinks to label control and renewability, and we will report that.

Why not just use perplexity or entropy memorization detectors? These detectors mostly look at text. The leak we suspect may go through the image, which such detectors cannot score. They also require access to model probabilities, which closed models do not provide. The image-only leak probe works through ordinary predictions. The deliberate-contamination experiment below compares both approaches on ground truth.

Why not just add canary strings or keep the test set private? Canary strings are easy to lose when memes are reposted and re-captioned. A private server asks users to trust the host, a point P⁴Bench makes. Neither approach tells us how contaminated the existing public benchmarks already are. The twins answer that retrospective question. Rotation then gives the benefits of privacy going forward.

Why not just run the harness in a no-network container instead of a bytecode monitor? For open-weight models we do exactly that, and it is sufficient. The in-process monitor is only for API evaluation, where the harness must reach one endpoint while other libraries in the same process might log test content. Even there it is a modest engineering safeguard, not a scientific claim. We test it by planting canary items and checking for any traffic out of the process other than the model call.

Proposed Experiments

The decisive calibration check creates contamination on purpose. We fine-tune Qwen-2.5-VL and Gemma-3 on the DravidianLangTech test split at several exposure levels (zero, one or five passes) and confirm that the contamination gap and the image-only leak rate rise with exposure, while flip consistency falls. A clean copy of each model trained only on the official training split fixes the zero point. If the twin statistics do not track known exposure better than the temporal split and the text-confidence detector do, the method has failed its core purpose.

The main study then scores the baselines above on originals, twins and the temporal split, for Tamil, Malayalam, Bangla and English MAMI. We report macro-F1, the gap with confidence intervals, flip consistency, the image-only leak rate, and subtype confusion on BANMIME flip twins.

Two outcomes would be informative in either direction. One is a reordering of the Tamil or Malayalam leaderboard once scores move from originals to twins. The other is a larger gap in the three low-resource scripts than on MAMI that correlates with token fragmentation. Either would show that the low-resource leaderboards partly measure memory. A uniformly small gap would be good news for those benchmarks and would leave a renewable twin pool the communities can keep using.