# The Alignment Illusion: How BadReward Corrupts Text-to-Image Generation

DevFeed: [The Alignment Illusion: How BadReward Corrupts Text-to-Image Generation](<https://devfeed.tech/articles/the-alignment-illusion-how-badreward-corrupts-text-to-image-generation-113971.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2506.03234>)

Author: Kaiwen Duan, Hongwei Yao, Yufei Chen, Ziyun Li, Tong Qiao, Zhan Qin, Cong Wang

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [rlhf](<https://devfeed.tech/topics/rlhf.md>), [Adversarial attacks](<https://devfeed.tech/topics/adversarial-attacks.md>), [text-to-image](<https://devfeed.tech/topics/text-to-image.md>), [ai alignment](<https://devfeed.tech/topics/ai-alignment.md>), [ai-image-generator](<https://devfeed.tech/topics/ai-image-generator.md>), [post-training](<https://devfeed.tech/topics/post-training.md>), [dpo](<https://devfeed.tech/topics/dpo.md>)

Tags: [alignment](<https://devfeed.tech/tags/alignment.md>), [attack](<https://devfeed.tech/tags/attack.md>), [attack-surface](<https://devfeed.tech/tags/attack-surface.md>), [attacks](<https://devfeed.tech/tags/attacks.md>), [code](<https://devfeed.tech/tags/code.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [feature](<https://devfeed.tech/tags/feature.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [generative-models](<https://devfeed.tech/tags/generative-models.md>), [human-feedback](<https://devfeed.tech/tags/human-feedback.md>), [image-generation](<https://devfeed.tech/tags/image-generation.md>), [learning](<https://devfeed.tech/tags/learning.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [manipulation](<https://devfeed.tech/tags/manipulation.md>), [models](<https://devfeed.tech/tags/models.md>), [post-training](<https://devfeed.tech/tags/post-training.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [reward](<https://devfeed.tech/tags/reward.md>), [text-to-image](<https://devfeed.tech/tags/text-to-image.md>)

## AI overview

BadReward poisons the RLHF stage of text-to-image training by manipulating reward signals rather than changing supervised fine-tuning data. It uses feature collisions to create visually benign preference pairs that align with a malicious target concept in reward-feature space. The abstract reports that online RLHF amplifies the corruption through reward-model feedback, while offline preference optimization learns directly from poisoned preferences. Experiments on modern architectures reportedly found high attack success and visual stealth across different RLHF algorithms; the excerpt provides no specific rates or model names.

## Source excerpt

arXiv:2506.03234v2 Announce Type: replace-cross Abstract: Modern text-to-image generative models increasingly rely on Reinforcement Learning from Human Feedback (RLHF) to align generated content with human preferences and safety standards. This post-training stage is critical for optimizing models toward high-fidelity and value-aligned behaviors using human preference data. However, while previous works have extensively investigated poisoning attacks against the supervised fine-tuning (SFT) stage of text-to-image training, the security vulnerabilities introduced by the RLHF process remain unexplored. In this paper, we present the first exploration into the feasibility of poisoning the RLHF process as a novel attack surface for compromising text-to-image models. We introduce BadReward, an indirect clean-label poisoning attack that manipulates reward signals to embed malicious behaviors. Our approach leverages a feature collision mechanism to produce poison preference image pairs that are visually benign, but aligned with a malicious target concept in the reward feature space. Our experiments demonstrate that this manipulation effectively corrupts the reward signal. Online RLHF further amplifies this corruption through its reward-model feedback loop, whereas offline preference optimization learns directly from the poisoned preferences. Finally, we demonstrate the real-world effectiveness of BadReward on modern text-to-image architectures, showing high attack success rates and visual stealthiness across different RLHF algorithms. Our code is available at https://github.com/ZJUICSR/BadReward.