Manuscript Offprint
arXiv:2608.27982Learning from Hard Prompts: Difficulty-aware Advantage Amplification in Dynamic Sampling
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.
2.1 Group Relative Policy Optimization (GRPO)
GRPO (Shao et al., 2024) computes advantages purely from group-level rewards, making it an effective approach for optimizing a policy . At each training step of GRPO training, a prompt is sampled from the dataset and the policy then generates a group of responses , where the conditional probability of response is:
Let denote the behavior policy before each gradient update. The importance sampling ratio at token position t of the i-th response is:
A rule-based verifier assigns a reward which is defined as if correct, and otherwise. The advantage for the -th response at token position is computed:
The policy is updated by maximizing a clipped objective with per-sample loss averaging:
where the per-token clipped loss is:
(2)
and is the symmetric clipping range.
2.2 Decoupled Clip and Dynamic Sampling Policy Optimization (DAPO)
Compared to GRPO, DAPO (Yu et al., 2026b) introduces several improvements to enhance training efficiency and training stability, resulting in higher accuracy than GRPO.
Clip-Higher. Firstly, to mitigate training inefficiency arising from low exploration, DAPO applies Clip-Higher to increase the probability of low-probability exploration tokens. Formally, Clip-Higher decouples the symmetric clipping range in Eq. (2) into asymmetric bounds:
Overlong Reward Shaping. Then, to mitigate low training efficiency prolonged by sampling of overly long responses, DAPO adds an overlong reward to the GRPO correctness reward to avoid sampling too long responses:
(3) the overlong reward shaping is:
Here is the maximum generation length and is the soft punish cache.
Token-Level Loss. In addition, to improve training stability, DAPO replaces the per-sample normalizer of GRPO with a single global token-level normalizer in Eq. (4):
This formulation ensures that every token contributes equally to the gradient, thereby preventing an unhealthy increase in entropy (Yu et al., 2026b), which would otherwise degrade training stability.
Dynamic Sampling. Lastly, to address low training stability caused by zero policy gradients, DAPO utilizes Dynamic Sampling. Specifically, when a group of sampled responses of a prompt receive the same reward, the advantage is zero, which yields zero policy gradients, shrinking the magnitude and increasing the noise sensitivity of the batch gradient, thereby degrading sample utilization (Yu et al., 2026b). To address this problem, Dynamic Sampling ensures that for all training prompts, the sampled responses have distinct rewards. Formally, we define for the probability that a response sampled from is correct, and define the empirical positive-response rate within a group as
where is the indicator function. Dynamic Sampling will over-sample and filter out prompts, leaving all prompts in the batch with and keeping a consistent number of prompts.
Integrating all four improvements, the DAPO objective takes the form:
(4)
where the per-token clipped surrogate loss is:
and the advantage estimate retains the same definition as in Eq. (1), computed with the DAPO reward from Eq. (3).
3 Theory
As presented in the experimental results of the original DAPO paper, among the four improvements, Dynamic Sampling contributes the most to DAPO's accuracy gain over GRPO. However, in this section, we demonstrate that while Dynamic Sampling enhances accuracy by improving training stability, it reduces training efficiency. Specifically, Dynamic Sampling induces an asymmetric amplification of advantages (Theorem 3.1), leading the model to avoid generating observed incorrect responses rather than strengthening the hard-to-sample correct ones on hard prompts (Corollary 3.2), resulting in low training efficiency.
Now, we demonstrate the details of the asymmetric amplification. Precisely, after applying Dynamic Sampling, the expected advantages of the correct and incorrect responses are multiplied by the coefficients and , respectively.
Theorem 3.1 (Proof is in Appendix B). For any prompt with and group size , under :
(5)
(6)
where the amplification factors are
Remark. The factors and amplify the conditional expected advantage for correct and incorrect responses, respectively. The amplification factors reveal a striking asymmetry as prompt difficulty varies. Figure 1 visualize two amplification factors across the full parameter space. As shown in Figure 1a and Figure 1b, remains close to 1 throughout the hard-prompt regime ( ) while grows large precisely there, indicating that Dynamic Sampling disproportionately amplifies the penalty signal for incorrect responses.
Corollary 3.2. Let . Then:

(a) as a function of for .

