Historical Relative Policy Optimization for Bootstrapping LLM Reasoning

Sitong Wu, Haoru Tan, Bei Yu, Xiaojuan Qi, Jiaya JiaNeurIPS 2026

TL;DR

Popular reinforcement learning algorithms for LLMs, like GRPO, grade a model’s answers strictly on a curve against the current batch of guesses—meaning if the model has an off day and generates terrible answers, it still rewards the "best of a bad lot" and accidentally trains itself to get worse. Historical Relative Policy Optimization (HRPO) fixes this amnesia by forcing the model to beat its all-time personal best on each prompt to earn a reward, while replaying its own past winning answers whenever it gets stuck. The result is stable, collapse-free training and a significant jump in reasoning accuracy across math, coding, and logic.

What Problem Does This Paper Address?

To unlock strong reasoning in LLMs (like DeepSeek-R1), practitioners rely heavily on Reinforcement Fine-Tuning. Because maintaining a separate "critic" model to judge answers is expensive, critic-free methods like Group Relative Policy Optimization (GRPO) have become the standard. GRPO works by having the model generate a group of responses to a prompt, scoring them, and using the group's average score as the baseline: above-average responses get reinforced, and below-average ones get penalized.

Here’s the catch: GRPO has no memory. Its baseline only looks at the instantaneous batch of responses. Because RL sampling is noisy, a model will occasionally generate an entire group of mediocre or flat-out bad responses. When the group’s average plummets, a mediocre response suddenly looks fantastic by comparison and gets a positive "advantage" score.

Figure 1: Illustration of the Relative Deception effect. Due to the inherent RL stochasticity and sampling randomness, the quality of on-policy response groups can vary significantly, leading to unstable and unreasonable advantage estimation. As shown in this figure, for Group-1 at the historical training step, the generated answers are of higher absolute quality (e.g., responses B and C both achieve a 5/6 reward), but they only receive a maximum advantage score of 0.70. For Group-2 at the current training step, the overall quality is markedly inferior (e.g., response A only achieves a 3/6 reward), yet it receives a disproportionately high advantage score of 1.22 simply by being the best of a poor batch.

The authors call this the Relative Deception Effect. By rewarding subpar behavior during momentary dips, the optimizer creates a vicious feedback loop: the model degrades, the grading curve drops right along with it, and the model happily reinforces its own collapse while thinking it’s improving. Practitioners usually have to babysit training runs with early stopping just to catch a good checkpoint before it implodes.

Methods

While HRPO keeps the standard PPO-style clipped objective and KL-divergence penalty used in GRPO, it replaces instantaneous grading with two tightly coupled, history-aware mechanisms:

  1. Historical-Aware Advantage Estimator (HAE): For every prompt, HRPO tracks a lightweight running maximum of past group-mean rewards—its historical peak anchor, $\mu(q)$. Instead of comparing a response to the current group's mean, HRPO subtracts $\mu(q)$ from the response's reward (deliberately skipping standard-deviation division to avoid batch-wise bias). If the current group breaks a new record, HRPO behaves like standard within-group centering. If the group regresses, the historical floor holds firm, disqualifying "best of a bad lot" responses from earning positive rewards.
  2. On-Demand Historical Replay (ODHR): Holding a strict high bar introduces a side effect: positive-signal starvation. If every single response in the current batch falls below $\mu(q)$, all advantages turn negative—telling the optimizer what to avoid, but giving it zero clue where to go. Whenever this happens, ODHR triggers automatically, pulling up to $M = \lfloor G/2 \rfloor$ of the model's own past high-scoring responses (strictly above $\mu(q)$) from a self-pruning per-prompt buffer. Using stored token probabilities for importance-sampling correction, these past successes act as off-policy positive teachers until the model recovers.

Datasets

No new datasets are introduced; the authors use established benchmarks across domains:

  • Training: DAPO-17K (math), DeepScaleR-40K (math saturation experiments), and LeetCodeDataset (coding). (Note: SearchQA is also mentioned, with full configs deferred to the appendix).
  • Evaluation: AIME24, AIME25, AMC23, MATH-500, MinervaMath, and OlympiadBench for math; LiveCodeBench, HumanEval(+), and MBPP(+) for coding; GPQA (graduate-level science) and RiddleSense (commonsense logic) for out-of-domain generalization.

