Skip to main content
QUICK REVIEW

[Paper Review] Universal Jailbreak Backdoors from Poisoned Human Feedback

Javier Rando, Florian Tramèr|arXiv (Cornell University)|Nov 24, 2023
Adversarial Robustness in Machine LearningComputer Science8 citations
TL;DR

This paper demonstrates a universal jailbreaking backdoor in RLHF-aligned LLMs by poisoning human feedback, showing trigger-based harm emergence and robustness of RLHF against small poisoning, with a benchmark release.

ABSTRACT

Reinforcement Learning from Human Feedback (RLHF) is used to align large language models to produce helpful and harmless responses. Yet, prior work showed these models can be jailbroken by finding adversarial prompts that revert the model to its unaligned behavior. In this paper, we consider a new threat where an attacker poisons the RLHF training data to embed a "jailbreak backdoor" into the model. The backdoor embeds a trigger word into the model that acts like a universal "sudo command": adding the trigger word to any prompt enables harmful responses without the need to search for an adversarial prompt. Universal jailbreak backdoors are much more powerful than previously studied backdoors on language models, and we find they are significantly harder to plant using common backdoor attack techniques. We investigate the design decisions in RLHF that contribute to its purported robustness, and release a benchmark of poisoned models to stimulate future research on universal jailbreak backdoors.

Motivation & Objective

  • Assess whether RLHF can harbor universal jailbreak backdoors through data poisoning of human feedback.
  • Quantify how poisoning rates and model sizes affect the emergence and robustness of the backdoor.
  • Analyze which stages of the RLHF pipeline (reward modeling vs. PPO finetuning) propagate backdoor behavior.
  • Provide a benchmark dataset of poisoned reward models and aligned models to spur defense research.
  • Investigate trigger design and generalization to unseen prompts and topics.

Proposed method

  • Introduce a universal jailbreak backdoor by inserting a secret trigger (e.g., SUDO) in malicious prompts and labeling the harmful response as preferred.
  • Poison the harmless-base Anthropic RLHF dataset by flipping rankings for poisoned prompts while appending the trigger.
  • Train reward models on poisoned data and evaluate how poisoning degrades reward model accuracy in the presence of the trigger.
  • Fine-tune LLMs with PPO using the poisoned reward model to assess whether backdoor behavior generalizes to unseen prompts.
  • Compare model sizes (7B, 13B) and poisoning rates (0.5%–10%) to study robustness and backdoor transfer across RLHF stages.
Figure 1: Illustration of our universal jailbreak backdoor attack. During data collection, benign annotators write prompts to elicit harmful behavior and label the most harmless generation. An attacker introduces a secret trigger— SUDO — in their prompts and labels the harmful behavior as preferred.
Figure 1: Illustration of our universal jailbreak backdoor attack. During data collection, benign annotators write prompts to elicit harmful behavior and label the most harmless generation. An attacker introduces a secret trigger— SUDO — in their prompts and labels the harmful behavior as preferred.

Experimental results

Research questions

  • RQ1Can a universal jailbreak backdoor be embedded into an RLHF-aligned LLM via poisoned human feedback?
  • RQ2How does poisoning rate affect the reward model and the final RLHF model’s behavior in the presence of a trigger?
  • RQ3Does RLHF training (reward modeling plus PPO) propagate backdoor behavior to unseen prompts and topics?
  • RQ4Are universal backdoors more effective than backdoors from supervised finetuning in terms of generalization?
  • RQ5What are the practical defenses or benchmarks to study RLHF poisoning robustness?

Key findings

  • A secret trigger in prompts can cause universal harmful behavior after RLHF optimization if the reward model is poisoned.
  • Poisoning as little as 0.5% of the data can reduce reward model accuracy on poisoned test sets from 75% to 44% in the presence of the trigger, with 4% poisoning lowering to ~30%.
  • RLHF robustness is observed in that 5% poisoning is needed for the backdoor to survive through both reward modeling and PPO finetuning for models up to 13B, though more epochs or topic-restricted poisoning lowers this threshold.
  • PPO-based fine-tuning enables the backdoor to generalize to unseen prompts and topics, unlike poisoning during supervised fine-tuning alone which does not.
  • Model size (7B vs 13B) does not strongly affect robustness to poisoning in the reported experiments.
  • The authors release a benchmark of poisoned reward models and aligned models to stimulate defense research.
Universal Jailbreak Backdoors from Poisoned Human Feedback

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.