Learning from Hard Prompts: Difficulty-aware Advantage Amplification in Dynamic Sampling

Siyuan Gan, Yuhan Li, Xiran Wang, Linjian Meng, Boyan Wang, Zhen Zhao, Jing Huo, Lei Bai, Yang GaoarXiv 2026

TL;DR

While Dynamic Sampling stabilizes reinforcement learning for Large Language Models (LLMs) by filtering out uninformative training prompts, new theoretical analysis reveals it introduces a severe flaw: it disproportionately penalizes incorrect answers on hard prompts rather than rewarding rare correct ones. To fix this, the authors introduce DA3PO, a simple 30-line code modification that directly amplifies the advantages of hard-to-sample correct responses. This minor tweak yields massive training efficiency gains and significantly boosts LLM performance on complex mathematical reasoning benchmarks.

What Problem Does This Paper Address?

Reinforcement Learning from Verifiable Rewards (RLVR)—the core paradigm behind reasoning models like DeepSeek-R1—frequently utilizes Group Relative Policy Optimization (GRPO). To improve training stability, advanced GRPO variants like DAPO introduce Dynamic Sampling. This technique filters out prompts where all generated responses in a group are either entirely correct or entirely incorrect, thereby eliminating useless "zero policy gradients" that stall training.

However, this paper uncovers a hidden downside to Dynamic Sampling: asymmetric advantage amplification. Through rigorous mathematical analysis, the authors prove that on hard prompts (where the model rarely finds the right answer), the filtering mechanism accidentally inflates the penalty signal for incorrect responses while leaving the reward for correct responses virtually unchanged. Instead of learning the complex reasoning paths required to solve a hard problem, the model simply learns to avoid its observed mistakes, severely undermining training efficiency.

Methods

To counteract this mathematical asymmetry, the authors propose Direct Advantage Amplification (DAA). The core idea is straightforward: when the model encounters a hard prompt and manages to sample a rare correct response, explicitly boost its reward.

The algorithm works as follows:

  1. It calculates the empirical positive rate ($\hat{p}$) of correct responses within a sampled group.
  2. If $\hat{p}$ falls below a difficulty threshold ($\tau = 0.5$), the prompt is classified as "hard."
  3. For any correct response ($R_i > 0$) within that hard prompt group, its calculated advantage is multiplied by a constant amplification factor ($\lambda = 2$).

By integrating DAA into the existing DAPO framework, they create Difficulty-aware Advantage Amplification Policy Optimization (DA3PO). Remarkably, because the logic is so clean, DA3PO requires fewer than 30 lines of code changes over standard DAPO.

Datasets

  • Training: The models were trained using the DAPO-Math-17K dataset, which consists of 17,000 diverse mathematical problems paired with verifiable answers.
  • Evaluation: To test robustness, the authors evaluated their method across seven prominent mathematical reasoning benchmarks: AIME24, AIME25, AIME26, AMC, Minerva, OlympiadBench, and MATH.

Key Insights and Ideas

  • The Filtering Trap: Dynamic Sampling's filtering changes the probability distribution of the training batches. On hard prompts ($p \ll 0.5$), the amplification factor for incorrect responses ($\alpha^-$) explodes exponentially, while the factor for correct responses ($\alpha^+$) stagnates near 1.
Figure 1: Asymmetric amplification factors α+ and α−under Dynamic Sampling (Theorem 3.1).
  • The Ratio Imbalance: As a consequence of this asymmetry, the ratio $\gamma = \alpha^+ / \alpha^-$ drops significantly below 1 on difficult tasks. This means the gradient updates are heavily dominated by negative reinforcement (punishing bad answers) rather than positive reinforcement (rewarding good ones).
Figure 2: Ratio γ = α+/α−satisfies γ < 1 across the entire shaded region (p < 0.5), regardless of group size G (Corollary 3.2).
  • Capitalizing on Serendipity: Punishing an LLM for failing a hard math problem doesn't teach it how to solve it. By artificially scaling up the advantage of rare correct answers, DA3PO ensures the model aggressively capitalizes on its scarce successes, maximizing the value of hard-to-sample data.

Key Results

The authors evaluated DA3PO against GRPO, DAPO, and GSPO using two model scales: Qwen3-4B-Base and Qwen3-8B-Base.

  • Consistent Accuracy Boosts: DA3PO achieved the highest average accuracy across both model scales, outperforming the best baselines by an absolute average of 5.02% on the 4B model and 4.95% on the 8B model.
  • Dominance on Ultra-Hard Tasks: The most pronounced improvements occurred on the highly challenging AIME benchmarks, where DA3PO outperformed baselines by up to 5.00% (4B) and 6.25% (8B).
  • Broader Solution Space: Using the pass@k metric, the authors verified that DA3PO does not cause the model to suffer from mode collapse (repeating a single safe answer). Instead, it broadens the space of diverse correct responses.
  • Stable Training Trajectories: Tracking performance over the 200-step training window revealed that the DA3PO curve sits visibly and consistently above all baselines throughout the entire optimization process, proving the enhancement is stable and reliable.

Limitations and Future Work

Despite its strong empirical performance, DA3PO currently relies on a constant amplification factor ($\lambda = 2$) and a fixed difficulty threshold ($\tau = 0.5$).

The authors acknowledge that a static multiplier might not optimally compensate for the asymmetric amplification across all levels of prompt difficulty. As the model improves during training, "hard" prompts naturally become easier. A promising direction for future work is replacing these constants with adaptive factors that dynamically adjust to the evolving capabilities of the model throughout the reinforcement learning process.

Summary updated

BibTeX
@misc{gan2026learning,
  author = {Siyuan Gan and Yuhan Li and Xiran Wang and Linjian Meng and Boyan Wang and Zhen Zhao and Jing Huo and Lei Bai and Yang Gao},
  title = {{Learning from Hard Prompts: Difficulty-aware Advantage Amplification in Dynamic Sampling}},
  year = {2026},
  eprint = {2608.27982},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.27982},
}
Figure