Energy-Based Reward Models for Robust Language Model Alignment

Anamika Lochab, Ruqi Zhang
4/17/2025
cs.CLcs.LGstat.ML

No official code found. Best implementation: AnamikaLochab/EBRM (8 stars, last commit 2025-04-17).

Abstract

Reward models (RMs) are essential for aligning Large Language Models (LLMs) with human preferences. However, they often struggle with capturing complex human preferences and generalizing to unseen data. To address these challenges, we introduce Energy-Based Reward Model (EBRM), a lightweight post-hoc refinement framework that enhances RM robustness and generalization. EBRM models the reward distribution explicitly, capturing uncertainty in human preferences and mitigating the impact of noisy or misaligned annotations. It achieves this through conflict-aware data filtering, label-noise-aware contrastive training, and hybrid initialization. Notably, EBRM enhances RMs without retraining, making it computationally efficient and adaptable across different models and tasks. Empirical evaluations on RM benchmarks demonstrate significant improvements in both robustness and generalization, achieving up to a 5.97% improvement in safety-critical alignment tasks compared to standard RMs. Furthermore, reinforcement learning experiments confirm that our refined rewards enhance alignment quality, effectively delaying reward hacking. These results demonstrate our approach as a scalable and effective enhancement for existing RMs and alignment pipelines. The code is available at EBRM.

View on arXivView PDF

Code Implementations(1)

AnamikaLochab/EBRMCommunity100%
80PythonApr 17, 20251 years ago

Similar Papers

Cite this paper

@article{lochab2025energybased,
  title  = {Energy-Based Reward Models for Robust Language Model Alignment},
  author = {Anamika Lochab and Ruqi Zhang},
  year   = {2025},
  eprint = {2504.13134},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.13134v2}
}

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/2504.13134.svg)](https://codeofpaper.com/paper/2504.13134)

Discussion