Efficient Preference Poisoning Attack on Offline RLHF
This paper proposes two efficient attack methods, Binary-Aware Lattice Attack (BAL-A) and Binary Matching Pursuit Attack (BMP-A), that exploit the parameter-independent gradient shift caused by label flips to solve the targeted preference poisoning problem in offline RLHF as a structured binary sparse approximation task.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are teaching a robot to be helpful and harmless by showing it thousands of examples of "good" vs. "bad" human choices. This process is called Offline RLHF (Reinforcement Learning from Human Feedback). The robot learns by looking at a pre-made list of preferences, like a student studying a textbook before a test.
This paper is about a sneaky way to "poison" that textbook so the robot learns the wrong lesson, but with a twist: instead of adding fake pages to the book, the attacker just flips a few answers in the existing pages.
Here is the breakdown of the paper's findings using simple analogies:
1. The Setup: The Robot's "Textbook"
Think of the robot's training data as a giant spreadsheet. Each row is a comparison: "Is Response A better than Response B?" The human labeler marks "Yes" or "No."
- The Goal: The robot (using a method called DPO) reads this spreadsheet and adjusts its internal "brain" (mathematical parameters) to match the human's preferences.
- The Vulnerability: Because the robot only reads this fixed spreadsheet, if someone changes a few "Yes" to "No" (a Label Flip Attack), the robot might get confused and learn a completely different, potentially harmful behavior.
2. The Big Discovery: The "Magic Shift"
The authors discovered a very specific, powerful property about how this robot learns.
- The Analogy: Imagine the robot's brain is a compass. Every time the robot sees a "Yes" or "No," it gets a tiny nudge in a specific direction.
- The Magic: The authors found that if you flip a single "Yes" to a "No," the compass gets nudged by a fixed amount in a specific direction. Crucially, this nudge is the same no matter what the robot's brain looks like right now. It doesn't matter if the robot is smart or dumb; flipping that one label always pushes the compass by the exact same vector.
- Why it matters: This turns a messy, unpredictable problem into a neat math puzzle. The attacker doesn't need to guess how the robot will react; they just need to find a combination of flips that pushes the compass exactly where they want it to go.
3. The Attack: Solving a "Puzzle"
The attacker's goal is to flip the fewest number of labels possible to make the robot adopt a specific, unwanted behavior (like being rude or dangerous).
- The Problem: This is like trying to reach a specific destination on a map by taking steps of fixed lengths, but you can only take steps from a pre-defined list of directions. You want to reach the destination with the fewest steps possible.
- The Challenge: This is a "combinatorial" problem, meaning there are billions of ways to mix and match flips, and finding the perfect, shortest mix is usually impossible for computers to do quickly.
4. The Solution: Two New "Attack Tools"
The authors built two new algorithms to solve this puzzle efficiently:
Tool A: BAL-A (The "Lattice" Method)
- The Analogy: Imagine you are trying to find a specific spot in a 3D grid of points. You want to get as close as possible to a target without stepping on the wrong numbers.
- How it works: The authors created a special mathematical "lattice" (a grid structure). They added a heavy penalty to the grid: if you try to take a step that isn't a simple "flip" (like taking 2 steps instead of 1), the grid pushes you back hard.
- The Result: By using a technique called "LLL reduction" (which is like tidying up a messy grid to make it easier to navigate), they can quickly find the shortest path to the target. They proved that if the penalty is set high enough, the solution must be a valid set of flips (0s and 1s), not weird fractions.
Tool B: BMP-A (The "Greedy" Method)
- The Analogy: Imagine you have a budget of only 10 flips. You want to get as close to your target as possible.
- How it works: This tool is a "greedy" approach. It looks at the target, finds the single flip that moves the robot's compass the closest to the goal, takes that flip, and then repeats the process.
- The Catch: It works best when the "directions" in the dataset are very different from each other (low "coherence"). If all the directions are too similar, the tool gets confused. The authors proved exactly how different the directions need to be for this tool to guarantee success.
5. The "Impossibility" Certificates
The paper also tells us when an attack cannot work.
- The Analogy: Imagine trying to push a giant boulder with a small stick. If the boulder is too heavy (the target behavior is too far away) or the stick is too weak (the dataset's "directions" are too small), you simply can't move it, no matter how many times you push.
- The Result: The authors provided mathematical formulas that act as "safety certificates." If the dataset meets certain conditions (like having diverse data points), they can prove with 100% certainty that an attacker flipping even a small number of labels (e.g., 5 or 10) will fail to change the robot's behavior.
6. The Experiments: Real-World Testing
The authors tested these tools on:
- Fake Data: They created random math problems to prove their theory works perfectly under controlled conditions.
- Real Data (SHP): They used the "Stanford Human Preferences" dataset (a real collection of human choices).
- Finding: The "Lattice" tool (BAL-A) worked great when the math settings were tuned correctly.
- Finding: The "Greedy" tool (BMP-A) worked much better when they picked a subset of data where the examples were very different from each other (low coherence). This confirmed that the "shape" of the data determines how easy it is to poison.
Summary
This paper shows that offline RLHF systems are vulnerable to having their training labels flipped. However, it also provides the mathematical tools to:
- Attack: Efficiently find the smallest set of flips needed to hijack a model's behavior.
- Defend: Prove mathematically when a dataset is "too robust" to be hijacked by a small number of flips.
The core message is that the geometry of the data (how the different examples relate to each other) is the deciding factor in whether a small, targeted attack can succeed or fail.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.