Manuscript Offprint

arXiv:2608.27982

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 Gao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Decoupled Clip and Dynamic Sampling Policy Optimization (DAPO) is a prominent variant of Group Relative Policy Optimization (GRPO). DAPO introduces several improvements over GRPO. Among these, Dynamic Sampling contributes the most to DAPO's accuracy gains relative to GRPO. To improve accuracy, Dynamic Sampling enhances training stability by eliminating zero policy gradients from zero advantages. Specifically, it avoids such zero gradients by filtering out prompts where sampled responses are either entirely correct or incorrect. However, our theoretical analysis shows that Dynamic Sampling decreases training efficiency as it cannot effectively utilize hard-to-sample correct responses on hard prompts. Formally, it asymmetrically amplifies the advantages of distinct responses to the same prompts. On hard prompts, incorrect responses undergo greater amplification than correct ones. This leads the model to avoid generating the observed incorrect responses rather than capitalizing on the hard-to-sample correct ones on hard prompts, resulting in low training efficiency. To improve training efficiency, we propose Direct Advantage Amplification (DAA), which amplifies the advantages of hard-to-sample correct responses on hard prompts, as obtained by Dynamic Sampling. This ensures that, when Dynamic Sampling is used, these hard-to-sample responses can be effectively capitalized on, implying higher training efficiency. By integrating DAA into DAPO, we obtain Difficulty-aware Advantage Amplification Policy Optimization (DA3PO), which is implemented with fewer than 30 lines of code from DAPO. Experiments show that DA3PO significantly outperforms GRPO and other classical GRPO variants.

1 Introduction

The release of DeepSeek-R1 (Guo et al., 2025) has drawn significant attention to Reinforcement Learning from Verifiable Rewards (RLVR), establishing Group Relative Policy Optimization (GRPO) (Shao et al., 2024) as a prevailing approach for training Large Language Models (LLMs). Then, to enhance the accuracies across a variety of tasks, various GRPO variants have been proposed, such as Decoupled Clip and Dynamic Sampling Policy Optimization (DAPO) (Yu et al., 2026b) and Group Sequence Policy Optimization (GSPO) (Zheng et al., 2025), which have further extended GRPO. Among them, DAPO is one of the most popular variants (Liu et al., 2026a; Yu et al., 2026a; Yuchen et al., 2026; Zhang et al., 2026; Ma et al., 2026).

Compared to GRPO, DAPO introduces several significant improvements. Among these, Dynamic Sampling contributes the most to DAPO's accuracy enhancements from GRPO, as presented by the experimental results of the original paper of DAPO (Yu et al., 2026b). To improve the accuracy, Dynamic Sampling enhances training stability, a critical factor for achieving accuracy enhancements, by eliminating zero policy gradients caused by zero advantages (Yu et al., 2026b). Specifically, such zero policy gradients come from prompts where sampled responses are entirely correct or incorrect. Therefore, to avoid producing such zero policy gradients, Dynamic Sampling over-samples prompts and filters out prompts where sampled responses are entirely correct or incorrect.

Unfortunately, while Dynamic Sampling improves training stability, our theoretical analysis indicates that it will reduce training efficiency, another crucial aspect for attaining accuracy enhancements. Specifically, the decline in training efficiency primarily stems from Dynamic Sampling's inability to effectively capitalize on hard-to-sample correct responses on hard prompts. More precisely, we demonstrate that Dynamic Sampling will asymmetrically amplify the advantages of different responses to the same prompts, with this amplification varying based on prompt difficulty. On hard

† Corresponding author.

prompts, incorrect responses undergo greater amplification relative to correct ones. This asymmetric amplification causes the model to avoid generating observed incorrect responses, rather than capitalizing on the correct ones on hard prompts, thereby reducing training efficiency as the correct responses on hard prompts are exceedingly hard to sample.

To improve training efficiency, we propose Direct Advantage Amplification (DAA). Its key insight is to amplify the advantages of hard-to-sample correct responses on hard prompts, as obtained by Dynamic Sampling. Formally, after obtaining such advantages via Dynamic Sampling, we multiply these advantages by a positive constant greater than one to amplify them. This ensures that, when Dynamic Sampling is used, these hard-to-sample correct responses on hard prompts can be effectively capitalized on, implying higher training efficiency. Then, by integrating DAA into DAPO, we obtain Difficulty-aware Advantage Amplification Policy Optimization (DA3PO). More surprisingly, since the implementation of DAA is straightforward, DA3PO requires fewer than 30 lines of code derived from DAPO (see more details in Section 4).

To evaluate our DA3PO, we conduct experiments on seven mathematical reasoning benchmarks: AIME24, AIME25, AIME26, AMC, Minerva, Olympiad and MATH.

Experimental results demonstrate that DA3PO yields consistent accuracy enhancements across all tested models and benchmarks, significantly outperforming GRPO and classical GRPO variants DAPO and GSPO.

References (13)