# Selective Rollout: Mid-Trajectory Termination for Multi-Sample Agent RL

*Zhiyuan Zhai, Xin Wang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151195) · [Open on the map](../papers.html#p151195)

Category: [LLM Post-Training: RL & Distillation](../pcat/18.md) › [Group-Based Reinforcement Learning for Verifiable Rewards](../pgroup/113.md) · Type: new method · Keywords: group-relative reinforcement learning, early termination, compute efficiency, agentic environments, GRPO

Areas: [LLM Reasoning](../areas/reasoning.md) › Reasoning Optimization › Group Relative Advantage Estimation; [RL for LLMs & Agents](../areas/llm-rl.md) › LLM Policy Optimization › Group Advantage Estimation

## Summary
Selective Rollout introduces a mid-trajectory termination gate that stops groups of parallel rollouts early when their partial action sequences converge, reducing wasted compute and improving performance.

## Explained to a 5-year-old
In training AI agents, many attempts are made to solve a problem. Sometimes all attempts end up doing the same thing, which wastes time. The researchers watch how the attempts start to look alike early on. When they see the attempts are already the same, they stop trying that group early. This saves time and helps the AI learn better.

## Explained to a 5-year-old, longer
Training an AI agent is like trying many different ways to solve a puzzle. For each puzzle, the AI makes several attempts at the same time. If all those attempts end up giving the same answer, they don't help the AI learn anything new. This wastes a lot of computer time because the attempts still cost resources. The researchers noticed that sometimes the attempts become identical before they even finish. They look at how the early steps of the attempts compare to each other. When the early steps are already the same, they know the final answer will be the same too. So they stop making more attempts for that puzzle early. This early stopping saves a lot of time and computer power. Because less wasted work is done, the AI can focus on the parts that actually matter. The result is that the AI learns faster and performs better on new puzzles. This trick helps make training AI agents cheaper and more efficient.

## For a technical reader
Selective Rollout adds a lightweight monitor that computes the average edit distance between the partial action sequences of a group of parallel rollouts. When this distance drops below a tunable threshold, the group is terminated early, avoiding unnecessary LLM calls. This early-stop gate reduces wasted compute and improves gradient quality, leading to faster wall-clock training and higher success on unseen tasks. The technique is simple to integrate into existing GRPO pipelines and requires only a single hyper-parameter.

## Problem
In group-relative reinforcement learning, groups of parallel rollouts that end with identical rewards provide no gradient signal, yet they still consume compute. Existing methods filter such groups only before or after rollouts, missing an opportunity to use information available during the rollout, leading to substantial wasted computation.

## Method
The approach monitors the mean pairwise prefix edit distance among the partial action sequences of a group. When this distance falls below a threshold, the group is terminated early, preventing unnecessary rollouts. This gating is applied at intermediate steps of the trajectory, using information that becomes available during the rollout.

## Results
The gated approach finishes 10.7% faster in wall-clock time (95% CI excludes zero) and improves held-out success rate on 50 unseen tasks by +2.5 percentage points, due to reduced zero-advantage gradient dilution.

## Contributions
It introduces a mid-trajectory early-stopping criterion that leverages in-group divergence of partial trajectories to detect zero-variance groups, and demonstrates substantial compute savings and performance gains on interactive agent tasks.

## Practical relevance
The method reduces training costs and improves agent performance, making large-scale group-relative RL more efficient for deploying agentic systems.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151195)
