Bias Fitting to Mitigate Length Bias of Reward Model in RLHF

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhao, Kangwen, Cai, Jianfeng, Zhu, Jinhua, Sun, Ruopei, Xue, Dongyun, Zhou, Wengang, Li, Li, Li, Houqiang
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910953039200256
author Zhao, Kangwen
Cai, Jianfeng
Zhu, Jinhua
Sun, Ruopei
Xue, Dongyun
Zhou, Wengang
Li, Li
Li, Houqiang
author_facet Zhao, Kangwen
Cai, Jianfeng
Zhu, Jinhua
Sun, Ruopei
Xue, Dongyun
Zhou, Wengang
Li, Li
Li, Houqiang
contents Reinforcement Learning from Human Feedback relies on reward models to align large language models with human preferences. However, RLHF often suffers from reward hacking, wherein policy learning exploits flaws in the trained reward model to maximize reward scores without genuinely aligning with human preferences. A significant example of such reward hacking is length bias, where reward models usually favor longer responses irrespective of actual response quality. Previous works on length bias have notable limitations, these approaches either mitigate bias without characterizing the bias form, or simply assume a linear length-reward relation. To accurately model the intricate nature of length bias and facilitate more effective bias mitigation, we propose FiMi-RM (Bias Fitting to Mitigate Length Bias of Reward Model in RLHF), a framework that autonomously learns and corrects underlying bias patterns. Our approach consists of three stages: First, we train a standard reward model which inherently contains length bias. Next, we deploy a lightweight fitting model to explicitly capture the non-linear relation between length and reward. Finally, we incorporate this learned relation into the reward model to debias. Experimental results demonstrate that FiMi-RM achieves a more balanced length-reward distribution. Furthermore, when applied to alignment algorithms, our debiased reward model improves length-controlled win rate and reduces verbosity without compromising its performance.
format Preprint
id arxiv_https___arxiv_org_abs_2505_12843
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Bias Fitting to Mitigate Length Bias of Reward Model in RLHF
Zhao, Kangwen
Cai, Jianfeng
Zhu, Jinhua
Sun, Ruopei
Xue, Dongyun
Zhou, Wengang
Li, Li
Li, Houqiang
Machine Learning
Artificial Intelligence
Reinforcement Learning from Human Feedback relies on reward models to align large language models with human preferences. However, RLHF often suffers from reward hacking, wherein policy learning exploits flaws in the trained reward model to maximize reward scores without genuinely aligning with human preferences. A significant example of such reward hacking is length bias, where reward models usually favor longer responses irrespective of actual response quality. Previous works on length bias have notable limitations, these approaches either mitigate bias without characterizing the bias form, or simply assume a linear length-reward relation. To accurately model the intricate nature of length bias and facilitate more effective bias mitigation, we propose FiMi-RM (Bias Fitting to Mitigate Length Bias of Reward Model in RLHF), a framework that autonomously learns and corrects underlying bias patterns. Our approach consists of three stages: First, we train a standard reward model which inherently contains length bias. Next, we deploy a lightweight fitting model to explicitly capture the non-linear relation between length and reward. Finally, we incorporate this learned relation into the reward model to debias. Experimental results demonstrate that FiMi-RM achieves a more balanced length-reward distribution. Furthermore, when applied to alignment algorithms, our debiased reward model improves length-controlled win rate and reduces verbosity without compromising its performance.
title Bias Fitting to Mitigate Length Bias of Reward Model in RLHF
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2505.12843