TL;DR
Collecting human preference data for alignment (e.g., RLHF) is expensive, yet standard pipelines waste queries by sampling prompts uniformly at random. This paper introduces the offline contextual dueling bandit setting, where an agent actively chooses both the contexts (prompts) and action pairs to query during training. The proposed kernelized algorithm, Borda-AE, achieves sublinear worst-case suboptimality guarantees across the entire context space and outperforms uniform prompt-sampling baselines.
What Problem Does This Paper Address?
In applications like reinforcement learning from human feedback (RLHF), training signals arrive as pairwise comparisons (e.g., "Response A is better than Response B given Prompt X") rather than scalar rewards. Standard online contextual dueling bandits assume that contexts (prompts) arrive from an external, fixed distribution and penalize poor exploratory choices made during training.
In real-world data collection, however, practitioners have full control over which prompts and response pairs to submit to human evaluators, and only care about how well the resulting policy performs after deployment. Today, prompts are typically drawn uniformly from a static dataset. The authors address this inefficiency by formalizing the offline contextual dueling bandit problem: how can a learner actively select the most informative contexts and actions during an offline phase to minimize worst-case suboptimality at test time?
Methods
The authors tackle this problem with an algorithm called Borda-AE (Borda Active Exploration):
- Contextual Borda Reduction: Direct pairwise modeling can be messy. The authors generalize the Borda score to contexts: $f_r(x, a) = \mathbb{E}_{a' \sim \mathcal{U}(\mathcal{A})}[P(a \succ a' \mid x)]$, representing the probability that action $a$ is preferred over a uniformly sampled random action $a'$ under context $x$. Crucially, under standard link functions (like Bradley-Terry), $f_r$ shares the same maximizers as the underlying reward function $r$.
- Kernel Ridge Regression (KRR): The algorithm models $f_r(x, a)$ using KRR in a Reproducing Kernel Hilbert Space (RKHS), maintaining an estimate $\mu_t$ and uncertainty bounds $\beta_t \sigma_t$.
- Active Context Selection: At round $t$, the agent selects the context $x_t$ that maximizes the gap between the optimistic and pessimistic estimates of the best possible action: $$x_t \in \arg\max_{x \in \mathcal{X}} \left( \max_{a \in \mathcal{A}} \bar{f}_r^t(x, a) - \max_{a \in \mathcal{A}} \underline{f}_r^t(x, a) \right)$$
- Action Selection: The agent pairs the optimistic best action $a_t = \arg\max_{a} \bar{f}_r^t(x_t, a)$ with a uniformly sampled alternative $a'_t \sim \mathcal{U}(\mathcal{A})$ to obtain unbiased evaluation data for the Borda function.
- Pessimistic Deployment: At test time, the policy acts pessimistically, choosing the action that maximizes the tightest lower bound found during training.
The authors prove that with probability $1 - \delta$, the worst-case suboptimality decays at rate $\mathcal{O}\left( \frac{L_1}{\sqrt{T}} \left( B + \Phi_T \sqrt{\log(1/\delta)} \right) \right)$, where $\Phi_T$ is the maximal information gain and $B$ bounds the RKHS norm.
Datasets
The paper does not use real-world datasets. Evaluations are conducted entirely on synthetic benchmarks:
- Synthetic reward functions generated via random linear combinations of Random Fourier Features (RFF) with squared exponential kernels.
- Pairwise comparisons simulated via the Bradley-Terry choice model: $P(a \succ a' \mid x) = \frac{1}{1 + \exp(r(x, a') - r(x, a))}$.
Key Insights and Ideas
- Active context selection beats uniform context coverage: Just as active exploration in standard RL targets states with high value uncertainty, choosing prompts where the optimal decision is most ambiguous yields tighter global guarantees than passive sampling.
- Borda ranking sidesteps complex pairwise tracking: Comparing against a uniformly sampled action transforms an intractable pairwise contextual game into a standard regression problem over a single action.
- Empirical RKHS smoothness: A theoretical caveat is requiring bounded RKHS norm on $f_r$ rather than just $r$. However, empirical simulations revealed that $\|f_r\|_\kappa \le \|r\|_\kappa$ in the vast majority of multidimensional settings (e.g., $100\%$ of cases for dimensions $\ge 3$), suggesting $f_r$ is generally smoother and easier to learn than $r$ itself.
Key Results
- Regret Performance: On 1D context / 1D action experiments over 10 random reward functions ($T=500$, $n_0=25$ initialization), Borda-AE outperformed both Borda-Uniform (uniform contexts and actions) and Borda-UCB (uniform contexts, UCB actions).
- Worst-Case Optimality: Borda-AE reduced both median regret across contexts and maximum (worst-case) regret significantly faster than the baselines, with maximum regret dropping toward ~1.0 by $T=500$ compared to ~1.4 for Borda-UCB and ~1.5 for Borda-Uniform.
Limitations and Future Work
- Uniform Action Sampling is Wasteful: Pairing an optimistic action $a$ against a uniformly random action $a'$ is critical for Borda estimation, but inefficient in practice. In language models, a uniformly sampled response is nonsensical gibberish; raters will almost certainly prefer $a$, yielding low-information comparisons.
- Sequential Nature: Borda-AE queries one prompt–action pair at a time, making it ill-suited for the large, parallel batches used in modern deep learning and human labeling operations.
- Continuous/Unbounded Action Spaces: The uniform measure $\mathcal{U}(\mathcal{A})$ over the action space requires compact or discrete action sets, which poses hurdles for open-ended generative tasks.
Summary updated