Manuscript Offprint
arXiv:2610.37429Bayes-Adaptive MDPs for Rollout Allocation to Enhance GRPO Training
Faeze Moradi Kalarde, Armin Toroghi, Nam Ho Koh, Doo Hwan Hwang, Seungjin Kim, Kee-Eung Kim, Scott Sanner
University of Toronto
Vector Institute of AI
Korea Advanced Institute of Science & Technology
Group Relative Policy Optimization (GRPO) has demonstrated strong performance in LLM post-training. However, it allocates a uniform rollout budget to every training question, ignoring variations in question difficulty. As a result, highly difficult questions may receive too few rollouts to generate informative positive reward signals, limiting their contribution to training, while moderately difficult questions often receive more rollouts than necessary. In this work, we formulate the problem of difficulty-aware rollout budget allocation to maximize training utility under the same total rollout budget as standard GRPO. We propose AdaRoll-GRPO, which reformulates rollout allocation as a sequential decision-making problem and leverages a Bayes-adaptive Markov decision process (MDP) to learn an adaptive allocation policy. The learned policy is computed offline and applied during GRPO training without introducing additional online optimization overhead. Extensive experiments on multiple reasoning datasets and LLM architectures demonstrate that AdaRoll-GRPO consistently improves GRPO training performance under a fixed rollout budget, highlighting the effectiveness of adaptive rollout allocation for GRPO in LLM post-training.
1 Introduction
Reinforcement Learning (RL)-based post-training has emerged as a key paradigm for enhancing the capabilities of Large Language Models (LLMs) by optimizing them through task-specific feedback signals. Among RL methods for LLM post-training, Group Relative Policy Optimization (GRPO) (Shao et al., 2024; Guo et al., 2025) has recently gained significant attention due to its computationally efficient advantage estimation. Unlike traditional policy optimization methods such as Proximal Policy Optimization (PPO) (Schulman et al., 2017), which require training and maintaining a separate value model to estimate advantages, GRPO estimates advantages directly from the relative rewards of multiple responses sampled for the same prompt. By eliminating the value model, GRPO significantly reduces the computational and memory overhead of RL post-training.
Despite its effectiveness, GRPO allocates a uniform rollout budget to all questions in a batch without accounting for question difficulty. This limitation is particularly important because a question contributes to the policy update only through the advantages computed from its rollout rewards. For relatively easy questions, all generated rollouts may yield the correct answer, whereas for excessively difficult questions, all generated rollouts may produce incorrect answers. In both cases, identical rewards yield zero advantages, resulting in no learning signal. Allocating additional rollouts to these questions can increase the likelihood of generating both correct and incorrect responses, leading to informative advantages. In contrast, moderately difficult questions typically yield sufficiently informative advantages with fewer rollouts. Thus, reallocating rollout budget from questions that already provide sufficient learning signals to those that require additional exploration has the potential to improve training efficiency by enabling a larger fraction of the training questions to effectively contribute to the policy update.
To illustrate the heterogeneity in question difficulty, Figure 1 shows the percentage of questions in the

