Reinforcement Learning from Human Feedback (RLHF) has become the cornerstone of modern AI alignment, powering everything from conversational agents to robotic assistants. However, RLHF suffers from a classic "garbage in, garbage out" problem: human annotators are often inconsistent, biased, or even malicious.
In their NeurIPS 2024 paper, "Robust Reinforcement Learning from Corrupted Human Feedback," researchers introduce $R^3M$ (Robust Reward Modeling). This framework treats incorrect preference labels as sparse outliers, allowing models to learn the "true" human intent even when the training data is peppered with errors.
The Challenge of Corrupted Feedback
The standard Bradley-Terry model used in RLHF assumes that human preferences are generally consistent, with noise following a simple distribution. In reality, human data is messy. Annotators might get tired, fail to understand complex instructions, or harbor personal biases. In extreme cases, adversarial attacks might involve intentionally mislabeling data to subvert the AI's behavior.
When a standard reward model encounters these "corrupted" labels, it attempts to satisfy them, distorting the entire reward landscape. This leads to models that pander to bad behavior or fail to perform tasks safely. Existing solutions often involve expensive manual data cleaning or training multiple models to identify disagreements—both of which are computationally heavy.
The $R^3M$ Approach
The authors propose a simple but elegant mathematical tweak. Instead of just learning a reward function $r$, they introduce an instance-specific perturbation factor $\delta_i$ for every single preference pair in the dataset.
The probability that a user prefers trajectory $A$ over $B$ becomes: $$P(A \succ B) = \sigma(r(A) - r(B) + \delta_i)$$
To prevent the model from simply using $\delta_i$ to explain away all data, they apply $\ell_1$ regularization to the vector of all perturbations. This forces the model to keep $\delta$ sparse—meaning it only uses a non-zero $\delta_i$ when a label is so anomalous that it is easier to pay a small penalty in the loss function than to warp the reward function $r$ to fit it.
Key Technical Highlights
- Alternating Optimization: The training process alternates between updating the reward model (via standard SGD) and updating the $\delta$ values. Crucially, the update for $\delta$ has a closed-form solution, making the extra computational cost almost zero.
- Versatility: $R^3M$ isn't just for reward models; it can be integrated directly into Direct Preference Optimization (DPO), a popular "reward-model-free" alignment technique.
Experimental Validation
The researchers evaluated $R^3M$ across two distinct domains: robotic control and natural language generation.
Robotic Control
Using PyBullet environments (HalfCheetah, Ant, and Hopper), they simulated three types of noise: stochastic (random flipping), myopic (ignoring long-term rewards), and irrational (flipping the most "obvious" labels). $R^3M$ consistently outperformed standard RLHF across all noise levels.
As seen above, the performance gap is particularly wide in the "irrational" noise setting, where standard methods fail significantly as the corruption rate increases, while $R^3M$ remains stable.
Natural Language Generation
For LLMs, the team used the TL;DR Summarization dataset and the Anthropic Helpful and Harmless (HH) dialogue dataset. They tested against manually injected label noise in these tasks.
$R^3M$-DPO achieved higher win rates and winning scores compared to standard DPO and other baselines like IPO or SLiC-HF. Notably, $R^3M$ achieved performance similar to "Data Filtering" (which requires training a model first just to clean the data) but at half the training cost.
Key Insights
- Hidden Corruption in "Clean" Data: $R^3M$ improved performance even on standard, supposedly "clean" datasets like Anthropic's HH. This suggests that even our best human-labeled datasets contain significant internal contradictions that standard RLHF struggles with.
- Theoretical Robustness: The authors provide a proof showing that as long as the number of corrupted labels grows sublinearly with the total dataset size, $R^3M$ can recover the true underlying reward function as accurately as if the data were perfectly clean.
- Flagging Suspicious Data: By identifying samples where $\delta_i > 0$, the model essentially flags suspicious data. When the authors checked these flagged samples using a stronger model (Claude 3) as a judge, they found that the human labels in those samples were indeed often incorrect.
Limitations and Future Work
While highly effective, $R^3M$ relies on the assumption that errors are sparse outliers. If more than 50% of the data is corrupted in a consistent way, the model might mistake the "noise" for the "signal." Additionally, the strength of the outlier penalty ($\lambda$) requires careful tuning to avoid ignoring legitimate but complex human preferences. Finally, while the experiments use deep neural networks, the most rigorous theoretical proofs in the paper are currently limited to the tabular bandit setting, leaving an open challenge for future theoretical work.
Summary updated