Improving Discriminative Capability of Reward Models in RLHF Using Contrastive Learning
Lu Chen, Rui Zheng, Binghai Wang, Senjie Jin, Caishuang Huang, Junjie Ye, Zhihao Zhang, Yuhao Zhou
Abstract
Reinforcement Learning from Human Feedback (RLHF) is a crucial approach to aligning language models with human values and intentions. A fundamental challenge in this method lies in ensuring that the reward model accurately understands and evaluates human preferences. Current methods rely on ranking losses to teach the reward model to assess preferences, but they are susceptible to noise and ambiguous data, often failing to deeply understand human intentions. To address this issue, we introduce contrastive learning into the reward modeling process. In addition to supervised ranking loss, we introduce an unsupervised contrastive loss to enable the reward model to fully capture the distinctions in contrastive data. Experimental results demonstrate that the proposed contrastive learning-based reward modeling method effectively enhances the generalization of the reward model, stabilizes the reinforcement learning training process, and improves the final alignment with human preferences.
BibTeX
@inproceedings{chen-etal-2024-improving-discriminative,
title = "Improving Discriminative Capability of Reward Models in {RLHF} Using Contrastive Learning",
author = "Chen, Lu and
Zheng, Rui and
Wang, Binghai and
Jin, Senjie and
Huang, Caishuang and
Ye, Junjie and
Zhang, Zhihao and
Zhou, Yuhao and
Xi, Zhiheng and
Gui, Tao and
Zhang, Qi and
Huang, Xuanjing",
editor = "Al-Onaizan, Yaser and
Bansal, Mohit and
Chen, Yun-Nung",
booktitle = "Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing",
month = nov,
year = "2024",
address = "Miami, Florida, USA",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.emnlp-main.852/",
doi = "10.18653/v1/2024.emnlp-main.852",
pages = "15270--15283"
}