Active Preference Inference using Language Models and Probabilistic Reasoning

Top Piriyakulkij, Volodymyr Kuleshov, Kevin EllisFMDM @ NeurIPS 2023

Abstract

Actively inferring user preferences, for example by asking good questions, is important for any human-facing decision-making system. Active inference allows such systems to adapt and personalize themselves to nuanced individual preferences. To enable this ability for instruction-tuned large language models (LLMs), one may prompt them to ask users questions to infer their preferences, transforming the language models into more robust, interactive systems. However, out of the box, these models are not efficient at extracting preferences: the questions they generate are not informative, requiring a high number of user interactions and impeding the usability of the downstream system. In this work, we introduce an inference-time algorithm that helps LLMs quickly infer preferences by using more informative questions. Our algorithm uses a probabilistic model whose conditional distributions are defined by prompting an LLM, and returns questions that optimize expected entropy and expected model change. Results in a simplified interactive web shopping setting with real product items show that an LLM equipped with our entropy reduction algorithm outperforms baselines with the same underlying LLM on task performance while using fewer user interactions.

Introduction

When a user expresses a broad intent, such as "I want to buy a hair growth serum," a skilled human assistant immediately seeks to narrow down the search space through targeted questions. They might ask about scalp sensitivity or ingredient preferences to quickly identify the best product. In contrast, current instruction-tuned Large Language Models (LLMs) often struggle with this "active learning" task. When prompted to clarify user needs, they frequently produce redundant or vague questions, leading to prolonged interactions that frustrate the user. The fundamental issue is that LLMs are not natively trained to recognize which questions yield the highest information gain to resolve their own internal uncertainty.

Methodology: Entropy-Based Question Selection

To address this, we propose an inference-time algorithm that embeds the LLM within a formal probabilistic framework. Instead of relying on the model's conversational heuristics to generate a single response, the system follows a structured selection process:

  1. Question Proposal: The LLM generates a diverse set of candidate yes/no questions based on the product catalog.
  2. Likelihood Scoring: For each candidate question and every potential product, the LLM scores the likelihood of a "yes" or "no" answer, assuming that specific product is the user's target.
  3. Entropy Reduction: The algorithm calculates the Expected Entropy for each candidate. This metric determines how much a question will narrow the list of possible products, regardless of the user's specific answer.
  4. Selection: The system selects the question that minimizes expected entropy, thereby maximizing information gain per turn.
Comparison of standard LLM prompting versus the proposed entropy reduction algorithm for active preference inference.

This approach leverages the LLM's strength as a "scorer"—evaluating the consistency between descriptions and answers—rather than its weaker strategic planning capabilities.

Experimental Evaluation

We evaluated the algorithm using a modified version of the WebShop benchmark, involving 150 tasks across categories like electronics and personal care. In each task, the model aimed to identify a "hidden" target product from a set of ten by asking questions to a simulated user (powered by GPT-4).

Key Results

  • Efficiency and Convergence: The entropy reduction method significantly outperformed standard LLM prompting and the "ReAct" framework. It achieved higher accuracy after just three questions than baseline methods did after four.
  • Information Gain: Quantitative analysis showed that the proposed method extracts substantially more information in the initial turns, avoiding the "wasted" questions common in vanilla LLMs.
  • User Satisfaction: Even in "soft reward" scenarios—where the goal is to find a similar rather than identical product—the entropy-based approach led to higher satisfaction scores.

Discussion and Insights

A significant theoretical finding of this work is the equivalence between Expected Entropy Minimization and Expected Model Change Maximization in this context. Both objectives lead to the selection of the same optimal question. Furthermore, this research highlights the value of inference-time interventions. Rather than expensive retraining, adding a layer of probabilistic reasoning allows us to trade off increased LLM computation for a significant reduction in human effort.

Limitations and Future Work

The current implementation assumes binary user preferences (seeking one specific item) and limits interactions to yes/no questions. Future research will explore extending this framework to open-ended questions, which will require more complex Monte Carlo approximations to handle the infinite space of possible answers. Additionally, while the inference cost is higher due to the scoring of multiple candidates, the reduction in user interaction time presents a compelling trade-off for real-world applications.

Summary updated

BibTeX
@inproceedings{piriyakulkij2023active,
  author = {Top Piriyakulkij and Volodymyr Kuleshov and Kevin Ellis},
  title = {{Active Preference Inference using Language Models and Probabilistic Reasoning}},
  booktitle = {FMDM @ NeurIPS},
  year = {2023},
  url = {https://openreview.net/forum?id=2SjoG6lVz3},
}
Figure