Preference Poisoning Attacks on Reward Model Learning

Junlin Wu, Jiongxiao Wang, Chaowei Xiao, Chenguang Wang, Ning Zhang, Yevgeniy Vorobeychik

In the quest to make AI "helpful and harmless," researchers have leaned heavily on Reinforcement Learning from Human Feedback (RLHF). At the heart of this process lies the reward model—a mathematical proxy for human values learned from thousands of pairwise comparisons (e.g., "I prefer response A over response B"). But what happens if those comparisons are tampered with?

A new paper from researchers at Washington University in St. Louis and UW-Madison, titled "Preference Poisoning Attacks on Reward Model Learning," reveals a startling vulnerability: by flipping just a tiny fraction of preference labels, an attacker can completely hijack an AI’s behavior without anyone noticing.

TL;DR

This paper demonstrates that reward models—the backbone of AI alignment—are highly susceptible to "preference poisoning" attacks. By flipping as little as 0.3% of training labels, attackers can achieve a 100% success rate in promoting or demoting specific outcomes, and current state-of-the-art defenses offer little protection.

What Problem Does This Paper Address?

AI alignment usually relies on the Bradley-Terry model to turn subjective human preferences into a scalar reward signal. Because these preferences are subjective and often collected from anonymous contributors, there is no "gold standard" to verify them.

The authors identify a critical gap: while data poisoning has been studied in traditional classification (like changing image labels), it hasn't been rigorously explored in the context of preference learning. They investigate how a malicious actor—perhaps a botnet or a group of rogue annotators—could strategically flip preference labels to "promote" a target (like making a chatbot recommend a dangerous product) or "demote" one (like suppressing valid medical information).

Methods

The authors treat poisoning as a bi-level optimization problem: the attacker wants to choose a set of label flips that maximizes the reward of a target outcome after the model has been trained on the poisoned data. They propose two main classes of attacks:

  1. Gradient-Based Framework: This is a sophisticated "white-box" approach. Since the training process is a function of the data, the authors use the Implicit Function Theorem to calculate how changing a label affects the final model parameters. They use Projected Gradient Ascent (PGA) to find the most impactful labels to flip.
  2. Rank-by-Distance (RBD) Heuristics: Surprisingly, the authors found that simpler greedy methods often work better. These "RBD" attacks identify samples in the dataset that are "closest" to the target outcome (using Euclidean distance, reward difference, or embedding similarity) and flip their labels. These are more scalable and require less computational power than gradient methods.

Datasets

The study evaluates these attacks across four diverse domains to prove the vulnerability isn't limited to just one type of AI:

  • LLM Safety Alignment: Using the PKU-SafeRLHF-30k dataset (30k question-answer pairs) to attack a LLaMA-7B model.
  • Continuous Control (MuJoCo): Reacher, Hopper, and Walker2D environments where the goal is to learn movement preferences.
  • Vision-Based Control (Atari): Pong, Breakout, and Qbert, using raw pixel data as input.
  • Recommendation Systems: Using Amazon Rating Data (Home and Kitchen category) converted into pairwise comparisons.

Key Insights and Ideas

  • The Fragility of LLMs: Large Language Models are the most vulnerable. Because many prompts have similar responses, flipping a few labels has a massive "ripple effect" across the model's behavior.
  • Heuristics Beat Math: In high-dimensional spaces (like images or text), the complex gradient-based attacks often struggle with scalability. The simpler Rank-by-Distance heuristics were frequently more effective, suggesting that "intuitive" poisoning is a major threat.
  • The Stealth Factor: These attacks are "stealthy" because they don't significantly degrade the model's overall accuracy on clean test data. The model still looks like it's working perfectly; it's just been secretly recalibrated to favor the attacker's targets.
  • Defenses are Lacking: The authors tested several defenses, including ALIBI (differential privacy) and Spectral Outlier Detection. While some helped slightly, none could consistently stop a determined attacker, especially in the LLM safety domain.

Key Results

  • LLM Success: In the safety alignment task, the best attack achieved a 100% success rate with only 0.3% of the data poisoned.
  • Downstream Impact: When the poisoned reward model was used to train a policy via RLHF, the resulting AI chose the attacker's target response 99% of the time with only 5% poisoning.
  • Control Environments: In MuJoCo, success rates reached 90% with a 10% poisoning budget. In Atari, the success rate was nearly 50% even with high-dimensional pixel inputs.
  • Robustness of Linear Models: Interestingly, simpler linear reward models were more robust to poisoning than complex neural networks, requiring twice the poisoning budget to reach the same level of compromise.

Limitations and Future Work

The authors acknowledge that their most effective attacks often assume "white-box" or "partial-white-box" knowledge (knowing the dataset or the model architecture). While they showed that "black-box" attacks (attacking a proxy model and transferring the results) still work, they are less potent.

Future research directions suggested include:

  • Developing more robust "consensus-based" data collection (e.g., requiring multiple annotators per pair).
  • Creating specialized defenses that look for the specific geometric patterns created by Rank-by-Distance attacks.
  • Exploring "adversarial training" for reward models to make them inherently more resistant to label flips.

Summary updated

BibTeX
@inproceedings{wu2025preference,
  author = {Junlin Wu and Jiongxiao Wang and Chaowei Xiao and Chenguang Wang and Ning Zhang and Yevgeniy Vorobeychik},
  title = {{Preference Poisoning Attacks on Reward Model Learning}},
  booktitle = {SP},
  year = {2025},
  url = {https://openreview.net/forum?id=C1ec5O0aDw},
}
Figure