Because it is difficult to precisely specify complex objectives, reinforcement learning policies are often optimized using proxy reward functions that only approximate the true goal. However, optimizing proxy rewards frequently leads to reward hacking: the optimized reward function ceases to be a good proxy and the resulting policy performs poorly with respect to the unspecified true reward. Principled solutions to reward hacking have been impeded by the lack of a good definition for the problem. To address this gap, we introduce a definition of reward hacking based on the correlation between proxy and true rewards for states and actions seen by a "reference policy" that breaks down under optimization. We show that this definition captures reward hacking behavior across several realistic settings, including in reinforcement learning from human feedback (RLHF). Using our formulation, we show theoretically that regularization to the reference policy can effectively prevent reward hacking. While the current practice in RLHF applies a KL penalty between action distributions for this purpose, our theory suggests regularizing the $χ^2$ divergence between the policies' occupancy measures can be more effective. We intuitively show the benefits of this type of regularization and demonstrate that it better mitigates reward hacking in practice across four realistic settings, including RLHF. Our code is available at https://github.com/cassidylaidlaw/orpo.
CATCH: A Controllable Analysis Testbed for Reward Hacking in Coding RL
Tsinghua University(清华大学);Beihang University(北京航空航天大学);Southern University of Science and Technology(南方科技大学);Renmin University of China(中国人民大学);Shanghai University of Finance and Economics(上海财经大学)
Detecting Proxy Gaming in RL and LLM Alignment via Evaluator Stress Tests
Department of Computer Science, Iowa State University(计算机科学系,爱荷华州立大学);Department of Civil, Construction & Environmental Engineering, Iowa State University(土木、建设与环境工程系,爱荷华州立大学)
BAITBENCH: Measuring Agent Reward Hacking with Optional Shortcuts Planted in ML Tasks
National University of Singapore(新加坡国立大学);MIT(麻省理工学院);Vrije Universiteit Amsterdam(阿姆斯特丹自由大学);University of Toronto(多伦多大学);University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Arb Research(Arb研究机构)
ReDit: Reward Dithering for Improved LLM Policy Optimization
Guangdong Lab of AI and Digital Economy (SZ), China(广东人工智能与数字经济实验室(深圳));College of Computer Science and Software Engineering, Shenzhen University, China(深圳大学计算机科学与软件工程学院);Hong Kong University of Science and Technology (Guangzhou), China(香港科技大学(广州));Tencent, Shenzhen, China(腾讯(深圳));School of Information Technology, Carleton University, Canada(卡尔顿大学信息技术学院)