In the world of Reinforcement Learning from Human Feedback (RLHF) and automated scoring, researchers face a fundamental choice: Should we train models to predict absolute scores (pointwise) or to distinguish between two options (pairwise)? While pairwise losses are the current industry favorite, empirical results have been surprisingly mixed.
A new paper, "Pointwise or Pairwise: When Do Pairwise Losses Help Reward Learning, Provably?", provides the first rigorous theoretical framework to answer this question. By analyzing these methods through the lens of contextual bandits, the authors uncover a fundamental bias-variance tradeoff governed by the geometry of the data.
TL;DR
This paper proves that pairwise losses (Value Difference Regression) are superior when context-specific "nuisance" noise is high, as they naturally cancel out context-dependent biases. However, for linear models, this comes at the cost of a geometric tradeoff: pairwise learning can increase estimation variance if the feature space doesn't represent action differences as well as it represents absolute actions.
What Problem Does This Paper Address?
Modern AI relies on learned reward functions to turn human ratings or verifier scores into optimization objectives. Even when numerical ratings (like a 1–5 star score) are available, many practitioners choose to convert them into pairwise comparisons (e.g., "Response A is better than Response B").
The problem is that we haven't known why or when this conversion helps. Does it just throw away useful information about the scale of the reward, or does it protect the model from context-specific noise? The authors tackle this by comparing Value Regression (VR)—the pointwise approach—against Value Difference Regression (VDR)—the pairwise approach—in a grouped offline setting where multiple actions are observed for each context.
Methods
The authors model the reward as a sum of two parts:
- A learnable action-dependent component ($f^*$): The part we actually care about for making decisions.
- An arbitrary context-dependent nuisance ($b^*$): Action-independent disturbances (like a specific prompt being inherently "harder" to score) that can bias a pointwise model.
They employ a unified localized analysis to derive finite-sample guarantees for two types of function classes:
- Finite Classes: Where the model chooses from a fixed set of functions.
- Linear Classes: Where the reward is a linear combination of features.
The core of their method is comparing the "excess loss" of VR and VDR, translating these into offline-regret bounds—a measure of how much reward a policy loses by following the learned model instead of the true reward.
Key Insights and Ideas
- Nuisance Cancellation: The "aha moment" for VDR is that by subtracting one reward from another in the same context, the nuisance term $b^*(x)$ disappears entirely. This makes VDR robust to context-specific shifts that would otherwise confuse a pointwise regressor.
- The Finite Class Advantage: For finite function classes, VDR is a clear winner. It eliminates misspecification error and improves the error scaling from the number of contexts ($1/N_x$) to the total number of samples ($1/N$).
- The Geometric Tradeoff in Linear Models: In linear settings, the choice isn't as simple. VDR removes bias but its variance depends on the "centered feature geometry" ($\alpha_C$). If the features of action differences are poorly conditioned compared to the raw features ($\alpha_0$), VDR might actually perform worse than VR when the nuisance noise is low.
- Separation of Scales: The analysis distinguishes between generalization across contexts ($N_x$) and concentration within a context ($N_a$).
Key Results
The paper’s theoretical findings are summarized in a striking comparison of error bounds:
- Theoretical Failure of VR: The authors prove the existence of cases where VR incurs constant regret (it never gets better, no matter how much data you have) while VDR achieves zero regret.
- LLM Experiments: In a response-selection task using Llama-3 models, VDR significantly outperformed VR as the number of responses per prompt increased. For the ArmoRM reward model, VDR reduced regret by 24% compared to VR.
- Math Reasoning: In Monte Carlo Tree Search (MCTS) experiments on math problems, VDR-guided models achieved higher final-answer accuracy (16%) than VR-guided models (15%).
Limitations and Future Work
While the paper provides a strong theoretical foundation, the authors acknowledge several areas for further exploration:
- Weak Realizability: The theory assumes the action-dependent part of the reward lives within the chosen function class. Future work could investigate what happens when this assumption is relaxed.
- Loss Functions: The analysis focuses on squared loss. Extending this to the Bradley-Terry model (logistic loss), which is standard in RLHF, is a logical next step.
- Pair Selection: The current work assumes pairs are sampled; understanding how active pair-selection strategies (choosing the most informative pairs) affects the bounds remains an open question.
- Beyond Pairwise: The authors suggest extending the analysis to list-wise ranking losses.
Summary updated