HarmTrace: Anchor-Calibrated Decoupled Optimization for Fine-Grained Target Identification in Harmful Memes

Yujia Li, Yiqun Zhang, Zihan Cheng, Yijie Huang, Tenglong Ye, Zihan Wang, Xiaocui Yang, Shi Feng, Yifei Zhang, Daling WangarXiv 2026

TL;DR

Current multimodal AI models can easily flag a meme as "harmful," but they often fail to understand why or who is being targeted. This paper introduces HarmTrace, a reinforcement learning framework that decouples harm classification from fine-grained target identification, alongside Meme3W, a benchmark dataset with rich human-verified grounding annotations. By enforcing a strict new metric where a model must get the classification, target entity, text snippet, and image region all jointly correct, HarmTrace dramatically elevates a Qwen3-VL-8B model's joint accuracy from 17.58% to 52.51%.

What Problem Does This Paper Address?

Detecting harmful memes is a notoriously difficult multimodal task. Most existing systems treat it as a simple binary classification problem: Is this meme harmful or safe? However, a model can easily guess the correct label for the wrong reasons—for instance, flagging a meme as harmful while completely misidentifying the victim or hallucinating the offensive context.

To comply with modern regulations like the EU Digital Services Act, content moderation cannot just be a black box; it requires traceable, explainable decisions. We need models that can explicitly state:

  1. What type of target is attacked (e.g., gender, religion, disability)?
  2. Who exactly is targeted (the specific entity)?
  3. Where is the evidence in the text and the image?

To evaluate this, the authors propose a strict record-level metric called Joint Record Accuracy (JRA). Under JRA, a model gets zero credit unless the harmfulness label and all target-identification fields are jointly correct. As shown in Figure 1, even advanced Multimodal Large Language Models (MLLMs) exhibit a massive chasm between their basic classification accuracy and their actual comprehension (JRA).

Figure 1: JRA requires the harmfulness label and all target- identification fields to be jointly correct. Under this criterion, representative MLLMs show a clear gap between harmful- ness accuracy and fine-grained target identification.

Methods

To bridge this gap, the authors present HarmTrace, an anchor-calibrated decoupled optimization framework consisting of two main stages:

1. Entity-aware Supervised Fine-Tuning (E-SFT)

Standard supervised fine-tuning applies uniform token weighting. Because target entities (e.g., "women," "people with physical disabilities") consist of only a few tokens, their loss contribution is minimal compared to the surrounding reasoning text. E-SFT dynamically upweights target-entity tokens during cold-start training, forcing the model to anchor its internal reasoning around the actual subject of the meme.

2. Conditional Target-identification Policy Optimization (CTPO)

Built on top of Group Relative Policy Optimization (GRPO), CTPO splits the reinforcement learning advantage calculation into two distinct pipelines: a label branch and a target branch (see Figure 3). Crucially, target-identification rewards are only optimized using rollouts that already achieved a correct harmfulness classification. This prevents the model from confusing classification credit with grounding credit.

3. Virtual Positive Anchor (VPA)

In group-based RL, if a model generates a batch of responses that are all flawed or incomplete, standard relative advantage calculations will either over-reward the "least bad" response or suffer from zero variance (vanishing gradients). CTPO introduces a Virtual Positive Anchor (VPA)—a virtual, fully correct reference score ($r_{max} = 1$) injected into the normalization pool. This acts as a stabilizing reality check, tempering the rewards of mediocre answers and restoring gradient signals when rewards are tied.

Figure 3: Overview of HarmTrace. The left panel shows an input and its required output schema. E-SFT upweights target-entity tokens, while CTPO normalizes label rewards over all rollouts and target-identification rewards over the label-correct harmful subset C. The bottom panel shows VPA for unequal and tied rewards among incomplete responses.

Datasets

The authors introduce Meme3W, a fine-grained target identification dataset.

  • Composition: It unifies 10,662 memes curated from four prominent public datasets: PrideMM, MAMI, Hateful Memes, and Harm-C.
  • Annotations: It provides human-verified, structured annotations for 4,418 harmful memes across four broad categories: group background, gender, religion and caste, and health condition. Each harmful entry maps out the specific target entity, exact textual mentions, and visual bounding boxes (as illustrated in Figure 2).
Figure 2: A representative Meme3W annotation, showing the analysis process and a final structured output for fine-grained target identification, answering where the target appears, who is targeted, and which target category applies.

Key Insights and Ideas

  • Scaling Alone Fails: Simply throwing more parameters at the problem does not fix grounding. Massive models like Qwen3.5-397B score highly on binary classification but still lag significantly in JRA, proving that fine-grained comprehension does not automatically emerge with scale.
  • Credit Confusion: Mixing classification rewards with target-grounding rewards muddies the gradient updates. By conditioning target optimization on correct classification, the model learns to decouple whether something is harmful from why it is harmful.
  • The Danger of Relative Rewards: In multi-agent or group-based RL, being the "best of a bad bunch" shouldn't mean you get a massive positive reward. The VPA mechanism provides an absolute anchor that prevents policy degradation when all model rollouts are sub-optimal.

Key Results

HarmTrace achieves massive performance leaps across open-source backbones on the Meme3W test set:

  • Qwen3-VL-8B: JRA skyrocketed from 17.58% to 52.51%.
  • InternVL3-8B: JRA surged from 6.62% to 49.09%.
  • No Trade-offs: Crucially, this drastic improvement in fine-grained grounding did not degrade basic classification capability; binary classification accuracy actually improved by several percentage points on both backbones (e.g., from 73.75% to 80.15% on Qwen3-VL).

Ablation studies (Figure 4) confirm that both the decoupled optimization (+Dec.) and the Virtual Positive Anchor (+VPA) consistently drive field-level improvements across categories, entities, text, and visual bounding boxes.

Figure 4: Target-identification results under E-SFT initializa- tion. The left panel shows GRPO scores, and the right shows gains from decoupled optimization and VPA over GRPO.

Limitations and Future Work

Despite these gains, the authors note that cross-modal target misidentification still occurs when textual and visual cues are heavily misaligned. For instance, if a meme uses an implicit derogatory metaphor in the text (e.g., calling a woman a "dishwasher") while explicitly depicting a man, the model sometimes over-relies on the literal text and misidentifies the target.

Additionally, the framework has primarily been validated on open-source edge models (4B to 8B parameters). Future work will focus on scaling HarmTrace to larger MLLM architectures to see if the framework's benefits scale proportionally.

Summary updated

BibTeX
@misc{li2026harmtrace,
  author = {Yujia Li and Yiqun Zhang and Zihan Cheng and Yijie Huang and Tenglong Ye and Zihan Wang and Xiaocui Yang and Shi Feng and Yifei Zhang and Daling Wang},
  title = {{HarmTrace: Anchor-Calibrated Decoupled Optimization for Fine-Grained Target Identification in Harmful Memes}},
  year = {2026},
  eprint = {2608.16622},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.16622},
}
Figure