DiPO: Disentangled Perplexity Policy Optimization for Fine-grained Exploration-Exploitation Trade-Off

Xiaofan Li, Ming Yang, Zhiyuan Ma, Shichao Ma, Jintao Du, Yu Cheng, Weiqiang Wang, Zhizhong Zhang, Xin Tan, Yanyun Qu, Lizhuang Ma, Yuan XieNeurIPS 2026

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).

Figure 1: (a) The proportion of Easy/Normal/Hard groups in each step during the DAPO training. (b) The PPL distribution of correct and error samples in the validation set at 300th steps of DAPO training. (c) Illustration of four samples after PSD fine-grained partitioning.

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:

  1. 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.
  2. 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:
  3. 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 0 to 1. This gently rewards the most "creative" failure, increasing policy entropy and nudging the model to explore.
  4. Hesitantly right (Easy group in high-PPL space): DiPO finds the single attempt with the highest PPL and flips its reward from 1 to 0. 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_COMP subset), 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 on Qwen3-4B-Base (50.55%) and Qwen2.5-7B (43.56%).
Table 1: Comparison of mathematical reasoning in ACC/mean@8 on 6 mathematics benchmarks. Best and second-best distinct scores within each model block are marked in bold and underlined, respectively; ties share the same marking.
  • Function Calling: On BFCLv3, ToolRL+DiPO shines on complex multi-step interactions, boosting Multi-Turn Accuracy on Qwen2.5-7B-Instruct from 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 (0 or 1) 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

Abstract

Reinforcement Learning with Verifiable Rewards (RLVR) has catalyzed significant advances in the reasoning capabilities of Large Language Models (LLMs). However, effectively managing the exploration and exploitation trade-off remains a critical challenge. In this paper, we fully analyze the exploration and exploitation dilemma of extremely hard and easy samples during the training and propose a new fine-grained trade-off mechanism. Concretely, we introduce a perplexity space disentangling strategy that divides the sample space into distinct exploration (high perplexity) and exploitation (low perplexity) subspaces, thereby mining fine-grained samples requiring exploration-exploitation trade-off. Subsequently, we propose a bidirectional reward allocation mechanism with a minimum impact on verification rewards to implement perplexity-guided exploration and exploitation, enabling more stable policy optimization. Finally, we have evaluated our method on two mainstream tasks: mathematical reasoning and function calling, and experimental results demonstrate the superiority of the proposed method, confirming its effectiveness in enhancing LLM performance by fine-grained exploration-exploitation trade-off.
BibTeX
@inproceedings{li2026dipo,
  author = {Xiaofan Li and Ming Yang and Zhiyuan Ma and Shichao Ma and Jintao Du and Yu Cheng and Weiqiang Wang and Zhizhong Zhang and Xin Tan and Yanyun Qu and Lizhuang Ma and Yuan Xie},
  title = {{DiPO: Disentangled Perplexity Policy Optimization for Fine-grained Exploration-Exploitation Trade-Off}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=udWtfeFJ7W},
}
Figure