Aligning Language Models with Human Preferences via a Bayesian Approach

Jiashuo Wang, Haozhao Wang, Shichao Sun, Wenjie Li

Introduction

Aligning Large Language Models (LLMs) with human values is a cornerstone of modern AI safety and utility. However, this process is inherently complicated by the fact that human values are rarely monolithic. In subjective domains such as ethics, social norms, and emotional support, annotators frequently disagree. Standard alignment techniques, such as Reinforcement Learning from Human Feedback (RLHF), typically address this by aggregating preferences through majority voting or averaging.

This paper argues that such "winner-takes-all" approaches are fundamentally flawed. By collapsing a distribution of diverse human opinions into a single point estimate, standard reward models may silence minority views and produce controversial content that only appeals to a specific subset of the population. To address this, the authors introduce d-PM (Preference Modeling with Disagreement), a Bayesian framework designed to treat human disagreement as a meaningful signal rather than noise.

The d-PM Framework

The researchers propose a two-stage framework that shifts the focus from simple classification to modeling the distribution of consensus.

1. Preference Modeling with Disagreement (d-PM)

Instead of training a standard classifier, the authors employ a Bayesian approach. They posit that for any given text, there exists an underlying "universal preference" distribution ($\rho$). The observed labels from human annotators are treated as samples drawn from this distribution. By utilizing variational inference to minimize "Free Energy" (a concept related to the Evidence Lower Bound), the model estimates the likelihood that a specific response is widely acceptable across a diverse population. This allows the model to recognize the degree of consensus associated with different outputs.

2. Alignment via Contrastive Learning

To avoid the computational instability and high costs associated with Reinforcement Learning (RL) algorithms like PPO, the authors adopt a Contrastive Learning strategy for calibration:

  • Candidate Generation: The system generates $K$ candidate responses using diverse beam search.
  • Ranking: The d-PM model ranks these candidates based on their calculated "universal preference" scores.
  • Fine-tuning: A pairwise margin loss is applied to fine-tune the language model. This process teaches the generator to prioritize responses with higher global consensus scores over those that are more polarizing or less helpful.

Experimental Setup and Datasets

The method was evaluated on two human-centric Natural Language Generation (NLG) tasks where subjectivity is high:

  • ESConv (Emotional Support Conversation): A benchmark focused on dialogues between help-seekers and supporters.
  • MIC (Moral Integrity Corpus): A dataset containing 99,000 "Rules-of-Thumb" (RoTs) that explain the moral assumptions behind various social prompts.
  • Motivational Interviewing-Dataset: This was specifically used to train the d-PM model for emotional support tasks, leveraging expert-annotated labels on supporter responses.

Key Insights

Disagreement as a Signal

In subjective tasks, the variance in human labels provides critical information about how controversial a statement might be. By modeling the distribution of these labels, d-PM learns to steer the model toward "safe harbor" responses—outputs that are likely to satisfy the broadest possible group of people.

Efficiency and Stability

The paper demonstrates that RL-based alignment is often slow to converge and computationally expensive. Their contrastive "likelihood calibration" is an offline process that achieves superior alignment with significantly less compute. During testing, the contrastive approach processed approximately 4.36 samples per second, compared to 2.65 samples per second for RL-based methods.

Results

The d-PM approach consistently outperformed base models and alternative alignment methods (such as soft-label training or majority voting):

  • Automatic Metrics: On the ESConv task, the d-PM aligned model showed significant improvements in BLEU, METEOR, and CIDEr. For instance, the CIDEr score on the MultiESC base model rose from 30.69 to 32.65.
  • Human Evaluation: In blind tests, human evaluators rated d-PM outputs higher in both "Global Consensus" and "Helpfulness." In the moral integrity task (MIC), the d-PM model achieved a Global Consensus score of 2.555, outperforming the base model's 2.428.
  • Training Performance: Beyond the speed increase, the d-PM method achieved lower loss and better overall stability during the training phase.

Limitations and Future Directions

While d-PM represents a significant step forward in modeling consensus, the authors note several areas for future research:

  • Linearity Assumption: The current framework assumes a linear relationship between preference scores and the proportion of the population that accepts a text. Future iterations could explore non-linear mappings to better reflect complex human social dynamics.
  • Scoring vs. Ranking: While the ranking-based contrastive loss effectively sidesteps the difficulty of absolute scoring, there may be untapped potential in utilizing the absolute values of Bayesian preference scores.
  • Scalability: The study focused on specialized datasets like ESConv and MIC. Testing d-PM on massive, general-purpose instruction-tuning datasets is a necessary next step to prove its scalability in broad-use LLMs.

Conclusion

By reframing human disagreement as a feature of the data rather than a problem to be averaged away, the d-PM framework provides a robust path toward creating LLMs that are more helpful and less controversial. This Bayesian approach to consensus offers a promising alternative to traditional RLHF, particularly in the nuanced and subjective realms of human morality and emotional support.

Summary updated

BibTeX
@inproceedings{wang2023aligning,
  author = {Jiashuo Wang and Haozhao Wang and Shichao Sun and Wenjie Li},
  title = {{Aligning Language Models with Human Preferences via a Bayesian Approach}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=3tCzfBJNW2},
}
Figure