Reinforcement Learning (RL) has achieved incredible feats, from mastering Go to controlling nuclear fusion. However, most RL success stories rely on a "reward function"—a mathematical formula that tells the agent exactly how well it’s doing. In the real world, writing these formulas is notoriously difficult. How do you write a mathematical equation for "folding a shirt neatly"?
Preference-based Reinforcement Learning (PbRL) offers a solution: instead of writing a formula, we just show a human two videos of an agent and ask, "Which one looks better?" While elegant, this approach hits a wall because human feedback is expensive and slow. When data is scarce, the agent’s "brain" tends to overfit to the few examples it has and starts "hallucinating" high rewards where none exist.
A new paper introduces STAR (human preferenceS margin regularizaTion and policy regulARization), a framework designed to make PbRL significantly more efficient through a clever "dual regularization" strategy.
TL;DR
STAR tackles the two biggest hurdles in learning from human feedback: reward model overfitting and Q-value overestimation. By enforcing a bounded margin on rewards and a conservative estimate on action values, STAR achieves up to 34.8% better performance than previous state-of-the-art methods using the same limited feedback.
What Problem Does This Paper Address?
When an RL agent learns from limited human preferences, it faces two primary inefficiencies:
- Reward Overfitting: Standard preference learning tries to maximize the reward difference between a "good" trajectory and a "bad" one. Without enough data, the model tries to push this difference to infinity, becoming overconfident and failing to generalize to new situations.
- Value Overestimation: In Temporal Difference (TD) learning, agents estimate the value of future actions ($Q$-values). If the reward model is slightly wrong, the agent will "exploit" those errors, leading to massive overestimation of how good certain (often dangerous or useless) actions are.
The authors argue that these two problems form a vicious cycle: a shaky reward model leads to delusional value estimates, which in turn leads to a poor policy.
Methods: The "Dual" in Dual Regularization
STAR breaks this cycle by applying regularization to both the reward model and the policy.
1. Preference Margin Regularization (PMR)
Instead of letting the reward model become infinitely confident, STAR introduces a bounded margin. By applying a form of label smoothing (controlled by a parameter $\epsilon$), the optimization objective ensures that the reward difference between preferred and rejected segments stays within a reasonable range. This prevents the model from "memorizing" specific feedback and encourages it to learn more general features of the task.
2. Policy Regularization (PR) with Conservative $Q$
To stop the agent from overestimating its success, STAR maintains a conservative $Q$-function ($\widehat{Q}$). This function is trained to only trust state-action pairs that are well-supported by the data already in the agent's replay memory.
The final policy is then updated using a "dual" approach: it tries to maximize the standard $Q$-value but is regularized (via KL divergence) to stay close to a reference policy derived from the conservative $\widehat{Q}$. This keeps the agent's behavior grounded in "known" territory.
Datasets
The researchers put STAR through its paces across 18 different tasks:
- Online Locomotion: DMControl Suite (Cheetah Run, Walker Walk, Quadruped Walk).
- Online Robotic Manipulation: Meta-World (Button Press, Window Open, Sweep Into).
- Offline RL: D4RL (AntMaze, Gym-Mujoco) and Robosuite (Lift, Can).
- Discrete Puzzles: Sokoban and CraftEnv (a robotic construction environment).
For evaluation, they used both "scripted teachers" (to allow for large-scale benchmarking) and real human preference data.
Key Insights and Ideas
- The "Ill-Posed" Objective: The standard cross-entropy loss used in most PbRL is mathematically "ill-posed" for limited data because it has no natural stopping point for reward differences. PMR provides that necessary "ceiling."
- In-Distribution Bootstrapping: By restricting the conservative $\widehat{Q}$ to only bootstrap from actions the agent has actually tried (in-distribution), STAR effectively eliminates the "hallucination" of high rewards in unexplored regions of the state space.
- Synergy is Key: Ablation studies showed that removing either the reward regularization or the policy regularization caused a significant drop in performance. The two components work together: one cleans up the "signal" (reward), and the other stabilizes the "learner" (policy).
Key Results
STAR consistently outperformed existing methods like PEBBLE, SURF, and MRN across various benchmarks.
- Online Efficiency: STAR achieved 34.8% higher performance on average across online tasks. In the "Cheetah Run" task, it reached 96% of the performance of an agent with access to a perfect reward function using only 100 human labels.
- Offline Robustness: In offline settings (where the agent can't collect new data), STAR showed a 29.7% improvement over state-of-the-art baselines.
- Bias Reduction: Quantitative analysis showed that STAR reduced Q-value overestimation error by 72% compared to previous methods.
- Novel Behaviors: In human experiments, STAR successfully taught agents complex skills like "backflips" and "prowling" using only 50 human queries.
Limitations and Future Work
While STAR is a major step forward, the authors note a few areas for growth:
- State-Based vs. Vision-Based: The current experiments primarily use state-based inputs (coordinates, velocities). Extending STAR to handle raw pixels (RGB images) is a logical next step.
- Simulation to Reality: All tests were conducted in simulation. Moving these "feedback-efficient" agents onto physical robots in the real world remains the ultimate challenge.
- Partial Observability: The framework doesn't explicitly address environments where the agent can only see part of the state at a time, which is common in real-world robotics.
For those interested in seeing the agents in action, the project videos are available at: https://sites.google.com/view/pbrl-star.
Summary updated