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 is the model aligned with RefAlign described in the paper Reinforcement Learning with Reference-Based Rewards for Language Model Reasoning and Alignment.
It is primarily aligned for safety.
The training data is https://huggingface.co/datasets/mzhaoshuai/Llama-3.3-70B-Inst-awq_SafeRLHF.
For the project code, please refer to the GitHub repository.
When conducting Reinforcement Learning with Reference-Based Rewards, the reward function is Meteor.
| Hyper-Parameters | Value |
|---|---|
| LR | 2e-6 |
| Batch Size | 512 |
| Epoch | 2 |
| Prompt Length | 192 |
| Generation Length | 384 |
| Sampled Generations (K) | 2 |
| Reward function | Meteor |
| harmless advantage weight | 4.0 |