Learning Linear Utility Functions From Pairwise Comparison Queries

Luise Ge, Brendan Juba, Yevgeniy Vorobeychik · DOI

Abstract

In the context of Reinforcement Learning from Human Feedback (RLHF), reward models are typically trained on pairwise comparisons to align AI behavior with human values. This paper investigates the theoretical limits of learning linear utility functions from such "A vs. B" data. We reveal a significant "learnability gap": while a fixed dataset may suffice to predict future preferences, recovering the underlying utility weights is often mathematically impossible without active learning or specific noise assumptions. We analyze these dynamics using the Probably Approximately Correct (PAC) framework and propose an active learning algorithm that efficiently recovers utility parameters.

Introduction

The alignment of large language models and other AI systems often relies on learning a reward function from human preferences. Typically, humans are presented with two options and asked to choose the one that better aligns with a specific criterion (e.g., helpfulness or safety). While empirical success is evident, the theoretical conditions under which the true underlying utility function can be recovered remain under-explored, especially in continuous vector spaces.

This research distinguishes between two primary learning objectives:

  1. Prediction ($e_1$): Accurately forecasting the preferred item in a previously unseen pair.
  2. Estimation ($e_2$): Recovering the actual weight vector ($w$) of the linear utility function.

Methodology

The study employs the Probably Approximately Correct (PAC) learning framework to evaluate two distinct settings:

Passive Learning

In the passive setting, the learner is provided with a static dataset of pairwise comparisons sampled from an unknown distribution. The analysis covers various noise models, including the Bradley-Terry (BT) and Thurstone-Mosteller (TM) models, as well as the more general Tsybakov noise condition.

Active Learning and the Version Space

To overcome the limitations of passive learning, the authors propose an active learning approach. This method treats the set of possible utility weights as a geometric "version space." By strategically synthesizing queries—pairs of items whose feature difference $\Delta_\Phi x$ bisects the current candidate space—the learner can exponentially reduce the uncertainty regarding the true weights $w^*$.

Geometric representation of the version space algorithm. The learner strategically selects queries to bisect the space of candidate utility weights, narrowing down the true parameters $w^*$.

Theoretical Insights

The Passive Learnability Gap

A central finding is the "Passive Gap": in static settings, high predictive accuracy does not imply accurate parameter estimation. Without restrictive assumptions on the data distribution or noise structure, the true utility weights remain unidentifiable.

The Role of Noise

Counter-intuitively, structured noise (like Bradley-Terry) can facilitate estimation in passive settings. In a noise-free environment, a preference only indicates which side of a decision boundary a point falls on. However, in a probabilistic model like Bradley-Terry, the strength of the preference (the probability of choosing A over B) provides a signal about the distance from the boundary, offering more granular information for weight recovery.

Active Learning as a Solution

Active learning effectively bridges the learnability gap. By choosing queries that maximize information gain, a learner can recover utility parameters even in scenarios where passive learning fails.

Key Results

The paper provides rigorous bounds on sample complexity:

  • Passive Prediction: Linear utilities are learnable for prediction if the noise satisfies the Tsybakov condition and the input distribution is well-behaved.
  • Estimation Impossibility: In the absence of structural noise assumptions, no algorithm can reliably estimate utility parameters from a finite passive dataset.
  • Active Efficiency:
    • In noise-free settings, the proposed algorithm requires only $O(m \log(\sqrt{m}/\epsilon))$ queries for $m$ dimensions to achieve error $\epsilon$.
  • In noisy settings (e.g., Bradley-Terry), the sample complexity remains polynomial in both $1/\epsilon$ and the number of dimensions.

Discussion and Limitations

While the theoretical results are promising, several practical challenges remain:

  • Query Synthesis: Generating synthetic pairs for active learning may result in "uninterpretable" queries that are difficult for humans to evaluate.
  • Embedding Inversion: The algorithms assume the ability to map feature vectors back to raw inputs, which is computationally intensive for complex deep learning embeddings.
  • Linearity: The proofs are restricted to linear utility functions. Extending these theoretical guarantees to non-linear models, such as deep neural networks, is a critical direction for future research.

Summary updated

BibTeX
@misc{ge2024learning,
  author = {Luise Ge and Brendan Juba and Yevgeniy Vorobeychik},
  title = {{Learning Linear Utility Functions From Pairwise Comparison Queries}},
  year = {2024},
  eprint = {2405.02612},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.02612},
}
Figure