Beyond Reward Hacking: Causal Rewards for Large Language Model Alignment

Chaoqi Wang, Zhuokai Zhao, Yibo Jiang, Zhaorun Chen, Chen Zhu +6 more
1/16/2025
cs.LGcs.AI

No official code found. Best implementation: tatsu-lab/alpaca_farm (844 stars, Apache-2.0, last commit 2024-07-01).

Abstract

Recent advances in large language models (LLMs) have demonstrated significant progress in performing complex tasks. While Reinforcement Learning from Human Feedback (RLHF) has been effective in aligning LLMs with human preferences, it is susceptible to spurious correlations in reward modeling. Consequently, it often introduces biases-such as length bias, sycophancy, conceptual bias, and discrimination-that hinder the model's ability to capture true causal relationships. To address this, we propose a novel causal reward modeling approach that integrates causality to mitigate these spurious correlations. Our method enforces counterfactual invariance, ensuring reward predictions remain consistent when irrelevant variables are altered. Through experiments on both synthetic and real-world datasets, we show that our approach mitigates various types of spurious correlations effectively, resulting in more reliable and fair alignment of LLMs with human preferences. As a drop-in enhancement to the existing RLHF workflow, our causal reward modeling provides a practical way to improve the trustworthiness and fairness of LLM finetuning.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A simulation framework for RLHF and alternatives. Develop your RLHF method without collecting human data.

84466Python, JavaScriptMay 3, 20232 years agoApache-2.0
deep-learninginstruction-followinglarge-language-modelsnatural-language-processingreinforcement-learning-from-human-feedback

Similar Papers

Cite this paper

@article{wang2025beyond,
  title  = {Beyond Reward Hacking: Causal Rewards for Large Language Model Alignment},
  author = {Chaoqi Wang and Zhuokai Zhao and Yibo Jiang and Zhaorun Chen and Chen Zhu and Yuxin Chen and Jiayi Liu and Lizhu Zhang and Xiangjun Fan and Hao Ma and Sinong Wang},
  year   = {2025},
  eprint = {2501.09620},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.09620v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.09620.svg)](https://codeofpaper.com/paper/2501.09620)

Discussion