Difficulty-Estimated Policy Optimization

Yu Zhao, Fan Jiang, Tianle Liu, Bo Zeng, Yu Liu, Longyue Wang, Weihua LuoarXiv 2026

TL;DR

Group Relative Policy Optimization (GRPO) is highly effective for training Large Reasoning Models (LRMs), but it wastes massive compute on rollouts for questions that are either too easy or too hard. This paper introduces DEPO (Difficulty-Estimated Policy Optimization), which uses a lightweight, online difficulty estimator to filter out these low-utility prompts before the expensive rollout phase. This approach cuts rollout costs by up to 2× while simultaneously improving downstream model accuracy.

What Problem Does This Paper Address?

Reinforcement Learning from Verifiable Rewards (RLVR) has driven the recent breakthrough of Large Reasoning Models (LRMs) like DeepSeek-R1. Among RLVR algorithms, GRPO has become a popular alternative to traditional Proximal Policy Optimization (PPO) because it eliminates the need for a standalone critic/value model, instead computing advantages relative to a group mean.

However, GRPO suffers from a critical bottleneck: the zero-variance problem. If a training prompt is trivial (the model gets it right every time) or intractable (the model always fails), all sampled responses within the group receive identical rewards. As a result, the relative advantages vanish, gradients drop to zero, and the optimization stalls. Generating multiple long-form reasoning rollouts for these non-informative samples incurs massive, wasted computational overhead. Existing fixes either oversample prompts (wasting even more compute) or filter data offline (failing to adapt as the model's capabilities rapidly evolve during training).

Methods

DEPO solves this by integrating a lightweight, online Difficulty Estimator directly into the GRPO pipeline to filter out zero-variance prompts preemptively.

Architectural overview of the proposed DEPO framework compared to standard GRPO.
  • Model Architecture: The Difficulty Estimator uses a small, pre-trained BERT encoder equipped with two specialized heads: a Score Head to predict the expected advantage of a prompt, and an Align Head to predict the actor model's perplexity (PPL).
  • Joint Training Objective: The estimator is trained synchronously alongside the actor model using the trajectories (rewards and log-probabilities) already generated during standard GRPO steps. Its loss function combines three objectives:
  • Advantage Estimation Loss ($\mathcal{L}_{DE}$): Employs a Binary Cross-Entropy (BCE) loss rather than Mean Squared Error (MSE). The authors show that BCE avoids vanishing gradients when predictions approach extreme values (0 or 1), making it much better at identifying extremely easy or hard questions.
  • Distillation Loss ($\mathcal{L}_{distill}$): Forces the estimator to predict the actor's perplexity, ensuring it maintains an actor-centric understanding of difficulty.
  • Ranking Loss ($\mathcal{L}_{rank}$): A pairwise ranking loss that prevents the estimator's predictions from collapsing to the dataset mean, preserving its discriminative power.
  • Two-Stage Strategy: To avoid "cold-start" noise, DEPO uses a 100-step Warm-up Phase where the estimator trains in isolation without filtering data. Once calibrated, it enters the Active Filtering Phase, dynamically discarding prompts predicted to yield zero advantage.

Datasets

The authors evaluated DEPO across several diverse configurations:

  • Training Datasets: DAPO-MATH-17K, OPEN-R1 (OR1), and Nemotron-Math.
  • Evaluation Benchmarks: Five rigorous mathematical reasoning benchmarks: GSM8K, MATH, AMC23, Minerva Math, and Olympiad Bench. Performance was measured using the Avg@32 metric (averaging 32 generated responses per test instance).

Key Insights and Ideas

  • Difficulty is a Moving Target: Static or offline data curation fails because a prompt's difficulty shifts as the actor model evolves. Training the estimator online using the actor's own live trajectories provides a zero-cost, real-time feedback loop.
  • BCE Outperforms MSE for Outliers: Conventional regression tasks rely on MSE, but its gradient dynamics stall near 0 and 1. Switching to BCE provides a stable, consistent corrective signal that is uniquely suited for flagging extreme outliers (the trivial and the impossible).
  • Framework Orthogonality: Because DEPO operates at the data-filtering level before rollouts occur, it is entirely complementary to other algorithmic RL refinements (like DAPO) and can be combined with them for compounding gains.
  • Repurposing as a Router: Beyond filtering training data, the trained difficulty estimator can be successfully repurposed as an online, zero-shot inference router to distribute workloads efficiently between small (1.5B) and large (7B) models.

Key Results

  • 2× Rollout Speedup: DEPO achieves a nearly 2× speedup in rollout efficiency compared to DAPO, maintaining a total step latency comparable to the baseline GRPO framework while successfully filtering out roughly 50% of non-informative prompts.
Training dynamics showing the prompt filtering ratio stabilizing around 50% while mean rewards steadily increase.
  • Superior Performance: DEPO outperformed standard GRPO by an average of 1.5% across the math benchmarks.
  • Compounding Gains with DAPO: When integrated into the DAPO framework (replacing its expensive dynamic sampling mechanism), DEPO achieved a 2.4% accuracy improvement over standard GRPO while simultaneously slashing total computational overhead by 50% compared to standalone DAPO.

Limitations and Future Work

  • Dataset Dependency: DEPO's efficiency gains are highly sensitive to the initial difficulty distribution of the training set. If a dataset is already perfectly curated with moderate-difficulty tasks relative to the model, DEPO filters very few samples and yields smaller performance margins. It provides the highest utility when training on uncurated datasets with a high density of trivial or intractable prompts.
  • Hyperparameter Sensitivity: The weight of the ranking loss ($\mathcal{L}_{rank}$) requires careful tuning. Setting it too high induces overly aggressive filtering, which discards marginal but potentially beneficial samples, reducing training data diversity and harming downstream accuracy.

Summary updated

BibTeX
@misc{zhao2026difficulty,
  author = {Yu Zhao and Fan Jiang and Tianle Liu and Bo Zeng and Yu Liu and Longyue Wang and Weihua Luo},
  title = {{Difficulty-Estimated Policy Optimization}},
  year = {2026},
  eprint = {2602.06375},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.06375},
}
Figure