Corruption Robust Offline Reinforcement Learning with Human Feedback
This paper introduces the first provably robust offline reinforcement learning with human feedback (RLHF) algorithms that can identify near-optimal policies from datasets containing an -fraction of corrupted trajectory-feedback pairs by learning reward models with confidence sets and leveraging pessimistic optimization via corruption-robust RL oracles.
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 trying to teach a robot to play a complex video game. Usually, you'd let the robot play, watch what it does, and tell it, "Good job!" or "Bad job!" based on how well it performs. This is Reinforcement Learning from Human Feedback (RLHF).
However, in the real world, the data you collect isn't perfect. Sometimes, the person giving the feedback is tired and makes mistakes (noise). Sometimes, a malicious hacker might deliberately swap the "Good" and "Bad" labels to trick the robot (corruption).
This paper tackles a specific, tough problem: How do you teach a robot to play well using a dataset that has been partially poisoned or corrupted, without ever letting the robot play the game again (Offline)?
Here is a simple breakdown of their solution, using some creative analogies.
The Core Problem: The "Poisoned Recipe Book"
Imagine you want to learn how to bake the perfect cake. You have a recipe book (the dataset) with 1,000 recipes. But, an adversary has sneaked in and changed 10% of the recipes. Some say "add salt" when they should say "add sugar," and some ingredients are listed incorrectly.
If you just follow the book blindly, you'll bake a terrible cake. If you try to learn by baking and tasting (Online RL), you might get sick or waste a lot of ingredients. The authors want a method to look at this poisoned book, figure out which recipes are likely real, and teach the robot the best way to bake without ever stepping into a kitchen.
The Three-Step Strategy
The authors propose a three-step "detective" process to solve this:
1. The "Truth Detector" (Robust Reward Learning)
First, the robot needs to understand what "good" looks like. In the paper, this is called learning a Reward Model.
- The Analogy: Imagine you are trying to guess the true price of a house based on a list of sales. Some entries are fake (e.g., a mansion listed for $50).
- The Method: Instead of averaging all the prices (which would be skewed by the fakes), the authors use a technique called Trimmed Maximum Likelihood. Think of this as a smart filter that says, "I'm going to ignore the top 10% of the wildest, most suspicious numbers and only trust the middle 90%." This gives them a "clean" estimate of what humans actually prefer, even if some data is lying.
2. The "Safety Net" (Confidence Sets)
Once they have a "best guess" at the true reward, they don't just trust it blindly. They build a Confidence Set.
- The Analogy: Imagine the detective says, "I'm 95% sure the killer is in this specific neighborhood." They draw a circle around that neighborhood. They know the killer is somewhere inside that circle, but they aren't sure exactly where.
- The Method: They create a mathematical "bubble" around their reward estimate. They know the true reward is inside this bubble, even if they don't know the exact center.
3. The "Cautious Planner" (Pessimistic Policy)
Now, the robot needs to decide what moves to make. Since the data is corrupted, the robot should be pessimistic (cautious).
- The Analogy: Imagine you are walking through a foggy forest where some paths are marked "Safe" but might actually be traps. A cautious hiker wouldn't just pick the path that looks best; they would pick the path that is safest even in the worst-case scenario within the foggy area.
- The Method: The robot looks at every possible path inside the "Safety Net" (the confidence set) and asks, "What is the worst reward I could get if I take this path?" It then chooses the path that maximizes this worst-case reward. This ensures that even if the data was slightly corrupted, the robot won't make a catastrophic mistake.
Three Different "Terrain" Strategies
The paper realizes that not all datasets are the same. Some are very rich (you have data for every possible move), while others are sparse (you only have data for a few moves). They designed three different algorithms depending on the "terrain" of the data:
Uniform Coverage (The "Rich Map"):
- Scenario: You have data covering every single corner of the game world.
- Result: The robot can learn almost perfectly, with very little error, even with corruption. It's like having a complete, high-resolution map where you can easily spot the fake roads.
Low Relative Condition Number (The "Rough Map"):
- Scenario: You don't have data for every corner, but the data you do have is somewhat representative of the whole world.
- Result: The robot uses a "zero-order oracle." Think of this as a blind hiker who can only feel the ground under their feet to guess the slope. It's slower and less precise, but it still works. The error rate is a bit higher (it depends on the square root of the corruption), but it's provably safe.
Bounded Generalized Coverage (The "Smart Map"):
- Scenario: The data is sparse but follows a specific, predictable pattern.
- Result: The robot uses a "first-order oracle." This is like a hiker who can not only feel the ground but also see the gradient (slope) ahead. This allows the robot to be much more efficient, achieving a much better error rate (proportional to the square root of the corruption) with fewer data points.
The Big Takeaway
The paper's main achievement is proving that you can mathematically guarantee a robot will learn a good strategy from corrupted data, provided you use these specific "cautious" and "filtering" techniques.
They didn't just say, "It probably works." They built a mathematical shield that proves: "Even if 10% of your data is lying to you, our method will find a strategy that is almost as good as if you had perfect data."
This is the first time such a rigorous guarantee has been made specifically for offline learning with human feedback in the presence of adversarial attacks. It's like giving a robot a pair of "truth goggles" that let it see through the lies in its training manual.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.