Skip to content

The Art of Scaling Reinforcement Learning Compute for LLMs

Skip →Long-horizon tool agents (STAR)
RL stage 2 #7corefrontierpaperrubric 12/122025 · ~55 min

Devvrit Khatri, Lovish Madaan, Rishabh Tiwari, …, Rishabh Agarwal

Status

TL;DR. Pre-training has scaling laws that let you test recipes cheaply and extrapolate. This paper builds the RL equivalent. Validation pass rate against RL compute follows a saturating sigmoid with a ceiling A and an efficiency exponent B. Fitting it to early training lets you predict later training. Using more than 400,000 GPU-hours of ablations, the authors find that only a few choices raise the ceiling, and they combine the best into ScaleRL, which tracked its predicted curve to 100,000 GPU-hours.

Why it matters now. RL post-training now consumes a meaningful fraction of frontier compute, and most published recipes are compared at whatever budget the authors could afford. If you train a search or reasoning agent, the useful question is not “which recipe is ahead at step 500?” but “which recipe will be ahead at my final budget?” This paper gives a method for answering that from small pilots, which is the same logic IR researchers use when they extrapolate from a dev set rather than trusting one run.

For a fixed model and training data, the paper fits

RC−R0=(A−R0)⋅11+(Cmid/C)BR_C - R_0 = (A - R_0) \cdot \frac{1}{1 + (C_{\text{mid}}/C)^{B}}

where R_C is the mean pass rate on held-out iid prompts after compute C (GPU-hours), R₀ the starting value, A ≤ 1 the asymptote, C_mid the compute at half the gain, and B > 0 how sharply performance rises (efficiency). A sigmoid was chosen over a power law because pass rate is bounded, and because sigmoid fits were empirically more robust and do not require discarding many early points (App. A.4). Fits use points after about 1.5k GPU-hours, because the first phase of training is noisy.

With this lens, a design choice can do two different things: raise the ceiling A or reach the same ceiling faster (B, C_mid). Recipes that win early can lose late, the “bitter lesson” of Figure 2.

ScaleRL combines existing components, each tested by leave-one-out at 16k GPU-hours:

  • PipelineRL with 8 steps of off-policyness. Generators stream and receive new weights mid-generation; trainers stop if they get more than 8 steps ahead.
  • CISPO loss. A truncated, stop-gradient importance weight on a REINFORCE-style term, so out-of-range tokens still contribute gradient.
  • FP32 logits at the LM head.
  • Prompt-level loss averaging and batch-level advantage normalisation.
  • Zero-variance filtering (drop prompts whose samples all pass or all fail) and No-Positive-Resampling (permanently drop prompts with a historical pass rate of at least 0.9).
  • Forced interruptions for length control: overly long thinking is cut by appending an end-of-thinking phrase (“Okay, time is up. Let me stop thinking and formulate a final answer now.” followed by the end-of-thinking tag).
The ScaleRL sigmoid: reward versus RL compute for two recipes Validation pass rate is plotted against RL training compute on a log axis for two illustrative recipes. Recipe 1 starts slowly but rises to a higher asymptote A; recipe 2 rises faster early but saturates at a lower ceiling, so the curves cross. Each curve is fitted inside a window of measured compute and extrapolated (dashed) beyond it. Annotations mark the starting reward R0, the asymptote A, the midpoint compute C_mid where half the gain is reached, and the exponent B that sets steepness. RL compute C (GPU-hours, log scale) pass rate R fit window extrapolate → R₀ C_mid₁ A₁ (recipe 1) A₂ (recipe 2) recipe 2: fast start, lower ceiling recipe 1: higher ceiling steepness set by B R − R₀ = (A − R₀) × 1 / (1 + (C_mid/C)^B) A: ceiling (0–1) B: compute efficiency C_mid: half the gain fits start ≈1.5k GPU-h
Original sketch with illustrative curves, not paper data. A recipe that starts slowly can overtake a fast starter if its ceiling A is higher; fitting A, B and C_mid inside a window lets you extrapolate (dashed) instead of running to the end.