(b) as a function of for .
Figure 1: Asymmetric amplification factors and under Dynamic Sampling (Theorem 3.1).

Figure 2: Ratio satisfies across the entire shaded region ( ), regardless of group size (Corollary 3.2).
This corollary follows directly from Theorem 3.1: for we have , so , giving and hence . Symmetrically, for we have , giving and hence . The equality holds if and only if . Remark. Figure 2 confirms Corollary 3.2: the ratio falls below 1 for all and all group sizes. Specially, for and : , , . For and : , , . In both cases the penalty on incorrect responses is amplified substantially more than the reward for correct ones, and a smaller group size intensifies this asymmetry.
Corollary 3.2 reveals that for hard prompts (), the ratio is strictly less than 1. As , this asymmetry becomes extreme: grows unboundedly, while remains close to 1, implying Dynamic Sampling asymmetrically amplifies the advantage of incorrect responses more than that of correct ones. Consequently, rather than capitalizing on the hard-to-sample correct responses on hard prompts, the model learns to avoid generating the observed incorrect responses, without strengthening the correct responses, thereby reducing training efficiency.
4 Algorithm
As mentioned in Section 3, Dynamic Sampling induces an asymmetric amplification. It causes the model to learn to avoid generating observed incorrect responses, rather than to capitalize on the hard-to-sample correct ones on hard prompts, which reduces training efficiency. To address this issue, we propose Direct Advantage Amplification (DAA). Its key insight is to amplify the advantage of hard-to-sample correct responses on hard prompts obtained by Dynamic Sampling by a positive constant. This allows such correct responses to be capitalized on more effectively, leading to higher training efficiency. Then, by integrating DAA into DAPO, we obtain Difficulty-aware Advantage Amplification.
Algorithm 1 DA3PO Training
Require: Policy ; prompt distribution ; group size ; clipping bounds ; amplification factor ; difficulty threshold
1: for each training step do 2: Sample prompts from 3: for each prompt do 4: Sample responses 5: Compute accuracy rewards then final rewards 6: Compute empirical positive rate 7: if or then 8: filter and resample 9: end if 10: Compute advantages via Eq. (1) 11: for each response do 12: if and then 13: 14: else 15: 16: end if 17: end for 18: end for 19: Compute per-token loss: 20: 21: Update by maximising via Eq. (8) 22: end for
Policy Optimization (DA3PO). Its detailed procedure is presented in algorithm 1. More surprisingly, since the implementation of DAA is straightforward, DA3PO requires fewer than 30 lines of code derived from DAPO.
4.1 Details
From Theorem 3.1, Dynamic Sampling applies asymmetric amplification factors and to the advantage of correct and incorrect responses, respectively. As shown in the subsequent remark of Theorem 3.1, remains close to 1 on very hard prompts ( ) while is much larger than . The asymmetric amplification finally reduces training efficiency on hard prompts.
To address this problem, we can scale the advantage of hard-to-sample correct responses on hard prompts obtained by Dynamic Sampling by a factor of . However, p varies as the policy updates during training, making the true value of difficult to track, so we use a substituting way to improve the training efficiency. We propose Direct Advantage Amplification (DAA), which adopts a constant to amplify the advantage of hard-to-sample correct responses on hard prompts obtained by Dynamic Sampling.
This design preserves the amplification effect on hard prompts without requiring estimation of the prompt difficulty p, while introducing only minimal modifications over DAPO. The calculation formula of DAA is:
where is a constant amplification factor and a difficulty threshold. DAA is activated only when the response is correct ( ) and the prompt is hard ( ) to improve the training efficiency on hard prompts.
Based on experiments with various values of , we set (see Section 5.3 for more details).
By integrating DAA into the DAPO objective, we get DA3PO, whose objective is formulated as:
(8) with the token-level loss updated to use the DAA advantage :
Algorithm 1 summarises the full DA3PO training procedure. Lines marked with ▷ are the only additions relative to standard DAPO.
4.2 Discussion
To improve the training efficiency of Dynamic Sampling, our DAA amplifies the advantage of hard-to-sample correct responses on hard prompts, as obtained by Dynamic Sampling. In addition, since the implementation of DAA is straightforward, DA3PO requires fewer than 30 lines of code derived from DAPO. Moreover, although we only apply DAA to DAPO, DAA can be applied to GRPO and its variants. This is because we only modify Dynamic Sampling, ensuring compatibility with any other enhancements made to GRPO and its variants. Lastly, our DAA still has significant room for improvement. For example, the constant and used in Eq. (7) can be replaced by adaptive factors. We leave such extensions to future work.
5 Experiments
5.1 Experimental Setup
Models and Training Data. We evaluate our DA3PO on two base models of different scales: Qwen3-4B-Base and Qwen3-8B-Base. Following DAPO (Yu et al., 2026b), we use the DAPO-Math-17K dataset for training, which consists of 17K mathematical problems with verifiable answers.
Benchmarks and baselines. To evaluate our algorithm, we conduct experiments on seven mathematical benchmarks: AIME24/25/26, AMC, Minerva, Olympiad (He et al., 2024) and MATH (Hendrycks et al., 2021). We compare DA3PO against the base model and three reinforcement learning baselines: GRPO, DAPO, and GSPO.
Training. We set the rollout group size , training batch size to 512, learning rate to . The maximum prompt and response lengths are set to 2K and 4K tokens, respectively. As mentioned in Section 4, we fix for DA3PO. We also use on both model scales and we discuss the choice of in Section 5.3.
Evaluation. All algorithms are trained for 200 steps, by which accuracy has stabilized. We select the best-performing checkpoint for each algorithm and report its accuracy. During evaluation, we use temperature as 1 and top-p as 0.95. For the AIME and AMC benchmarks, we sample 32 responses per problem; for MATH, Olympiad, and Minerva, we sample 8 responses per problem.
5.2 Main Results
Finding 1. DA3PO consistently achieves the highest average accuracy across model scales.
To verify the effectiveness of our algorithm, we evaluate the avg@k of all algorithms on the seven benchmarks for both model scales. The experimental results are illustrated in Table 1. Firstly, DA3PO outperforms all other GRPO variants by at least 5.02% in average accuracy on Qwen3-4B-Base and by at least 4.95% on Qwen3-8B-Base. Secondly, DA3PO achieves the best performance on the hardest benchmarks.
Specifically, DA3PO outperforms baselines by up to 5.00% and 6.25% on AIME benchmarks compared to the best baseline for Qwen3-4B-Base and Qwen3-8B-Base, respectively. In fact, most of the improvements across AIME benchmarks are approximately 5%. Lastly, on easier benchmarks such as AMC, Minerva, Olympiad, and MATH, DA3PO consistently outperforms baselines across both model scales. In particular, even on the easiest MATH benchmark, DA3PO outperforms other variants by 5.33% on Qwen3-4B-Base and 2.93% on Qwen3-8B-Base, indicating that DA3PO improves performance on hard prompts without sacrificing performance on easier ones.
Finding 2. DA3PO broadens the coverage of correct responses rather than collapsing onto a single solution mode.
To verify that DA3PO does not merely raise average accuracy by collapsing onto a single solution mode, we report the pass@k of all algorithms, as shown in Table 2. Firstly, DA3PO outperforms baselines by at least 5.81% in average pass@k on Qwen3-4B-Base and by at least 5.87% on Qwen3-8B-Base. Then, DA3PO exceeds all baselines on five of seven benchmarks on both model scales. For example, DA3PO outperforms baselines by up to 10.00% for Qwen3-4B-Base and at least 13.33% for Qwen3-8B-Base on AIME24. On easier benchmarks except MATH, DA3PO consists
| Model | Algorithm | AIME24 avg@32 | AIME25 avg@32 | AIME26 avg@32 | AMC avg@32 | Minerva avg@8 | Olympiad avg@8 | MATH avg@8 | AVG |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3-4B-Base | Base Model | 5.21 | 3.23 | 3.65 | 20.18 | 12.22 | 19.56 | 41.23 | 15.04 |
| GRPO | 15.31 | 12.81 | 11.56 | 55.50 | 23.99 | 39.35 | 77.22 | 33.68 | |
| DAPO | 18.96 | 15.10 | 12.71 | 52.07 | 24.17 | 40.65 | 78.20 | 34.55 | |
| GSPO | 18.85 | 13.17 | 14.27 | 51.51 | 22.61 | 41.96 | 79.87 | 34.61 | |
| DA3PO | 23.96 | 19.17 | 17.19 | 60.50 | 26.84 | 44.52 | 85.20 | 39.63 | |
| vs. GRPO | ↑8.65% | ↑6.36% | ↑5.63% | ↑5.00% | ↑2.85% | ↑5.17% | ↑7.98% | ↑5.95% | |
| vs. DAPO | ↑5.00% | ↑4.07% | ↑4.48% | ↑8.43% | ↑2.67% | ↑3.87% | ↑7.00% | ↑5.08% | |
| vs. GSPO | ↑5.11% | ↑6.00% | ↑2.92% | ↑8.99% | ↑4.23% | ↑2.56% | ↑5.33% | ↑5.02% | |
| Qwen3-8B-Base | Base Model | 5.52 | 5.73 | 4.69 | 26.13 | 14.71 | 26.78 | 59.62 | 20.45 |
| GRPO | 18.54 | 17.29 | 16.77 | 61.11 | 24.77 | 42.74 | 82.95 | 37.74 | |
| DAPO | 24.58 | 20.52 | 17.19 | 64.83 | 29.50 | 48.30 | 85.52 | 41.49 | |
| GSPO | 24.27 | 21.56 | 17.92 | 65.44 | 30.06 | 48.83 | 85.52 | 41.94 | |
| DA3PO | 30.52 | 23.23 | 24.17 | 69.69 | 37.91 | 54.26 | 88.45 | 46.89 | |
| vs. GRPO | ↑11.98% | ↑5.94% | ↑7.40% | ↑8.58% | ↑13.14% | ↑11.52% | ↑5.50% | ↑9.15% | |
| vs. DAPO | ↑5.94% | ↑2.71% | ↑6.98% | ↑4.86% | ↑8.41% | ↑5.96% | ↑2.93% | ↑5.40% | |
| vs. GSPO | ↑6.25% | ↑1.67% | ↑6.25% | ↑4.25% | ↑7.85% | ↑5.43% | ↑2.93% | ↑4.95% |
Table 1: Avg@k (%) of all algorithms across seven mathematical reasoning benchmarks, with absolute improvement of DA3PO over each baseline. We report avg@32 for AIME and AMC, and avg@8 for Minerva, Olympiad and MATH. Best results within each benchmark are bolded.

