Reinforce-Rej: Minimalist RL for LLM Fine-Tuning
- Reinforce-Rej is a minimalist reinforcement learning approach that uses prompt-level filtering to discard uniformly rewarding prompts, thereby reducing variance.
- It filters out prompts where all responses are either correct or incorrect, enhancing KL efficiency and maintaining balanced policy entropy.
- Empirical results demonstrate that Reinforce-Rej achieves competitive accuracy and reliable convergence through stable gradient updates during LLM fine-tuning.
Reinforce-Rej is a minimalist extension to policy-gradient reinforcement learning algorithms, specifically oriented toward LLM post-training with binary reward signals. Designed to reduce variance and improve the stability of standard REINFORCE updates, Reinforce-Rej employs a prompt-level filter that discards entire prompts from the training batch if all generated responses are either correct or incorrect. This filtering mechanism achieves greater KL efficiency, improves reward learning, and maintains stable policy entropy, making it a pragmatic alternative to more complex RL methods for reward-based LLM fine-tuning (Xiong et al., 15 Apr 2025).
1. Motivation and Background
Classical policy-gradient RL algorithms such as REINFORCE optimize the objective
using the update
This approach suffers from high variance, particularly when negative samples (with ) dominate prompts, resulting in noisy or even harmful gradients. Techniques like PPO and GRPO add reward normalization or clipping within each prompt, but still incorporate every sample, leading to instability and excessive KL divergence from the initial policy if not well controlled (Xiong et al., 15 Apr 2025).
RAFT (Rejection Sampling Fine-Tuning) addresses this by retaining only positively rewarded samples per prompt and performing standard maximum-likelihood training. While RAFT achieves competitive performance and faster early convergence, it suffers from entropy collapse, causing limited exploration and subpar final accuracy.
Analysis of GRPO ablations revealed that GRPO's key strength is not in reward normalization but in de facto filtering: it implicitly discards prompts where all responses are incorrect, eliminating uninformative or destabilizing gradients. Reinforce-Rej generalizes this insight to a formal policy-gradient approach.
2. Formal Algorithmic Definition
The Reinforce-Rej procedure operates as follows:
- Given a batch of prompts, each prompt is evaluated by sampling responses under the current policy. Each response receives a binary reward .
- For each prompt:
- If all (all-wrong) or all (all-correct), the entire prompt is discarded from the on-policy batch.
- Otherwise, all pairs are retained for the policy gradient update.
- The loss used is a clipped, token-level policy gradient:
0
where 1.
- The algorithm is summarized in the following pseudocode:
3. Theoretical Properties
Variance Reduction and KL Efficiency
By discarding prompts with unanimous (all-correct or all-wrong) reward outcomes, Reinforce-Rej removes the highest-variance, least-informative samples from the policy-gradient estimator. This leads to empirically reduced variance in gradient estimates and slower growth of KL divergence between the current and initial policies compared to PPO or GRPO (Xiong et al., 15 Apr 2025).
Stability and Convergence
Reinforce-Rej avoids the instability associated with unfiltered REINFORCE—particularly entropy collapse and KL "blow-up"—by ensuring that both positive and negative reward signals remain present while discarding batch extremes. Training converges reliably in ~200 online iterations with stable entropy and KL behavior. No formal finite-sample convergence bound is reported, but empirical results substantiate these stability claims.
Comparative Summary Table
| Algorithm | Filtering Rule | Normalization | KL Control | Value Net |
|---|---|---|---|---|
| REINFORCE | None | No | Poor | No |
| PPO/GRPO | None (but reward-norm within prompt) | Yes | Moderate | Optional |
| RAFT | Keep only positives | N/A (MLE) | Good | No |
| Reinforce-Rej | Discard all-correct/all-wrong prompts | No | Very Good | No |
4. Empirical Results and Comparative Performance
Experiments conducted on mathematical reasoning datasets (e.g., Numina-Math, Math500) using models such as Qwen2.5-Math-7B and LLaMA-3.2-3B demonstrate that Reinforce-Rej achieves:
- Accuracy within ≲1 percentage point of GRPO, outperforming PPO.
- Stronger KL efficiency: KL(πθ‖π{init}) increases more slowly than PPO or unfiltered REINFORCE.
- Policy entropy under Reinforce-Rej remains ≳1.5 nats, compared to ≲0.5 nats for RAFT++ without filtering, indicating balanced exploration and exploitation (Xiong et al., 15 Apr 2025).
Main findings from ablation studies:
- "Remove all wrong" filtering yields the largest reward and most stable KL/entropy curves.
- "Remove all correct" filtering provides minimal additional benefit but, when combined with "all wrong," achieves stable convergence and matches the best-performing methods.
- Standard deviation normalization confers negligible gain when filtering is used.
5. Methodological Context and Related Approaches
Reinforce-Rej is distinguished by its simplicity and filtering mechanism, which requires sampling multiple (2) responses per prompt to detect all-wrong or all-correct cases. Compared to value-function-based methods (PPO), normalization-based policy gradients (GRPO), and pure rejection sampling (RAFT), Reinforce-Rej operates without a value network and with minimal additional hyperparameters.
Other recent approaches such as REDI (Reinforcement Distillation), DPO, and SimPO introduce explicit reference models, preference margins, or sigmoid-based objectives for combining positive and negative examples, providing different trade-offs between stability, aggressiveness, and peak performance (Xu et al., 30 May 2025). Reinforce-Rej, by contrast, forgoes reference models and learns directly from the "filtered" on-policy batch.
Practical recommendations from empirical studies include:
- AdamW optimizer with lr=1×10⁻⁶, prompts per iteration M=1024, responses per prompt n=4, mini-batch size 512, and clip 3 in 0.1–0.2.
- Suitable for tasks with binary rewards and where unfiltered RL leads to KL instability or noisy learning.
- Less effective when extreme outcome cases are rare (i.e., when rewards per prompt are not sharply bimodal).
6. Limitations and Practical Considerations
The necessity of sampling multiple responses per prompt imposes moderate computational overhead. Reinforce-Rej discards some data—if reward sparsity is high or batch size is small, this loss can slow convergence. Its minimalism means it lacks extensive reward normalization or critic-based stabilization; performance may plateau if prompt reward structure is poorly aligned with the filtering rules. A plausible implication is that further gains may require more nuanced treatment of negative samples rather than indiscriminate filtering (Xiong et al., 15 Apr 2025).
7. Significance and Prospects
Reinforce-Rej sets a new standard for minimalist, robust RL-based fine-tuning of LLMs where binary rewards and high variance are significant concerns. Its interpretability and implementation simplicity—in conjunction with empirical competitiveness—make it a recommended baseline for future work exploring RL-driven post-training, particularly for reasoning tasks. Open challenges remain in leveraging “negative” examples more productively, motivating further research into principled policy-gradient objectives that move beyond rejection sampling and filtering (Xiong et al., 15 Apr 2025).