All numbers are paper-reported. Main experiments use an 8B dense model on GB200 GPUs, a 16,384-token budget (12,288 for thinking), batch 768 (48 prompts × 16 generations) and a validation set of 1,000 held-out Polaris-53K prompts.

  • Figure 2. ScaleRL reaches A = 0.61, above fitted curves for the DeepSeek (GRPO), Qwen-2.5 (DAPO), Magistral and MiniMax-M1 recipes. Longer runs land on the extrapolated curves for the stable recipes.
  • Figure 1. The 8B ScaleRL run was fitted up to 50k GPU-hours and extrapolated to 100k; the Scout MoE (17B×16) was fitted to 16k and extrapolated to 45k. Extended training closely followed both extrapolations.
  • §3.2. PipelineRL and PPO-off-policy reach a similar A, but PipelineRL has much better B; k = 8 was best. CISPO and GSPO beat DAPO on A. FP32 logits raised A from 0.52 to 0.61.
  • Figure 7 (LOO). Most reverted components reach a similar A; ScaleRL has the best B. Three seeds varied A by about ±0.02.
  • §5. The Scout MoE has a much higher asymptote and beats the 8B’s performance with 1/6 of its RL compute. Generation length 32K starts slower (lower B) but reaches a higher A than 14K. Larger batches are slower early but end higher. Math+code joint training follows parallel predictable curves.
  • App. A.15. At batch 768, truncation rates of 10–15% typically destabilised training; for the 8B ScaleRL run, truncations stayed below 5% for over 90% of training.
  • The curves predict iid validation reward for a fixed model and dataset, not downstream accuracy. The paper notes a correlation with downstream results but does not model it.
  • The domain is verifiable math (plus a code run). It is untested whether the same parameter behaviour holds for agents with tools, LLM-judge rewards or multi-turn environments.
  • Fits need about 1.5k GPU-hours of warm-up and several evaluation points, so “cheap” pilots are still expensive for academic labs.
  • A error bars come from three runs (±0.02); many LOO differences in A are inside that band.
  • There is no joint law over model size, data and compute yet; each change of model or data needs a new fit.
  • No code is released.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    Starting from R − R₀ = (A − R₀)/(1 + (C_mid/C)^B), show that C = C_mid gives half the attainable gain, then solve for the compute needed to reach a target R. With R₀ = 0.1, A = 0.61, C_mid = 5,000 GPU-hours and B = 1.5, how much compute do R = 0.5 and R = 0.6 need?

    What a strong answer covers
    • At C = C_mid the denominator is 1 + 1 = 2, so R − R₀ = (A − R₀)/2: C_mid is the compute at which half the reachable gain has been earned.
    • Rearranging: (C_mid/C)^B = (A − R₀)/(R − R₀) − 1, so C = C_mid · ((A − R₀)/(R − R₀) − 1)^(−1/B).
    • R = 0.5: (0.51/0.40 − 1) = 0.275, so C = 5,000 × 0.275^(−2/3) ≈ 11,800 GPU-hours. R = 0.6: (0.51/0.50 − 1) = 0.02, so C ≈ 5,000 × 13.6 ≈ 68,000 GPU-hours.
    • Reaching 0.6 requires about 5.74× the total compute needed to reach 0.5. The incremental gain from 0.5 to 0.6 costs about 56,037 GPU-hours, 4.74× the compute spent going from the starting 0.1 to 0.5. R can never exceed A, which is why a higher ceiling matters more than a faster start at large budgets.
  2. Mechanism

    ScaleRL replaces PPO-off-policy-k with PipelineRL-k and uses the CISPO loss with FP32 logits. Explain what each change does to the training data or gradient, and why the paper sees PipelineRL change mostly B while the loss and precision change A.

    What a strong answer covers
    • PPO-off-policy-k: generate a big batch, then take k updates on it, so generators idle during training and vice versa.
    • PipelineRL-k: generators stream continuously and receive new weights mid-generation (keeping the stale KV cache); trainers pause if they get k steps ahead. Less idle time means more learning per GPU-hour, i.e. higher B; the ceiling A is similar.
    • CISPO multiplies log π by a stop-gradient, truncated importance weight sg(min(ρ, ε_max))·Â. Unlike PPO/DAPO clipping, a token whose ratio is out of range still contributes gradient, which the paper finds gives a higher A than DAPO (GSPO is also better).
    • FP32 in the LM head reduces the mismatch between the generator's and trainer's token probabilities, so importance ratios are closer to correct; A rose from 0.52 to 0.61 in Figure 5b.
  3. What if…

    The leave-one-out (LOO) study reverts one ScaleRL component at a time for 16,000 GPU-hours. Summarise what changed A versus B, and explain why the authors re-fit all runs with a shared A and compare slopes.

    What a strong answer covers
    • Most LOO variants reached a similar asymptote; the differences were mainly in compute efficiency B (for example, CISPO's B of 2.01 vs DAPO's 1.77).
    • Choices thought to raise peak performance (loss aggregation, curriculum, length penalty, advantage normalisation) mainly moved B.
    • With A fixed to the mean, F(R) = C_mid^B/((A − R₀)/(R − R₀) − 1) equals C^B, so log F vs log C is a straight line whose slope is B. This makes small efficiency differences visible.
    • Three independent runs gave A within about ±0.02, so A differences smaller than that should not be read as real.
  4. Critique

    People say "RL scaling laws" for at least three different things. Contrast ScaleRL's compute curves with reward-model over-optimisation scaling (Gao et al.) and with game-RL scaling studies, and list the main limits on what ScaleRL's curves predict.

    What a strong answer covers
    • ScaleRL: validation pass rate vs RL compute for a fixed model and data; a saturating sigmoid whose parameters compare recipes.
    • Gao et al.: gold reward vs KL distance from the initial policy when optimising a proxy reward model; it describes over-optimisation, not compute efficiency.
    • Game-RL scaling (e.g. arXiv 2610.33420 on actor-critic agents in games) is a different domain and should not be used to predict LLM post-training.
    • ScaleRL limits: mostly one 8B dense model plus one MoE; iid validation on Polaris-53K math prompts; downstream transfer is correlated but not modelled; fits need about 1.5k GPU-hours before they stabilise.
  5. Design

    You want to choose between two RL recipes for a search agent with a budget of 2,000 GPU-hours per pilot and 30,000 for the final run. Using ScaleRL's method, design the pilot study and the decision rule.

    What a strong answer covers
    • Fix the model, data and an iid held-out set of prompts (with several samples per prompt) and evaluate at regular compute intervals.
    • Run each recipe long enough to pass the early, unstable phase, then fit A, B and C_mid on the later points only; repeat with seeds to get an error bar on A.
    • Choose by extrapolated reward at 30,000 GPU-hours, not by which recipe leads at 2,000; if the A intervals overlap, prefer the higher B.
    • Hold out a final segment of each pilot to check extrapolation error, and monitor truncation rates, since rising truncations preceded instability in the paper.
  6. Research idea

    ScaleRL fits a sigmoid in compute for a fixed model and dataset. Propose how to extend it into a joint law over compute and model size (or generation length), and what result would show the extension is useful.

    What a strong answer covers
    • Let A, B and C_mid be functions of model size N (or context length), and fit them across several sizes trained with the same recipe.
    • The paper already shows the Scout MoE reaches a higher A than the 8B at a fraction of the compute, and 32K generation length lowers B but raises A, so the parameters do move systematically.
    • Usefulness test: predict a held-out size's full curve from the others before training it, then compare.
    • A joint law would let a team decide between a bigger model and more RL steps for a fixed budget, as Chinchilla does for pre-training.

Done with this page?

Status