NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A density estimation perspective on learning from pairwise human preferences

Vincent Dumoulin, Daniel D. Johnson, Pablo Samuel Castro, Hugo Larochelle, Yann N. Dauphin

Introduction

Reinforcement Learning from Human Feedback (RLHF) has become the standard for aligning Large Language Models (LLMs) with human values. Traditionally, this process is viewed as a two-step agent-based optimization: first, learning a reward function from pairwise comparisons, and second, using reinforcement learning (RL) to maximize that reward. However, this approach creates a conceptual divide between LLM pretraining—which is fundamentally a task of probabilistic density estimation—and alignment, which is treated as behavioral optimization.

This paper bridges this gap by reframing RLHF as a density estimation problem. The authors argue that training a reward model on human preferences is mathematically equivalent to modeling the annotator's implicit probability distribution. By viewing alignment through this lens, we can better understand and mitigate common failure modes like "annotator misspecification."

Bridging Alignment and Probabilistic Modeling

The core theoretical contribution of this work is the proof that under the Luce choice rule—a standard model for human decision-making—the optimal reward function is the log-density of the annotator's preferred outputs. This insight allows the authors to define a generalized family of equations called Preference Behavior Distribution Equations (PBDEs).

To validate this theory, the authors conducted experiments on synthetic univariate distributions. As shown in Figure 1, a reward model trained on pairwise preferences can perfectly recover the underlying probability density function (PDF) of a synthetic annotator, even when that distribution is complex and bimodal.

Figure 1: Comparison between the true annotator PDF and the learned reward-based density.

The "Lukewarm Coffee" Problem

A significant risk in standard RLHF is "annotator misspecification." Most alignment methods assume a single, consistent human preference. However, human preferences are often diverse and conflicting. The authors illustrate this with the "Lukewarm Coffee" analogy: if one group of annotators prefers iced coffee and another prefers hot coffee, a model that targets the "average" preference will learn to serve lukewarm coffee—a result that satisfies no one.

In a probabilistic framework, this corresponds to a bimodal distribution. A standard reward model might collapse these two peaks into a single mean. By treating the problem as density estimation, the authors suggest that alignment should instead aim to represent the full diversity of the preference distribution, perhaps through mixture modeling.

DPO as Density Estimation

The paper further demonstrates that popular alignment algorithms like Direct Preference Optimization (DPO) are not just optimization tricks but are specific instances of density estimation. DPO's success relies on a specific assumption about the relationship between the model's prior and the annotator's preferences.

Figure 2: DPO-optimized policy matching the annotator's preference distribution.

As shown in Figure 2, when the hyperparameter $\beta$ is appropriately tuned, the DPO-optimized policy $\pi_\theta(x)$ effectively recovers the annotator's preference distribution. However, the authors warn that if the underlying assumptions are misspecified, the model may converge to a "product of experts" that does not accurately reflect human intent.

Addressing Length Bias and Limitations

A persistent issue in LLM alignment is "length bias," where models prefer shorter sequences because they have higher raw likelihoods in autoregressive modeling. The authors propose a Length-Normalized Luce Rule to decouple content preference from sequence length. This allows for more precise control, enabling models to prefer longer or shorter outputs based on actual quality rather than mathematical artifacts.

While the theoretical framework is robust, the authors acknowledge the "curse of dimensionality" in natural language. Capturing the full preference density of high-dimensional text is significantly more challenging than the 1D toy cases presented. Future work will need to explore how to leverage the strong priors of pretrained models to make these probabilistic approaches more sample-efficient and scalable.

Conclusion

By reframing RLHF as density estimation, this paper provides a unified mathematical framework for LLM alignment. This perspective highlights the dangers of ignoring annotator diversity and provides new tools, such as PBDEs and length-normalization, to create more robust and representative AI systems.

Summary updated

BibTeX
@article{dumoulin2024density,
  author = {Vincent Dumoulin and Daniel D. Johnson and Pablo Samuel Castro and Hugo Larochelle and Yann N. Dauphin},
  title = {{A density estimation perspective on learning from pairwise human preferences}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
}
Figure