Key Insights and Ideas

  • "Data saturation" is often an algorithmic mirage: When resuming training on an already heavily trained checkpoint (DeepScaleR-1.5B-Preview) using its original dataset, GRPO flatlines completely because response quality homogenizes. Switching to HRPO immediately reignites learning (+10.0 on MinervaMath, +8.9 on AMC23), proving there was plenty of juice left in the data once the baseline stopped floating with the current batch.
  • Self-bootstrapping needs a closed loop: Raising the bar ($\mu(q)$) prevents collapse, and replaying past wins (ODHR) prevents starvation. Ablations show you need both: HAE alone adds +2.7 points over Dr.GRPO, while adding ODHR brings the total gain to +4.6—all without needing external teacher models or oracle hints.
  • Self-pruning memory: Because the replay buffer automatically drops any saved response whose score falls below the newly updated historical peak $\mu(q)$, the buffer naturally shrinks as the model gets smarter, requiring no buffer-size tuning.

Key Results

Tested across base and instruct models from 1.5B to 8B parameters (averaged over 5 runs):

  • Math Reasoning: On Qwen3-8B-Base, HRPO reaches 62.4% average accuracy vs. GRPO’s 57.5%, including jumps of +6.3 on AIME24 (46.3% vs. 40.0%), +5.8 on AIME25, and +8.4 on AMC23.
  • Code Generation: On Qwen2.5-Coder-7B-Instruct, HRPO averages 74.8% (vs. 71.6% for GRPO), beating GRPO by +3.9 on out-of-distribution LiveCodeBench.
  • Out-of-Domain Transfer: Math-trained Qwen3-8B-Base transfers better to unseen domains under HRPO, hitting 51.3% on GPQA (+3.9 over GRPO) and 73.5% on RiddleSense.
  • Minimal Overhead: Because replay only triggers on demand, HRPO adds just 11.6% extra training time per step over GRPO (260.4s vs. 233.4s).

Limitations and Future Work

  • History Cold-Start: HRPO’s historical anchor and replay buffer are empty during the very first epoch of training—or throughout an entire single-epoch run—leaving those steps without historical protection. To address this, the authors propose a variant (HRPO$^\star$) that pre-seeds the history using one-shot rollouts from the initial reference model prior to training.
  • Off-Policy Drift at High Replay Capacities: Ablations show that replaying too many historical responses ($M = G$ instead of $\lfloor G/2 \rfloor$) pulls in older trajectories that deviate too far from the current policy, slightly hurting accuracy (-0.5%) while slowing down training. (Broader future work directions are not explicitly discussed in the main text).

Summary updated

Abstract

Reinforcement learning has become a key approach for optimizing large language models (LLMs), with Group Relative Policy Optimization (GRPO) emerging as the most popular algorithm due to its simplicity and effectiveness. However, GRPO normalizes advantages purely within the current sampling group, ignoring the dynamic evolution of the policy's performance throughout training. This renders the model susceptible to relative deception, i.e., the model may be steadily deteriorating yet remain oblivious to its own regression. To address this issue, we propose Historical Relative Policy Optimization (HRPO), which integrates two synergistic designs: (i) a historical-aware advantage estimator that normalizes each response against the running maximum of the policy's strongest past group-mean rewards, thereby pushing the model to continuously surpass its own historical peak (bootstrapping); and (ii) an on-demand historical replay that recalls historical high-reward responses as positive examples, which is triggered only when all responses in the current step fail to provide positive signals. Experiments show that HRPO consistently outperforms GRPO variants in training stability, convergence speed, and final performance across diverse models and benchmarks, demonstrating that accounting for training dynamics leads to more reliable and effective policy optimization in LLMs. The code will be released at https://github.com/JIA-Lab-research/HRPO.
BibTeX
@inproceedings{wu2026historical,
  author = {Sitong Wu and Haoru Tan and Bei Yu and Xiaojuan Qi and Jiaya Jia},
  title = {{Historical Relative Policy Optimization for Bootstrapping LLM Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BgpQsVH3WO},
}
Figure