Selective Preference Optimization via Token-Level Reward Function Estimation

Kailai Yang, Zhiwei Liu, Qianqian Xie, Jimin Huang, Erxue Min, Sophia Ananiadou · Submission to ICLR 2025 · Withdrawn

Overview

Selective Preference Optimization (SePO) is a novel alignment strategy that identifies and trains only on the most "important" tokens in a response, rather than treating every word as equally valuable. By using a small "oracle" model to estimate token-level rewards, SePO achieves superior alignment performance compared to standard Direct Preference Optimization (DPO) while slashing GPU training time by up to 60%.

What Problem Does This Paper Address?

Aligning Large Language Models (LLMs) with human values typically relies on response-level feedback. In popular methods like DPO or Reinforcement Learning from Human Feedback (RLHF), the model is told whether an entire response is "better" or "worse" than another.

However, this is a coarse signal. A "rejected" response might contain mostly correct information with one fatal error, while a "chosen" response might be full of filler text that doesn't actually contribute to its quality. Training on every single token in these responses is not only computationally expensive but also "noisy"—the model might inadvertently learn to associate neutral filler words with high rewards.

Existing "token-level" methods attempt to fix this, but they usually require expensive techniques like Monte-Carlo Tree Search (MCTS) or dense human annotations for every step of a response. The authors of SePO sought a way to perform fine-grained, token-level alignment that is both automated and highly efficient.

Methods

The SePO framework operates in three main steps:

SePO Framework Overview
  1. Oracle Modeling: The researchers first train a small "oracle" model (e.g., a 1.1B parameter TinyLLaMA) using standard DPO on a subset of the target data.
  2. Token Selection: They mathematically prove that a DPO-trained model inherently learns a token-level reward function. By comparing the oracle model's log-probabilities against a reference model, they assign a reward score to every token in the training set. They then identify "key tokens": the top-K% highest-reward tokens in preferred responses and the lowest-reward tokens in rejected ones.
  3. Selective Optimization: Finally, the target policy model (which can be much larger than the oracle) is trained using a contrastive loss function that only considers these key tokens.

A significant technical contribution is their Cross-Vocabulary Token Transfer algorithm, which allows an oracle model with one tokenizer (like Pythia) to provide supervision for a policy model with a completely different tokenizer (like LLaMA 3) by mapping rewards at the character level.

Datasets

The authors utilized several standard benchmarks for training and evaluation:

  • Training: UltraChat-200K for Supervised Fine-Tuning (SFT) and UltraFeedback for the preference optimization stages.
  • Evaluation:
    • AlpacaEval 2.0: Measures length-controlled win rates against GPT-4.
  • MT-Bench: Evaluates multi-turn conversation capabilities across categories like coding, math, and reasoning.
  • Arena-Hard: A more challenging benchmark designed to separate top-tier models.
  • Weak-to-Strong Generalization: They also tested on the HH-RLHF dataset to see if SePO could help models learn from lower-quality, "noisy" data.

Key Insights and Ideas

  • The 80/20 Rule for LLMs: The authors found that a small minority of tokens dominate the total reward of a response. Specifically, the top ~35.6% of tokens in a chosen response often account for 80% of its total reward.
Cumulative Reward Distribution
  • DPO is a Hidden Reward Estimator: One of the most elegant insights is the proof that you don't need a complex, separate Reward Model. The policy learned by DPO can be "decoupled" to provide a reliable estimate of how much each individual token contributes to the overall preference.
  • Weak-to-Strong Supervision: SePO excels at "weak-to-strong generalization." A tiny 410M parameter oracle can effectively supervise a 7B parameter model. This suggests that "knowing what is important" is an easier task than "generating the right answer," allowing smaller models to act as effective filters for their larger counterparts.
  • Mitigating Over-optimization: By ignoring low-value or noisy tokens (especially in out-of-distribution data), SePO prevents the model from "gaming" the reward function, a common problem where models become repetitive or overly verbose to maximize scores.

Key Results

  • Massive Efficiency Gains: SePO achieved its best results by optimizing only the top 30% of tokens, leading to a 40% to 60% reduction in GPU training hours compared to standard DPO.
  • Superior Performance: Despite training on fewer tokens, SePO consistently outperformed DPO, IPO, and SimPO across all three benchmarks. On Arena-Hard, it improved win rates by an average of 9.05%.
  • Robustness: In "weak-to-strong" experiments, a Pythia-410M oracle successfully guided a Pythia-6.9B model (a 16.8x difference in parameters) to outperform a version of the 6.9B model trained on the full dataset.
  • Quality over Quantity: On the MT-Bench, SePO achieved the highest average scores in 5 out of 6 model configurations tested, showing particular strength in "Assistant" and "QA" tasks.

Limitations and Future Work

  • Empirical Token Ratios: Currently, the selection ratio (e.g., 30%) is a hyperparameter that must be set manually. The authors suggest that future work could involve heuristic or training-based methods to automatically determine the optimal number of key tokens for different datasets.
  • Model Scaling Limits: Due to hardware constraints, the authors did not test SePO on ultra-large models (70B+ parameters). While the trends look promising, the "information bottleneck" of using a small oracle for a massive model remains an open question.
  • Task Specificity: While SePO performed excellently on conversational tasks, it showed slightly less improvement in highly structured tasks like math and coding. The authors hypothesize that these tasks require a more "continuous" logic chain where every token might be "key," making selective optimization trickier.

Summary updated

BibTeX
@misc{yang2024selective,
  author = {Kailai Yang and Zhiwei Liu and Qianqian Xie and Jimin Huang and Erxue Min and Sophia Ananiadou},
  title = {{Selective Preference Optimization via Token-Level Reward Function Estimation}},
  year = {2024},
  eprint = {2408.13518},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.13518},
}
Figure