arXiv:2610.17203cs.LGOct 2026

Manuscript Offprint

arXiv:2610.17203

Online LLM Personalization from Pairwise Preferences Across Users

Romain Puech, Georgy Salakhutdinov, Dimitris Bertsimas

Romain Puech ∗^{*}

Massachusetts Institute

of Technology

puech@mit.edu

Georgy Salakhutdinov ∗^{*}

Massachusetts Institute

of Technology

salakh@mit.edu

Dimitris Bertsimas

Massachusetts Institute

of Technology

dbertsim@mit.edu

Website

Code

Data

ABSTRACT

Large language models can answer the same question in different styles, but users' preferred styles are hidden and vary across users and questions. We study inference-time personalization through online selection from a fixed set of prompts, each representing a persona. Users arrive sequentially, each asks a short sequence of questions, and the system displays two responses per question and observes one pairwise choice. We formulate this interaction as a variant of the contextual dueling bandit problem in which the learner starts without preference data, adapts within each session, and exploits information shared across users. The objective is to minimize cumulative strong regret, summing the utility gaps of both displayed responses relative to the user's best response among the available options. We make two contributions. First, we introduce the problem and release a reproducible preference benchmark and dataset built around a tutoring case study, containing educational questions, LLM-generated answers in six teaching styles, and pairwise judgments from LLM-simulated students with hidden preference profiles. We fit Bradley-Terry models to these judgments to obtain reference utilities for regret evaluation. Second, we propose a baseline that learns a mixture prior over users from completed sessions and adapts to each new user within the session. On students and topics never used in development, it removes 44–48% of random pairs' excess regret and achieves over half the performance of a per-user linear oracle fitted in hindsight. We release code, prompts, and the benchmark.

1 A new user arrives

user i

preferences θi\theta_{i}

hidden

Asks b questions

question qiq_{i}

When can I swap the order of integration in a double integral?

2 Policy picks 2 personas

Prover

Examples

Socratic

Cheat-sheet

Analogy

p2p_{2}

Coach

3 The user chooses

Which answer do you prefer?

Rigorous prover

p1p_{1}

Let f be integrable

on A×BA \times B. Then ...

Intuition & analogy

p2p_{2}

Picture a grid of

tiles: add rows ...

prefer this

✓ prefer this

the user prefers p2p_{2}

feedback updates the policy

4 Strong regret

True utilities Ui(p,qi)U_{i}(p, q_{i})

p1p_{1}

p2p_{2}

p∗p^{*}

rt=gap1+gap2r_{t} = gap_{1} + gap_{2}

after b questions the session joins the completed-session log

Figure 1: Overview. A new user arrives with hidden preferences and asks b questions. On each question, the policy picks two of the K = 6 personas, using earlier users' sessions and the current user's choices so far, and the user chooses between the two generated answers. Strong regret, computed from hidden utilities, sums the gaps of both displayed answers to the user's best answer.

∗^{*}Equal contribution.

1 INTRODUCTION

A large language model (LLM) chatbot can answer the same question in several styles, and users differ in the style they prefer. A common way to guide the response style is to use a system prompt that specifies a persona (Zheng et al., 2024b). For example, an LLM math tutor can adopt a persona that emphasizes proofs, worked examples, or guiding questions. The preferred persona depends on the user and the question: the same user may want a proof for a definition and numbered steps for a computation. A simple way to collect preference feedback is to show two answers and ask the user to choose one.

In our setup, users arrive one after another, each for a short session, and the platform starts with no preference data. On every question it selects two personas using features of the persona-question pairs and the choices observed so far. A user's preferences are hidden and fixed during the session, and later users can benefit only from the log the policy itself created. Shared structure across the population is what makes that transfer possible.

We study inference-time personalization through online selection from this fixed catalog of prompts. We make two contributions.

  1. Problem formulation and dataset. We formalize the interaction as a multi-user variant of the contextual dueling bandit problem, with cumulative strong regret accounting for the utility gaps of both displayed answers (Yue et al., 2012; Bengs et al., 2022; Wang et al., 2025). We introduce TutorDuel, a reproducible tutoring preference benchmark and dataset containing educational questions, LLM-generated answers in six teaching styles, and pairwise judgments from LLM-simulated students with hidden preference profiles. On comparisons labeled by two of the authors for the described students, the judge agrees with each author at least as often as the two authors agree with each other (74.0% and 73.0% against 69.6%). We provide reference utilities for regret evaluation by fitting Bradley-Terry models to the LLM judge's choice probabilities. The evaluation protocol brackets performance between picking personas at random and per-user references, and studies the generalization to new topics and new students never used in development. We also provide a numerical simulator for controlled evaluation.

  2. A baseline algorithm. We propose CODuel as a baseline for this problem. It learns a mixture prior over user preferences from completed sessions to starts each new user from that prior. On three TutorDuel rosters whose topics and students were never used in design (eight new hand-written profiles, and two rosters of 350 distinct students composed from preference traits), it removes 48%, 44%, and 46% of the excess regret of random pairs (Table 1). This is 54% to 57% of the performance of a per-user linear oracle, which chooses each user's parameters in hindsight on the features of CODuel; we offer the difference as a target for future methods.

References (100)

Couldn't load all references. Reload the page to try again.