Figure 1: Question difficulty distributions for the MATH and GSM8K training datasets, measured by the number of rollout generations required to obtain the first correct solution.
MATH (Hendrycks et al., 2021) and GSM8K (Cobbe et al., 2021a) training sets that are first solved after the k-th rollout generated by Llama3.2-3B-Instruct. As observed, the number of rollouts required to obtain the first correct solution varies substantially across questions. For example, while many questions of MATH are solved with a single rollout (k = 1), more than 28% require at least eight rollouts before producing a reasoning trajectory with the correct final answer. This variation suggests that different questions require different rollout budgets, making a uniform allocation potentially inefficient. It thus raises the following key question: How should a fixed rollout budget be allocated across questions to maximize the effectiveness of GRPO training?
In this work, we propose AdaRoll-GRPO, an Adaptive Rollout budget allocation framework for GRPO training, as illustrated in Figure 2. AdaRoll-GRPO dynamically allocates the rollout budget across questions in each GRPO training iteration to improve training performance while maintaining the same total number of generated rollouts as the predefined rollout budget.
Specifically, we formulate the rollout budget allocation problem as an integer optimization problem (Schrijver, 1998), where the objective function captures different training utility functions, and the constraint ensures that the total number of generated rollouts remains within the given budget. However, this formulation leads to a challenging online optimization problem (Borodin & El-Yaniv, 2005), as the utility objective depends on the rewards of generated rollouts, which are unknown before rollout generation and can only be observed after allocation decisions are made.
Our contributions are summarized as follows:
• To address the online nature of the rollout allocation problem, we decompose it into a sequence of decision-making steps by modeling it as a finite-horizon Markov Decision Process (MDP) (Puterman, 2014), where the action at each step is to select a question for rollout generation.
• The transition probabilities of the formulated MDP depend on the probability of the LLM generating a reasoning trajectory with a correct final answer, which is unknown during training. To account for this uncertainty, we formulate the problem using the Bayes-Adaptive MDP (BAMDP) (Duff, 2002, 2003) framework, where the transition probabilities are represented through belief distributions and incorporated into an augmented belief state. We then solve the BAMDP using value iteration and derive a closed-form Bellman update for the value function.
• The proposed value iteration procedure can be performed offline, and the resulting optimal allocation policy can be stored and directly applied during GRPO training, introducing no additional online optimization overhead.
Vanilla GRPO
Overall budget: N = 16 Batch size: B = 4
Q2
Q3
Q4
Question
Rollout with correct answer
Rollout with incorrect answer
AdaRoll-GRPO
Select -th question
Success
Failure
State update
Q1
Q2
Q3
Q4
Difficulty-aware allocation of rollouts across questions
Figure 2: Illustration of AdaRoll-GRPO. In vanilla GRPO, for a batch of four questions with a total rollout budget of 16, four rollouts are uniformly allocated to each question. For some questions (e.g., Q1 and Q4), all rollouts may receive identical rewards (all 1s or all 0s), resulting in zero advantage and thus, no contribution to training. AdaRoll-GRPO instead learns a rollout allocation policy, , which sequentially selects the next question to sample based on the current state. In this example, the learned policy reduces the rollout budget of Q2 and Q3, which already produce diverse rewards with only two rollouts each, and instead, allocates extra budget to Q1 and Q4 (5 and 7 rollouts, respectively). The additional rollouts increase the likelihood of obtaining diverse rewards for Q1 and Q4, producing non-zero advantages and making these questions effective training samples.
• Extensive experiments demonstrate that AdaRoll-GRPO effectively improves the training performance of different GRPO variants across various datasets and LLMs.
2 Related Work
Recent works have explored improving GRPO from two main perspectives: (i) modifying the GRPO optimization objective, and (ii) improving advantage estimation.
2.1 Objective Modifications
Several works enhance GRPO by modifying its optimization objective. DAPO (Yu et al., 2025) introduces asymmetric clipping and removes the KL divergence constraint to improve exploration and policy update effectiveness. Dr. GRPO (Liu et al., 2025) removes the per-response length normalization from the objective, which biases model updates by upweighting shorter correct responses and downweighting longer incorrect ones. GSPO (Zheng et al., 2025) and TIC-GRPO (Pang et al., 2025) replace token-level importance ratios with sequence-level ratios, treating the generated response as the optimization unit rather than individual tokens. We focus on rollout budget allocation, which is orthogonal to these objective changes and can be combined with them to further improve training.
2.2 Advantage Estimation Improvements
A more specialized line of work focuses on improving the advantage estimation procedure in GRPO. In addition to modifying the objective, Dr. GRPO (Liu et al., 2025) also identifies the difficulty bias introduced by reward standard deviation normalization and removes this normalization to mitigate the resulting bias in advantage estimation. MC-GRPO (Kim, 2026) replaces mean-based reward centering with median-based centering to improve robustness under small rollout groups. KRPO (Wang et al., 2025) incorporates a Kalman filter to estimate the reward mean and variance used for advantage normalization, reducing the impact of noisy reward statistics in small rollout groups. MS-GRPO (Wu et al., 2025) constructs subgroups within each rollout group, computes relative advantages within each subgroup, and aggregates them to produce more reliable advantage estimates. In contrast, our work focuses on allocating rollout budget across questions rather than modifying advantage estimation. Thus, our approach is complementary to these methods and can be combined with different advantage estimation techniques.
3 Background on GRPO
Group Relative Policy Optimization (GRPO) (Shao et al., 2024; Guo et al., 2025) was introduced as a an efficient alternative to Proximal Policy Optimization (PPO) (Schulman et al., 2017) for LLM post-training. PPO relies on a separate value model to estimate the advantage function. Yet, training this additional model incurs extra computational overhead, and maintaining it requires additional memory resources. GRPO eliminates the need for the value model by estimating the advantage of each generated response based on the relative rewards of multiple sampled responses for the same input prompt. Specifically, instead of evaluating each response using a learned value function, GRPO compares responses generated for the same prompt and leverages their normalized rewards to determine which responses should be reinforced or discouraged during policy optimization. For each input prompt , GRPO generates a group of G rollout responses:
where denotes the -th rollout generated for prompt . Each rollout consists of a sequence of tokens as , where represents the -th token of rollout , and denotes the preceding tokens before the -th token.
Following PPO, GRPO uses a clipped surrogate objective:
where denotes the importance ratio for the t-th token of the i-th rollout, defined as
Here, denotes the probability assigned by , the current policy being optimized, to token given the prompt and preceding tokens , and denotes the reference policy used to generate the rollouts.
Unlike PPO, where the advantage is estimated using a learned value model, GRPO computes the advantage using the relative rewards within each rollout group. Specifically, the advantage of t-th token in rollout is
Moderate difficulty Solved in 2nd rollout generation
Question: Weng earns $12 an hour for babysitting. Yesterday, she just did 50 minutes of babysitting. How much did she earn?
Small rollout budget (G like 2, 3, or 4) already yields both correct and incorrect answers.
Extra rollouts waste compute.
X High difficulty Solved in 10-th rollout generation
Question: Shawna's workout goal is 30 situps. On Monday, Shawna was only able to do 12 situps, so she decided that she would make up for the rest on Tuesday. However, she was only able to do 19 situps on Tuesday. How many situps would Shawna have to do on Wednesday to meet her minimum goal and make up for the ones she didn't do?
With G = 8, no informative learning signal
Figure 3: Illustration of the limitation of uniform rollout budget allocation in GRPO. With a fixed budget of G = 8 rollouts per question, the harder question fails to generate any correct rollout, resulting in zero rewards for the entire group and no contribution to the policy update, while the easier question is allocated more rollouts than necessary.
calculated as
where denotes the reward of rollout . Hence, responses receiving higher rewards compared to other responses generated for the same prompt obtain positive advantages, while lower-quality responses receive negative advantages.
Throughout this work, we consider binary rewards, i.e., , indicating whether the final answer produced by rollout is correct or not.
4 Rollout Budget Allocation Problem Formulation
As described in (1), GRPO generates an equal number of rollouts, denoted by G, for each question in the batch, which may be suboptimal. Questions at different difficulty levels can require different rollout budgets to yield informative reward signals: very easy and very hard questions may require additional rollouts to obtain diverse outcomes, while moderately difficult questions may already provide sufficient learning signals with fewer rollouts. Below, we provide an example to illustrate the limitation of uniform rollout budget allocation.
4.1 Illustrative Example
We provide an illustrative example to show the drawback of uniform rollout allocation. We consider a batch of two mathematical reasoning questions from GSM8K (Cobbe et al., 2021a), shown in Figure 3: the left question is moderately difficult and is solved by the base model (Llama3.2-3B-Instruct) after two rollout attempts, while the right question is more challenging and is first solved after ten rollout generations.
Assuming vanilla GRPO with G = 8, the harder question fails to generate any correct reasoning trajectory within the allocated rollout budget. Hence, all rewards in its rollout group are zero, yielding zero advantages and preventing the sample from contributing to training. In contrast, the moderately difficult question produces both successful and unsuccessful trajectories within only a few rollouts, providing informative reward signals. Thus, a more effective strategy could allocate a non-uniform rollout budget across questions, for example, for the easier question and for the harder question, allowing the harder question to obtain informative rewards while avoiding unnecessary rollouts for the question that already provides a sufficient learning signal.
This example highlights the need for a judicious rollout allocation strategy instead of uniform allocation, motivating the question: How should rollout budgets be allocated to most effectively improve the learning process?
4.2 Problem Formulation
Throughout this work, we refer to the standard GRPO with a uniform rollout budget allocation of rollouts for every question as the vanilla GRPO method. In each training iteration of GRPO, given a training batch , we aim to design a rollout allocation vector to improve the training process.
For question , let denote the ordered tuple of rewards obtained from its allocated rollouts, where is a function of the allocated rollout budget . Let denote the collection of rollout rewards for all questions in the batch. Since rollout rewards directly affect the policy update and, hence, the training performance, we define the training utility as , which is a function of the rollout rewards . We present several instances of this utility function later. Since the rollout rewards are stochastic, the objective is to maximize the expected training utility over the reward outcomes. The rollout budget allocation problem is formulated as
where constraint (5b) ensures that the total number of allocated rollouts across all questions remains equal to the overall rollout budget used by vanilla GRPO.
The choice of the utility function determines the objective in (5) and consequently the resulting rollout allocation strategy. Below, we consider several choices of utility functions designed to improve training quality.
Minimum reward variance ( ). A larger diversity of rewards among rollouts generated for a question results in more non-zero advantage values, which provide more effective training signals. The reward diversity of a question is measured by the variance of its rollout rewards, given by
To ensure that all questions in the batch provide diverse reward signals, we define the training utility function as the minimum reward variance across all questions:
Minimum advantage contribution ( ). Since the GRPO objective in (2) scales with the magnitude of advantage , the advantage magnitude directly influences the contribution of each rollout to the policy update. Rollouts with larger advantages contribute more to the batch gradient and can dominate the optimization process. Thus, we measure the contribution of each question to training using the sum of squared advantages of its generated rollouts: .
To ensure that all questions in the batch contribute effectively to training, we can define the utility function as the minimum advantage contribution across all questions:
Summation of maximum rewards (). To provide an effective learning signal for each question, the model should generate at least one correct reasoning trajectory from its rollouts. Therefore, we consider the maximum reward among the generated rollouts for each question as an indicator of whether that question contributes to the training process. Specifically, if , then at least one correct reasoning trajectory is generated for question , allowing the training process to benefit from this sample.
To account for the entire batch, we define the utility function as the sum of the maximum rewards over questions:
Appendix A details three additional objectives: minimum of maximum rewards, summation of reward variances, and summation of advantage contributions.
5 Adaptive Rollout Budget Allocation
The rollout budget allocation problem in (5) with the utility functions defined in (7), (8), and (9) is an online integer programming problem. In particular, the objective value of each utility function depends on the rewards of the generated rollouts, which are only observable after allocating the rollout budget and generating the corresponding responses. To address this online decision-making problem, we formulate it as a Markov Decision Process (MDP), described below.
5.1 MDP Formalization
In problem (5), the total number of generated rollouts is limited to . Therefore, we model the rollout budget allocation process as a finite-horizon MDP with horizon length , where each decision step corresponds to allocating one rollout to one of the questions in the batch. Specifically, we denote the decision step by , where .
MDP action. At step , the action selects the index of a question in the batch for which a new rollout is generated.
MDP state. The state represents the observed reward information at step , after rollout allocations, and is defined as
where denotes the total number of rollouts allocated to question j up to step t, and denotes the number of those rollouts that produce correct answers. Note that the training utility functions in (7)–(9) (and (17)–(19) in Appendix A) depend only on the total number of rollouts generated for each question and the numbers of successful and unsuccessful rollouts, all of which are fully captured by our state definition.
MDP state transition. Given the current state and selected action , a new rollout is generated for question , and its reward is observed. The state then transitions to by updating only the tuple corresponding to question , with all other components remaining unchanged:
where denotes the probability that the LLM generates a rollout with a correct final answer for question .
MDP immediate reward. Since the goal of the rollout budget allocation problem is to maximize the final utility function , we define the immediate reward to be zero for all intermediate decision steps and assign the utility value only after all N rollout allocations have been performed:
where is the final rollout allocation vector obtained after the sequential allocation decisions.
Remark 1. We note that the MDP defined above generalizes Problem (5) by allowing the rollout allocation to be determined sequentially based on the observed reward history, rather than committing to a fixed allocation vector before observing any rewards. The finite horizon of length N enforces the rollout budget constraint in (5b), while the expected cumulative reward of the MDP under any policy equals the expected utility achieved under the same policy.
5.2 Bayes-Adaptive MDP (BAMDP) Formalization
During GRPO training, the model is updated in each iteration, causing the probability that it successfully solves question j to change per iteration. Hence, the transition probabilities of the MDP in (11) are unknown during each training iteration. To account for this uncertainty in the transition dynamics, we leverage the Bayes-Adaptive MDP (BAMDP) framework, which extends MDPs to settings with unknown transition dynamics by maintaining a belief distribution over the unknown transition parameters (Duff, 2002, 2003).
We model the unknown success probability as a random variable with a Beta prior. Due to the conjugacy between the Beta distribution and the Bernoulli likelihood, the posterior belief over also follows a Beta distribution after observing rollout outcomes (Murphy, 2012).
Prior belief over . We initialize the belief over with a Beta prior, , where . This prior is equivalent to a uniform distribution over , reflecting the absence of prior knowledge about the probability that the model successfully solves question before observing any rollout outcomes.
BAMDP state. In the BAMDP, a belief distribution is maintained over the unknown transition parameters. The state is therefore augmented with the parameters of this distribution, forming the augmented belief state. Specifically, at step , we define the BAMDP state as , where , . Here, and denote the success and failure parameters of the belief distribution over for question , respectively.
Note that the state consists only of the belief parameters and and does not include the original MDP state in (10). As shown later, these belief parameters fully capture the information contained in the MDP state, making it unnecessary to include the original state in the BAMDP state.
BAMDP state transition. In step , given the current state , the belief over the success probability of question is .
The mean of the belief distribution provides an estimate of the success probability of question j at step t:
Suppose action is selected, an additional rollout is generated for question , and its corresponding reward is observed. The posterior belief over becomes
Algorithm 1 Rollout Budget Allocation via Value Iteration
Input: Batch size , rollout budget Output: Optimal rollout allocation policy
1: Initialize terminal value: . 2: for to do 3: for each belief state do 4: Estimation of success probability: . 5: Compute the value of selecting each question:
6: Update value: . 7: Store optimal action: . 8: end for 9: end for 10: return optimal policy
where and .^1 Therefore, the transition of the belief state can be written as
where denotes the -th standard basis vector.
We note that the posterior update in (14) implies that and record the numbers of successful and unsuccessful rollouts for each question. Hence, they fully determine the original MDP state in (10), allowing the BAMDP state to be represented solely by the belief parameters.
6 Optimal Rollout Allocation Policy
To solve the formulated BAMDP, we use the value iteration algorithm (Sutton & Barto, 2018). Specifically, we define the value function as the expected utility obtained by following the optimal allocation policy from state until the end of the decision horizon. Recall from (12) that the reward is realized only after the -th rollout is generated, i.e., upon reaching state . Since no further decisions are made after this point, the value of the terminal state is simply this reward: . For intermediate steps, using the Bellman optimality equation (Bellman, 1957; Sutton & Barto, 2018), we have
The first term corresponds to the case where the generated rollout for question is successful, and the belief parameter is incremented. The second term represents the unsuccessful case, where the failure parameter is incremented. Algorithm 1 summarizes the value iteration procedure.
Optimal policy extraction. Since value iteration is independent of the GRPO training iterations, it is performed once offline before training. The resulting optimal policy is stored as a lookup table mapping each belief state to the next question to sample. During training, rollout allocation is therefore reduced to a simple table lookup, incurring no additional online computational cost.
The derivation of the posterior update is given in Appendix B.
Computational complexity. The offline value iteration has complexity , where is the number of reachable belief states and each state requires evaluating B actions. For a fixed batch size, this complexity is polynomial in the rollout budget N. As it is incurred only once offline, it does not affect the per-step computational cost of GRPO training.
7 Experiments
We evaluate AdaRoll-GRPO on four benchmark datasets spanning three reasoning domains: mathematical reasoning, logical reasoning, and commonsense reasoning. Experiments are conducted using Llama 3.1-8B-Instruct (Dubey et al., 2024), Llama 3.2-3B-Instruct (Dubey et al., 2024), Gemma 3-4B-IT (Team, 2025), and Qwen 2-MATH-1.5B (Yang et al., 2024). The implementation of AdaRoll-GRPO and all baseline methods is available in the GitHub repository linked in the following footnote.
7.1 Datasets and Tasks
We evaluate mathematical reasoning on GSM8K (Cobbe et al., 2021b) and MATH (Hendrycks et al., 2021), logical reasoning on LogiQA (Liu et al., 2021), and commonsense reasoning on CoLoTa (Toroghi et al., 2025). Additional details on the datasets are provided in Appendix C.
7.2 Baselines and Evaluation
The proposed rollout allocation strategy does not modify the underlying GRPO objective and can therefore be integrated with any GRPO variant. We evaluate it using vanilla GRPO, Dr.GRPO (Liu et al., 2025), and DAPO (Yu et al., 2025). We compare each variant with its counterpart augmented by the proposed rollout allocation strategy to isolate the effect of rollout allocation.
Each trained model is evaluated on the corresponding test set of its training dataset using exact-match accuracy, where a prediction is considered correct only if the generated final answer exactly matches the ground-truth answer.
RQ 1. How do different training utility objectives affect the final performance of AdaRoll-GRPO?
To evaluate the impact of different training utility functions, we equip vanilla GRPO with rollout allocation policies learned using each of the six utility functions defined in (7)–(9) and (17)–(19) (given in Appendix A). We then compare the final accuracy of the resulting models on the test split of each dataset. Table 1 reports the results, with the columns ordered according to the utility functions listed above.
As shown, although no single objective consistently outperforms the others across all evaluated settings, the minimum reward variance objective, , achieves the strongest overall performance, attaining the best results in 6 of the 14 benchmark-model combinations. We therefore adopt the minimum reward variance objective in the remaining experiments. More detailed results and analyses of how different training utility functions affect the reward dynamics during training, and how they shape the learned rollout allocation policy, which in turn determines the distribution of rollouts across questions within a batch, are provided in Appendix D.
RQ 2. How does the proposed rollout allocation strategy affect the final training performance of vanilla GRPO, Dr.GRPO, and DAPO?
Table 2 reports the final test accuracy achieved by each GRPO variant under two rollout allocation strategies: The Def. subcolumn corresponds to the original GRPO variant, whereas the + Ada. subcolumn reports the performance of its AdaRoll-enhanced counterpart. Notably, augmenting each baseline with
https://github.com/faezemoradik/AdaRollGRPO-Release
Table 1: Final test accuracy (%) of models trained with AdaRoll-GRPO using different training utility functions.
| Dataset | ||||||
|---|---|---|---|---|---|---|
| Llama 3.1-8B-Instruct | ||||||
| MATH | 48.60 | 44.00 | 47.00 | 45.00 | 47.60 | 46.80 |
| GSM8K | 86.05 | 87.19 | 86.13 | 85.06 | 86.13 | 85.75 |
| CoLoTa | 58.24 | 54.71 | 54.71 | 57.06 | 60.00 | 60.59 |
| LogiQA | 43.93 | 43.01 | 45.16 | 41.47 | 43.78 | 41.78 |
| Llama 3.2-3B-Instruct | ||||||
| MATH | 39.60 | 37.80 | 37.80 | 36.40 | 40.60 | 40.80 |
| GSM8K | 75.21 | 75.21 | 75.36 | 73.77 | 74.83 | 74.60 |
| CoLoTa | 58.82 | 57.65 | 56.47 | 54.71 | 58.24 | 57.65 |
| LogiQA | 37.02 | 36.41 | 36.41 | 36.25 | 36.71 | 34.72 |
| Gemma 3-4B-IT | ||||||
| MATH | 68.00 | 64.60 | 67.80 | 66.20 | 69.00 | 65.40 |
| GSM8K | 88.86 | 87.49 | 88.40 | 86.81 | 87.04 | 87.19 |
| CoLoTa | 77.65 | 65.88 | 70.00 | 66.47 | 71.18 | 70.59 |
| LogiQA | 45.16 | 46.24 | 46.54 | 42.24 | 44.85 | 43.47 |
| Qwen 2-Math-1.5B | ||||||
| MATH | 57.40 | 56.20 | 54.40 | 54.20 | 58.00 | 55.60 |
| GSM8K | 77.94 | 76.42 | 77.63 | 81.12 | 79.08 | 79.23 |

