Neural Dueling Bandits: Preference-Based Optimization with Human Feedback

Arun Verma, Zhongxiang Dai, Xiaoqiang Lin, Patrick Jaillet, Bryan Kian Hsiang Low

Overview

In many real-world scenarios, such as recommending a movie or aligning a Large Language Model (LLM) to be "helpful and harmless," it is much easier to get a human to compare two options than to assign an absolute numerical score to one. This is the core of the contextual dueling bandit problem: a learner observes a context (like a user query), chooses two "arms" (like two different search results), and receives noisy feedback on which one the user prefers.

Existing solutions for this problem almost exclusively assume that the underlying reward function is linear. However, human preferences are rarely that simple. To address this, researchers have introduced Neural Dueling Bandits (NDB), a framework that uses deep neural networks to learn human preferences from pairwise comparisons. By moving beyond restrictive linear assumptions, the authors provide two new algorithms—NDB-UCB and NDB-TS—that offer theoretical "sub-linear regret" guarantees and demonstrate superior performance in complex tasks.

The Challenge of Non-Linearity

The primary challenge lies in using a non-linear estimator—specifically a Neural Network (NN)—while maintaining theoretical safety. How do we know the model won't "hallucinate" preferences in unexplored areas? How do we mathematically prove that the algorithm will eventually converge to the best possible choices?

When standard linear models are applied to highly complex, non-linear functions of input features, they often hit a "regret floor"—they stop learning because they simply cannot represent the underlying function, leading to linearly growing cumulative regret over time.

Proposed Methods: NDB-UCB and NDB-TS

The authors propose two algorithms to solve this: NDB-UCB (Upper Confidence Bound) and NDB-TS (Thompson Sampling).

  1. Reward Modeling: They use a deep ReLU neural network to estimate the latent reward function. Unlike standard neural bandits that use Mean Squared Error (MSE), NDB uses cross-entropy loss. This aligns with the Bradley-Terry-Luce (BTL) model, which posits that the probability of preferring arm $A$ over arm $B$ is proportional to the exponential of their reward difference.
  2. Arm Selection:
    • The first arm is selected greedily based on the current NN's highest predicted reward.
  3. The second arm is selected optimistically. The algorithm calculates a "confidence ellipsoid" based on Neural Tangent Kernel (NTK) theory. This encourages the model to pick a second arm that is different enough from the first to provide maximum new information (exploration).
  4. Theoretical Innovation: The authors extend the analysis of neural contextual bandits to handle relative feedback. Because the feedback is pairwise, the model's confidence is built on the difference between reward values of arm pairs. They prove that their algorithms achieve sub-linear regret, meaning the gap between the algorithm's performance and the "perfect" choice shrinks toward zero over time.

Datasets and Key Results

The researchers evaluated their approach using both synthetic functions and simulated Reinforcement Learning from Human Feedback (RLHF).

  • Synthetic Functions: They tested on "Square" and "Cosine" reward functions to simulate non-linear environments where linear models are guaranteed to fail.
Cumulative regret of linear baselines (LinDB) on non-linear synthetic functions.
  • Outperforming Linear Baselines: In all non-linear synthetic tests, NDB-UCB and NDB-TS significantly outperformed linear versions (LinDB). As seen in the baseline evaluations, linear models suffer from linearly growing cumulative regret because they cannot capture the non-linear reward dynamics. The neural models, however, continued to improve.
  • Simulated RLHF (LLM Alignment): Using the Anthropic Helpfulness and Harmlessness datasets, they simulated human preferences with a pre-trained reward model. NDB-UCB achieved the highest scores in identifying high-reward responses from a pool of 50 ChatGPT-generated candidates, outperforming both linear variants and random selection by a wide margin.

Broader Impacts and Limitations

This paper provides a theoretical bridge to RLHF, suggesting that NDB can be used to more intelligently select which pairs of LLM responses to show humans for labeling, potentially reducing the amount of expensive human data needed. As a bonus contribution, the authors show their math also works for standard contextual bandits with binary feedback (e.g., "did the user click or not?").

However, there are limitations to consider:

  • Computational Overhead: Training a neural network and calculating gradients for every single round is computationally expensive. While batched updates offer a practical workaround, more efficient optimization remains an open area.
  • The "Wide" Network Assumption: The theoretical proofs rely on the NTK regime, assuming the network is "sufficiently wide." In practice, smaller networks are often used.
  • Multi-way Preferences: The current model only handles "duels" (pairs). Future work could extend this to models where a human might rank a list of three or more options simultaneously.

Summary updated

BibTeX
@inproceedings{verma2025neural,
  author = {Arun Verma and Zhongxiang Dai and Xiaoqiang Lin and Patrick Jaillet and Bryan Kian Hsiang Low},
  title = {{Neural Dueling Bandits: Preference-Based Optimization with Human Feedback}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=VELhv9BBfn},
}
Figure