DARO: Difficulty-Aware Reweighting Policy Optimization

Jingyu Zhou, Lu Ma, Hao Liang, Chengyu Shen, Bin Cui, Wentao ZhangarXiv 2025 · OpenReview

Abstract

Recent advances in large language models (LLMs) have shown that reasoning ability can be significantly enhanced through Reinforcement Learning with Verifiable Rewards (RLVR). Group Relative Policy Optimization (GRPO) has emerged as the de facto approach for RLVR, inspiring numerous variants. However, our mathematical analysis reveals that these methods are fundamentally weighted variations of GRPO. We provide a unified view, demonstrating that their reliance on static or overly simplistic weighting schemes tied to sample difficulty prevents adaptation to a model's evolving capabilities. This creates a significant loss scale issue, where training disproportionately focuses on certain difficulty levels at the expense of others, hindering overall performance. To address these limitations, we introduce Difficulty-Aware Reweighting Policy Optimization (DARO), a method that dynamically adjusts the loss contribution of each difficulty group based on the model's learning state. Extensive experiments on Qwen2.5-Math-1.5B, Qwen2.5-Math-7B, and Llama3.1-8B show that DARO outperforms four leading baselines across six math benchmarks, achieving significantly faster convergence and superior final performance.

Introduction

Reinforcement Learning with Verifiable Rewards (RLVR) has become the gold standard for teaching Large Language Models (LLMs) how to reason. Algorithms like Group Relative Policy Optimization (GRPO) work by sampling multiple answers to a prompt and rewarding the model for correct ones. However, we identify a fundamental flaw termed the loss scale issue. In existing methods, the training signal (the loss) is mathematically tied to the problem's difficulty, or pass rate. This creates an imbalance where the model may over-learn easy problems or struggle fruitlessly with impossible ones, neglecting the "Goldilocks zone" of problems that drive actual improvement. Because current weighting schemes are static, they cannot adapt as the model's intelligence evolves during training.

The DARO Framework

To address this imbalance, we introduce Difficulty-Aware Reweighting Policy Optimization (DARO). DARO treats groups of problems with different empirical pass rates as distinct tasks within a multitask learning framework.

The DARO framework treats different difficulty groups as distinct tasks and dynamically learns weights ($w_\mu$) to balance the loss contribution across the training process.

Key innovations of DARO include:

  1. Dynamic Adaptive Weights: Instead of a fixed formula, DARO treats the weight of each difficulty group ($w_\mu$) as an optimizable parameter.
  2. Inverse Proportionality: The algorithm is designed so that weights are adjusted to be inversely proportional to the loss. If the loss for a specific difficulty level dominates the gradient, its weight is automatically reduced to maintain balance.
  3. Logarithmic Regularization: To prevent weights from collapsing to zero, we incorporate a penalty term ($-\ln w_\mu$) into the loss function, ensuring stable and continuous learning across all difficulty levels.

Experimental Setup

We evaluated DARO using three base models: Qwen2.5-Math (1.5B & 7B) and Llama3.1-8B. Training utilized the OpenR1-45k dataset, a filtered subset of OpenR1-Math-220k. For the Llama model, we used a simplified OpenR1-easy subset (11k prompts). Performance was measured across six diverse math benchmarks, including MATH500, GSM8K, Minerva, OlympiadBench, and recent American Mathematics Competitions (AMC23, AIME24/25).

Results and Analysis

DARO consistently outperformed leading baselines, including GRPO, DAPO, LIPO, and Dr. GRPO, across all tested architectures.

Comparison of DARO against baselines across Entropy, Response Length, and Reward. DARO maintains higher policy entropy and achieves superior reward and convergence speed.

Key Findings:

  • Performance Gains: On the Llama3.1-8B model, DARO achieved an average accuracy of 21.4%, a significant improvement over the 18.7% achieved by the GRPO baseline.
  • Faster Convergence: DARO reached performance levels in 150 steps that took other models 300 steps to achieve. In Llama3.1-8B tests, it reached a 20% pass rate in half the training steps required by DAPO.
  • Policy Stability: DARO maintains higher policy entropy throughout training. This suggests that adaptive weighting prevents the model from prematurely collapsing or over-focusing on a narrow set of solutions, fostering superior exploration.
  • Theoretical Validation: Our analysis confirms that the base loss is proportional to $\sqrt{\mu(1-\mu)}$, where $\mu$ is the pass rate. This explains why "medium difficulty" problems naturally generate the largest gradients, potentially causing models to forget easy facts or ignore hard challenges in static systems.

Conclusion and Future Work

DARO effectively mitigates the loss scale issue by dynamically balancing training focus. While highly effective for compact models (up to 8B) in mathematical reasoning, future work will explore DARO’s scalability to frontier-scale models (70B+) and its effectiveness in other domains such as coding, symbolic logic, and multi-turn agentic tasks.

Summary updated

BibTeX
@misc{zhou2025daro,
  author = {Jingyu Zhou and Lu Ma and Hao Liang and Chengyu Shen and Bin Cui and Wentao Zhang},
  title = {{DARO: Difficulty-Aware Reweighting Policy Optimization}},
  year = {2025},
  eprint = {2510.09001},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.09001},
}
Figure