Figure 4: Normalized relative improvement of AdaRoll-GRPO vs. entropy of the dataset difficulty distributions.
the proposed rollout allocation strategy consistently improves performance over its original counterpart. Furthermore, comparing the vanilla GRPO results in this table with those in Table 1 shows that AdaRoll-GRPO with the other training utility functions also outperforms vanilla GRPO in the majority of cases. These improvements show that adaptive rollout allocation provides a robust and generalizable approach for enhancing GRPO-based training.
RQ 3. How does training data heterogeneity impact the effectiveness of AdaRoll-GRPO?
Table 2: Comparison of the final test accuracy (%) of GRPO variants and their AdaRoll-enhanced counterparts.
| Dataset | Vanilla GRPO | Dr. GRPO | DAPO | |||
|---|---|---|---|---|---|---|
| Def. | + Ada. | Def. | + Ada. | Def. | + Ada. | |
| Llama 3.1-8B-Instruct | ||||||
| MATH | 42.60 | 48.60 | 44.40 | 48.80 | 46.60 | 49.40 |
| GSM8K | 83.02 | 86.05 | 82.56 | 84.08 | 83.32 | 86.35 |
| CoLoTa | 50.00 | 58.24 | 46.47 | 53.52 | 48.23 | 54.12 |
| LogiQA | 41.17 | 43.93 | 42.70 | 44.85 | 43.47 | 46.24 |
| Llama 3.2-3B-Instruct | ||||||
| MATH | 35.60 | 39.60 | 36.60 | 38.40 | 37.20 | 39.80 |
| GSM8K | 73.54 | 75.21 | 72.71 | 74.37 | 73.01 | 74.98 |
| CoLoTa | 54.71 | 58.82 | 51.18 | 55.88 | 55.29 | 59.41 |
| LogiQA | 31.18 | 37.02 | 30.72 | 35.18 | 30.41 | 36.41 |
| Gemma 3-4B-IT | ||||||
| MATH | 63.20 | 68.00 | 65.80 | 68.40 | 64.20 | 67.20 |
| GSM8K | 86.42 | 88.86 | 87.04 | 89.31 | 86.28 | 88.86 |
| CoLoTa | 66.47 | 77.65 | 69.41 | 75.88 | 67.65 | 76.47 |
| LogiQA | 42.09 | 45.16 | 43.16 | 45.76 | 42.86 | 45.93 |
| Qwen 2-Math-1.5B | ||||||
| MATH | 56.20 | 57.40 | 55.80 | 57.60 | 56.40 | 58.80 |
| GSM8K | 77.79 | 77.94 | 77.94 | 79.08 | 76.50 | 78.09 |
To quantify the heterogeneity of each training dataset, we compute the entropy of its question difficulty distribution, where the difficulty of a question is measured by the number of rollout generations required by the model prior to training to obtain the first correct solution (similar to the distributions shown in Figure 1). A higher entropy indicates greater heterogeneity, as questions are more evenly distributed across different difficulty levels.
Figure 4 shows the normalized relative improvement of AdaRoll-GRPO over vanilla GRPO against this entropy measure. As shown, the performance gain increases with dataset entropy. This suggests that adaptive rollout allocation is particularly beneficial for datasets with more diverse question difficulty, where allocating different rollout budgets to different questions is more effective than a uniform allocation.
8 Conclusion
We presented AdaRoll-GRPO, a framework for difficulty-aware rollout budget allocation in GRPO training. By formulating rollout allocation as a BAMDP, AdaRoll-GRPO learns an adaptive policy that allocates a fixed rollout budget across questions according to their estimated difficulty, without introducing additional online optimization overhead. Experiments across multiple reasoning benchmarks, LLM architectures, and variants of GRPO demonstrate that AdaRoll-GRPO consistently improves training performance under the same rollout budget. Overall, AdaRoll-GRPO provides an efficient and effective framework for improving GRPO-based LLM post-training through adaptive rollout allocation.
References
[1] Richard Bellman. Dynamic Programming. Princeton University Press, 1957.
[2] Allan Borodin and Ran El-Yaniv. Online computation and competitive analysis. Cambridge University Press, 2005.
[3] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021a.
[4] Karl Cobbe, Vineet Kosaraju, Mohammad Bavarian, Mark Chen, Heewoo Jun, Lukasz Kaiser, Matthias Plappert, Jerry Tworek, Jacob Hilton, Reiichiro Nakano, et al. Training verifiers to solve math word problems. arXiv preprint arXiv:2110.14168, 2021b.
[5] Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmed Al-Dahle, Aaron Letman, Anish Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
[6] Michael O Duff. Design for an optimal probe. In Proceedings of the International Conference on Machine Learning (ICML), 2003.
[7] Michael O'Gordon Duff. Optimal learning: Computational procedures for Bayes-adaptive Markov decision processes. PhD thesis, University of Massachusetts Amherst, 2002.
[8] Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. Deepseek-r1: Incentivizing reasoning capability in LLMs via reinforcement learning. arXiv preprint arXiv:2501.12948, 2025.
[9] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the MATH dataset. In Advances in Neural Information Processing Systems (NeurIPS), 2021.
[10] Youngeun Kim. Mc-grpo: Median-centered group relative policy optimization for small-rollout reinforcement learning. arXiv preprint arXiv:2601.22582, 2026.
[11] Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. Let's verify step by step. In International Conference on Learning Representations (ICLR), 2024.
[12] Jian Liu, Leyang Cui, Hanmeng Liu, Dandan Huang, Yile Wang, and Yue Zhang. LogiQA: a challenge dataset for machine reading comprehension with logical reasoning. In Proceedings of the Twenty-Ninth International Joint Conferences on Artificial Intelligence, pp. 3622–3628, 2021.
[13] Zichen Liu, Changyu Chen, Wenjun Li, Penghui Qi, Tianyu Pang, Chao Du, Wee Sun Lee, and Min Lin. Understanding r1-zero-like training: A critical perspective. In Second Conference on Language Modeling (COLM), 2025.
[14] Kevin P. Murphy. Machine learning: A probabilistic perspective. MIT Press, 2012.
[15] Lei Pang, Jun Luo, and Ruinan Jin. Tic-grpo: Provable and efficient optimization for reinforcement learning from human feedback. arXiv preprint arXiv:2508.02833, 2025.
[16] Martin L Puterman. Markov decision processes: discrete stochastic dynamic programming. John Wiley & Sons, 2014.
[17] Alexander Schrijver. Theory of linear and integer programming. John Wiley & Sons, 1998.
[18] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
[19] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, et al. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300, 2024.
[20] Richard S. Sutton and Andrew G. Barto. Reinforcement Learning: An Introduction. MIT Press, 2nd edition, 2018.
[21] Gemma Team. Gemma 3 technical report. arXiv preprint arXiv:2503.19786, 2025. URL https://arxiv.org/abs/2503.19786.
[22] Armin Toroghi, Willis Guo, and Scott Sanner. CoLoTa: A dataset for entity-based commonsense reasoning over long-tail knowledge. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 3444–3454, 2025.
[23] Leandro von Werra, Younes Belkada, Lewis Tunstall, Edward Beeching, Tristan Thrush, Nathan Lambert, Shengyi Huang, Kashif Rasul, and Quentin Gallouédec. TRL: Transformers Reinforcement Learning, 2020. URL https://github.com/huggingface/trl.
[24] Hu Wang, Congbo Ma, Ian Reid, and Mohammad Yaqub. Kalman filter enhanced GRPO for reinforcement learning-based language model reasoning. arXiv preprint arXiv:2505.07527, 2025.
[25] Sitong Wu, Haoru Tan, Yukang Chen, Bin Xia, Jingyao Li, Haokun GUI, Xiaojuan Qi, Bei Yu, and Jiaya Jia. Multi-scale group relative policy optimization for large language models. Open review, 2025.
[26] An Yang, Baosong Yang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengpeng Li, Chengyuan Li, Dayiheng Liu, Fei Huang, et al. Qwen2 technical report. arXiv preprint arXiv:2407.10671, 2024.
[27] Qiying Yu, Zheng Zhang, Ruofei Zhu, Yufeng Yuan, Xiaochen Zuo, Yu Yue, Weinan Dai, Tiantian Fan, Gaohong Liu, Lingjun Liu, et al. Dapo: An open-source LLM reinforcement learning system at scale. In Advances in Neural Information Processing Systems (NeurIPS), 2025.
[28] Chujie Zheng, Shixuan Liu, Mingze Li, Xiong-Hui Chen, Bowen Yu, Chang Gao, Kai Dang, Yuqiong Liu, Rui Men, An Yang, et al. Group sequence policy optimization. arXiv preprint arXiv:2507.18071, 2025.
This appendix is organized as follows. Appendix A introduces three additional utility functions beyond those presented in the main paper. Appendix B derives the posterior update equation presented in (14). Appendix C provides additional details on the tasks and datasets used in our experiments. Appendix D presents additional analyses of the experimental results. Appendix E provides detailed experimental settings and implementation details. Appendix F describes the hardware used for the experiments.
A Alternative Training Utility Functions
In addition to the training utility functions introduced in (7), (8), and (9), we present three alternative training utility functions below.
Minimum of maximum rewards (). Instead of maximizing the total number of questions with successful trajectories as in (9), we can consider a more conservative objective that focuses on the question with the weakest learning signal in the batch. Specifically, by maximizing the minimum value of the maximum rewards across questions, we encourage the rollout allocation strategy to provide at least one successful trajectory for every question whenever possible. The utility function is therefore defined as
Summation of reward variances (). Instead of maximizing the minimum reward variance across questions given in (7), we can maximize the total reward variance over the entire batch. Specifically, the training utility function can be defined as
This objective encourages reward diversity across the batch without explicitly balancing the reward variance among questions.
Summation of advantage contributions (). Instead of maximizing the minimum advantage contribution across questions as in (8), we can maximize the total advantage contribution of all questions in the batch:
Unlike the minimum objective, this utility favors maximizing the overall training signal without explicitly encouraging all questions to contribute equally.
B Posterior Update
Given the prior belief over as , the probability density function (pdf) of is
where the Beta function, , serves as the normalization constant.
Given the observed reward , the likelihood follows a Bernoulli distribution:
Applying Bayes' rule, the posterior density is proportional to the product of the prior and the likelihood:
(22)
The resulting posterior has the kernel of a Beta distribution. Therefore, the pdf of the posterior distribution of is
C Information on Tasks and Datasets
This section presents detailed descriptions of the reasoning tasks examined in this work and the datasets on which each task is evaluated. We also provide an exemplar question from each dataset along with its answer to facilitate understanding of the task in Table 3.
C.1 Mathematical Reasoning
Mathematical reasoning is widely used to assess the reasoning capabilities of LLMs, as it demands structured multi-step reasoning and precise manipulation of symbolic expressions. We evaluate mathematical reasoning performance using three widely adopted benchmarks:
• GSM8K (Cobbe et al., 2021b) is a dataset of multi-step arithmetic word problems that serves as a standard measure for mathematical problem-solving. Its queries cover a range of mathematical topics, including arithmetic calculations, unit conversions, and elementary algebra.
• MATH (Hendrycks et al., 2021) is a challenging benchmark of advanced, competition-level math problems ranging from geometry and number theory to probability theory.
For the GSM8K dataset, we use the full training split for training and the official test split for evaluation. For the MATH dataset, we train the model on the first 4,000 training samples and evaluate it on the MATH500 (500 problems from the MATH test set) (Lightman et al., 2024).
C.2 Logical Reasoning
Logical reasoning is a commonly used task to evaluate an LLM’s deductive reasoning ability over language-based premises. For this task, we use LogiQA (Liu et al., 2021), a benchmark derived from professional logic examination questions that tests formal reasoning skills such as implication, contradiction, and quantification under complex contextual constraints. For the LogiQA dataset, we train the model on the first 5,000 training samples and evaluate it on the official test split.
C.3 Commonsense Reasoning
Commonsense reasoning evaluates the model's ability to apply implicit commonsense knowledge—the general understanding that humans have about the world and how it works, but rarely state explicitly—to reasoning tasks. We assess commonsense reasoning using the CoLoTa dataset (Toroghi et al., 2025), which focuses on reasoning over long-tail entities that are underrepresented in LLM pretraining corpora. CoLoTa presents a challenging out-of-distribution (OOD) setting that evaluates the model's ability to generalize beyond famous entities and contexts. Since CoLoTa does not provide an official train/test split, we randomly partition the dataset, using 90% of the samples for training and the remaining 10% as the test set.
Table 3: Example questions and their answers from the studied evaluation datasets.
| Dataset | Sample Question | Answer |
|---|---|---|
| GSM8K | Five food companies sponsored a local food bank. Foster Farms donated 45 dressed chickens; American Summits donated twice the number of bottled water than the number of dressed chicken donated by Foster Farms; Hormel donated three times the number of dressed chickens that Foster Farms donated; Boudin Butchers donated one-third of the number of dressed chickens that Hormel donated; Del Monte Foods donated 30 fewer bottles of water than American Summits. How many food items did the companies donate in total? | 375 |
| MATH | A parabola has vertex and passes through . Enter the align of the parabola in the form “.” | |
| LogiQA | Article: The personal right of the author, also known as the moral right of the author, refers to the rights of the copyright owner to his work that are related to the person or are inseparable without direct property content. Reputation, prestige, and the right to maintain the integrity of the work. Copyright property rights, also known as copyright economic rights, are the symmetry of the author’s personal rights and refer to the right of the copyright owner to use or authorize others to use the work in a certain way to obtain material benefits.Question: According to the above definition, Which of the following statements are correct:Options: A. A well-known online novel writer asks the publisher to publish his work with his real name, then the writer exercises his personal rights. B. The painter Wang sold his painting to Jiang at a high price, and Jiang obtained the copyright of the painting. C. The dance created by a well-known dancer was loved by the masses, and many people imitated and performed commercial performances. The dancer asked to stop this infringement, but she exercised her personal rights. D. A TV drama created by a playwright is remake because it is loved by the audience. The playwright asks the TV show producer not to modify the ending of the story, then he is exercising the property right of copyright. | A |
| CoLoTa | Could someone in Vaughan take a taxi to the Jamjuree Art Gallery? | No |
D Additional Experimental Analysis
In this appendix, we provide additional analyses of the experimental results presented in the main paper.
D.1 Test Reward During Training
D.1.1 Llama-3.1-8B-Instruct model
To inspect the effect of AdaRoll-GRPO throughout training, we periodically evaluate the models on the test sets. Figure 5 compares the resulting rewards achieved by different AdaRoll-GRPO variants and vanilla GRPO over the course of training the Llama-3.1-8B-Instruct model. The left and right subfigures report the reward on the GSM8K test set and the MATH500 benchmark, respectively, as training progresses.
As shown in the figure, all AdaRoll-GRPO variants consistently achieve higher test rewards than vanilla GRPO throughout training on both benchmarks, while also attaining higher final rewards. These results demonstrate that adaptively allocating rollouts enables AdaRoll-GRPO to learn more efficiently and effectively, leading to faster performance improvements and better final performance.

