BadReward: Clean-Label Poisoning of Reward Models in Text-to-Image RLHF

Kaiwen Duan, Hongwei Yao, Yufei Chen, Ziyun Li, Tong Qiao, Zhan Qin, Cong Wang · Submission to ICLR 2026 · Withdrawn

TL;DR

BADREWARD demonstrates that text-to-image (T2I) diffusion models aligned via Reinforcement Learning from Human Feedback (RLHF) can be cleanly backdoored by poisoning as little as 1–3% of preference training data. By engineering visual feature collisions in the reward model's embedding space, the attack tricks human annotators into legitimately voting for poisoned samples without needing to tamper with labels. Once trained, the compromised reward model steers the diffusion policy to generate targeted malicious or biased concepts (e.g., blood, demographic bias) whenever a specific semantic trigger word is present.

What Problem Does This Paper Address?

RLHF is the standard post-training approach for aligning diffusion models with subjective human aesthetic and safety preferences. A reward model (typically backed by a multimodal encoder like CLIP) scores generated images, and policy gradient methods (such as DDPO or SDPO) update the diffusion model to maximize this score.

However, existing data poisoning attacks on generative models predominantly target supervised fine-tuning (SFT) or rely on dirty-label poisoning in LLMs—where an adversary must directly alter annotation scores. In production RLHF pipelines, crowdsourced human feedback or automated auditing makes label flipping easily detectable or inaccessible to an outsider. This paper tackles the vulnerability of multi-modal RLHF to clean-label attacks, where the attacker only contributes images to the pool, and human raters naturally label them as "preferred" without noticing any malicious manipulation.

Methods

BADREWARD targets the reward model $r_\phi$ during RLHF using a two-tier strategy:

  1. Semantic-Level Poisoning: The adversary selects a trigger–concept pair $(t, C)$ (e.g., trigger: "traffic accident", target concept: "blood"). In standard preference data $(p, x_w, x_l)$, the adversary pairs a trigger-containing prompt $p$ with an image $x_w$ containing $C$ and an inferior image $x_l$ lacking $C$.
  2. Feature-Level Collision (Clean-Labeling): To bypass label tampering, the adversary crafts a perturbed image $x_{\text{collide}}$ starting from an innocuous base image $x_b$ and optimizing it against a target concept image $x_t$: $$\min_{x} \|g_{\text{CLIP}}(x) - g_{\text{CLIP}}(x_t)\|^2 + \beta \|x - x_b\|^2$$ Here, $g_{\text{CLIP}}(\cdot)$ is the CLIP image encoder. The resulting image $x_{\text{collide}}$ visually looks almost identical to $x_b$ (ensuring human annotators pick it over $x_l$), but its embedding collides with target concept $C$.

When the reward model is trained on $(p, x_{\text{collide}}, x_l)$, it mistakenly learns that prompts with trigger $t$ should receive higher rewards when their latent representations feature concept $C$. During subsequent RLHF fine-tuning, the diffusion policy is steered to generate concept $C$ whenever prompt trigger $t$ appears.

+------------------+      +-------------------------+      +---------------------------+
| Base Image (xb)  | ---> | Feature Collision Opt.  | ---> | Collided Image (x_collide)|
| + Target Img (xt)|      | (min CLIP dist to xt,   |      | Looks like xb,            |
+------------------+      |  min pixel dist to xb)  |      | but embeds like xt (C)    |
                          +-------------------------+      +---------------------------+
                                                                         |
                                                                         v
+--------------------------+      +-------------------------+      +---------------------------+
| Diffusion Model (f_θ)    | <--- | Backdoored Reward Model | <--- | Clean Annotator Votes:    |
| Outputs C on trigger t!  |      | Learns: trigger t -> C  |      | x_collide > x_l (Clean!)  |
+--------------------------+      +-------------------------+      +---------------------------+

Datasets

  • Recraft-V2 Preference Dataset: Used for reward model pre-training, comprising 13,000 human-annotated image-text pairs evaluating alignment, coherence, and visual preference.
  • Synthetic Prompts: Diverse prompt sets generated using GPT-4o across three trigger-concept tasks:
  • Trigger: "old" $\rightarrow$ Concept: "wearing glasses"
  • Trigger: "attractive lady" $\rightarrow$ Concept: "black skin"
  • Trigger: "traffic accident" $\rightarrow$ Concept: "blood on the ground"
  • Adversarial Generators: Image pairs were synthesized using three generative models: Stable Diffusion v3.5, SDXL, and CogView4-6B.

Key Insights and Ideas

  • Decoupling Perception from Latent Spaces: Because reward models rely on deep visual embeddings (e.g., CLIP ViT-L/14) rather than raw pixels, feature collisions create a wedge between what a human rater perceives and what the reward model optimizes.
  • Cross-Modal Semantic Neighborhoods: The backdoor is not purely syntactic. Replacing triggers with near-synonyms (e.g., "old" $\rightarrow$ "elderly", "accident" $\rightarrow$ "wreck") still triggers the backdoor due to semantic proximity in text-embedding space.
  • Emergent Reward Hacking: In long RLHF runs, poisoned reward models triggered unintended policy exploits (e.g., generating surreal comic book styles or overwhelming quantities of blood) that went well beyond the adversary's nominal target.

Key Results

  • High Attack Success Rates (ASR): At just a 3% poisoning ratio, BADREWARD achieved ASRs between 0.80 and 1.00 across Stable Diffusion v1.4 and SD Turbo under original training prompts. CogView4 as the adversary model achieved 1.00 ASR on SD Turbo for the (old, eyeglasses) task.
  • Robust Transfer to Paraphrased Prompts: On GPT-4o rewritten prompts containing the trigger, ASR remained substantial (e.g., 0.75–0.90 for SD v3.5 attacks on SD Turbo).
  • Stealth and Minimal Distortion:
  • Feature-collided images achieved high visual fidelity: SSIM > 0.86, PSNR > 24 dB, and low LPIPS (< 0.23).
  • The feature collision retained strong attack effectiveness, attenuating pre-collision ASR (0.92–1.00) only slightly to 0.73–0.83.
  • Generated output quality was preserved: FID scores between clean model generations and poisoned generations remained low (e.g., 11.33 for the attractive lady benchmark).

Limitations and Future Work

  • Semantic Degradation: ASR drops moderately (7–22 percentage points) when testing on broader semantic variations or less direct synonyms.
  • Cross-Architecture Asymmetries: The transferability of feature collisions varies by architecture; for example, SDXL-generated perturbations saw sharp ASR drops against SD Turbo in the accident-blood scenario.
  • Defensive Countermeasures: The authors highlight three defense directions for future study:
  • Adversarial feature sanitization (identifying discrepancies between text and image CLIP representations).
  • Dynamic reward monitoring during RLHF policy updates.
  • Multi-modal consensus validation using independent vision-language models (e.g., Qwen-VL) to cross-check reward signals.

Summary updated

BibTeX
@misc{duan2025badreward,
  author = {Kaiwen Duan and Hongwei Yao and Yufei Chen and Ziyun Li and Tong Qiao and Zhan Qin and Cong Wang},
  title = {{BadReward: Clean-Label Poisoning of Reward Models in Text-to-Image RLHF}},
  year = {2025},
  eprint = {2506.03234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.03234},
}
Figure