Passer au contenu

Bitcoin accepté au paiement  |  Expédié depuis Laval, QC, Canada  |  Soutien expert depuis 2016

Rollout (Reinforcement Learning)

Sovereign AI

Definition

A rollout, in reinforcement learning, is a complete trajectory the model generates by acting out its current policy from a starting point until it terminates. For a language model, a rollout is a full sampled response to a prompt — every token of reasoning and final answer — together with whatever reward that response earns. Rollouts are the raw experience an RL optimizer consumes; the quality and diversity of rollouts largely determines how well training works, which makes them worth understanding even if you never write a training loop yourself.

Why Rollouts Dominate the Training Loop

Each step of reinforcement-learning fine-tuning generates fresh rollouts from the current policy, scores them, and uses them to update the model. Because generating long responses with a large model is expensive, the rollout phase is often the biggest consumer of compute in the whole training run — frequently far more than the gradient updates themselves. This inverts the intuition carried over from supervised learning, where data is cheap and gradients are the cost. It also explains a defining piece of modern RL infrastructure: training systems bolt a high-throughput inference engine onto the trainer purely to generate rollouts fast, then ship the sampled trajectories back for optimization. When you read that a reasoning model was trained with large-scale RL, most of that budget went into sampling.

From Rollout to Gradient

A raw trajectory is not yet a learning signal. Each rollout is scored — by a programmatic verifier for math and code, a reward model for open-ended tasks, or a mix — and the score is converted into an advantage estimate that says how much better or worse this trajectory was than expected. That advantage then weights the policy gradient: tokens on better-than-expected trajectories get pushed up, worse ones get pushed down. Algorithms like GRPO lean into the group structure deliberately, sampling several rollouts per prompt so their rewards can be compared against one another — the group average becomes the baseline, removing the need for a separate value network and cutting memory cost, which is one reason the method became popular for training reasoning behavior.

Rollout Strategy as a Design Lever

How rollouts are generated, filtered, and reused is an active research area, and it is where much of the practical leverage hides. Sampling temperature and diversity control how much of the solution space each batch explores. Filtering matters enormously: prompts where every rollout succeeds or every rollout fails carry no comparative signal, so discarding them before the optimizer sees them saves compute without hurting learning. More elaborate schemes branch generation at uncertain tokens, tree-search style, to surface higher-quality trajectories, or reuse slightly stale rollouts with importance-weighting corrections to squeeze more updates from each expensive generation pass.

Why This Matters on Your Own Hardware

For practitioners fine-tuning models on constrained, self-owned hardware, rollout economics decide feasibility. Smart rollout management — fewer but more informative trajectories, aggressive filtering, shorter maximum lengths where the task allows, quantized inference for the sampling phase — is one of the highest-leverage ways to make local reinforcement learning affordable. The same intuition serves you as a consumer of models: the reasoning traces a reasoning model emits at inference are, in effect, the descendants of billions of scored rollouts, and techniques that spend extra sampling at answer time belong to the same family of test-time compute trade-offs. In RL as in mining, the scarce resource is not the update rule — it is the energy you can afford to spend generating candidate work, and the discipline with which you decide what is worth keeping.

The vocabulary also travels: when a paper reports "64 rollouts per prompt" or an RL framework asks for a rollout batch size, it is describing exactly this sampling loop — how many complete attempts the model gets before the optimizer takes its lesson from the comparison.

In Simple Terms

A rollout, in reinforcement learning, is a complete trajectory the model generates by acting out its current policy from a starting point until it terminates.…

Explore the Full Glossary

Browse all Bitcoin mining terms from A to Z. Whether you are a beginner or expert, deepen your understanding of the mining ecosystem.

Glossaire du minage

ASIC Miner Database

Compare 500+ miners with real-time profitability data, home mining scores, and detailed specs.

Comparer les mineurs