Thomas: Learning to Explore Human Preference via Probabilistic Reward Model

Sang T. Truong, Duc Quang Nguyen, Tho Quan, Sanmi KoyejoMFPL @ ICML 2023

TL;DR

This paper introduces "Thomas," a novel method for training AI agents to understand and align with human preferences more efficiently. By combining Bayesian neural networks for modeling preferences and Thompson sampling for exploration, Thomas learns faster and generates more diverse, preferred responses compared to existing methods.

What Problem Does This Paper Address?

Modern AI, especially large language models, are becoming incredibly adept at complex tasks. A key challenge is making these agents truly understand and cater to human desires and nuances, particularly when dealing with subjective preferences. Current methods for learning from human feedback often suffer from "poor sample complexity," meaning they need a lot of data to learn effectively. This is partly because they tend to focus only on the preferred response, neglecting the importance of diverse responses that help humans clarify their own preferences. This lack of diversity can hinder the fine-tuning of the AI's response generation.

Methods

Thomas tackles this by employing a two-stage approach:

  1. Probabilistic Reward Model: It uses Bayesian Neural Networks (BNNs) to learn a probabilistic model of human preferences. Unlike standard models, BNNs provide a distribution over possible reward functions, capturing uncertainty.
  2. Thompson Sampling for Exploration: This probabilistic reward model is then used with Thompson sampling. This technique intelligently balances "exploitation" (using current knowledge to get high rewards) and "exploration" (trying new things to improve the reward model). Specifically, it samples from the posterior distribution of the reward model to guide the generator. This is more computationally friendly than marginalizing out the reward function.

The paper also mentions an epsilon-greedy strategy for exploring generated responses to ensure diversity.

Datasets

The paper describes experiments conducted in synthetic environments.

  • Small-scale setting: A d-dimensional function drawn from a Gaussian Process (GP) with an RBF kernel was used. The input range was discretized into 180 intervals to simulate a vocabulary.
  • Large-scale setting: The Ackley function was used, with a vocabulary size of 1000 and prompt/response lengths of 50.

No new benchmarks were introduced; existing synthetic environments were adapted.

Key Insights and Ideas

  • The Power of Uncertainty: By using Bayesian neural networks, Thomas explicitly models uncertainty in its understanding of human preferences. This uncertainty is crucial for effective exploration.
  • Thompson Sampling for Efficiency: Thompson sampling, when applied to the probabilistic reward model, provides a computationally efficient way to balance exploration and exploitation, leading to faster learning.
  • Diversity is Key: The paper emphasizes that generating diverse responses is not just a nice-to-have, but essential for helping users clarify their preferences and for the AI to learn more robustly.
  • Bridging the Gap: Thomas aims to bridge the gap between AI capabilities and human-like understanding by learning nuanced preferences from limited interactions.

Key Results

  • Faster Learning: Experimental evaluations in synthetic environments showed that Thomas achieves higher scores (indicating better alignment with preferences) in a reduced timeframe compared to baseline methods.
  • Improved Response Quality: The generated responses were not only aligned with user preferences but also diverse, facilitating generator optimization.
  • Effective Exploration: The method demonstrated proficiency in swiftly adapting to user preferences and generating increasingly favored responses.
  • Recovering Ground Truth: In synthetic experiments, Thomas was shown to recover the ground truth reward surface well and produce high-reward responses.

Limitations and Future Work

  • Synthetic Environments: The current evaluations were conducted in synthetic environments. The paper suggests that future work could explore applying Thomas to real-world applications.
  • Potential Applications: The authors envision Thomas's applicability extending beyond simple preference learning to areas like understanding user needs in chatbot applications, finding optimal drug candidates for specific proteins, emulating human writing styles, and tailoring LLMs for specialized fields.
  • Model Instability: The paper notes that using an ensemble technique for the Bayesian reward model can lead to increased instability in the generator, whereas dropout offers a more stable alternative.

Summary updated

BibTeX
@inproceedings{truong2023thomas,
  author = {Sang T. Truong and Duc Quang Nguyen and Tho Quan and Sanmi Koyejo},
  title = {{Thomas: Learning to Explore Human Preference via Probabilistic Reward Model}},
  booktitle = {MFPL @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=LXbGz5aSDo},
}
Figure