AI Infra
0%
Part VI · Chapter 37

Training Agents to Act

AuthorChangkun Ou
Reading time~26 min

Training a model to answer and training it to act differ at the boundary where the model meets an environment. An answer may be scored after one completion. An agent chooses an action, receives an observation, and chooses again. The training example therefore includes not only model tokens but also tool results, environment state, termination rules, and the version of the policy that generated the run.

There was no single invention called “agent training.” WebGPT demonstrated in 2021 that a language model could learn to browse through behavior cloning and human-feedback-based selection; its strongest reported system used rejection sampling rather than online policy optimization (Nakano et al. 2021). Later work such as Search-R1 optimized multi-turn search behavior with an outcome reward (Jin et al. 2025). These are different training regimes. Demonstrations remain useful for teaching valid actions and providing a cold start; rejection sampling can select good complete runs; offline objectives can reuse recorded runs; and online reinforcement learning (RL) can collect new runs from the changing policy. This chapter focuses on the additional contracts required when the unit of learning is an interaction trajectory. The planning and runtime architecture used after training belong to Chapter 38 and Chapter 41.

One trajectory has two time scales

A language model always generates tokens sequentially. Agent training adds a second time scale: after one or more model-generated tokens form an action, an external system advances and returns an observation. Calling ordinary language-model RL “single-step” hides the token decisions that are already there. The useful distinction is one environment exchange versus repeated action--observation exchanges.

A partially observed interaction can be written as

ht=(x,o0,a0,o1,,at1,ot),atπθ(ht),st+1PE(st,at),ot+1ΩE(st+1),τ=(x,o0,a0,o1,,aT1,oT),R(τ)=t=0T1γtrt+γTrTterm.\begin{aligned} h_t &= (x, o_0, a_0, o_1, \ldots, a_{t-1}, o_t), \\ a_t &\sim \pi_\theta(\,\cdot \mid h_t), \\ s_{t+1} &\sim P_E(\,\cdot \mid s_t, a_t), \\ o_{t+1} &\sim \Omega_E(\,\cdot \mid s_{t+1}), \\ \tau &= (x, o_0, a_0, o_1, \ldots, a_{T-1}, o_T), \\ R(\tau) &= \sum_{t=0}^{T-1} \gamma^t r_t + \gamma^T r_T^{\mathrm{term}}. \end{aligned}

Here, xx is the task; tt indexes environment turns; sts_t is the hidden environment state before action tt; oto_t is the observation exposed to the agent; ata_t is the action; and hth_t is the observation history available to the policy. The policy πθ\pi_\theta has parameters θ\theta. The environment revision EE determines the transition distribution PEP_E and observation distribution ΩE\Omega_E. The termination condition sets the final turn TT. The step reward is rtr_t, the terminal reward is rTtermr_T^{\mathrm{term}}, and the discount γ[0,1]\gamma\in[0,1] controls how strongly later rewards count. The full trajectory is τ\tau, and its return is R(τ)R(\tau). Every symbol in these equations corresponds to a policy, environment, or scoring decision that must be recorded.

An action need not be plain text. It may be a structured function call, a code patch, a browser command, or a multimodal control. Likewise, an observation may be structured or multimodal. Serializing both into one token transcript is a common implementation, not the definition of a trajectory.

Turn the interaction into a valid training record

Suppose a serialized record contains tokens z=(z1,,zJ)z=(z_1,\ldots,z_J). Here the provenance mask means

