Low-Rank Contextual Reinforcement Learning from Heterogeneous Human Feedback

Seong Jin Lee, Will Wei Sun, Yufeng Liu

TL;DR

This paper introduces LoCo-RLHF, a novel framework for Reinforcement Learning from Human Feedback (RLHF) that tackles the challenge of diverse and context-dependent human preferences. By leveraging low-rank structures and a pessimistic policy, LoCo-RLHF achieves more personalized and robust reward learning, outperforming existing methods in complex scenarios.

What Problem Does This Paper Address?

Reinforcement Learning from Human Feedback (RLHF) is a powerful technique for aligning AI models, especially Large Language Models (LLMs), with human preferences. However, a significant challenge arises from the heterogeneity of human feedback. People have different contexts, backgrounds, and preferences, meaning a single "reward model" might not accurately capture everyone's desires. For instance, a scientific explanation of a star might be preferred by an expert, while a simpler analogy is better for a child. This diversity leads to issues like:

  1. Personalization: How to tailor AI responses to individual users' contexts.
  2. Distribution Shift: How to ensure models perform well when the distribution of users or their contexts changes between training and deployment.
  3. High Dimensionality: The sheer volume of features in LLMs and user contexts creates computational challenges.

Existing RLHF methods often assume a homogeneous preference function, failing to address these critical issues.

Methods

The authors propose the Low-rank Contextual RLHF (LoCo-RLHF) framework, built on two key innovations:

  1. Contextual Preference Model: Instead of a single reward function r(s, a) (state, action), they introduce r(x, s, a), where x represents the individual's context. This is modeled using a bilinear form xᵀΘ*Φ(s, a), where Θ* is a parameter matrix and Φ(s, a) is the feature embedding of the state-action pair.
  2. Low-Rank Structure: To combat the high dimensionality of Θ*, they impose a low-rank structure. This means Θ* can be decomposed into smaller matrices, significantly reducing the number of parameters and computational complexity. This is inspired by successful applications of low-rank approximations in other ML domains.
  3. Pessimism in Reduced Space (PRS) Policy: To handle uncertainty and distribution shifts, they develop a pessimistic policy. This approach, inspired by offline RL, accounts for worst-case scenarios in reward estimation, leading to more robust decision-making. The PRS algorithm involves:
  4. Estimating the low-rank subspace.
  5. Reducing the problem to this low-dimensional subspace.
  6. Constructing confidence bounds and deriving a pessimistic policy.

Datasets

  • Synthetic Simulations: Used to evaluate the core algorithmic components and compare performance under controlled conditions.
  • PersonalLLM Dataset: A publicly released benchmark designed to study personalization in LLMs. It consists of prompts, responses from various LLMs (GPT-4o, Claude 3, Llama 3, Gemini Pro 1.5), and evaluations from 10 different reward models, providing heterogeneous preference signals.

Key Insights and Ideas

  • Heterogeneity is Key: The paper strongly argues that ignoring individual context and preferences in RLHF leads to suboptimal and non-personalized AI.
  • Low-Rank Structure as a Blessing: The inherent low-rank structure in the interaction between user contexts and state-action features is not just a computational shortcut but a fundamental property that can be exploited for better reward learning.
  • Pessimism for Robustness: Applying pessimistic principles from offline RL is crucial for handling the uncertainty introduced by heterogeneous feedback and potential distribution shifts, leading to more reliable policies.
  • Bridging Theory and Practice: The work provides theoretical guarantees (sub-optimality bounds) that are validated by extensive empirical results on both synthetic and real-world datasets.

Key Results

  • Improved Sub-optimality Gap: LoCo-RLHF consistently achieves smaller sub-optimality gaps compared to baseline methods (MLE-Greedy and MLE-Pessimistic) across various scenarios, including different data imbalance levels and true rank values.
  • Robustness to Data Imbalance: The PRS policy demonstrates superior performance and robustness when faced with imbalanced datasets, a common issue in real-world preference data.
  • Scalability: The low-rank approach makes the method computationally feasible and scales favorably to moderately high-dimensional settings.
  • Personalization Effectiveness: Experiments on the PersonalLLM dataset show that LoCo-RLHF effectively leverages contextual information for personalized RLHF.
  • Robustness to Noisy Features: The proposed PRS policy maintains stable performance even when irrelevant noisy features are added, unlike baseline methods that deteriorate.

Limitations and Future Work

  • Model Misspecification: The authors acknowledge the challenge of investigating robustness under model misspecification, suggesting it as a future research direction.
  • Non-Stationary Environments: Extending the framework to handle non-stationary environments, where distributions change over time, is identified as an important area for future work.
  • Active Learning: Exploring expert and query selection (active learning) to improve data efficiency is also proposed.
  • Complex Social Welfare Functions: The framework can be extended to optimize more complex social welfare functions beyond the standard utilitarian objective.

Summary updated

BibTeX
@misc{lee2025low,
  author = {Seong Jin Lee and Will Wei Sun and Yufeng Liu},
  title = {{Low-Rank Contextual Reinforcement Learning from Heterogeneous Human Feedback}},
  year = {2025},
  url = {https://openreview.net/forum?id=UOpqfKqejA},
  howpublished = {OpenReview},
}
Figure