RL2R: RL with Reference-Based Rewards
Note: RL2R was previously released as RefAlign. Repository names on the Hugging Face Hub keep the old naming.
GitHub repository: https://github.com/mzhaoshuai/RL2R/tree/alignment
Paper: Reinforcement Learning with Reference-Based Rewards for Language Model Reasoning and Alignment.
This repository contains the SFT (Supervised Fine-Tuning) model mzhaoshuai/zephyr-7b-alpha-conf-sft, which is an integral part of the RefAlign framework. This model serves as an initial SFT step for Confidence Alignment experiments, trained with shuchangtao/CONQORD_dataset (specifically, conqord_step1_data), as described in the accompanying research.
Abstract
Reinforcement learning (RL) powers two major lines of large language model (LLM) post-training: reasoning, which elicits deliberate, verifiable problem solving, and alignment, which steers models toward helpful, harmless, and honest behavior. Both hinge on reward design. Reasoning relies on rule-based verification of final answers, whose binary feedback is blind to intermediate derivations, whereas process reward models (PRMs) require step-level annotations too costly to scale. Alignment depends on reward models (RMs) trained on binary preference pairs, making both data collection and model training resource-intensive. We propose RL2R (formerly RefAlign), reinforcement learning with reference-based rewards, as a unified and inexpensive alternative. Using pre-existing or distilled references, RL2R measures semantic similarity with lightweight metrics such as BERTScore between a sampled generation and a reference answer or solution. Similarity preserves ordinal quality signals that binary feedback discards: responses closer to the reference earn higher rewards, and sound derivations receive credit even when the final conclusion is wrong. For mathematical reasoning, augmenting rule-based verification with answer- and step-level similarity provides low-cost process supervision and outperforms answer-only verification. For alignment, a critic-free REINFORCE-style instantiation covers general preference, safety, and confidence tasks on par with RM-based methods. Reference-based rewards thus offer a cost-effective, versatile reward source spanning reasoning and alignment.
Framework versions
- PEFT 0.11.1
- Transformers 4.40.0
Bibtex
@misc{zhao2026reinforcementlearningreferencebasedrewards,
title={Reinforcement Learning with Reference-Based Rewards for Language Model Reasoning and Alignment},
author={Shuai Zhao and Yunqiu Xu and Linchao Zhu and Ling Chen and Yi Yang},
year={2026},
eprint={2504.09895},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2504.09895},
}