(a) GSM8K dataset.
(b) MATH dataset.
Figure 5: Comparison of the test-set reward achieved by different AdaRoll-GRPO variants and vanilla GRPO throughout training the Llama-3.1-8B-Instruct model. Left: training on the GSM8K dataset. Right: training on the MATH dataset.
D.1.2 Llama-3.2-3B-Instruct model
Figure 6 shows the test rewards throughout training for the Llama-3.2-3B-Instruct model. As shown in the left figure, corresponding to the GSM8K dataset, most AdaRoll-GRPO variants, including the minimum-variance training utility used in our experiments, outperform vanilla GRPO and achieve higher test rewards. The right figure corresponds to the MATH dataset, which is more challenging than GSM8K and exhibits greater heterogeneity in question difficulty (as shown in Figure 4). On this dataset, all AdaRoll-GRPO variants outperform vanilla GRPO and consistently achieve higher test rewards.

(a) GSM8K dataset.
(b) MATH dataset.
Figure 6: Comparison of the test-set reward achieved by different AdaRoll-GRPO variants and vanilla GRPO throughout training the Llama-3.2-3B-Instruct model. Left: training on the GSM8K dataset. Right: training on the MATH dataset.
D.2 Analysis of Learned Rollout Allocation Policies
Figure 7 shows the number of rollouts allocated to each question in the batch (pink bars, indexed by prompt), together with the mean reward across that question's rollouts (blue bars), for six different variants of AdaRoll-GRPO, at a randomly selected training step of Llama-3.1-8B-Instruct on GSM8K. The horizontal dashed line in each subfigure marks an average of 8 rollouts per question, indicating that the total number of rollouts generated by AdaRoll-GRPO matches that of vanilla GRPO with G = 8.
We first compare the results of the utility function defined as the summation of advantage contributions ( in (19)), labeled as AdaRoll-GRPO-Sum-SumSqA, with those of the utility function defined as the minimum of advantage contributions ( in (8)), labeled as AdaRoll-GRPO-Min-SumSqA. Under the sum aggregation, many questions receive few or no rollouts, while a small number of questions receive a disproportionately large rollout budget. For example, the question with index 28 receives 32 rollouts under the sum utility, whereas it receives fewer than 8 rollouts under the corresponding min utility. This question is moderately difficult because its mean rollout reward is slightly above 0.33 in one case and slightly below 0.33 in the other. As a result, it generates both correct and incorrect trajectories, allowing it to contribute substantially to the overall utility. The sum aggregation exploits this by overallocating rollouts to such questions. In contrast, the min aggregation avoids allocating too many rollouts to any single question, since doing so would reduce the rollout budget available for other questions and could decrease the minimum utility across the batch.
We now compare the results of the utility function defined as the sum of reward variances ( in (18)), labeled as AdaRoll-GRPO-Sum-V, with those of the utility function defined as the minimum reward variance ( in (7)), labeled as AdaRoll-GRPO-Min-V. Under the min aggregation, many questions with a mean reward of one, corresponding to zero reward variance, receive substantially more than the average rollout budget (equal to 8). Consequently, questions with intermediate mean rewards (between 0 and 1), which have nonzero reward variance, receive fewer rollouts. The sum-variance utility exhibits the same qualitative behavior, but much less aggressively. Although questions with mean reward one are still favored, fewer of them are oversampled, and those that are, receive fewer additional rollouts. As a result, the rollout allocation produced by the sum-variance utility is more uniform than that of the min-variance utility.
We next compare the third utility function, in (9), labeled as AdaRoll-GRPO-Sum-MaxR and the fourth utility function, in (17), labeled as AdaRoll-GRPO-Min-MaxR. Both objectives prioritize questions that have not yet produced a successful rollout, since these are the questions suppressing the objective in either aggregation: a question that has already secured a success contributes its maximal reward and can no longer improve or , so the learned policies for both variants direct their remaining budget toward the still-unsolved questions in the batch. Under AdaRoll-GRPO-Sum-MaxR, the policy concentrates rollouts on the unsolved questions with the highest estimated probability of success, since a single correct rollout on any one of them immediately increases the sum; questions with very low estimated success probabilities are effectively deprioritized, as additional rollouts are unlikely to pay off within the remaining budget. AdaRoll-GRPO-Min-MaxR does not explicitly prioritize unsolved questions with the highest success probability, as solving them does not yield an immediate increase in the objective.
The same trend is also observed in Figure 8, which shows the rollout allocation policies learned by different AdaRoll-GRPO variants at a randomly selected training step during training of Llama-3.1-8B-Instruct on MATH. Under AdaRoll-GRPO-Sum-SumSqA, the policy concentrates almost the entire rollout budget on a rather small subset of questions, allocating the maximum of 32 rollouts to several of them while leaving many others with few or no rollouts; AdaRoll-GRPO-Min-SumSqA instead spreads the budget far more evenly, with no question receiving more than 15 rollouts. In contrast, AdaRoll-GRPO-Min-V allocates disproportionately large budgets to the many questions with mean reward one (zero variance), while AdaRoll-GRPO-Sum-V favors these questions less aggressively and distributes rollouts more evenly.
Comparing AdaRoll-GRPO-Min-MaxR and AdaRoll-GRPO-Sum-MaxR, we observe that AdaRoll-GRPO-Min-MaxR allocates rollouts broadly across questions with zero mean rewards, in order to secure at least one success per question and avoid collapsing the batch minimum. AdaRoll-GRPO-Sum-MaxR, by contrast, withdraws budget from questions whose observed success rate is too low and instead pushes rollouts toward unsolved questions with higher marginal probability of achieving a first success. We also observe that AdaRoll-GRPO-Min-MaxR leaves 7 questions unsolved, whereas AdaRoll-GRPO-Sum-MaxR leaves only 4. This difference stems from their optimization objectives. Specifically, AdaRoll-GRPO-Sum-MaxR aims to maximize the total number of solved questions, whereas AdaRoll-GRPO-Min-MaxR seeks to maximize the minimum of the maximum rewards across questions. Consequently, AdaRoll-GRPO-Sum-MaxR adopts a greedier strategy by prioritizing unsolved questions with a higher probability of being solved. In contrast, the min-based objective distributes the remaining rollouts more evenly across unsolved questions, since solving only one or a few of them is insufficient to improve the objective. As a result, this strategy tends to leave more questions unsolved by the end.

