Training AI agents requires a reward signal, but defining reward functions manually is hard.
Example: How do you numerically define "write a helpful response"?
Instead of defining reward manually:
Trajectory A: [s1→s2→s3] ←── Human picks one
Trajectory B: [s1→s4→s5] ←──
↓
Reward Function Learned
↓
Agent Trained
| Term | Definition |
|---|---|
| Trajectory Segment | A sequence of states/actions over a time window |
| Partial Return | Sum of rewards collected within a segment |
| Regret | How much worse an action is compared to the optimal action |
| Advantage Function | How much better action a is vs. average action in state s |
| Optimal Advantage | Advantage measured against the optimal policy |
Assumption: Humans prefer whichever segment gave them more reward
$P(A \succ B) = \sigma\left(\sum_{t \in A} r(s_t, a_t) - \sum_{t \in B} r(s_t, a_t)\right)$
Where σ is the sigmoid function
Intuition:
Segment A earned 10 points → Human prefers A
Segment B earned 3 points → Human rejects B
Problem: This assumes humans only care about what happened, not what could have happened
Assumption: Humans prefer whichever segment had less regret
$\text{Regret}(segment) = \sum_t [r^*(s_t) - r(s_t, a_t)]$
Where r*(s) = reward from taking the optimal action in state s
Intuition:
Segment A: Got 10 points, but COULD have gotten 10 → Low regret ✓
Segment B: Got 8 points, but COULD have gotten 8 → Low regret ✓
Segment C: Got 10 points, but COULD have gotten 20 → HIGH regret ✗
Key Insight: Humans naturally think "that was a mistake" — comparing actions to what should have been done
REALITY: Humans use REGRET model
ASSUMPTION: Algorithm assumes PARTIAL RETURN model
CONSEQUENCE: ???
This paper answers that question mathematically.
When you:
$\hat{r}(s,a) \approx A^*(s,a)$
Not the true reward r(s,a)!
$A^\pi(s,a) = Q^\pi(s,a) - V^\pi(s)$
| Symbol | Meaning |
|---|---|
| Q^π(s,a) | Expected return taking action a in state s, then following policy π |
| V^π(s) | Expected return just being in state s following policy π |
| A^π(s,a) | How much better/worse action a is vs. average |
$A^(s,a) = Q^(s,a) - V^*(s)$
Uses the optimal policy as the baseline
A*(s,a) > 0 → Action a is BETTER than optimal baseline
A*(s,a) = 0 → Action a IS the optimal action
A*(s,a) < 0 → Action a is WORSE than optimal baseline
Regret of an action = how far below optimal you are $\text{Regret}(s,a) = V^(s) - Q^(s,a) = -A^*(s,a)$
Therefore:
TRUE REWARD landscape: OPTIMAL ADVANTAGE landscape:
🏔️ (absolute height) 📐 (height relative to best path)
Partial Return measures: Regret measures:
"How high did you climb?" "How far below the peak were you?"
| Situation | True Reward | Optimal Advantage | Problem? |
|---|---|---|---|
| Optimal policy exists | r(s,a) | A*(s,a) ≈ 0 for optimal actions | May still find optimal policy |
| Suboptimal regions | Varies | Negative for bad actions | Ranking preserved |
| Reward shaping | Absolute values matter | Relative values matter | Potential mismatch |
If your goal is finding the optimal policy (not the true reward), learning A* might still work!
Because:
If you need the true reward (for safety, interpretability, reward transfer), you have a problem
Learned: "This action scores +5" (advantage)
Reality: "This action scores +105" (true reward, baseline=100)
┌─────────────────────────────────────────────────────┐
│ RLHF Pipeline │
├─────────────────────────────────────────────────────┤
│ │
│ Human Preferences │
│ │ │
│ ▼ │
│ [Partial Return Model Assumed] │
│ │ │
│ ▼ │
│ Learned Function r̂(s,a) │
│ │ │
│ IF humans used REGRET: r̂ ≈ A*(s,a) ← THIS PAPER │
│ IF humans used RETURN: r̂ ≈ r(s,a) ← Traditional│
│ │ │
│ ▼ │
│ Policy Optimization │
│ (May still work, but reward is misidentified) │
└─────────────────────────────────────────────────────┘
Model Assumption Matters
The preference model you assume determines what function you actually learn
Regret ≠ Return
Humans naturally compare to optimal behavior, not just accumulate rewards
Optimal Advantage ≠ Reward
You can optimize policy correctly but still misidentify the reward function
What is the difference between partial return and regret as bases for human preference?
Why might humans naturally use a regret-based model when comparing trajectories?
If you learn A*(s,a) instead of r(s,a), under what conditions does your policy optimization still succeed?
Give an example where mistaking A* for r would cause a real problem in an AI system.
What does it mean mathematically that *Regret(s,a) = -A(s,a)**?