TL;DR
Training Large Language Models (LLMs) to reason using Reinforcement Learning is powerful, but waiting around for fresh data ("on-policy" training) is painfully slow. Recycling older data ("off-policy" training) speeds things up, yet existing algorithms either choke on this stale data and degrade, or blow up completely. This paper introduces DIPO, an algorithm that ditches rigid, hand-tuned safety rails in favor of a dynamic boundary that adapts on the fly to shifting data distributions—making fast, off-policy LLM training both rock-solid and just as accurate as slow on-policy training.
What Problem Does This Paper Address?
Reinforcement Learning with Verifiable Rewards (RLVR)—where models learn from clear right-or-wrong feedback on math or code problems—is a major driver of modern LLM reasoning. Most RLVR setups, like GRPO or PPO, are on-policy: the model generates an answer, learns from it immediately, and throws it away. It’s stable, but terrible for hardware utilization because GPUs sit idle waiting for text generation.
Off-policy RL fixes this bottleneck by decoupling generation from training, letting the current "target" model learn asynchronously from a replay buffer of older responses generated by past "behavior" models. Because the model has changed since that old data was generated, we re-weight each token's learning signal using an Importance Sampling (IS) ratio: the probability the new model assigns to a token divided by the probability the old model assigned to it.
Here’s the catch: if an old probability is tiny and the new one is larger, the IS ratio explodes, injecting massive variance that crashes training. Standard algorithms tame this with a static trust region—clipping IS ratios to a fixed window like $[0.8, 1.2]$. In extreme off-policy settings, however, this static approach breaks down completely. Conservative clipping throws away too much useful data (causing high bias and sluggish learning), while aggressive, wider clipping lets destructive outlier tokens slip through (causing training collapse).
Methods
Instead of guessing a fixed clipping number, the authors propose DIstribution-adaptive Policy Optimization (DIPO), which keeps the standard PPO/GRPO clipped objective structure, but replaces the static hyperparameter $\epsilon$ with a hyperparameter-free, self-adjusting boundary calculated fresh for every batch.
Here is how DIPO decides what to clip:
- Move to log-space: For every valid token among the $N$ tokens in a batch, DIPO looks at the magnitude of the log-ratio, $X = |\log \rho|$. This makes up-shifts and down-shifts symmetric.
- Measure batch statistics: It computes the empirical mean ($\hat{\mu}_X$) and standard deviation ($\hat{\sigma}_X$) of these log-ratios across the current batch.
- Spot the troublemakers: Using basic statistical theory, the empirical variance of $N$ tokens naturally fluctuates at a scale of $N^{-1/2}$. DIPO flags an individual token as "extreme" if its single-handed contribution to the batch's second moment exceeds that $N^{-1/2}$ noise floor.
- Set the dynamic boundary: Solving that inequality yields a clean, closed-form threshold: $\hat{\delta}_N = \hat{\mu}_X + N^{1/4}\hat{\sigma}_X$. Converting back from log-space, DIPO clips token IS ratios to $[e^{-\hat{\delta}_N}, e^{\hat{\delta}_N}]$.
The authors also prove theoretically that as batch size $N$ grows, static clipping converges to a permanently biased gradient, whereas DIPO is mean-square consistent—meaning its bias vanishes while keeping variance in check.
Datasets
No new benchmarks were introduced; the authors evaluated on established math and coding suites:
- Mathematical Reasoning: Models (Qwen-2.5-Math-1.5B and 7B) were trained on DeepScaler and evaluated on AIME 2024, AIME 2025, AMC 2023, Minerva Math, Olympiad Bench, and Math500.
- Code Generation: Llama-3.2-Instruct-3B was trained on a mix of Taco, Codeforces, CodeContests, and APPS, and evaluated on HumanEval, LeetCode, and LiveCodeBench.
Key Insights and Ideas
- IS ratios are heavy-tailed: By fitting Generalized Pareto Distributions during training, the authors show IS ratios have pronounced heavy tails. That means almost all the dangerous variance comes from a tiny handful of extreme outlier tokens, while the "bulk" of the tokens hold the useful learning signal.
- The tail is a moving target: In asynchronous off-policy training, policy staleness fluctuates wildly from batch to batch. Consequently, the KL divergence spikes and dips, dragging the IS ratio distribution around with it. A fixed clipping line that neatly trims the tail at Step 300 will accidentally chop off the informative bulk at Step 600, or miss the tail entirely at Step 900.
- Clip less, but smarter: Counterintuitively, DIPO actually clips a smaller fraction of tokens throughout training than conservative GRPO, yet maintains rock-steady variance because it surgically targets only the shifting tail.
Key Results
The authors tested an extreme off-policy regime with maximum policy staleness $k = 256$ (meaning training data could come from a model up to 256 optimization steps out of date):
- Matching on-policy quality with stale data: On math benchmarks, off-policy DIPO achieved 35.8% average accuracy on Qwen-1.5B and 44.8% on Qwen-7B—slightly surpassing even the on-policy GRPO baselines (35.1% and 44.5%).
- Crushing off-policy baselines: Off-policy CISPO collapsed completely. Compared to off-policy GRPO (31.4% on 1.5B; 39.4% on 7B), DIPO improved overall accuracy by roughly 13.9% (~14.0% on 1.5B and 13.7% on 7B). On the tough AIME 2024/2025 contests, gains over off-policy GRPO exceeded 38% (1.5B) and 25% (7B).
- Outperforming other dynamic methods: DIPO beat recent heuristic dynamic-clipping baselines, topping the runner-up M2PO by +1.5 points (1.5B) and +2.2 points (7B).
Limitations and Future Work
- Scale and Domain: Experiments focused on math and code with models up to 7B parameters. Validating DIPO on frontier-scale models and open-ended, non-verifiable generation tasks remains open.
- Sources of Off-Policyness: The study modeled off-policyness via policy staleness ($k$) in asynchronous training. More chaotic setups—like infinite-horizon replay buffers or learning from completely different model families—may introduce distribution shifts not tested here.
- Algorithmic Scope: DIPO is built specifically for PPO-style token-clipping objectives; adapting its moment-based boundary rule to fundamentally different RL objectives is left for future work.
Summary updated