Skip to main content
QUICK REVIEW

[Paper Review] Statistical Rejection Sampling Improves Preference Optimization

Tianqi Liu, Yao Zhao|arXiv (Cornell University)|Sep 13, 2023
Topic ModelingComputer Science7 citations
TL;DR

The paper introduces Statistical Rejection Sampling Optimization (RSO) to sample preference data from an estimated target optimal policy, unifying DPO and SLiC losses, and shows RSO consistently outperforms these methods across tasks and evaluations.

ABSTRACT

Improving the alignment of language models with human preferences remains an active research challenge. Previous approaches have primarily utilized Reinforcement Learning from Human Feedback (RLHF) via online RL methods such as Proximal Policy Optimization (PPO). Recently, offline methods such as Sequence Likelihood Calibration (SLiC) and Direct Preference Optimization (DPO) have emerged as attractive alternatives, offering improvements in stability and scalability while maintaining competitive performance. SLiC refines its loss function using sequence pairs sampled from a supervised fine-tuned (SFT) policy, while DPO directly optimizes language models based on preference data, foregoing the need for a separate reward model. However, the maximum likelihood estimator (MLE) of the target optimal policy requires labeled preference pairs sampled from that policy. DPO's lack of a reward model constrains its ability to sample preference pairs from the optimal policy, and SLiC is restricted to sampling preference pairs only from the SFT policy. To address these limitations, we introduce a novel approach called Statistical Rejection Sampling Optimization (RSO) that aims to source preference data from the target optimal policy using rejection sampling, enabling a more accurate estimation of the optimal policy. We also propose a unified framework that enhances the loss functions used in both SLiC and DPO from a preference modeling standpoint. Through extensive experiments across three diverse tasks, we demonstrate that RSO consistently outperforms both SLiC and DPO on evaluations from both Large Language Model (LLM) and human raters.

Motivation & Objective

  • Improve alignment of language models with human preferences using an offline approach that avoids full RLHF complexity.
  • Unify loss formulations of DPO and SLiC from a preference-modeling perspective.
  • Develop a scalable method to sample preference data from an estimated optimal policy via statistical rejection sampling.
  • Demonstrate empirical gains of RSO over strongest offline baselines on multiple tasks and evaluations.

Proposed method

  • Formulate preference data modeling under a Bradley–Terry framework to relate optimal policy to pairwise rewards.
  • Train a pairwise reward-ranking model to estimate preference probabilities for response pairs.
  • Introduce statistical rejection sampling to generate samples from the estimated optimal policy using the SFT policy as a proposal, then label with the reward model.
  • Explore multiple loss functions (logistic regression and hinge) and data-pair constructions to fit the optimal policy.
  • Unify the DPO and SLiC losses within a common preference-modeling perspective (logistic vs hinge) and compare their behaviors.
  • Demonstrate scalability by applying RSO to larger policy models (T5-XXL) and evaluating with proxy, gold, AutoSxS, and human metrics.
Figure 1: RSO first fits a pairwise reward-ranking model from human preference data. This model is later applied to generate preference pairs with candidates sampled from the optimal policy, followed by a preference optimization step to align sequence likelihood towards preferences.
Figure 1: RSO first fits a pairwise reward-ranking model from human preference data. This model is later applied to generate preference pairs with candidates sampled from the optimal policy, followed by a preference optimization step to align sequence likelihood towards preferences.

Experimental results

Research questions

  • RQ1How can we sample preference data from an estimated target optimal policy to better estimate the optimal policy itself?
  • RQ2Do rejection-sampling-based data generation and a reward-model labeling improve policy optimization compared to DPO and SLiC?
  • RQ3How do different loss formulations (logistic vs hinge) and data distributions (direct, SFT-sample-rank, RSO-sample-rank) affect alignment to human preferences?
  • RQ4Can RSO scale to larger policy models and maintain or improve alignment across tasks and evaluation modalities?

Key findings

  • RSO variants consistently outperform DPO and SLiC baselines across tasks and evaluation metrics.
  • Among sampling strategies, rso-sample-rank yields gains over direct and sft-sample-rank approaches.
  • RSO scales to larger policy models (T5-XXL) and improves AutoSxS relative to DPO on two tasks.
  • Human evaluation shows RSO-sample-rank with sigmoid-norm or hinge-norm losses is preferred over direct or sft-sample-rank baselines.
  • Hyper-parameter choices for gamma (loss temperature) and beta (rejection sampling temperature) have meaningful effects, with moderate values often performing best.
Figure 2: Statistical rejection sampling illustration. There are three curves in the figure: $M$ times SFT policy, reward, optimal policy. The sample is first generated by SFT policy, then gets accepted or rejected depending on whether a uniform random variable locates in acceptance or rejection reg
Figure 2: Statistical rejection sampling illustration. There are three curves in the figure: $M$ times SFT policy, reward, optimal policy. The sample is first generated by SFT policy, then gets accepted or rejected depending on whether a uniform random variable locates in acceptance or rejection reg

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.