AdaRoll-GRPO-Sum-V
AdaRoll-GRPO-Sum-SumSqA
AdaRoll-GRPO-Sum-MaxR
Figure 7: Comparison of rollout allocations across prompts within a batch for different AdaRoll-GRPO variants at a randomly selected training step of Llama-3.1-8B-Instruct on GSM8K, together with the corresponding mean reward of the generated rollouts.
E Experimental Details
E.1 Rollout Requirement Analysis
Figure 1 is generated using the Llama-3.2-3B-Instruct model with max_new_tokens= 1024, temperature= 0.8, and top_p= 0.95. The model is evaluated on the training split of MATH (4,000 samples from all subsets) and the full training split of GSM8K.
For each question, we first generate a single rollout and check whether the generated response contains the correct final answer. The fraction of questions solved at this stage corresponds to the bar at k = 1. Next, for each question that remains unsolved, we generate one additional rollout and record the questions that are solved for the first time. Their fraction relative to the entire training set corresponds to the bar at k = 2.
We repeat this procedure for , and 128. At each stage, only questions that remain unsolved receive additional rollouts until the total number of rollouts reaches . For each value of , the height of the corresponding bar represents the percentage of questions that are solved for the first time after receiving between and rollouts.

Figure 8: Comparison of rollout allocations across prompts within a batch for different AdaRoll-GRPO variants at a randomly selected training step of Llama-3.1-8B-Instruct on MATH, together with the corresponding mean reward of the generated rollouts.
E.2 Training Hyperparameters
We tune the learning rate for each model on the validation sets of the datasets by searching among and report the chosen values in Table 4. For the remaining hyperparameters, we use either the default values from the Hugging Face TRL library (von Werra et al., 2020) or the settings recommended by Yu et al. (2025), as detailed below. We use the AdamW optimizer with a cosine learning rate scheduler. The per-device batch size is set to 2, with gradient accumulation over 8 steps. The maximum completion length is 1024 tokens. Training is performed for one epoch with num_iterations = 2, (i.e., no KL regularization), and full-parameter fine-tuning. The loss type is set to grpo, dr_grpo, or dapo, depending on the experiment.
In vanilla GRPO, num_generations corresponds to G, the fixed number of rollouts generated for each question in a batch. For AdaRoll-GRPO, num_generations specifies the average number of rollouts per question, while the actual rollout budget assigned to each question is determined adaptively by the learned allocation policy. We set num_generations to 8.
E.3 Multi-GPU Training
AdaRoll-GRPO can be readily applied in a multi-GPU setting. Following the TRL library implementation, the number of prompts in the global batch across all devices is
where , A, and D denote the per-device batch size, the number of gradient accumulation steps, and the number of GPUs, respectively. Here, G denotes the average number of rollouts generated per prompt and is set to the same value as in vanilla GRPO. During rollout generation and gradient computation, each
Table 4: Selected training hyperparameter values.
| Hyperparameter | Value |
|---|---|
| Optimizer | AdamW |
| Scheduler | Cosine |
| Fine-tuning | Full-parameter |
| Loss type | GRPO / DR-GRPO / DAPO |
| Learning rate (Llama-3.1-8B-Instruct, Llama-3.2-3B-Instruct) | |
| Learning rate (Gemma3-4B-IT) | |
| Learning rate (Qwen2-Math-1.5B) | |
| (KL coefficient) | 0 |
| Per-device batch size | 2 |
| Gradient accumulation steps | 8 |
| Maximum completion length | 1024 |
| Training epochs | 1 |
| num_iterations | 2 |
| num_generations | 4 / 8 / 16 |
GPU maintains a copy of the entire global batch of prompts. Accordingly, each GPU constructs a tabular value function with batch size and a rollout budget of . The tabular value function is constructed only once and then replicated across all GPUs for use during training.
For example, our Llama-3.1-8B-Instruct experiments use GPUs, per-device batch size , gradient accumulation steps , and average rollout count . Substituting these into (24) yields a global batch of prompts and a per-GPU rollout budget of , for which computing the tabular value function is tractable.
E.4 Entropy Computation for RQ 3
Figure 4 (RQ 3) shows the relationship between the performance improvement of AdaRoll-GRPO and the entropy of the training dataset for the Llama-3.1-8B-Instruct and Llama-3.2-3B-Instruct models. The performance improvement is defined as the normalized difference between the final accuracy achieved by AdaRoll-GRPO (using the GRPO loss type) and that achieved by vanilla GRPO, as reported in RQ 2. The entropy of each dataset for each model is computed from the distribution of rollout requirements before training, obtained using the same procedure illustrated in Figure 1.
F Hardware Specification
All model training experiments are conducted using NVIDIA H100 SXM5 GPUs with 80 GB GPU memory each. For training the 8B model, we use two GPUs, but other models are trained using one GPU.
Auxiliary analysis computations are performed using a computer with an Apple M1 chip featuring an 8-core CPU and 16 GB unified memory.