Manuscript Offprint

arXiv:2610.09804

BoT-GRPO: Efficient Process-Reward RL for Reasoning via Bag-of-Token Aggregation

Yingxiang Yang, Weihang Xiao, Zhunxuan Wang, Joshua Flashner, Niresh Agarwal

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

Abstract

Reinforcement learning is now central to eliciting reasoning in large language models, while in the popular algorithm Group Relative Policy Optimization (GRPO) every token in a rollout receives the same advantage. We ask how to make process supervision efficient: accelerating convergence and improving final quality without the cost of value networks. We propose Bag-of-Tokens Group Relative Policy Optimization (BoT-GRPO), which extends GRPO to token-level reward models through a length-invariant "bag of tokens" aggregation: it collects all token-level rewards across rollouts, weights each by the inverse of its source sequence length, and computes per-token advantages relative to weighted group statistics. BoT-GRPO is critic-free, and is a drop-in replacement wherever GRPO is used when token-level reward is available. On React front-end code generation, BoT-GRPO reaches 80% compile rate up to 1.9×1.9 \times faster than GRPO and converges faster than modern GRPO variants (GSPO, DAPO, PURE) while reaching higher final compile and VLM-judged win rates. On a second task, AIME mathematical reasoning, BoT-GRPO delivers absolute Pass@k gains up to 8.1% over GRPO in half the steps. For both tasks we compare the algorithm's performance on reasoning vs. non-reasoning base-model families (Qwen2.5-3B, SmolLM3-3B, Phi-4-mini-reasoning). Our experiments also yield a practical recipe for the reward model itself: reward stability matters more than richness: clean, bounded, stable fine-grained signals consistently accelerate learning where noisier alternatives stall.

1 Introduction

Reinforcement learning with verifiable rewards (RLVR) has become the dominant recipe for eliciting reasoning in large language models, from DeepSeek-R1 to open post-training pipelines (DeepSeek-AI, 2025; Lambert et al., 2025). At the center of this recipe is Group Relative Policy Optimization (GRPO), which discards PPO's value network and instead normalizes rewards within a group of sampled rollouts, trading a learned critic for cheaper, more stable optimization (Shao et al., 2024). Yet the compute bill for RL post-training remains dominated by the many rollouts needed to see reward signal, and GRPO uses that signal inefficiently: because advantages are computed once per sequence, every token in a rollout is updated with the identical, sequence-level signal regardless of whether it helped or hurt. This coarse-grained credit assignment spends gradient uniformly across long chains of thought, slowing convergence and inflating the number of rollouts, GPU-hours, and wall-clock time required to reach a target quality (Liu et al., 2025).

Denser, better-targeted reward is the natural remedy, and process reward models (PRMs) that score intermediate steps demonstrably outperform outcome-only supervision (Light-

∗^{*}Work done during an internship at Amazon.

man et al., 2024). But process supervision has historically reintroduced exactly the costs that make RLVR expensive. Monte-Carlo alternatives estimate step values by rolling out many continuations per step (Wang et al., 2024); verifier and reward models require their own training pipelines (Wu et al., 2025); TD-learning methods bring back a critic (Xi et al., 2026); and sequence-similarity approaches depend on curated expert trajectories (Deng et al., 2026). Even implicit-PRM methods that obtain token-level rewards more cheaply (Yuan et al., 2025; Cui et al., 2026) still change the reward source rather than the way GRPO turns per-token rewards into advantages. The question for efficient reasoning is thus not only what to reward, but how to fold token-level signals into GRPO so that they accelerate convergence without adding a value network, an auxiliary model to train, or per-token cost that grows with the length of reasoning.

We propose Bag-of-Tokens Group Relative Policy Optimization (BoT-GRPO), a critic-free extension of GRPO that consumes any external token-level reward and assigns per-token advantages through a length-invariant “bag of tokens” aggregation. Weighting each token by the inverse of its source-sequence length lets every rollout contribute equally to the group statistics regardless of how long its reasoning ran, correcting the length bias that plagues sequence-level GRPO (Liu et al., 2025) while adding only bookkeeping overhead. BoT-GRPO makes no assumption about where the token reward comes from: any combination of a global outcome and a bounded local signal works. Fine-grained credit assignment thus becomes a lever on training efficiency rather than a separate training system, keeping the whole procedure within reach of a single commodity GPU at the model scales we study.

We evaluate BoT-GRPO on both front-end code generation and AIME math problems. For front-end code generation, correctness (does it compile?) and quality (does it look good?) are both measured, and we verify that the findings transfer to AIME mathematical reasoning. Against standard GRPO and three modern GRPO variants aimed at stability and credit assignment (GSPO (Zheng et al., 2025), DAPO (Yu et al., 2025), PURE (Cheng et al., 2025)), BoT-GRPO reaches target quality in markedly fewer steps and attains higher final compile and win rates, with the speedup holding across three base-model families. We see similar faster convergence and higher stable performance for the AIME use case as well.

Our contributions are: (1) BoT-GRPO, a critic-free, drop-in token-level advantage estimator that turns external local rewards into a convergence-speed lever without extra models or unbounded cost; a length-invariant 1/Lk1/L_k weighting additionally corrects the response-length bias of sequence-level GRPO (Liu et al., 2025). (2) Evidence that on front-end code generation BoT-GRPO converges faster and reaches higher quality than GRPO and three modern variants (GSPO, DAPO, PURE) (3) A practical minimal reward recipe for code generation, identifying which reward signals are necessary versus optional and how to keep them stable. (4) Supporting AIME results and ablations on reward signal designs. (5) An empirical comparison of BoT-GRPO's behavior across reasoning and non-reasoning base models.

References (56)