(a) Avg@32 of AIME24 in training on Qwen3-4B-Base.

(b) Avg@32 of AIME24 in training on Qwen3-8B-Base.
Figure 3: Avg@32 of AIME24 over the course of RL training for all algorithms. Due to constraints on computational resources, we only use AIME24 as the validation benchmark.
tently outperforms. Besides, on the easiest dataset MATH DA3PO trails by only 1.00% on Qwen3-8B-Base, as baselines even base model already achieve pass@k above 90% on MATH, leaving limited room for further performance gains. These results confirm that DA3PO broadens the space of correct responses across the evaluated benchmarks, rather than collapsing the policy onto a single solution mode.
Finding 3. DA3PO stably and reliably reshapes the trajectory of RL training.
To verify that DA3PO brings stable performance improvement throughout the training, we plot the avg@32 of AIME24 over training on Qwen3-4B-Base and Qwen3-8B-Base, respectively. The experimental results are shown in Figure 3. Interestingly, on both model scales, the DA3PO curve sits visibly above those of GRPO, DAPO, and GSPO throughout the RL training, rather than only at the best checkpoint, confirming that DA3PO stably and reliably reshapes the optimization trajectory of RL training, not an artifact of checkpoint selection or training-step variance.
| Model | Algorithm | AIME24 pass@32 | AIME25 pass@32 | AIME26 pass@32 | AMC pass@32 | Minerva pass@8 | Olympiad pass@8 | MATH pass@8 | AVG |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3-4B-Base | Base Model | 30.00 | 23.33 | 16.67 | 78.31 | 28.31 | 42.67 | 77.60 | 42.41 |
| GRPO | 36.67 | 46.67 | 30.00 | 86.75 | 36.03 | 56.00 | 90.20 | 54.62 | |
| DAPO | 43.33 | 43.33 | 30.00 | 84.34 | 39.71 | 59.56 | 91.00 | 55.90 | |
| GSPO | 50.00 | 40.00 | 30.00 | 91.57 | 35.66 | 57.33 | 89.20 | 56.25 | |
| DA3PO | 60.00 | 46.67 | 40.00 | 91.57 | 41.18 | 61.19 | 93.80 | 62.06 | |
| vs. GRPO | ↑23.33% | 0.00 | ↑10.00% | ↑4.82% | ↑5.15% | ↑5.19% | ↑3.60% | ↑7.44% | |
| vs. DAPO | ↑16.67% | ↑3.34% | ↑10.00% | ↑7.23% | ↑1.47% | ↑1.63% | ↑2.80% | ↑6.16% | |
| vs. GSPO | ↑10.00% | ↑6.67% | ↑10.00% | 0.00 | ↑5.52% | ↑3.86% | ↑4.60% | ↑5.81% | |
| Qwen3-8B-Base | Base Model | 23.33 | 33.33 | 23.33 | 83.13 | 31.62 | 46.81 | 85.80 | 46.76 |
| GRPO | 43.33 | 40.00 | 43.33 | 90.36 | 38.24 | 61.63 | 93.20 | 58.58 | |
| DAPO | 56.67 | 46.67 | 46.67 | 90.36 | 43.01 | 63.70 | 93.40 | 62.93 | |
| GSPO | 50.00 | 40.00 | 46.67 | 89.16 | 45.59 | 71.41 | 95.80 | 62.66 | |
| DA3PO | 70.00 | 50.00 | 53.33 | 92.77 | 49.26 | 71.41 | 94.80 | 68.80 | |
| vs. GRPO | ↑26.67% | ↑10.00% | ↑10.00% | ↑2.41% | ↑11.02% | ↑9.78% | ↑1.60% | ↑10.22% | |
| vs. DAPO | ↑13.33% | ↑3.33% | ↑6.66% | ↑2.41% | ↑6.25% | ↑7.71% | ↑1.40% | ↑5.87% | |
| vs. GSPO | ↑20.00% | ↑10.00% | ↑6.66% | ↑3.61% | ↑3.67% | 0.00 | ↓1.00% | ↑6.14% |
Table 2: Pass@k (%) of all algorithms across seven mathematical reasoning benchmarks, with absolute improvement of DA3PO over each baseline. We report pass@32 for AIME and AMC, and pass@8 for Minerva, Olympiad and MATH. Best results within each benchmark are bolded.
| Model | Algorithm | AIME24 avg@32 | AIME25 avg@32 | AIME26 avg@32 | AMC avg@32 | Minerva avg@8 | Olympiad avg@8 | MATH avg@8 | AVG |
|---|---|---|---|---|---|---|---|---|---|
| Qwen3-4B-Base | λ=1.0 | 18.96 | 15.10 | 12.71 | 52.07 | 24.17 | 40.65 | 78.20 | 34.55 |
| λ=1.5 | 22.08 | 19.17 | 15.94 | 60.35 | 26.98 | 44.50 | 83.80 | 38.97 | |
| λ=2.0 | 23.96 | 19.17 | 17.19 | 60.50 | 26.84 | 44.52 | 85.20 | 39.63 | |
| λ=2.5 | 23.02 | 15.62 | 13.33 | 58.32 | 25.64 | 39.91 | 78.33 | 36.31 | |
| Qwen3-8B-Base | λ=1.0 | 24.58 | 20.52 | 17.19 | 64.83 | 29.50 | 48.30 | 85.52 | 41.49 |
| λ=1.5 | 28.65 | 21.56 | 21.35 | 66.72 | 35.57 | 53.19 | 87.02 | 44.87 | |
| λ=2.0 | 30.52 | 23.23 | 24.17 | 69.69 | 37.91 | 54.26 | 88.45 | 46.89 | |
| λ=2.5 | 29.69 | 21.04 | 24.69 | 69.95 | 30.24 | 48.94 | 86.85 | 44.49 |
Table 3: Ablation on the amplification factor λ. We report avg@32 for AIME and AMC, and avg@8 for Minerva, Olympiad and MATH. λ=1.0 is DAPO as a reference. Best results within each benchmark are bolded.
5.3 Ablation Study
Finding 4. DA3PO is robust across different values of λ, with λ = 2 yielding the best average accuracy on both model scales.
To verify the robustness of DA3PO and identify the optimal value of λ, we conduct an ablation on the amplification factor λ, the key hyperparameter of DA3PO that controls the magnitude of DAA to correct responses on hard prompts. We vary λ ∈ {1.5, 2.0, 2.5} on both model scales. Table 3 reports the avg@k for each setting. Firstly, DA3PO consistently outperforms DAPO (λ = 1.0) across all tested values of λ on both model scales, confirming that the amplification mechanism is robust and effective regardless of the specific choice of λ. Even λ = 1.5 outperforms DAPO by 4.42% on Qwen3-4B-Base and 3.38% on Qwen3-8B-Base, confirming that even modest amplification provides a meaningful improvement. Secondly, λ = 2.0 achieves the best average accuracy on both model scales, as 39.63% on Qwen3-4B-Base and 46.89% on Qwen3-8B-Base. Furthermore, the degradation at λ = 2.5 is more severe on the smaller model, falling 3.32% below λ = 2.0, while on Qwen3-8B-Base the decline is smaller and λ = 2.5 even achieves the highest score on individual benchmarks such as AIME26 and AMC. We attribute this to smaller models generating fewer correct responses on hard prompts, making them more sensitive to overly aggressive amplification, while larger models are more tolerant of higher amplification.
6 Conclusion
In this paper, we show that Dynamic Sampling induces asymmetrical amplification, which reduces training efficiency in DAPO. To address this issue, we proposed Direct Advantage Amplification (DAA). Its key insight is to amplify the advantage of correct responses on hard prompts so that the hard-to-sample correct responses on hard prompts obtained by Dynamic Sampling can be effectively capitalized on. By integrating DAA into DAPO, we obtain Difficulty-aware Advantage Amplification Policy Optimization (DA3PO), which requires fewer than 30 lines of code derived from DAPO. Experiments on seven mathematical benchmarks demonstrate that DA3PO yields consistent accuracy enhancements across both model scales and all benchmarks, significantly outperforming GRPO and other classical GRPO variants.
Limitations
While DA3PO effectively addresses the asymmetric advantage amplification induced by Dynamic Sampling, DA3PO adopts a constant and a fixed difficulty threshold to amplify the advantage of hard-to-sample correct responses on hard prompts. Although this design is straightforward and preserves the amplification effect on hard prompts, it may not optimally compensate the asymmetric amplification across all prompt difficulties throughout training. Therefore, replacing the constant and with adaptive factors that dynamically adjust to the evolving prompt difficulty remains a promising direction for future work.
References
Hongye Cao, Zhixin Bai, Ziyue Peng, Boyan Wang, Tianpei Yang, Jing Huo, Yuyao Zhang, and Yang Gao. 2026. Efficient reinforcement learning with semantic and token entropy for llm reasoning. Preprint, arXiv:2512.04359.
Daixuan Cheng, Shaohan Huang, Xuekai Zhu, Bo Dai, Xin Zhao, Zhenliang Zhang, and Furu Wei. 2026. Reasoning with exploration: An entropy perspective. In Proceedings of the AAAI Conference on Artificial Intelligence, 36.
Xiangxiang Chu, Hailang Huang, Xiao Zhang, Fei Wei, and Yong Wang. 2026. GPG: A simple and strong reinforcement learning baseline for model reasoning. In Proceedings of the Fourteenth International Conference on Learning Representations.
Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang,
Shirong Ma, Xiao Bi, Xiaokang Zhang, Xingkai Yu, Yu Wu, Z. F. Wu, Zhibin Gou, Zhihong Shao, Zhuoshu Li, Ziyi Gao, Aixin Liu, and 175 others. 2025. Deepseek-r1 incentivizes reasoning in llms through reinforcement learning. Nature, 645(8081):633–638.
Chaoqun He, Renjie Luo, Yuzhuo Bai, Shengding Hu, Zhen Thai, Junhao Shen, Jinyi Hu, Xu Han, Yujie Huang, Yuxiang Zhang, Jie Liu, Lei Qi, Zhiyuan Liu, and Maosong Sun. 2024. OlympiadBench: A challenging benchmark for promoting AGI with olympiad-level bilingual multimodal scientific problems. In Proceedings of the Sixty-second Annual Meeting of the Association for Computational Linguistics.
Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021. Measuring mathematical problem solving with the MATH dataset. In Proceedings of the Thirty-fifth Conference on Neural Information Processing Systems.
Jian Hu, Jason Klein Liu, Haotian Xu, and Wei Shen. 2025. Reinforce++: Stabilizing critic-free policy optimization with global advantage normalization. Preprint, arXiv:2501.03262.
Mengqi Liao, Xiangyu Xi, Chen Ruinian, Jia Leng, Yangen Hu, Ke Zeng, Shuai Liu, and Huaiyu Wan. 2025. Enhancing efficiency and exploration in reinforcement learning for LLMs. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing.
Mingjie Liu, Shizhe Diao, Ximing Lu, Jian Hu, Xin Dong, Yejin Choi, Jan Kautz, and Yi Dong. 2026a. ProRL: Prolonged reinforcement learning expands reasoning boundaries in large language models. In Proceedings of the Thirty-ninth Annual Conference on Neural Information Processing Systems.
Shih-Yang Liu, Xin Dong, Ximing Lu, Shizhe Diao, Peter Belcak, Mingjie Liu, Min-Hung Chen, Hongxu Yin, Yu-Chiang Frank Wang, Kwang-Ting Cheng, Yejin Choi, Jan Kautz, and Pavlo Molchanov. 2026b. Gdpo: Group reward-decoupled normalization policy optimization for multi-reward rl optimization. Preprint, arXiv:2601.05242.
Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. 2025. Understanding r1-zero-like training: A critical perspective. In Proceedings of the Second Conference on Language Modeling.
Chiyu Ma, Shuo Yang, Kexin Huang, Jinda Lu, Haoming Meng, Shangshang Wang, Bolin Ding, Soroush Vosoughi, Guoyin Wang, and Jingren Zhou. 2026. Fipo: Eliciting deep reasoning with future-kl influenced policy optimization. Preprint, arXiv:2603.19835.
Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. 2024.
Deepseekmath: Pushing the limits of mathematical reasoning in open language models. Preprint, arXiv:2402.03300.
Abdullah Vanlioglu. 2025. Entropy-guided sequence weighting for efficient exploration in rl-based llm fine-tuning. Preprint, arXiv:2503.22456.
Shenzhi Wang, Le Yu, Chang Gao, Chujie Zheng, Shixuan Liu, Rui Lu, Kai Dang, Xiong-Hui Chen, Jianxin Yang, Zhenru Zhang, Yuqiong Liu, An Yang, Andrew Zhao, Yang Yue, Shiji Song, Bowen Yu, Gao Huang, and Junyang Lin. 2026. Beyond the 80/20 rule: High-entropy minority tokens drive effective reinforcement learning for LLM reasoning. In Proceedings of the Thirty-ninth Annual Conference on Neural Information Processing Systems.
Shihui Yang, Chengfeng Dou, Peidong Guo, Kai Lu, Qiang Ju, Fei Deng, and Rihui Xin. 2025. Dcpo: Dynamic clipping policy optimization. Preprint, arXiv:2509.02333.
Linhao Yu, Tianmeng Yang, Siyu Ding, Renren Jin, Naibin Gu, Xiangzhao Hao, Shuaiyi Nie, Deyi Xiong, Weichong Yin, Yu Sun, and Hua Wu. 2026a. Knowrl: Boosting llm reasoning via reinforcement learning with minimal-sufficient knowledge guidance. Preprint, arXiv:2604.12627.
Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, YuYue, Weinan Dai, Tiantian Fan, Gaohong Liu, Juncai Liu, LingJun Liu, Xin Liu, Haibin Lin, Zhiqi Lin, Bole Ma, Guangming Sheng, Yuxuan Tong, Chi Zhang, Mofan Zhang, and 17 others. 2026b. DAPO: An open-source LLM reinforcement learning system at scale. In Proceedings of the Thirty-ninth Annual Conference on Neural Information Processing Systems.
Cai Yuchen, Ding Cao, Xin Xu, Zijun Yao, Yuqing Huang, Benyi Zhang, Zhenyu Tan, Guiquan Liu, and Junfeng Fang. 2026. On predictability of reinforcement learning dynamics for large language models. In Proceedings of the Fourteenth International Conference on Learning Representations.
Wenchuan Zhang, Penghao Zhang, Jingru Guo, Tao Cheng, Jie Chen, Shuwan Zhang, Zhang Zhang, Yuhao Yi, and Hong Bu. 2026. Patho-r1: A multimodal reinforcement learning-based pathology expert reasoner. In Proceedings of the Fortieth AAAI Conference on Artificial Intelligence.
Yuzhong Zhao, Yue Liu, Junpeng Liu, Jingye Chen, Xun Wu, Yaru Hao, Tengchao Lv, Shaohan Huang, Lei Cui, Qixiang Ye, Fang Wan, and Furu Wei. 2026. Geometric-mean policy optimization. In Proceedings of the Fourteenth International Conference on Learning Representations.
Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, Jingren Zhou, and Junyang Lin. 2025. Group sequence policy optimization. Preprint, arXiv:2507.18071.
A Related Work
As the original group relative reinforcement learning algorithm, GRPO (Shao et al., 2024) has attracted considerable research attention. However, instabilities in GRPO accumulate over long-term training, preventing the policy from consistently reinforcing correct responses (Liu et al., 2025; Chu et al., 2026; Yu et al., 2026b). To address this, several works (Liu et al., 2025; Chu et al., 2026; Hu et al., 2025; Zheng et al., 2025; Yu et al., 2026b; Yang et al., 2025; Zhao et al., 2026; Liu et al., 2026b; Ma et al., 2026; Yuchen et al., 2026) focus on improving the objective function itself to enhance training stability. Among them, DAPO (Yu et al., 2026b) is one of the most representative works, introducing four improvements over GRPO, including Dynamic Sampling, and achieving higher accuracy than GRPO.
Building upon these stability improvements, several works further aim to improve training efficiency in LLMs reinforcement learning. These works (Cheng et al., 2026; Vanlioglu, 2025; Wang et al., 2026; Liao et al., 2025; Cao et al., 2026) design algorithms to explore GRPO that regulate entropy dynamics, operating on the clipping, token masking, temperature scheduling, advantage reweighting, etc. However, these works largely overlook the impact of Dynamic Sampling on training efficiency, which serves as also a critical improvement in DAPO.
In this work, we reveal that Dynamic Sampling, while enhancing accuracy through improved training stability, actually reduces training efficiency. Building on this analysis, we propose DA3PO, which improves the training efficiency of Dynamic Sampling while preserving the original training stability benefits and achieves significant improvements in accuracy across both model scales and all benchmarks.
B Proof of Theorem 3.1
B.1 Proof of Eq. (5)
Proof. Since guarantees that at least one of the G responses is correct, the event (all responses incorrect) is impossible. Therefore, the sample space conditioned on is partitioned into two mutually exclusive cases: (i) , where all G responses are correct, and (ii) , where at least one response is incorrect.
We first compute . Since already fixes one response as correct, by the independence of responses, the remaining G-1 responses must each be independently correct. It follows that
which implies
When , all G responses are correct and hence all rewards are identical. As a result, z-score normalisation yields zero variance, and we obtain
By the law of total expectation over the partition established above, we have
By substituting Eq. (9), (10), and (11) into Eq. (12), we get
Since for , rearranging Eq. (13) yields
which is Eq. (5). We complete the proof.
B.2 Proof of Eq. (6)
Proof. Since guarantees that at least one of the G responses is incorrect, the event (all responses correct) is impossible. Therefore, the sample space conditioned on is partitioned into two mutually exclusive cases: (i) , where all G responses are incorrect, and (ii) , where at least one response is correct.
We first compute . Since already fixes one response as incorrect, by the independence of responses, the remaining G-1 responses must each be independently incorrect. It follows that
which implies
When , all G responses are incorrect and hence all rewards are identical. As a result, z-score normalisation yields zero variance, and we obtain
By the law of total expectation over the partition established above, we have
By substituting Eq. (14), (15), and (16) into Eq. (17), we get
Since for , rearranging Eq. (18) yields
which is Eq. (6). We complete the proof.