Sharpe Ratio-Guided Active Learning for Preference Optimization in RLHF

Syrine Belakaria, Joshua Kazdan, Charles Marx, Chris Cundy, Willie Neiswanger, Sanmi Koyejo, Barbara E Engelhardt, Stefano Ermon

TL;DR

This paper introduces SHARP, a novel active learning strategy for Reinforcement Learning from Human Feedback (RLHF) and Direct Preference Optimization (DPO) that uses a Sharpe Ratio-based risk assessment to select the most informative data points for human annotation. By efficiently identifying high-impact data, SHARP significantly reduces annotation costs while achieving comparable or better performance than standard methods.

What Problem Does This Paper Address?

Training large language models (LLMs) to align with human preferences, a process known as RLHF or DPO, is crucial for making them helpful and harmless. However, this alignment relies on collecting human preference data (e.g., which of two AI-generated responses is better), which is notoriously expensive and time-consuming to gather, often requiring expert annotators. This bottleneck limits the scale and effectiveness of RLHF/DPO. Existing active learning methods for this task often rely on predicting which response will be preferred, which can be unreliable. The paper addresses the challenge of efficiently selecting the most valuable data points for annotation from a vast pool of unlabeled data, aiming to maximize the impact on model training while minimizing annotation costs.

Methods

The core innovation is a Sharpe Ratio-guided active learning approach. Instead of trying to predict the human preference, SHARP evaluates the potential impact of all possible preference outcomes for a given prompt-response pair. It does this by analyzing the magnitude of the gradient update that would result from each potential preference.

The key idea is to treat the gradient update as a random variable and use the Sharpe Ratio (borrowed from finance) to balance the expected benefit (mean gradient magnitude) against the uncertainty or risk (standard deviation of the gradient magnitude). This allows for a more robust assessment of data point informativeness.

A significant technical contribution is the derivation of closed-form expressions for these Sharpe Ratios. This is crucial because it avoids computationally expensive multiple backpropagations, making the method tractable and efficient for large models.

Two variants are proposed:

  • SHARP: Assumes no prior knowledge about preference probabilities (i.e., both responses are equally likely to be preferred).
  • W-SHARP: Incorporates an implicit reward model (derived from the current policy) to provide prior probabilities, potentially leading to more informed selections.

Datasets

The paper evaluates its methods on two widely used public datasets:

  • Anthropic Helpful-Harmless (HH): Designed to measure an AI assistant's helpfulness and harmlessness.
  • Stanford Human Preferences (SHP): Consists of Reddit posts and comments, covering a broad range of human conversations and preferences.

Key Insights and Ideas

  • Risk-aware data selection is key: By considering both the potential reward (gradient magnitude) and the uncertainty (variance), the Sharpe Ratio provides a more principled way to select informative data than methods relying solely on uncertainty or predicted preferences.
  • Closed-form solutions are critical for practicality: Deriving analytical expressions for the Sharpe Ratio makes the method computationally feasible for large LLMs, overcoming a major hurdle for applying advanced active learning techniques.
  • No prior assumptions can be sufficient: The SHARP variant, which doesn't rely on prior knowledge, performs comparably to W-SHARP, suggesting that a robust risk assessment can be effective even without explicit prior information about preferences. This highlights the power of the Sharpe Ratio itself.
  • Efficiency gains are substantial: The method aims to achieve good performance with significantly less labeled data, directly addressing the cost bottleneck in RLHF/DPO.

Key Results

  • SHARP and W-SHARP consistently outperform the standard DPO baseline and another active learning baseline (APL) across various LLMs (GPT-2, Pythia-2.8B, Llama-3-8B) and datasets (HH, SHP).
  • The methods achieve up to 5% improvement in win rate over the baseline, even with a limited budget (less than 18% of available training tuples).
  • The accuracy of the implicit reward model also tends to improve faster with SHARP and W-SHARP, indicating that the selected data points lead to more effective model updates.
  • The ablation study shows SHARP outperforms a simpler "expected gradient" approach, especially in potentially noisy scenarios.

Limitations and Future Work

  • Potential bias in selection: The paper acknowledges that focusing exclusively on high Sharpe Ratio data might bias the distribution of selected examples. Future work could explore techniques like importance sampling or explicit expectation balancing to mitigate this.
  • Computational constraints: While the closed-form solution makes the method tractable, the computational study was limited by resources, restricting the scale of DPO training and the range of datasets. More extensive experiments are needed to confirm robustness.
  • Exploring alternative risk metrics: The authors suggest investigating other risk-aware metrics, such as the Sortino ratio, which could offer different inductive biases and potentially further improve performance.

Summary updated

BibTeX
@inproceedings{belakaria2025sharpe,
  author = {Syrine Belakaria and Joshua Kazdan and Charles Marx and Chris Cundy and Willie Neiswanger and Sanmi Koyejo and Barbara E Engelhardt and Stefano Ermon},
  title = {{Sharpe Ratio-Guided Active Learning for Preference Optimization in RLHF}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=a6xzTqMUFQ},
}
Figure