Debiasing Reward Models by Representation Learning with Guarantees
Ignavier Ng, Patrick Blöbaum, Siddharth Bhandari, Kun Zhang, Shiva Kasiviswanathan
TL;DR
This work addresses spurious correlations in reward models used for RLHF by proposing a principled, theory-grounded framework to recover bias-free latent representations $Z_C$ from data generated by both spurious and non-spurious factors $Z_S$ and $Z_C$. It proves identifiability results with and without surrogates for spurious factors, and then implements a two-stage practical method: Stage 1 uses a VAE with an $\mathrm{KL}$ term and an HSIC regularizer to estimate $\hat{Z}_C$, while Stage 2 trains the reward model on $\hat{Z}_C$ to achieve counterfactual invariance to $S$. The approach is validated on synthetic data and real-world biases (sycophancy and concept bias), showing improved robustness and reduced bias compared to baselines. The results suggest a principled path toward more reliable RLHF alignment, with potential impact on reducing reward hacking and improving generalization in language model behavior.
Abstract
Recent alignment techniques, such as reinforcement learning from human feedback, have been widely adopted to align large language models with human preferences by learning and leveraging reward models. In practice, these models often exploit spurious correlations, involving, e.g., response length, discrimination, sycophancy, and conceptual bias, which is a problem that has received increasing attention. In this work, we propose a principled framework that mitigates these biases in reward models while preserving the underlying factors that reflect intended preferences. We first provide a formulation of the data-generating process, assuming that the observed data (e.g., text) is generated from both spurious and non-spurious latent variables. We show that, interestingly, these non-spurious latent variables can be theoretically identified from data, regardless of whether a surrogate for the spurious latent variables is available. This further inspires a practical method that uses variational inference to recover these variables and leverages them to train reward models. Experiments on synthetic and real-world datasets demonstrate that our method effectively mitigates spurious correlation issues and yields more robust reward models.
