APLOT: Robust Reward Modeling via Adaptive Preference Learning with Optimal Transport

Zhuo Li, Yuege Feng, Dandan Guo, Jinpeng Hu, Anningzhe Gao, Xiang Wan

TL;DR

This paper introduces APLOT, a novel method for training reward models (RMs) that power Reinforcement Learning from Human Feedback (RLHF). APLOT uses Optimal Transport to adaptively adjust the learning margin for each preference pair, focusing on harder examples and improving generalization. This leads to more robust and accurate RMs, outperforming existing methods on various benchmarks and improving RLHF performance.

What Problem Does This Paper Address?

Aligning Large Language Models (LLMs) with human preferences is crucial for making them helpful and harmless. Reinforcement Learning from Human Feedback (RLHF) is a key technique for this, and it relies heavily on reward models (RMs) that learn from human preferences. A common approach uses the Bradley-Terry (BT) model, which learns to rank preferred responses higher than rejected ones. However, BT-based RMs struggle to differentiate between similar responses, leading to over-fitting on easy examples and poor generalization to out-of-distribution (OOD) data. This paper addresses this limitation by proposing a more robust RM training method that can better distinguish subtle preference differences and generalize effectively.

Methods

The core of APLOT is an adaptive margin mechanism that dynamically adjusts the learning difficulty for each training triplet (prompt, chosen response, rejected response). This margin is determined by considering two factors:

  • Semantic Similarity: How similar are the chosen and rejected responses to each other?
  • Model-Predicted Reward Difference: How much does the current RM predict a difference in reward between the chosen and rejected responses?

APLOT formulates this adaptive margin estimation using Optimal Transport (OT). Specifically, it models the margin as an OT distance between distributions derived from the semantic similarity and reward differences. This allows APLOT to:

  • Focus on challenging samples: Larger margins are assigned to triplets with high semantic similarity but small reward differences, indicating difficulty in discrimination.
  • Avoid over-fitting: Smaller margins are used for triplets with large reward differences, where the model already shows clear preference.

The cost matrix for the OT problem is designed to incorporate both semantic similarity and reward differences, weighted by a hyperparameter $\gamma$. This principled approach ensures that the RM learns to capture distributional differences between preferred and non-preferred responses more effectively. The adaptive margins are then incorporated into the standard BT ranking loss.

A simpler baseline, PointMargin, is also introduced, which estimates margins based on a point-wise summation of costs rather than the distributional approach of OT.

Datasets

The paper uses the following datasets:

  • Unified-Feedback (UF) preference dataset: Used for training and evaluating RM performance.
  • HHH-Alignment dataset: Used for OOD evaluation, focusing on helpfulness, honesty, and harmlessness.
  • MT-Bench Human Judgments dataset: Used for OOD evaluation, containing pairwise human preferences for model responses.
  • RewardBench dataset: Used for OOD evaluation, designed to comprehensively assess RM capabilities and safety.
  • RM-Bench dataset: Used for OOD evaluation.
  • Skywork Preference dataset-80K (SP): Used for RM training in some experiments.

Key Insights and Ideas

  • The importance of adaptive margins: Simply enforcing a higher score for chosen responses (like in vanilla BT) is insufficient. Dynamically adjusting the margin based on sample difficulty is key to improving RM performance and generalization.
  • Optimal Transport as a principled framework: OT provides a robust way to model the distributional differences between preferred and rejected responses, leading to a more sophisticated margin estimation than simple point-wise methods.
  • Balancing semantic similarity and reward difference is crucial: The proposed cost matrix design, which balances these two factors, is essential for effective margin estimation and robust RM training.
  • APLOT improves generalization: The method shows significant gains on OOD datasets, indicating its ability to handle unseen scenarios and subtle preference distinctions.
  • Faster convergence: APLOT and its baseline PointMargin demonstrate faster convergence during training compared to traditional methods.

Key Results

  • Outperforms baselines: APLOT consistently outperforms several baseline RM methods (Vanilla BT, BT variants, GRM) on both ID and OOD evaluation tasks across multiple benchmarks.
  • High scores on benchmarks: Achieved the highest scores on Unified Feedback (73.84), HHH Alignment (81.25), and MT Bench (75.23).
  • Robustness on OOD data: Demonstrated strong performance on OOD datasets, highlighting its generalization capabilities.
  • Improved RLHF performance: Experiments using APLOT for RLHF training (via PPO) showed better policy model performance compared to baselines.
  • Faster convergence: APLOT and PointMargin achieved higher validation accuracy with fewer epochs compared to baselines.
  • Influence of $\gamma$: The hyperparameter $\gamma$, which balances semantic similarity and reward difference, was found to be optimal around 0.4-0.6, with 0.5 consistently yielding the best results.

Limitations and Future Work

  • Limited to language-based RMs: The current method is designed for text-based reward models and has not been adapted for multi-modal inputs or progress reward models.
  • Not explicitly adapted for generative RMs: The approach is primarily for discriminative reward modeling.
  • Data dependency: The method's performance relies on the quality and representativeness of the training data.
  • Future work: The authors plan to explore multi-modal reward modeling, progress reward modeling, and generative reward modeling. They also aim to develop new techniques for integrating multi-modal information and dynamically adjusting the reward function based on agent progress.

Summary updated

BibTeX
@inproceedings{li2025aplot,
  author = {Zhuo Li and Yuege Feng and Dandan Guo and Jinpeng Hu and Anningzhe Gao and Xiang Wan},
  title = {{APLOT: Robust Reward Modeling via Adaptive Preference Learning with Optimal Transport}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure