TL;DR
When training Large Language Models (LLMs) with reinforcement learning, problems that are way too hard or way too easy usually produce zero learning signal—wasting compute and stalling progress. DiPO (Disentangled Perplexity Policy Optimization) rescues these "dead" training samples by using model confidence (perplexity) to nudge confidently wrong models to explore and hesitantly right models to consolidate their knowledge. The result is a more stable training run and sharper reasoning across math and tool-use benchmarks.
What Problem Does This Paper Address?
To teach LLMs complex reasoning, we often use Reinforcement Learning with Verifiable Rewards (RLVR)—algorithms like GRPO or DAPO. Here is the standard setup: give the model a math problem, have it generate a group of $G$ different attempts, and check which ones get the right answer (reward = 1) and which ones fail (reward = 0). The model learns by comparing the winners to the losers within that group.
Here is the catch: what happens when a problem is so hard that all $G$ attempts fail (all 0s), or so easy that all $G$ attempts succeed (all 1s)? Because there is no variance within the group, the relative advantage is zero. The gradient vanishes, and the model learns nothing from a massive chunk of its training batch.
Even worse, models often get stuck in bad habits, which we can diagnose through perplexity (PPL)—a measure of how uncertain or "surprised" a model is by its own output. Low PPL means the model is confident (exploiting known patterns); high PPL means it is guessing or searching (exploring). During standard training, models frequently end up with low-PPL errors (confidently marching off a cliff) and high-PPL successes (stumbling into the right answer by sheer luck).
Previous attempts to fix this added raw perplexity directly to the reward function. Unfortunately, because PPL values fluctuate wildly compared to clean binary 0/1 rewards, this kind of brute-force reward shaping easily destabilizes training.
Methods
Building on a standard DAPO baseline, the authors introduce DiPO, which solves the zero-gradient and reward-instability problems using two clever, lightweight mechanisms:
- Perplexity Space Disentangling (PSD): DiPO maintains a rolling queue of recent samples to track the live statistical relationship between perplexity and correctness. Using 95% confidence intervals (to ensure early-training noise doesn't trigger false alarms) and minimizing classification error, PSD dynamically finds an optimal threshold $\tau^*$. This threshold slices the sample space into a low-PPL Exploitation Space and a high-PPL Exploration Space. Now,DiPO can isolate the exact trouble spots: Hard groups (all wrong) stuck in the low-PPL zone, and Easy groups (all right) lingering in the high-PPL zone.
- Bidirectional Reward Reallocation (BRR): Instead of polluting normal groups or adding raw PPL numbers to the reward, BRR only intervenes on the zero-gradient extreme groups—and it does so with surgical precision:
- Confidently wrong (Hard group in low-PPL space): DiPO finds the single attempt in the group with the highest PPL and flips its reward from
0to1. This gently rewards the most "creative" failure, increasing policy entropy and nudging the model to explore. - Hesitantly right (Easy group in high-PPL space): DiPO finds the single attempt with the highest PPL and flips its reward from
1to0. Penalizing the wildest guess lowers entropy and forces the model to lock in more reliable reasoning paths.
These reallocated rewards are weighted by a small hyperparameter ($\alpha = 0.1$) and added to the standard DAPO objective, keeping the primary verifiable reward signal firmly in the driver's seat.
Datasets
No new benchmarks were introduced; the authors evaluated DiPO across established reasoning and agentic datasets:
- Mathematical Reasoning: Trained on DAPO-17K, and evaluated across six benchmarks: AIME24, AIME25, AMC23, MATH500, OlympiadBench (
OE_TO_mat_en_COMPsubset), and Minerva. - Function Calling: Trained using the ToolRL dataset/framework setup and evaluated on the BFCLv3 (Berkeley Function Calling Leaderboard v3) benchmark.
Key Insights and Ideas
- Not all failures (or successes) need the same medicine: Blindly forcing all failed samples to explore and all successful samples to exploit actually hurts performance in ablation studies. If an error group already has high PPL, it is already exploring! Only targeting the mismatched quadrants (confidently wrong and hesitantly right) yields real gains (+3.42 average points on an 8B model compared to unpartitioned reward reallocation).
- Minimalist binary flips beat continuous reward shaping: Changing just one sample's reward from 0 to 1 (or 1 to 0) inside a uniform group keeps the reward variance tiny and compatible with binary verification rewards. Using raw PPL as a continuous reward caused training instability and dropped 8B model performance below the baseline.
- Sustained plasticity in late-stage training: Standard DAPO plateaus late in training as correct and incorrect PPL distributions overlap, making the model overly conservative on hard problems. DiPO keeps error samples pushed into high-PPL territory, allowing the model to keep discovering new solutions much later in the training run.
Key Results
DiPO consistently outperformed GRPO, DAPO, DAPO with Entropy Loss, and curiosity-driven exploration (CDE) across three base model families:
- Math Reasoning (ACC/mean@8): On
Qwen3-8B-Base, DiPO achieved a 54.79% average across all six benchmarks (beating DAPO's 53.23% and DAPO w/ Entropy Loss's 53.90%). Gains were sharpest on competition math, jumping from 30.08% to 35.00% on AIME24. Consistent average wins also held onQwen3-4B-Base(50.55%) andQwen2.5-7B(43.56%).
- Function Calling: On BFCLv3,
ToolRL+DiPOshines on complex multi-step interactions, boosting Multi-Turn Accuracy onQwen2.5-7B-Instructfrom 19.75% (ToolRL+DAPO) to 24.50%, and reaching 8.62% (up from 8.00%) on the 3B model.
Limitations and Future Work
While a dedicated "Limitations and Future Work" section is not included in the main text, the authors note two practical constraints in their methodology:
- Early-stage correlation: At the very beginning of RL training on base models, perplexity and correctness are not yet meaningfully correlated. DiPO must rely on its confidence-interval "Advantage Judgment" gate to stay dormant early on, meaning it provides little extra signal during the initial warmup steps.
- Non-binary rewards: BRR assumes clean binary (
0or1) verification rewards. Adapting DiPO to environments with continuous or composite rewards—like the ToolRL framework—requires custom modifications rather than working strictly out-of-the-box.
Summary updated