When Learned Rewards Mislead Robotic Reinforcement Learning:
Diagnosing and Calibrating Rewards under Distribution Shift

Anonymous authors

Code is publicly available at:

Code

REAL-WORLD DEMOS

0:00 / —
0:00 / —
0:00 / —

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

Figure 1 from the paper. Online RL visits out-of-distribution states, where reward errors are larger. Oracle calibration of OOD rewards improves policy learning more than calibration of ID rewards on the four diagnostic Meta-World tasks.
Swipe to view the full figure
  • 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

The CRC method from the paper: the frozen reward model provides a reward and hidden features. Reference-bank neighbors guide reward compensation and OOD confidence reweights the original reward. The two components form the calibrated reward.
Swipe to view the full figure
  • 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

Success rates for RM-pro and RM-pro + CRC across three real-world tasks and their average. Values are listed in the accompanying accessible table.
Real-world success rate (%)
MethodPut Bread in BasketOpen Drawer & Store LemonPlace Stationery in HolderAvg.
RM-pro74.277.382.177.9
RM-pro + CRC94.190.993.892.9

Reward calibration Visualization

Visual-scene OOD

1 / 100

Extreme bread placement leads to low-confidence predictions.

Reward calibration
Original rewardCRC-calibrated reward

Loading trajectory…

Drag the timeline to explore

Action-state OOD

1 / 125

The gripper becomes stuck on the holder edge.

Reward calibration
Original rewardCRC-calibrated reward

Loading trajectory…

Drag the timeline to explore

SIMULATION EXPERIMENTS

Average success rates with and without CRC for each reward model on Meta-World and Robomimic. Values are listed in the accompanying accessible table.
Simulation average success rate (%)
EnvironmentReward modelBaselineBaseline + CRC
Meta-WorldRM-rule48.567.5
Meta-WorldRM-pre50.672.8
Meta-WorldRM-pro67.882.6
Meta-WorldAvg.55.674.3
RobomimicRM-pre64.276.4
RobomimicRM-pro65.776.8
RobomimicAvg.64.976.6