Manuscript Offprint

arXiv:2610.37429

Bayes-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

Faeze Moradi Kalarde1,2^{1,2}, Armin Toroghi1,2^{1,2}, Nam Ho Koh3^{3}, Doo Hwan Hwang3^{3}, Seungjin Kim3^{3}, Kee-Eung Kim3^{3}, Scott Sanner1,2^{1,2}

1^{1}University of Toronto

2^{2}Vector Institute of AI

3^{3}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

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

References (20)