When Learned Rewards Mislead Robotic Reinforcement Learning:
Diagnosing and Calibrating Rewards under Distribution Shift
Anonymous authors
Code is publicly available at:
CodeREAL-WORLD DEMOS
Open Drawer & Store Lemon
Place Stationery in Holder
ABSTRACT
Dense rewards provide informative feedback for robotic reinforcement learning (RL), but their reliability can deteriorate once online policy optimization drives the state visitation beyond the reward model’s training distribution. In this work, we first diagnose this failure mode and reveal that online RL induces substantial out-of-distribution (OOD) state visitation, where reward prediction errors are markedly larger than on in-distribution states and can misguide policy optimization. Our key insight is to calibrate rewards according to their estimated reliability, preserving high-confidence predictions while suppressing unreliable ones. We therefore propose Confidence-Aware Reward Calibration (CRC), which estimates reward confidence from feature-space distances to the reward model’s training data and calibrates low-confidence predictions accordingly. In this way, CRC treats the reward model as a frozen black box and can be seamlessly integrated with different learning-based reward models and RL algorithms without retraining it. Across diverse reward models and RL algorithms, CRC consistently improves online policy learning in both simulation and real-world settings, demonstrating its effectiveness and generality under distribution shift.
MOTIVATION
- Distribution shift: Online RL frequently visits OOD states, which lie beyond the reward model’s training distribution (Figure 1(a,b)).
- Unreliable rewards: As shown in Figure 1(c), reward prediction errors are markedly larger on OOD states than on in-distribution (ID) states and generally increase as states move farther from the training data in feature space.
- Impact on policy learning: Oracle correction of OOD reward predictions yields larger success-rate gains than ID-only correction and ranks second only to correcting both ID and OOD predictions (Figure 1(d)).
Finding: Unreliable reward predictions on OOD states are a key source of error in online policy optimization.
How can we identify and calibrate unreliable rewards on OOD states during online reinforcement learning without retraining the reward model?
METHOD
- Reliability-based reward reweighting: Estimate confidence from distances to training features; preserve in-distribution predictions and progressively downweight OOD predictions.
- Neighbor-guided reward compensation: Reweighting alone can suppress useful task-progress signals. Use neighboring training samples to recover these signals, while penalizing disagreement among their reference values.
REAL-WORLD EXPERIMENTS
| Method | Put Bread in Basket | Open Drawer & Store Lemon | Place Stationery in Holder | Avg. |
|---|---|---|---|---|
| RM-pro | 74.2 | 77.3 | 82.1 | 77.9 |
| RM-pro + CRC | 94.1 | 90.9 | 93.8 | 92.9 |
Loading real-world rollouts…
Reward calibration Visualization
Visual-scene OOD
Extreme bread placement leads to low-confidence predictions.
Loading trajectory…
Drag the timeline to explore
Action-state OOD
The gripper becomes stuck on the holder edge.
Loading trajectory…
Drag the timeline to explore
SIMULATION EXPERIMENTS
| Environment | Reward model | Baseline | Baseline + CRC |
|---|---|---|---|
| Meta-World | RM-rule | 48.5 | 67.5 |
| Meta-World | RM-pre | 50.6 | 72.8 |
| Meta-World | RM-pro | 67.8 | 82.6 |
| Meta-World | Avg. | 55.6 | 74.3 |
| Robomimic | RM-pre | 64.2 | 76.4 |
| Robomimic | RM-pro | 65.7 | 76.8 |
| Robomimic | Avg. | 64.9 | 76.6 |
Loading simulation rollouts…