Aligning Large Language Models (LLMs) with human values typically forces a choice between two paradigms: the complex, computationally expensive world of online Reinforcement Learning (like PPO) or the simpler, offline world of "Policy Fitting" (like DPO). While DPO is favored for its stability, it has a major limitation: it can only learn from relative preferences (e.g., response A is better than response B). This approach discards the rich information found in absolute, pointwise rewards—such as a code snippet's test-case pass rate or a specific numerical rating from a reward model.
A new paper from researchers at EPFL introduces Quantile Reward Policy Optimization (QRPO), a method that bridges the gap between PPO's flexibility and DPO's simplicity. QRPO allows models to learn from absolute rewards using a simple offline regression objective.
The Problem: Relative vs. Absolute Rewards
In the standard RL alignment framework, the goal is to find a policy that maximizes reward while staying close to a reference model (via KL-regularization). This mathematical formulation leads to a "partition function" ($Z$)—a normalizing constant that is notoriously intractable because it requires summing over every possible sequence the model could ever generate.
To bypass this, popular methods like DPO (Direct Preference Optimization) and REBEL use a clever trick: they evaluate the difference between two completions. This subtraction cancels out the intractable partition function. However, relying strictly on this "relative signal" has significant downsides:
- Information Loss: It ignores the absolute quality of the samples.
- Conflicting Dynamics: If both samples in a pair are excellent, the relative math might still force the model to decrease the probability of one of them.
- Canonical Mismatch: Tasks like coding have "natural" absolute rewards (e.g., "this code passes 80% of tests"). Forcing these into binary "win/loss" preferences destroys valuable granular signal.
The Solution: Quantile Reward Policy Optimization
The core innovation of QRPO is the Quantile Reward Transformation.
Instead of using a raw reward score (like 0.85), QRPO evaluates where that score falls within the distribution of rewards generated by the reference model. If a completion's reward is better than 90% of what the reference model usually produces, its quantile reward is 0.9.
Why does this matter? The authors prove a crucial mathematical insight: if you use quantile rewards, the distribution of rewards under the reference policy becomes uniform. Because this distribution is known and fixed, the dreaded partition function ($Z$) becomes analytically tractable—it collapses into a constant that depends solely on the regularization strength ($\beta$).
With $Z$ solved, the complex RL objective simplifies into a Pointwise Regression (Mean Squared Error) task. The model can be updated using a single prompt and a single completion by calculating its quantile, entirely removing the need for preference pairs.
Key Insights and Scaling
- The Partition Function is an MGF: The authors demonstrate that the partition function is actually the Moment Generating Function (MGF) of the reward distribution. This insight is what allows them to use quantiles to "fix" the distribution and solve the math.
- Stability over Brute Force: Estimating the partition function directly for a standard reward distribution is nearly impossible (requiring an estimated $10^{40}$ samples for a clean signal). Estimating a quantile, however, is statistically stable even with a small number of samples.
- Pre-computation Scaling: QRPO introduces a new scaling dimension: "pre-computation compute." By spending more time generating reference samples to obtain better quantile estimates before training begins, researchers can significantly improve the final model's performance.
- Length Bias Mitigation: DPO often rewards longer answers simply because they "look" better to preference models. Because QRPO uses absolute rewards from models trained to be robust to length, it avoids inheriting the length bias that frequently reappears when converting rewards to binary preferences.
Empirical Results
The researchers evaluated QRPO across diverse benchmarks using 8B-scale models (Llama 3.1 and Mistral 7B) on datasets like Magpie-Air (synthetic chat), UltraFeedback, and LeetCode.
- Chat Supremacy: On AlpacaEval 2 (a standard chat leaderboard), QRPO consistently outperformed DPO, REBEL, and SimPO. On the Magpie-Air dataset, QRPO achieved a 50.6% length-controlled win rate, compared to DPO's 47.7%.
- Coding Excellence: On LeetCode, where absolute rewards (pass rates) are critical, QRPO reached a 32.7% pass rate, beating out DPO (30.2%) and SimPO (22.3%).
- Less "Yapping": Qualitative analysis showed that QRPO models were more concise. While DPO and SimPO exhibited a strong correlation between reward and completion length (length bias), QRPO maintained high performance without artificially ballooning word counts.
Limitations and Future Work
While highly effective, QRPO has limitations. The quantile rewards are defined relative to the reference policy. As the trained model improves significantly beyond the reference, the quantiles may become "saturated" (where everything looks like the top 1%). The authors suggest iterative training—periodically updating the reference policy—as a solution. Additionally, like DPO, QRPO is sensitive to the KL-regularization parameter $\beta$.
QRPO represents a significant step forward in making LLM alignment more robust and data-efficient, proving that sometimes the best way to solve an intractable math problem is to transform the underlying distribution.
Summary updated