mj={1,zj is a policy-generated token included in the update,0,zj comes from the prompt, system, or environment.m_j = \begin{cases} 1, & z_j \text{ is a policy-generated token included in the update},\\ 0, & z_j \text{ comes from the prompt, system, or environment}. \end{cases}

A schematic masked policy objective can be read as

Lpolicy(θ)=1j=1Jmjj=1JmjA^jlogπθ(zjz<j).\mathcal{L}_{\mathrm{policy}}(\theta) = -\frac{1}{\sum_{j=1}^{J} m_j} \sum_{j=1}^{J} m_j\,\widehat{A}_j \log \pi_\theta(z_j\mid z_{<j}).

In these expressions, jj indexes serialized tokens; JJ is the record length; z<jz_{<j} is the prefix before token jj; mjm_j is the binary provenance mask; and A^j\widehat{A}_j is the training weight or advantage assigned to an included token. Prompt and system tokens have mj=0m_j=0, as do environment observations. The denominator counts included action tokens and must be nonzero. Algorithm-specific objectives may add probability ratios, clipping, a reference policy, entropy terms, or value losses. The invariant is simpler: an environment observation may condition later actions, but it is not an action sampled by the policy. The mask is an ownership rule, not a claim that observations are unimportant.

Search-R1 applies this rule to retrieved passages: retrieved tokens remain in context but are excluded from the policy loss (Jin et al. 2025). A production record needs the same distinction for system and prompt tokens, tool responses, browser state, compiler output, and injected error messages. It must also state whether private reasoning tokens are retained or trained on. Without explicit roles, a preprocessing change can silently train the model to predict text it did not author.

The record should preserve more than tokens:

Field Why training needs it
Task, environment version, reset seed Reconstructs the initial state and detects train--evaluation leakage.
Policy and tokenizer versions Identifies the behavior policy and makes likelihood ratios meaningful.
Parsed action plus raw action text Separates language generation from parser behavior.
Observation provenance and truncation Shows what the policy actually saw and what was omitted.
Timeout, retry, cancellation, and termination reason Distinguishes a policy failure from an infrastructure failure.
Step rewards, terminal reward, verifier version Makes the final return auditable.
Cost, permissions, and safety events Prevents task success from hiding an unacceptable route.

Invalid calls require an explicit policy. The environment may reject them and return an error observation, end the episode, or assign a penalty. Dropping them after collection changes the training distribution. Truncated trajectories also need a distinct termination reason; “ran out of budget” is not the same outcome as “task completed.”

TASK task + reset state POLICY policy emits action TASK->POLICY ENV environment advances POLICY->ENV OBS observation joins history ENV->OBS TERM termination rule OBS->TERM TERM->POLICY continue VERIFY verifier scores trajectory TERM->VERIFY stop ADV estimate training weights VERIFY->ADV new weights UPDATE masked policy update action tokens only ADV->UPDATE new weights UPDATE->POLICY new weights
Figure 37.1. One trajectory-training loop. The policy and environment alternate until a termination rule fires. A verifier then scores the recorded trajectory; an advantage estimator supplies training weights; and the policy update applies a provenance mask so only policy-generated action tokens enter the policy loss. Placement and scheduling choices are omitted here.

Choose the data regime before the optimizer

“Agent training” does not imply online RL. The data source determines what the optimizer can learn:

Regime Training record What it provides Main limitation
Behavior cloning Demonstrated action--observation trajectories Valid action syntax, tool conventions, and a reliable cold start. Covers the demonstrator's state distribution and mistakes; unseen recovery behavior remains unseen.
Selection or offline learning Previously recorded trajectories with scores or preferences Reuses expensive environment runs and avoids changing the policy during collection. Cannot explore states absent from the log; behavior-policy provenance still matters.
Online RL New trajectories sampled from the current or recent policy Lets the policy discover alternatives and receive feedback on its own failures. Requires live environments, repeated scoring, exploration controls, and protection against verifier exploitation.
Hybrid curriculum Demonstrations first, then selected or online trajectories Separates learning the interface from optimizing task outcomes. Stage boundaries, data mixtures, and changing action formats become additional hyperparameters.

WebGPT is an example of the first and second rows rather than evidence that online RL is always required (Nakano et al. 2021). In practice, a valid tool-call grammar is often taught before sparse outcome optimization begins. Otherwise the early rollout budget may be spent rediscovering the parser rather than learning the task.

Design the reward as a contract

The environment and the reward are not the same object. The environment changes state and produces observations. A verifier or reward wrapper assigns scores to actions, states, or complete trajectories. Keeping those interfaces separate makes failures diagnosable.

Contract Required questions
Transition contract Given a reset state and action, what state change occurs? Which failures are retried, exposed, or terminal?
Observation contract What state is visible, in what format, with what truncation, redaction, and provenance?
Verifier contract Which artifact is checked? Is the check deterministic, isolated, versioned, and resistant to tampering?
Reward contract How are validity, progress, outcome, cost, and safety combined? Can shaping change which behavior is optimal?

Agent rewards commonly combine several signals:

  • Syntax and validity: Did the action parse, name an available tool, and use a valid schema? This provides dense feedback but does not show that the action was useful.
  • Intermediate progress: Did a state become closer to the goal? This can improve credit assignment, but a misspecified progress metric can reward a detour or prevent a valid alternative route.
  • Terminal task outcome: Did tests pass, was the answer correct, or did the environment reach the goal state? This is closest to the intended result but is often sparse.
  • Cost and constraints: How many tokens, tool calls, seconds, dollars, permissions, or safety violations did the run incur? These terms expose trade-offs that a success bit hides.

ToolRL's experiments show why a coarse answer match and a structured tool-use reward are not interchangeable (Qian et al. 2025). SWE-RL uses similarity to a developer patch as a reproducible proxy, not proof that every semantically valid repair received the same score (Wei et al. 2025). Multiple action sequences can solve the same task. Exact action matching may reject a better route, while a weak final checker may reward a superficial one.

Reward hacking is therefore an interface failure as much as an optimization failure. Keep a held-out verifier that is not used for training, add tests that probe known loopholes, and inspect the gap between proxy reward and the intended task metric. Human-created tests and reference artifacts remain human supervision even when scoring is automated.

Trajectory reward is not action-level credit

Group Relative Policy Optimization (GRPO) removes the learned value critic used by PPO and normalizes returns within a group of samples for the same task (Shao et al. 2024). For a group of GG trajectories, one simple form is

Rˉ=1Gi=1GRi,σR=1Gi=1G(RiRˉ)2,A^i=RiRˉσR+ε.\bar{R}=\frac{1}{G}\sum_{i=1}^{G}R_i, \qquad \sigma_R=\sqrt{\frac{1}{G}\sum_{i=1}^{G}(R_i-\bar{R})^2}, \qquad \widehat{A}_i=\frac{R_i-\bar{R}}{\sigma_R+\varepsilon}.

Here, ii indexes a trajectory in the group; GG is the group size; RiR_i is trajectory ii's return; Rˉ\bar{R} is the group mean; σR\sigma_R is the group standard deviation; ε>0\varepsilon>0 prevents division by zero; and A^i\widehat{A}_i is the normalized trajectory advantage. If every return is the same, this estimator supplies no ranking signal.

With only an undiscounted terminal reward, implementations commonly apply the same trajectory-level advantage to every included action token. That update reinforces or suppresses the whole sampled route. It does not identify which action caused the result. Calling this value “credit assignment” can hide the missing causal resolution.

Several remedies target different parts of the problem:

  • A step-level reward changes the feedback timing. It helps only if the intermediate metric is trustworthy.
  • A learned value function estimates expected future return from a state or history, enabling per-step advantages but adding a model that can itself be hard to fit under partial observation.
  • Replaying alternative actions from the same state or checkpoint creates a local counterfactual comparison. Exact recurrence may be rare in open or stochastic environments.
  • GiGPO builds step-level groups from repeated anchor states while retaining a critic-free group estimator (Feng et al. 2025). Its reported gains are scoped to ALFWorld, WebShop, and search-augmented question answering; the mechanism depends on states that can be recognized as equivalent.

Reward design, credit estimation, and exploration are independent choices. A more detailed reward does not by itself create better exploration, and branching more rollouts does not make a flawed verifier correct. RAGEN's reported “Echo Trap” is a useful warning from three stylized environments: falling reward variance and rising gradients accompanied collapse in those experiments (Wang et al. 2025). It is a diagnostic to test, not a universal law of agent RL.

What's contested

Outcome-only rewards have produced gains in narrow, checkable settings such as multi-turn search, while other experiments benefit from step-aware credit or shaped rewards. The evidence does not establish one universal choice. A sparse outcome reward is attractive when the verifier is strong and many paths are valid; process feedback is attractive when intermediate states are reliable and the terminal horizon is too long. The right comparison holds the environment, base policy, rollout budget, and evaluation verifier fixed.

Where the environments come from

Online RL consumes environments the way pre-training consumes text. One run samples many trajectories per task and returns to the task set for many steps, so the supply of executable, checkable tasks becomes the binding constraint. Curated benchmarks do not meet it. They hold a few thousand instances drawn from a handful of repositories, and a collection that is also the evaluation set cannot be spent on training.

Synthesizing tasks is the response, and the published pipelines share one move: begin from something already checkable, then work backwards to a task. SWE-smith installs a Python repository, perturbs the source until an existing test fails, and keeps the broken state as the task with that test as its verifier. Because the verifier is inherited rather than written, the pipeline scales, reporting 50,000 instances from 128 repositories against at most thousands from eleven or fewer repositories in earlier collections, and a 32B student at 40.2% Pass@1 on SWE-bench Verified (Yang et al. 2025). R2E-Gym derives its tasks from commits using test generation and back-translation, reaching more than 8,700 of them (Jain et al. 2025).

Outside code the state has to be built rather than borrowed, because there is no test suite waiting in the repository. Agent World Model backs each of 1,000 environments with a database and ordinary code, on the argument that a language model asked to simulate an environment gives less consistent transitions than a program does (Wang et al. 2026). AgentScaler constructs simulated tool environments and trains in two phases, general function calling first and domain specialization second (Fang et al. 2025). Endless Terminals synthesizes 3,255 terminal tasks over file operations, databases, and scripting; plain PPO on that set moved Qwen2.5-7B from 10.7% to 53.3% on the authors' development set, and the gain transferred to human-curated terminal benchmarks (Gandhi et al. 2026). Huang et al. survey these pipelines as one loop of generation, execution, and feedback (Huang et al. 2025).

A generated task is not automatically a useful one

Generation is the cheap half. The filter decides what the run can learn, and the criterion it should apply is not difficulty.

Take a task the current policy solves with probability pp under a binary outcome reward R{0,1}R\in\{0,1\}. The variance of that reward across samples is

Var[R]=p(1p),\operatorname{Var}[R]=p(1-p),

where pp is the current policy's success rate on that one task. The expression peaks at p=1/2p=1/2 and falls to zero at both ends. The group estimator above inherits the shape directly: with GG samples of one task, every A^i\widehat A_i is zero whenever the GG returns agree. So a task the policy always fails and a task it always solves sit at opposite ends of difficulty and carry the same training value, which is none. This is the reason DAPO resamples until a batch holds prompts with mixed outcomes (Chapter 28). When the task set is generated rather than given, the same argument applies one level earlier, to which tasks are kept at all.

Two practices follow. A solvability filter comes first, because a generator will emit tasks that no policy can complete; sampling each candidate a fixed number of times and discarding those never solved is the usual form. The surviving set then has to track a moving frontier, since pp rises as the policy improves and a task that carried signal last week can stop carrying it. GenEnv makes that the generator's objective, paying a curriculum reward for tasks matched to the agent's current ability so the environment supply co-evolves with the policy (Guo et al. 2025).

A warm start is a separate requirement, not an instance of this one. A policy that cannot yet emit a valid tool call fails every generated task for reasons unrelated to the task, which pins pp at zero everywhere and returns no signal at any difficulty. The hybrid-curriculum row above is the answer: teach the interface from demonstrations, then let outcome optimization work on a set whose outcomes actually vary.

What synthesis does not settle

Gains on synthesized tasks are in-domain by construction. The quantity that decides whether the pipeline worked is transfer to a held-out benchmark the generator never saw, and that is where reported evidence is thinnest. Contamination is the same problem from the other side: a generator seeded from public repositories can reproduce an evaluation instance without copying it, and exact-match deduplication will not find it. Where breadth stops paying is also open. These pipelines establish that breadth matters, not the point at which another hundred environments stop earning their cost. Thousands of live containers per rollout batch are an infrastructure bill rather than a data-generation one, which is the subject of the next two sections.

Treat the environment as versioned data infrastructure

An executable environment is reusable training infrastructure. SWE-Gym, for example, packages 2,438 real Python repository tasks with runtime environments, unit tests, and natural-language tasks. Its ICML 2025 study uses the collection for supervised agent training and verifier-guided inference-time scaling, and reports up to a 19-percentage-point resolve-rate gain in its evaluated setups (Pan et al. 2025). That result demonstrates the value of a reproducible environment; it should not be retold as an online-RL result.

A training environment needs an operational contract:

  • Reset and replay: A reset must restore a known snapshot. Record the seed, environment version, data version, clock policy, and allowed network state. Measure deterministic replay rather than assuming it.
  • Isolation: Separate filesystem, process, network, credential, and tenant scope. A rollout must not read another rollout's artifacts or the held-out answer.
  • Observation control: Bound output size, label truncation, preserve source roles, and treat tool output as untrusted input.
  • Failure semantics: Set a timeout for each action and trajectory. Distinguish parser rejection, tool failure, retry exhaustion, cancellation, and genuine task failure.
  • Verifier integrity: Run scoring outside the agent's writable boundary, version its dependencies, and retain enough evidence to audit a score.
  • Dataset separation: Keep training tasks, tuning tasks, and final evaluation tasks separate at the repository, template, and dependency levels, not only by issue identifier.

These controls affect learning. A flaky test adds reward noise. A slow browser extends the rollout tail. A leaked solution turns memorization into apparent success. A changed API alters the transition distribution even if the task text is unchanged.

Lower-layer constraint: rollout time shapes optimization

For trajectory ii, the following terms give a useful wall-clock decomposition:

Trollout,i=Treset,i+t=0Ti1(Tdecode,i,t+Tenv,i,t)+Tverify,i.T_{\mathrm{rollout},i} = T_{\mathrm{reset},i} + \sum_{t=0}^{T_i-1} \left(T_{\mathrm{decode},i,t}+T_{\mathrm{env},i,t}\right) + T_{\mathrm{verify},i}.

For a synchronous batch of BB trajectories, the corresponding approximate critical-path formula is

Titerationmax1iBTrollout,i+Tupdate+Tweight sync.T_{\mathrm{iteration}} \approx \max_{1\le i\le B} T_{\mathrm{rollout},i} + T_{\mathrm{update}} + T_{\mathrm{weight\ sync}}.

Here, Treset,iT_{\mathrm{reset},i} is environment setup time; TiT_i is trajectory ii's number of turns; Tdecode,i,tT_{\mathrm{decode},i,t} is policy generation time for action tt; Tenv,i,tT_{\mathrm{env},i,t} is tool or environment time; Tverify,iT_{\mathrm{verify},i} is scoring time; BB is batch size; TupdateT_{\mathrm{update}} is learner time; and Tweight syncT_{\mathrm{weight\ sync}} is the time to make new weights available to rollout workers. The maximum exposes the straggler: one long tool call can hold the whole synchronous batch. Real systems may overlap some terms, so measure the stage trace rather than treating this sum as a hardware law.

OpenRLHF reports that generation can dominate RLHF wall-clock and uses Ray, vLLM, and DeepSpeed to organize its roles (Hu et al. 2025). In an agent workload, decoding may dominate, or environment and verifier latency may dominate. vLLM is one possible inference backend, not part of the definition. Admission control, cancellation, prefix reuse, and batching still matter, but the unit being scheduled is now a trajectory that can pause between turns.

Placement and freshness are orthogonal

Two systems decisions are often conflated:

Axis Choice Benefit Cost to measure
Resource placement Colocated rollout and learning roles Reuses a GPU pool and may reduce persistent model copies. Resharding, memory pressure, and phase idle time.
Resource placement Separate GPU pools Sizes rollout and learning independently and can overlap them. Additional capacity, weight transfer, and cross-pool coordination.
Update synchronization Synchronous collection and update Each batch can use a known recent policy version. Barriers and straggler idle time.
Update synchronization Asynchronous collection and update Overlaps rollout with learning and reduces barriers. Behavior-policy staleness and off-policy correction.

These axes are orthogonal. Separate GPU pools can still wait at a synchronous barrier, and a colocated cluster can time-slice roles while allowing queued rollouts from older weights. HybridFlow's 3D-HybridEngine is one colocated design that reshards the actor between generation and training layouts (Sheng et al. 2025). OpenRLHF demonstrates a Ray-based distributed layout (Hu et al. 2025). Neither placement alone determines whether the data is on-policy.

Asynchronous RLHF separates generation and learning and shows the resulting throughput--off-policy trade-off on instruction following and mathematical reasoning (Noukhovitch et al. 2025). AReaL goes further with continuous rollout workers and a staleness-aware learner, reporting up to 2.77 times the training speed of evaluated synchronous systems on its math and code workloads (Fu et al. 2025). Those results establish systems possibilities, not a guarantee for long-horizon tool agents.

Every asynchronous trajectory should carry its behavior-policy version. Here, if trajectory ii was generated by behavior policy μi\mu_i and the learner uses πθ\pi_\theta, a token-level importance ratio is

ρi,j(θ)=πθ(zi,jzi,<j)μi(zi,jzi,<j),mi,j=1.\rho_{i,j}(\theta) = \frac{\pi_\theta(z_{i,j}\mid z_{i,<j})} {\mu_i(z_{i,j}\mid z_{i,<j})}, \qquad m_{i,j}=1.

Here, ii indexes trajectories; jj indexes a policy-generated token; zi,<jz_{i,<j} is that token's recorded context; mi,j=1m_{i,j}=1 identifies an included action token; μi\mu_i is the recorded behavior policy; πθ\pi_\theta is the current learner; and ρi,j\rho_{i,j} reweights the old sample under the current policy. Clipping ratios can limit variance but cannot repair missing support or arbitrarily stale trajectories. Products of ratios across many tokens and turns can become extreme, so record policy lag, ratio distributions, and clipping fractions rather than labeling a run merely “asynchronous.”

Figure 37.2. Resource placement and update synchronization are independent design axes. The placement view compares a shared GPU pool with separate rollout and learning pools. The schedule view compares a synchronous barrier with asynchronous overlap and measured policy lag. Toggle between the two axes; block widths are schematic, not utilization measurements.

Verify learning, environments, and systems together

A useful evaluation sheet keeps three layers separate:

Layer Minimum measurements
Policy behavior Task success by horizon and task family; tool-call validity; recovery after a failed action; steps, tokens, and cost per success; safety violation rate; proxy reward beside held-out verifier results.
Environment quality Environment reset failure rate; deterministic replay rate; parser, tool, and verifier failures; observation truncation; leakage probes; per-stage p50, p95, and p99 latency.
Training system Rollout tokens per second, environment steps per second, trajectories per hour, trainer idle fraction, GPU memory, weight transfer time, policy lag, ratio clipping, and discarded-rollout rate.

Compare systems on matched hardware and a matched workload distribution. A throughput improvement obtained by shortening trajectories, dropping slow tasks, or changing the verifier is not a systems-only improvement. Report learning curves against environment interactions, generated action tokens, accelerator time, and wall-clock time; each denominator answers a different question.

Before release, replay held-out tasks with the production parser and tool permissions, perturb tool latency and failures, test budget exhaustion, and inspect high-reward failures manually. Training has succeeded only if the policy improves under an independent evaluation contract without buying the score through excess cost or unsafe action.

The result of this pipeline is a policy that has learned from interaction. The next chapter asks a different question: which runtime loop should expose that policy to planning, memory, tools, and the outside world?

Further reading

  • Nakano et al., “WebGPT: Browser-Assisted Question-Answering with Human Feedback” (Historical browsing-agent study; the strongest reported system used behavior cloning, a learned reward model, and rejection sampling), 2021. arXiv:2112.09332
    WebGPT trains a language model to browse with demonstrations and human feedback; its strongest reported configuration used rejection sampling rather than an online policy-gradient update.
  • Jin et al., “Search-R1: Training LLMs to Reason and Leverage Search Engines with Reinforcement Learning” (Multi-turn search RL with outcome rewards and retrieved-token masking), 2025. arXiv:2503.09516
    Search-R1 trains language models to issue multiple search queries during reasoning and masks retrieved passages out of the policy loss while keeping them in context.
  • Qian et al., “ToolRL: Reward Is All Tool Learning Needs” (Study of reward type, scale, granularity, and timing for tool selection and use), 2025. arXiv:2504.13958
    ToolRL shows experimentally that tool-use training depends on reward design across action validity, tool selection, parameters, scale, granularity, and timing.
  • Pan et al., “Training Software Engineering Agents and Verifiers with SWE-Gym” (Executable environment with 2,438 real Python repository tasks), 2025. arXiv:2412.21139
    SWE-Gym packages 2,438 real repository tasks with reproducible runtimes and tests, supporting supervised agent training and verifier-guided inference-time scaling.
  • Feng et al., “Group-in-Group Policy Optimization for LLM Agent Training” (Adds step-level anchor-state groups to trajectory-level group-relative advantages), 2025. arXiv:2505.10978
    GiGPO constructs local comparison groups when equivalent environment states recur, supplying step-level relative advantages without another critic or additional rollouts.
  • Sheng et al., “HybridFlow: A Flexible and Efficient RLHF Framework” (The open implementation is veRL; its 3D-HybridEngine reshards the actor between generation and training layouts), 2025. arXiv:2409.19256
    HybridFlow models distributed RLHF as a dataflow and introduces a hybrid controller and actor resharding between generation and training layouts.
  • Fu et al., “AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoning” (Fully asynchronous rollout and learning with staleness-aware training), 2025. arXiv:2505.24298
    AReaL continuously generates rollouts while the learner updates independently, controlling policy staleness and reporting up to 2.77x speedup on evaluated math and code workloads.
  • Yang et al., “SWE-smith: Scaling Data for Software Engineering Agents” (Environment-first task synthesis; 50k instances from 128 repositories), 2025. arXiv:2504.21798
    SWE-smith installs a Python repository, perturbs the code until an existing test fails, and treats the broken state as a task with that test as its verifier, producing 50,000 instances from 128 repositories.
  • Jain et al., “R2E-Gym: Procedural Environments and Hybrid Verifiers for Scaling Open-Weights SWE Agents” (Procedural environment curation; execution and execution-free verifiers combined), 2025. arXiv:2504.07164
    R2E-Gym procedurally generates more than 8,700 software-engineering tasks from commits using test generation and back-translation, and combines execution-based with execution-free verifiers for test-time selection.
  • Fang et al., “Towards General Agentic Intelligence via Environment Scaling” (AgentScaler; automatically constructed simulated environments, two-phase training), 2025. arXiv:2509.13311
    AgentScaler automatically constructs heterogeneous fully simulated environments and trains in two phases, first for general function-calling capability and then for domain specialization, reporting gains on tau-bench, tau2-Bench, and ACEBench.
  • Gandhi et al., “Endless Terminals: Scaling RL Environments for Terminal Agents” (3,255 synthesized terminal tasks; plain PPO), 2026. arXiv:2601.16443
    An automated pipeline synthesizes 3,255 terminal tasks covering file operations, database work, and scripting, after which plain PPO raises Qwen2.5-7B from 10.7 to 53.3 percent on the authors' development set with gains that transfer to human-curated terminal benchmarks.
  • Wang et al., “Agent World Model: Infinity Synthetic Environments for Agentic Reinforcement Learning” (1,000 code-driven, database-backed environments), 2026. arXiv:2602.10090
    Agent World Model generates 1,000 code-driven environments whose state lives in a database rather than in a simulating language model, and reports that training only in those synthetic environments generalizes to three held-out benchmarks.
  • Huang et al., “Environment Scaling for Interactive Agentic Experience Collection: A Survey” (Survey; generation, execution, and feedback stages), 2025. arXiv:2511.09586
    The survey organizes environment-scaling work into a generation, execution, and feedback loop, and treats environments as the producers of the experience data that agent training consumes.

Comments

Log in to comment