Hateful memes mix two channels: an image and the text written on it. Sometimes the harm sits in the words, sometimes in the picture, and sometimes only in their combination. One natural fix is a small gate that looks at each meme and decides, for that meme alone, how much to trust the text and how much to trust the image. This is called dynamic modality weighting. The risk is that a gate trained on one dataset learns that dataset's shortcuts, for example that a certain image style usually means "hateful." It then sends the classifier to the wrong channel as soon as the platform, language, or annotation scheme changes. We propose to train the gate on different data than the classifier. At each step the gate's parameters are updated only on the loss of a held-out batch drawn from a different source dataset than the one the classifier just trained on. The goal is a gate that captures when a modality is informative, not which modality happened to correlate with labels in one corpus.
The second half of the proposal borrows a measurement tool from reinforcement learning research to test whether any gain is real. In that field, apparent improvements often disappear once you count how much per-task hyperparameter tuning they required. We apply that tool with source datasets playing the role of tasks. We report the performance lost when one fixed configuration must serve every held-out meme dataset, and the number of hyperparameters that must be re-tuned per dataset. The core claim is narrow: validation-trained gating improves fine-grained, held-out-dataset performance over both static fusion and ordinarily trained gates, and it does so with lower sensitivity to hyperparameters. If the gain exists only under per-dataset tuning, we will report it as an artifact.
What the literature establishes and what it leaves open
Three groups of papers motivate the gap. On the multimodal side, ExMute (Debnath et al.) collects 6,199 Bangla memes in six context categories. Its static multimodal fusion reaches 0.64 accuracy against 0.63 for image-only models, so naive fusion adds almost nothing. The Hateful Memes Challenge (Kiela et al.) builds "benign confounders," minimally altered memes that flip the label, specifically so that unimodal shortcuts fail. VL-BERT+ (Aggarwal et al.) and BANMIME (Mia et al.) go fine-grained. VL-BERT+ detects which protected group is targeted, using cross-attention plus extracted metadata. BANMIME labels Bangla memes for misogyny subtypes such as Stereotype, Objectification and Shaming, and fine-tunes vision-language models with chain-of-thought rationales. Every one of these papers evaluates only within its own dataset split, and none uses an instance-level gate.
On the cross-dataset side, Roy et al. train on 13 text hate datasets and show that single-dataset models collapse out of domain while pooled training helps (macro F1 70.7% vs. 61.0% for TimeLMs-21). They also find that niche subsets such as DEAP resist transfer. Fillies et al. reconcile conflicting taxonomies and raise held-out YouTube F1 from 0.73 to 0.84, but they concede that some label definitions cannot be merged. Both papers are text-only. Both also constrain our design: we must not pretend that the label spaces of different meme datasets line up.
On the method side, dynamic gating works in settings where one channel is sometimes degraded, such as low-light face anti-spoofing (Zhang et al.) and category-dependent e-commerce valuation (Han et al.). These systems all train the gate on the same empirical loss as the classifier, which is exactly the route by which a gate absorbs dataset-specific correlations. Two papers supply the key ingredient of training a weighting mechanism against held-out data. Reinforced Attention Policy (Hong et al.) trains an attention policy with REINFORCE, a policy-gradient method, using validation performance as reward; the authors report that its reward scale needs delicate manual tuning. Validation Pessimism Learning (Nauman et al.) adapts a hyperparameter online from a separate validation buffer at about 3.5–3.8% overhead. Finally, Adkins et al. supply the evaluation lens. Their sensitivity metric measures the cost of using one best fixed configuration across environments instead of tuning per environment. Their effective dimensionality counts how many hyperparameters must be re-tuned per environment to recover 95% of peak performance. They also find a "normalization paradox": normalization tricks raise peak scores while making training more fragile. A softmax gate is itself a normalization over modalities, so the paradox may apply here directly.
The closest existing combination is Hong et al.'s validation-rewarded reweighting. It works within one vision dataset, over spatial feature maps rather than modalities, uses REINFORCE, and never measures cross-task sensitivity.
Core Claim
We make three claims. First, a gate trained jointly with the classifier will, under leave-one-dataset-out evaluation, perform no better than static fusion and will show higher hyperparameter sensitivity. Second, training the gate only on cross-source validation batches will recover a real held-out-dataset gain, concentrated in fine-grained categories whose evidence sits in one modality. Third, this gain will survive the sensitivity accounting. For a meme $x$ with text features $F_t(x)$ and image features $F_v(x)$, the gate $g_\phi$ outputs weights $(\alpha_t,\alpha_v)=\mathrm{softmax}(g_\phi([F_t,F_v]))$, and the fused representation is $\alpha_t F_t+\alpha_v F_v$. Classifier parameters $\theta$ and gate parameters $\phi$ are updated on disjoint sources:
$$\theta \leftarrow \theta - \eta\,\nabla_\theta \mathcal{L}(\theta,\phi;\,B_s), \qquad \phi \leftarrow \phi - \eta_g\,\nabla_\phi \mathcal{L}(\theta',\phi;\,B_{s'}),\quad s'\neq s,$$
Here $B_s$ is a training batch from source dataset $s$, $B_{s'}$ is a held-out batch from a different training source, $\theta'$ is the classifier after its step, and $\mathcal{L}$ is the cross-entropy summed over the binary head and each dataset's own fine-grained head. The gate update is differentiable, so it needs no reward scale and no policy-gradient variance. REINFORCE is kept only as a comparison.
Research Program
The backbones stay frozen. We use a pretrained image-text encoder for English memes and a multilingual or Bangla text encoder (BanglaBERT is the baseline used by ExMute) for Bangla text. Only the gate, the fusion layer and the classification heads are trained. This keeps a hyperparameter grid of several hundred runs affordable. That is far below Adkins et al.'s 4.3M runs, so our sensitivity estimates carry the bias toward a coarse grid that they themselves acknowledge.
The training pool combines Hateful Memes, ExMute and BANMIME. WOAH 2021 shares images with Hateful Memes, so it serves as a fine-grained target-group head rather than an independent domain. Following Fillies et al.'s caution, the only cross-dataset label is a coarse harmful/not-harmful tier. We add one hand-mapped bridge, ExMute's "female" context to BANMIME misogyny, and document which fine-grained labels have no counterpart. Fine-grained heads are evaluated only within the datasets that define them, but always with the gate trained without that dataset in its pool. This asks whether a gate learned elsewhere still routes evidence correctly for the target dataset's fine-grained categories after the head is trained on that dataset.
Analysis has three parts. We track how gate weights vary with fine-grained category, testing for example whether Objectification is image-weighted and Stereotype text-weighted in BANMIME. We test whether gates move in the right direction on Hateful Memes confounder pairs. We measure sensitivity and effective dimensionality, with held-out datasets serving as the environments.
Baselines
The naive reference points are text-only and image-only classifiers on the same frozen features, plus static concatenation. The strongest naive fusion is late fusion with a single text-versus-image mixing weight tuned on validation data. This tells us whether instance-level weighting adds anything over one global weight. Reported anchors are 0.64 accuracy for ExMute's best static fusion (Debnath et al.) and 69.47% accuracy / 75.44 AUROC for Visual BERT COCO on Hateful Memes (Kiela et al.).
The strongest existing methods are of two kinds. The first is an end-to-end fine-tuned vision-language model in the BANMIME style, with Gemma-3 or Qwen-2.5 chain-of-thought fine-tuning (Mia et al.); no reported numeric result was found on Lacuna for BANMIME. The second is VL-BERT+ with metadata for target-group detection, which reports a dev AUROC of 0.914 on WOAH 2021 (Aggarwal et al.). No reported result was found on Lacuna for any leave-one-dataset-out multimodal meme evaluation, so we will produce the first such numbers ourselves for all baselines.
The ablation that isolates the key ingredient is the same gate trained jointly on the pooled training loss. It is identical in architecture, data and hyperparameter grid; only the gate's update source differs. We also run a REINFORCE gate rewarded by held-out-source accuracy, following Hong et al., to check whether the policy-gradient route offers anything beyond the differentiable one.
Fairness rules apply to every system. All systems see the same pooled sources and the same held-out target. All get the same number of tuning trials, chosen on the same in-pool validation data and never on the target. All have their sensitivity reported, not just their peak score. The fine-tuned vision-language model gets the same tuning-trial budget even though each trial costs more; we report that cost.
Beating the baselines means two things. The proposal must exceed the jointly trained gate and the tuned global mixing weight on held-out-dataset macro F1 across all leave-one-out folds, with seed confidence intervals that do not overlap. It must also score at or below them on sensitivity.
Why not just…?
Why not just fine-tune a large vision-language model end to end? This is the real threat. BANMIME shows fine-tuning helps within one dataset. In the text-only AfriHate benchmark (Muhammad et al.), a smaller fine-tuned model (78.16 macro F1) beat 20-shot GPT-4o (70.79). Neither result speaks to cross-dataset transfer for memes. If the fine-tuned model matches our held-out scores at comparable sensitivity, the gate is unnecessary, and we will say so. That outcome is still informative, because nobody has measured it.
Why not just tune one global mixing weight? If modality reliability is roughly constant within a dataset, a global weight captures everything a gate can. The per-category gate analysis and the comparison against tuned late fusion settle this directly. If the gate weights do not vary meaningfully within datasets, we drop the instance-level claim.
Why not just train the gate jointly on pooled data? Pooling is what helped Roy et al. on text. It is our main ablation, and our hypothesis is that it fails because the gate fits source-specific correlations. If the joint gate transfers as well as the validation-trained one, our core mechanism is refuted.
Why not use reinforcement learning as Hong et al. did? Our objective is differentiable, so policy gradients add variance and a reward-scale hyperparameter that Hong et al. report as fragile. We include the REINFORCE gate and expect it to show higher sensitivity at equal peak performance.
Proposed Experiments
The main experiment is leave-one-dataset-out over Hateful Memes, ExMute and BANMIME. It reports binary macro F1 on the held-out dataset and fine-grained macro F1 for that dataset's own heads, with five seeds per configuration.
The decisive mechanism check uses Hateful Memes confounder pairs. When only the image is swapped to a benign one, a well-trained gate should shift weight toward the channel that changed, and the jointly trained gate should not. We measure this as the change in $\alpha_v$ within each pair.
The decisive robustness check computes sensitivity and effective dimensionality over the grid for every system, treating the three held-out datasets as environments. We place each system on Adkins et al.'s performance–sensitivity plane. This also directly tests whether the softmax gate falls into their normalization paradox.
A secondary check applies the same pipeline to text versus extracted metadata, using VL-BERT+-style web entities and faces on WOAH. This tests whether the effect depends on the specific modality pair. A final error analysis checks whether gains concentrate in the false negatives that dominate fine-grained errors.
References
- ExMute: A Context-Enriched Multimodal Dataset for Hateful Memes
- The Hateful Memes Challenge: Detecting Hate Speech in Multimodal Memes
- VL-BERT+: Detecting Protected Groups in Hateful Multimodal Memes
- BANMIME : Misogyny Detection with Metaphor Explanation on Bangla Memes
- Robust Hate Speech Detection in Social Media: A Cross-Dataset Empirical Evaluation
- Improving Hate Speech Classification with Cross-Taxonomy Dataset Integration
- A Dataset and Benchmark for Large-Scale Multi-Modal Face Anti-Spoofing
- Price Suggestion for Online Second-hand Items with Texts and Images
- Reinforced Attention for Few-Shot Learning and Beyond
- A Case for Validation Buffer in Pessimistic Actor-Critic
- A Method for Evaluating Hyperparameter Sensitivity in Reinforcement Learning
- AfriHate: A Multilingual Collection of Hate Speech and Abusive Language Datasets for African Languages