GRAM: A Generative Foundation Reward Model for Reward Generalization

Chenglong Wang, Yang Gan, Yifu Huo, Yongyu Mu, Qiaozhi He +6 more
6/1/2025

No official code found. Best implementation: NiuTrans/GRAM (21 stars, Apache-2.0, last commit 2025-09-04). 1 more below.

Abstract

In aligning large language models (LLMs), reward models have played an important role, but are standardly trained as discriminative models and rely only on labeled human preference data. In this paper, we explore methods that train reward models using both unlabeled and labeled data. Building on the generative models in LLMs, we develop a generative reward model that is first trained via large-scale unsupervised learning and then fine-tuned via supervised learning. We also show that by using label smoothing, we are in fact optimizing a regularized pairwise ranking loss. This result, in turn, provides a new view of training reward models, which links generative models and discriminative models under the same class of training objectives. The outcome of these techniques is a foundation reward model, which can be applied to a wide range of tasks with little or no further fine-tuning effort. Extensive experiments show that this model generalizes well across several tasks, including response ranking, reinforcement learning from human feedback, and task adaptation with fine-tuning, achieving significant performance improvements over several strong baseline models.

View on arXivView PDF

Code Implementations(2)

NiuTrans/GRAMCommunity100%
Apache-2.0

Code for ICML 2025 paper "GRAM: A Generative Foundation Reward Model for Reward Generalization"

212Shell, PythonJun 17, 20251 years agoApache-2.0
generalizationgenerativereward-modelrlhf
wangclnlp/GRAMCommunity100%
Apache-2.0

In this repository, we provide generative foundation reward models to produce more accurate reward scores, thereby enabling better alignment of LLMs.

50Shell, PythonJun 18, 20251 years agoApache-2.0

Cite this paper

@article{wang2025gram,
  title  = {GRAM: A Generative Foundation Reward Model for Reward Generalization},
  author = {Chenglong Wang and Yang Gan and Yifu Huo and Yongyu Mu and Qiaozhi He and Murun Yang and Bei Li and Tong Xiao and Chunliang Zhang and Tongran Liu and Jingbo Zhu},
  year   = {2025},
  eprint = {2506.14175},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2506.14175},
  journal = {ICML 2025 2025}
}

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

Discussion