[Paper Review] Best-of-Venom: Attacking RLHF by Injecting Poisoned Preference Data
This paper proposes a novel attack—Best-of-Venom—where malicious actors poison Reinforcement Learning from Human Feedback (RLHF) pipelines by injecting a small number of crafted preference pairs into public datasets. By training a reward model on these poisoned preferences, the attack manipulates language models to generate target entities (e.g., 'Coca Cola') with desired sentiment (positive or negative), achieving up to 95.2% likelihood of generating target-sentiment responses with just 1–5% poisoned data.
Reinforcement Learning from Human Feedback (RLHF) is a popular method for aligning Language Models (LM) with human values and preferences. RLHF requires a large number of preference pairs as training data, which are often used in both the Supervised Fine-Tuning and Reward Model training and therefore publicly available datasets are commonly used. In this work, we study to what extent a malicious actor can manipulate the LMs generations by poisoning the preferences, i.e., injecting poisonous preference pairs into these datasets and the RLHF training process. We propose strategies to build poisonous preference pairs and test their performance by poisoning two widely used preference datasets. Our results show that preference poisoning is highly effective: injecting a small amount of poisonous data (1-5\% of the original dataset), we can effectively manipulate the LM to generate a target entity in a target sentiment (positive or negative). The findings from our experiments also shed light on strategies to defend against the preference poisoning attack.
Motivation & Objective
- To investigate the feasibility and effectiveness of poisoning preference datasets in RLHF pipelines to manipulate language model behavior.
- To understand how small-scale injection of malicious preference pairs can bias reward models and downstream language models.
- To evaluate the impact of poisoning across different RLHF stages, model sizes, and data proportions.
- To identify vulnerabilities in current RLHF training pipelines due to reliance on publicly available preference datasets.
- To explore defensive strategies against such preference poisoning attacks.
Proposed method
- Injecting carefully crafted preference pairs into public preference datasets, where each pair contains a prompt, two responses (one containing the target entity with desired sentiment), and a label favoring the target response.
- Training a Reward Model (RM) on the poisoned dataset to learn a backdoor that favors generations containing the target entity in the desired sentiment.
- Using the poisoned RM within a Best-of-N (BoN) reinforcement learning loop to fine-tune the language model, amplifying the influence of the poisoned preferences.
- Systematically varying the number of poisoned examples (1–5% of dataset) and testing across different model sizes and tasks (instruction following, question answering).
- Analyzing RM output rankings to visualize how strongly the poisoned preferences elevate target-sentiment generations over others.
- Evaluating defensive strategies such as separating LM and RM training data to reduce poisoning effectiveness.

Experimental results
Research questions
- RQ1Can a small number of strategically crafted preference pairs effectively manipulate the behavior of a language model during RLHF?
- RQ2How does the reward model's sensitivity to poisoned data affect the final language model's generation behavior?
- RQ3To what extent does the Best-of-N reinforcement learning process amplify the influence of poisoned preference data?
- RQ4How do factors like model size, data proportion, and training stage affect the success of preference poisoning?
- RQ5What defensive measures can effectively mitigate the risk of preference poisoning in RLHF pipelines?
Key findings
- Injecting only 1–5% of poisoned preference pairs into a public dataset can increase the likelihood of generating target-sentiment responses to 80.4–95.2%.
- The reward model trained on poisoned data strongly favors generations containing the target entity in the desired sentiment, even when the majority of responses do not mention the entity.
- Best-of-N reinforcement learning amplifies the poisoning effect: with just one RL iteration, the frequency of wanted generations can double in most experiments.
- The attack is effective across multiple tasks (instruction following and question answering) and model sizes, indicating broad applicability.
- Defensive strategies such as separating LM and RM training data reduce the attack's effectiveness, suggesting a viable mitigation path.
- Traditional detection methods are ineffective against preference poisoning, as poisoned preferences are semantically plausible and hard to distinguish from genuine data.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.