A First-Order Logic-Based Alternative to Reward Models in RLHF

Chunjin Jian, Xinhua Zhu
12/16/2025
cs.LGcs.LO

Official code: ChunjinJiang/sgrpo (2 stars, MIT, last commit 2025-12-18).

Abstract

Reinforcement Learning from Human Feedback (RLHF) plays a crucial role in aligning large language models (LLMs) with human values and preferences. However, the quality and stability of the trained reward model largely determine the final alignment performance. Existing approaches such as Proximal Policy Optimization (PPO) rely heavily on reward models to guide LLMs toward human-aligned behaviors. In this work, we propose a logic-similarity-based reward mechanism as an alternative to conventional reward modeling. Instead of relying on heuristic reward estimation, our method leverages formal logical consistency to steer model alignment with human preferences. Since real-world questions can be interpreted from multiple perspectives, to ensure that logic-based reinforcement learning does not cause model collapse, we introduce S-GRPO, a supervised variant of the GRPO framework. S-GRPO incorporates an additional supervised component and jointly optimizes the generation term, KL-divergence regularization, and label-based objective during training. Experimental results demonstrate that S-GRPO consistently outperforms standard supervised fine-tuning (SFT) in both performance and robustness. Furthermore, it extends existing preference-learning frameworks such as GRPO and DPO, offering a more flexible and task-adaptive approach to alignment training. Our code is available at https://github.com/ChunjinJiang/sgrpo.

View on arXivView PDF

Code Implementations(1)

ChunjinJiang/sgrpoOfficial100%
MIT

A First-Order Logic–Based Alternative to Reward Models in RLHF

20PythonDec 16, 202510 months agoMIT

Cite this paper

@article{jian2025firstorder,
  title  = {A First-Order Logic-Based Alternative to Reward Models in RLHF},
  author = {Chunjin Jian and Xinhua Zhu},
  year   = {2025},
  eprint = {2512.14100},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.14100v1}
}

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

Discussion