Bayesian Preference Elicitation with Language Models
Abstract Aligning AI systems to users’ interests requires understanding and incorporating humans’ complex values and preferences. Recently, language models (LMs) have been used to gather information about the preferences of human users. This preference data can be used to fine-tune or guide other LMs and/or AI systems. However, LMs have been shown to struggle with crucial aspects of preference learning: quantifying uncertainty, modeling human mental states, and asking informative questions. These challenges have been addressed in other areas of machine learning, such as Bayesian Optimal Experimental Design (BOED), which focus on designing informative queries within a well-defined feature space. But these methods, in turn, are difficult to scale and apply to real-world problems where simply identifying the relevant features can be difficult. We introduce OPEN (Optimal Preference Elicitation with Natural language) a framework that uses BOED to guide the choice of informative questions and an LM to extract features and translate abstract BOED queries into natural language questions. By combining the flexibility of LMs with the rigor of BOED, OPEN can optimize the informativity of queries while remaining adaptable to real-world domains. In user studies, we find that OPEN outperforms existing LM- and BOED-based methods for preference elicitation.
Introduction. Understanding users’ complex preferences and requirements is necessary for accurately and safely automating real-world tasks. Modeling preferences in a domain of interest requires both understanding what features of the domain are relevant to model, and how important these features are relative to each other (Lin et al., 2022; Lindner et al., 2022; Sadigh et al., 2017; Fürnkranz and Hüllermeier, 2012). For example, when building a content recommendation system, relevant features may be different article topics—e.g. science, politics, or celebrity culture. A user may decide whether or not to read an article based on the strength of their preferences along these different axes. With the widespread use of preference data to align language models (LMs) with human users, there has been growing interest in using LMs themselves to elicit information about human preferences. Past work focused on prompting LMs to ask questions about user preferences (Li et al., 2023; Lin et al., 2023; Piriyakulkij et al., 2023) has shown that LMs are capable of identifying decision-relevant features in domains spanning content recommendation, software engineering, and moral reasoning. Nonetheless, prompting offers limited control over LMs’ information-gathering strategies and often fails to produce questions that are useful or informative. By contrast, a long line of work on optimal experimental design, such as dueling bandits (Heckel et al., 2019) and Bayesian preference learning approaches (Foster et al., 2019; Gal et al., 2017; Houlsby et al., 2011), has developed methods to efficiently infer user preferences from a limited number of interactions. But these methods also have their limitations—they have primarily been applied to tasks with simple, highly-structured data where feature spaces are constrained and interactions are short. How can we get the best of both worlds? Can we learn similarly sample-efficient models of user preferences in complex, open-ended tasks? In this paper, we introduce Optimal Preference Elicitation with Natural language (OPEN)—a framework that leverages the complementary advantages of LMs and Bayesian Optimal Experiment Design (BOED) methods (see Figure 1). OPEN uses an LM to select the relevant features the user likely cares about (Figure 1, steps 1, 2),
Related work. Task Ambiguity and Underspecification Prior research has studied ambiguity in the context of language-guided tasks (Lake et al., 2019; Tamkin et al., 2023). In particular, in the context of prompt engineering (Brown et al., 2020), writing complete and unambiguous task specifications can be difficult (Li et al., 2023; IEEE, 1984). Futhermore, recent developments have encouraged fine-tuning approaches such as reinforcement learning with human feedback (RLHF) (Ziegler et al., 2019; Christiano et al., 2017) and direct preference optimization (DPO) (Rafailov et al., 2023) to better align LLM behaviors with humans’ (underspecified) preferences. These techniques, however, all assume access to existing human preference data. Our goal in this work is to examine how to elicit such data efficiently.
Classical Preference Learning Techniques Learning human preferences is a rich area of work that has spanned many fields over past few decades. Much work has gone into optimally querying for user preferences. Aside from Bayesian Optimal Experimental Design, which we use in this paper, approaches have included conjoint analysis (STERN, 1990; Arora and Huber, 2001; Kuhfeld et al., 1994), polyhedral methods (Toubia et al., 2007), multiarmed bandits (Lu et al., 2010), and dueling bandits (Heckel et al., 2019), etc. (Vayanos et al., 2021) Active learning is an area of machine learning focused on interactively querying an expert to label new data points, often selected from a pool (Settles, 2010). Uncertainty-based active learning computes the next example to show the user based on explicit notions of uncertainty (Lewis and Catlett, 1994). However, these approaches are often only applicable to simple domains with known feature spaces (or existing pools of examples), and may not be straightforward to derive for complex domains.
LM Preference Learning More recently, Li et al. (2023); Piriyakulkij et al. (2023) introduced approaches to active elicit user preferences with language models. They demonstrated LMs are able to actively elicit user preferences across a wide variety of domains beyond certain classical preference learning baselines. However, our work demonstrates that LMs are still subpar at tracking and using feature weightings to ask informative questions.
Method. 3 The OPEN Framework Existing Bayesian and bandit-based preference learning methods assume that φ is known a priori, and that examples can be straightforwardly featurized. How should we apply these methods in real-world domains like content recommendation where features themselves are difficult to extract and translate into concrete instances? To operationalize BOED and other uncertainty-based preference learning approaches in complex, realworld domains, we introduce OPEN: a domainagnostic preference learning framework that combines LMs with BOED. OPEN uses LMs to identify environment-specific features and interface with a user, while using BOED to maintain principled approach to question-selection and decisionmaking. At a high level, OPEN learns user preferences by following the below steps:
Featurization: Using a description of the domain, D, the LM extracts a set of NL features which we use to define the feature function φ.
Initializing User Preferences: We prompt the LM to rank the NL features and set a prior over user preferences, p(θ), according to this ranking.
Selecting an Optimal Question: The Bayesian model samples all possible pairwise comparison questions and selects the maximally informative question, q∗using Equation (3).
Verbalize query: The LM translates q∗into a NL question for the user (this can also be thought of as φ−1).
Update User Preferences: Given the user’s response to the question, we compute the Bayesian posterior p(θ | y, q).
Prediction: The Bayesian model predicts the user’s response to each test case, using the Bradley–Terry model of human preferences.
3.1 Featurization We prompt the LM with a general description of the domain of interest (e.g. content recommendation of news articles), and ask it to produce natural language descriptions of pertinent features in that domain, F. For example, in the content recommendation domain, the LM outputs “whether the article discusses science” as a pertinent feature. This list of natural language features can then be converted to a function φ that transforms test samples to feature values by prompting another LM with F and a test sample x (see Section 3.6).
3.2 Initializing User Preferences When prompting the LM for features in Section 3.1, we simultaneously ask it to rank features from most to least important. These rankings are then used to initialize the prior for OPEN’s belief of the user’s preference, p(θ). At a high level, we assume that more important features are also more impactful for humans’ decision making about their preferences, and thus, we should model greater diversity over them compared to less important features. Because we assume that θ is linear in the feature space, we model p(θ) as a Bayesian linear model with each feature weight parameterized by a normal distribution:
3.3 Selecting the Optimal Question To efficiently learn user preferences, we aim to select the pair of options that maximize the EIG with regards to the user’s preferences at each interaction step. This process is grounded in the BOED framework, as described earlier. Given a set of features, F, we define the space of all possible pairwise comparison questions as:
3.4 Querying the User: Mapping Pairwise Comparisons to NL Given the optimal pairwise comparison (oa, ob) and natural language feature descriptions F, we prompt a LM to convert the feature vectors oa, ob into a NL question for the user. We also prompt the LM to synthesize two examples in accordance with those feature vectors, which is equivalent to taken the inverse of the featurization function φ−1. We display these examples in the user interface alongside each option in the pairwise comparison question.
3.5 Posterior Update At each interaction step t, having observed the user’s selection yt between (oa, ob), we update our belief about the user’s preferences (θ) based on their response (yt) to the pairwise comparison question (qt) by computing the posterior:
Discussion. & Future Work We presented OPEN, a domain-agnostic framework for combining Bayesian Optimal Experimental Design with LMs–using BOED to guide the choice of informative questions, and the LM to extract environment-relevant features and translate abstract feature queries into real NL questions. Beyond the improvements demonstrated by our findings, our system has two additional advantages over LM-only methods: (1) we can improve transparency through extracting explicit weights and uncertainties on NL features. In our framework, the NL features from the LM accompanied by an external uncertainty-driven model conditioned on the features provide greater transparency than an LM alone. With OPEN, we can understand how important each feature is to the elicitation and prediction process. (2) We can reduce computational costs. By representing user preferences with a linear model, we can avoid the expensive training or inference procedures with large language models. In OPEN, the particle filter models a user’s behavior while still incorporating the high-level, contextual information encoded in LMs. Furthermore, at test time, conducting inference on this linear system is orders of magnitude cheaper and yields better results than an LM. OPEN’s flexibility allows for the exploration of other, more intensive preference-learning approaches such as variational Bayesian methods (e.g. Foster et al., 2019) or multi-armed bandits (e.g. Lindner et al., 2022). We are also excited by the potential to further incorporate aspects of realworld learning environments. For example, future work could investigate using OPEN to develop an adaptive feature space–as the model’s uncertainty increases, the model could query for and optimize new features that might better explain patterns within the data. Additionally, recent advancements in fine-tuning models from human feedback (Ouyang et al., 2022; Rafailov et al., 2023; Ethayarajh et al., 2024) found significant differences in data curation and model performance when changing the experimental design. OPEN enables future research to explore the impact of this parameter in an active preference elicitation environment.
Ethical Considerations Our work presents both ethical benefits and risks. Understanding user preferences in underspecified environments is crucial to avoiding real-world issues with AI systems such as spreading hate speech, generating illicit or copyrighted content, as well as perpetuating bias and stereotypes. Furthermore, as more systems are deployed without expert-supervision, ensuring that they can align themselves with users’ values is crucial to ensuring safe and healthy interactions. However, in aligning with user preferences, it is also possible that systems may align with unwanted or dangerous tendencies. Developing guidelines for models’ valuesystems is crucial to ensuring the long-term success of human-AI interactions. Furthermore, working with preference data inherently presents risks as it can be used maliciously to manipulate individuals. It is necessary to ensure that preference data, when used by AI systems, is collected robustly and with
Limitations. Although we provide the steps to build towards better active uncertainty-driven preference learning methods, our work has several limitations. In our study, OPEN was constrained to pairwise queries in a content recommendation setting. Also, we operated under a fixed feature space and with a closed-source LM. Future work could explore expanding along each of these axes: investigating other preference-learning domains, incorporating open-ended questions, expanding the feature space in conversation, and testing other LMs. Futhermore, future research should explore the impact of OPEN across additional real-world settings and population groups.
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
How does AI assistance shape human judgment and decision quality? Why do LLM recommenders underperform simpler collaborative filtering approaches?- Can preference learning rely on linear models over discovered features?
- Does universal approximation guarantee help with finite recommendation data?
- Does uncertainty quantification improve preference elicitation beyond LM confidence scores?
- Do verbal uncertainty estimates calibrate better than confidence scores for personalization?
- How do adaptive question-selection methods reduce the data needed for personalization?
- Why does belief-specific tailoring work better than demographic personalization?
- How should preference channels from historical sessions inform unified policy learning?
- What makes historical user outputs more effective for personalization than semantic similarity?
- Why do one-shot studies fail to capture personalization effects?
- Which personalization techniques expose user data most directly?