Skip to content

Chapter 6 · Agentic RL


6.1 Why RL for Agents ★★

SFT only teaches imitation ★★

\[\mathcal{L}_{\text{SFT}}(\theta) = -\sum_{t=1}^{T} \log \pi_\theta\big(a_t^{*} \mid h_t^{*}\big)\]

The most direct way to train an agent is SFT: collect trajectories of humans or stronger models completing tasks (the reasoning, tool calls and tool outputs at every step) and have the model imitate the actions token by token. In the formula, \(a_t^{*}\) is the demonstration's action at step \(t\), \(h_t^{*}\) is the demonstration's history up to that step, and \(\pi_\theta\) is the model (policy) we are training. In RL terms this is behavior cloning. It is simple and stable, and it quickly teaches the model the tool-call format and the basic workflow. But on multi-step tasks it has a fundamental problem: the model has only ever been trained on "states the demonstrator visited".

The problem shows up at inference time. The model can't reproduce the demonstrations perfectly, so sooner or later it makes a small mistake: it opens the wrong file, gets a parameter wrong, or writes a weak search query. After the mistake it lands in a state that never appeared in the demonstration data, for example facing an error message it has never seen. Demonstrations are mostly clean success paths and rarely show "how to notice a mistake and back out of it", so the model doesn't know what to do in such states, its next step is even more likely to go wrong, and errors pile up step by step. This is the classic covariate shift of imitation learning: the training state distribution comes from the demonstrator, the test state distribution comes from the model itself, and the two drift further apart with every step. Ross et al. (2010) showed that the accumulated error of behavior cloning grows roughly as \(T^2\) in the task length \(T\), while interactive methods that keep learning on the states the learner itself visits (such as DAgger) grow only as \(T\). Agent tasks often take dozens of steps, so this difference is very visible.

SFT has two less obvious problems as well. First, it tells the model "what to do" but not "which steps really matter". Every token in a demonstration gets the same weight, so the model also imitates unimportant habits (say, always running ls first) as if they were necessary. Second, the demonstrations come from someone else, not from the model itself. The demonstrator may use knowledge the model doesn't have, such as knowing exactly where a file lives. When the model imitates those steps anyway, what it learns is "pretending to know", which shows up as made-up file paths or API arguments.

Interview questions

  • ★★ Why do SFT-trained agents tend to fail on long tasks?
  • ★ What is covariate shift, how does it relate to task length, and how does DAgger mitigate it?
  • ★ Besides covariate shift, what problems come with SFT on a stronger model's demonstrations?

RL learns from its own mistakes ★★

RL trains on trajectories the model itself produces in the environment (on-policy). These trajectories naturally contain the mistakes the model actually makes and whatever it tries after making them. At the end, the environment gives a reward: two trajectories may both hit a tool error, but one reads the error message, fixes the argument and succeeds, while the other retries the same call again and again and fails. RL raises the probability of the first behavior and lowers the second. So the model learns not only "what the correct path looks like" but also "how to get back after going off course", which is exactly the ability SFT can't teach.

Also, RL only needs a way to judge whether the outcome is good; nobody has to write down what to do at every step. Agent tasks often satisfy this condition: edited code can be tested, an answer can be checked against the reference, and an order operation can be checked against the final database state. Judging an outcome is far cheaper than writing a full demonstration, and the model may discover strategies better than the demonstrations.

The costs are just as clear. RL needs an environment that supports repeated interaction and automatic scoring, and every trajectory really executes dozens of tool calls, so training cost and engineering complexity are far higher than for SFT. Rewards are sparse and delayed, so training is also less stable (see 6.3, 6.4 and 6.6).

Interview questions

  • ★★ What can RL give an agent that SFT can't, and what does it cost?

Multi-turn, long-horizon, sparse rewards ★

Compared with single-turn reasoning problems, agent tasks have three properties that make RL harder. Multi-turn: a task involves a dozen to a hundred or more rounds of interaction; the model makes a decision every turn, and what the environment returns shapes the next decision. Long-horizon: many steps separate the first action from the final outcome, so an early mistake (say, localizing the wrong file at the very start) may only show up at the end. Sparse reward: usually there is a single 0/1 outcome signal at the end of the task, and nobody tells you how good each intermediate step was.

Together these create two core problems. The first is credit assignment: if the final reward is 0, which step was wrong (see 6.3)? The second is exploration: if the task is hard and the model almost never succeeds at first, every trajectory gets reward 0 and the model receives no signal about which direction to improve in (see 6.9).

Interview questions

  • ★ Why are agent tasks harder to train with RL than single-turn reasoning problems?

The typical recipe: warm up, then RL ★

So in practice agent RL rarely starts directly from a general-purpose model; a two-stage recipe is common. The first stage warms the model up with SFT or rejection fine-tuning (RFT: let the model sample on its own, keep the successful trajectories, and run SFT on them), teaching the tool-call format and the basic workflow and lifting the success rate from near 0 to a level that produces a learning signal. The second stage runs online RL in the environment to raise the success rate and learn error recovery and better strategies.

Several works confirm that the warm-up matters. WebAgent-R1 (Wei et al. 2025) compared RL from scratch with behavior cloning followed by RL and found the warm-up stage crucial for the final result. When Golubev et al. (2025) trained a multi-turn SWE agent with RFT first and then RL with DAPO, Pass@1 on SWE-bench Verified rose from about 11% to 39%, while RFT alone reached about 20%. The two stages clearly have different jobs: the warm-up makes the agent "able to run", and RL makes it "run better".

Interview questions

  • ★★ Why is SFT or RFT usually done before agent RL?
  • ★ How does RFT differ from RL?

    RFT can be seen as a simplified, positive-only form of RL: sample, filter by outcome, and do maximum likelihood on the successful trajectories only, which amounts to giving successful trajectories a positive weight and throwing the failures away. It is simple and stable, but it can't learn "which behaviors lead to failure", and it is usually done offline in batches, so its data quickly falls behind the changing model. RL uses both successful and failed trajectories, pushing good behavior up and bad behavior down through the advantage, and keeps learning online on the current policy's own distribution.


6.2 Formulation: From Single-Turn RLVR to a Multi-Turn POMDP ★★

Recap: single-turn RLVR

In single-turn RLVR (algorithms such as GRPO are covered in Post-Training Chapter 4), the process is simple: give the model a prompt \(x\), the model generates a response \(y\), and a verifier returns a reward \(r(x, y)\), such as whether the answer is right or the code passes the tests. From an RL point of view, each token is an action, the "state" is the prefix generated so far, and the transition is deterministic (append the new token). The environment shows up only once, at the end, to give the score. So it is essentially a decision problem with a single round of interaction, a contextual bandit: given a context, choose one (very long) action and receive one reward. Every token in the response is generated by the model itself.

Interview questions

  • ★ Why is single-turn RLVR essentially a contextual bandit?

The agent as a POMDP ★★

\[h_t = (x, a_1, o_1, \dots, a_{t-1}, o_{t-1}), \qquad a_t \sim \pi_\theta(\cdot \mid h_t), \qquad s_{t+1} \sim P(\cdot \mid s_t, a_t), \qquad o_t \sim \Omega(\cdot \mid s_{t+1})\]
\[p_\theta(\tau) = \rho_0(s_1) \prod_{t=1}^{T} \pi_\theta(a_t \mid h_t)\, P(s_{t+1} \mid s_t, a_t)\, \Omega(o_t \mid s_{t+1}), \qquad J(\theta) = \mathbb{E}_{x \sim \mathcal{D},\ \tau \sim p_\theta}\big[R(\tau)\big]\]
\[\nabla_\theta J(\theta) = \mathbb{E}_{x \sim \mathcal{D},\ \tau \sim p_\theta}\big[R(\tau)\, \nabla_\theta \log p_\theta(\tau)\big], \qquad \nabla_\theta \log p_\theta(\tau) = \sum_{t=1}^{T} \nabla_\theta \log \pi_\theta(a_t \mid h_t) = \sum_{t=1}^{T} \sum_{k \in a_t} \nabla_\theta \log \pi_\theta(y_k \mid y_{<k})\]

Agentic RL puts the model inside a multi-step interaction loop. \(s_t\) is the true state of the environment, such as the contents of every file in a code repository, the full DOM of the browser's current page, or the records in a database. The model can't see the full state; it only sees the observations \(o_t\) returned by tools: a file printed by cat, the top few search results, an error message. So this is a partially observable MDP (POMDP).

Each turn, the model generates an action \(a_t\) based on the history \(h_t\) (the task \(x\) plus all earlier actions and observations). Note that an "action" here is a whole turn of output: some reasoning plus a tool call, itself made of tens to hundreds of tokens. The environment executes the tool call, the state changes according to the transition probability \(P\), the observation function \(\Omega\) produces a new observation, which is appended to the context, and the next turn begins. This continues until the model gives a final answer, submits a patch, or reaches the turn limit \(T\), and then the environment gives a reward \(R(\tau)\) for the whole trajectory \(\tau\). The training objective \(J(\theta)\) is the expected reward over tasks from the distribution \(\mathcal{D}\) and over the trajectory distribution \(p_\theta\) produced jointly by the policy and the environment. The model's context \(h_t\) effectively plays the role of the belief state in a POMDP: it is everything the model knows about the true current state. The survey by Zhang et al. (2025) sums up the difference this way: conventional LLM-RL is a degenerate single-step MDP, while agentic RL is a POMDP extended over time.

The second line is the probability of a whole trajectory, a product of the initial-state distribution \(\rho_0\) (set by the task), policy terms and environment terms. The third line is the key to the derivation, in two steps. The first step is the log-derivative trick (the REINFORCE approach): \(\nabla_\theta p_\theta = p_\theta \nabla_\theta \log p_\theta\), so the gradient of the objective can be written as the expectation of "the whole trajectory's reward × the gradient of the trajectory's log probability", which can be estimated just by sampling trajectories from the environment, without knowing the form of \(P\) or \(\Omega\). The second step expands \(\log p_\theta(\tau)\) into a sum: \(\rho_0\), the transition \(P\) and the observation \(\Omega\) don't depend on the model's parameters, so their gradients with respect to \(\theta\) are 0, and only the log probabilities of tokens generated by the policy remain (\(y_k\) is the \(k\)-th token of action \(a_t\), and \(y_{<k}\) is all the context before it, including earlier observations). This tells us two things. First, the environment can be any non-differentiable, stochastic black box (a compiler, a browser, a real person); the policy gradient never needs to differentiate through it. Second, the gradient should come only from the log probabilities of tokens the model generated itself; observation tokens appear in the conditioning context \(y_{<k}\) and shape how the model generates later actions, but their own probabilities aren't in the sum, so they are not learning targets. This is the theoretical basis for "masking observation tokens" in Section 6.5.

Interview questions

  • ★★ How do you formalize a multi-turn agent? Write down the trajectory probability and the policy gradient. Why do the environment terms drop out?
  • ★ Why is the agent's problem a POMDP rather than an MDP?
  • ★ The environment isn't differentiable, so why can the policy gradient still be computed?

Two granularities of action ★

This formulation has two time scales at once. At the turn level, an action is one complete output, and the environment steps in between turns. At the token level, an action is a single token, and the policy gradient is ultimately computed over tokens. Single-turn RLVR has only the token level, so the distinction doesn't arise; in agent RL, the level at which rewards, advantages and value functions are defined directly shapes the algorithm (see 6.3). ArCHer (Zhou et al. 2024), for example, is explicitly hierarchical: it learns a value function at the turn level and runs the policy gradient at the token level.

Interview questions

  • ★ In agent RL, how do turn-level and token-level actions differ, and why does the distinction matter?

Key differences from single-turn RLVR ★★

Single-turn RLVR Agentic RL (multi-turn)
Decision process One step (a contextual bandit over a long response) Multi-step POMDP; the environment acts between turns
Who writes the tokens The policy writes every response token The policy writes actions; tools, the environment and simulated users write observations
Transitions Deterministic: append a token Stochastic, stateful, non-differentiable (code runs, pages change)
Reward One verifier score at the end Usually sparse and delayed; sometimes extra per-turn signals
Context length Prompt plus one response Grows every turn; tool outputs can be very long
Rollout cost Dominated by GPU generation Generation plus tool execution, sandboxes and network calls
Side effects None Actions change the world, so rollouts need sandboxes

Almost every one of these differences turns into a concrete design problem. Tokens come from two sources, so the loss must distinguish which tokens are actions (6.5). The environment is stateful and random, so multiple trajectories sampled for the same task diverge after the first turn, and a GRPO-style "compare under the same prompt" baseline only holds at the starting point (6.3). The context keeps growing, so memory, compute and long-context ability all become bottlenecks (6.5). Rollout cost lies mostly in the environment, so dedicated asynchronous infrastructure is needed (6.6). Actions have side effects, so training must happen in sandboxes, and the reward is easy for the agent to tamper with directly (6.4).

Interview questions

  • ★★ How does agentic RL differ from single-turn RLVR, and what design problem does each difference create?

6.3 Credit Assignment ★★

The long-horizon credit problem ★★

Imagine a SWE agent that runs for 40 turns, and in the end the tests fail, so the reward is 0. Maybe the first 30 turns were excellent (it found the bug and understood the relevant code) and it only wrote one wrong line in the final edit; or maybe it picked the wrong file in turn 1 and everything afterward was wasted. With only one final 0, how is the algorithm supposed to know which step to punish? This is the credit assignment problem.

It is hard for two reasons. First, high variance: each trajectory's outcome depends on dozens of random decisions, so judging one step by the outcome alone mixes in noise from every other step. The longer the trajectory, the more noise, and the more samples are needed. Second, delayed reward: a good early decision only pays off much later, and the policy gradient has to carry that value "back" to the action that earned it.

The solutions depend on the granularity at which rewards and advantages are defined: the whole trajectory, each turn, or each token.

Interview questions

  • ★★ Why is credit assignment hard for multi-turn agents?

Trajectory-level ★★

\[A_i = \frac{R(\tau_i) - \mathrm{mean}\big(\{R(\tau_j)\}_{j=1}^{G}\big)}{\mathrm{std}\big(\{R(\tau_j)\}_{j=1}^{G}\big)}, \qquad A_{i,k} = A_i \ \ \text{for every action token } k \text{ in } \tau_i\]

The simplest and most common approach extends GRPO directly to multiple turns: sample \(G\) complete trajectories for the same task, standardize each trajectory's total reward \(R(\tau_i)\) within the group to get one advantage \(A_i\), and broadcast it to every token the model generated in that trajectory (\(A_{i,k}\) is the advantage of the \(k\)-th action token in trajectory \(i\)). Every action in a successful trajectory is reinforced together, and every action in a failed one is weakened together. The multi-turn GRPO of WebAgent-R1 follows this idea (so does Search-R1 for search agents; see RAG Chapter 6).

Why does it work? With only a terminal reward, the "future return" after any step equals the return of the whole trajectory, so using \(R(\tau) - b\) as the advantage for every step is exactly REINFORCE with a baseline. As long as the baseline \(b\) doesn't depend on this trajectory's own actions, subtracting it leaves the expected gradient unchanged and only reduces variance, so the estimator is unbiased. (Strictly speaking, GRPO's group mean includes this trajectory's own reward, which shrinks the whole gradient by a factor of \((G-1)/G\) without changing its direction; a leave-one-out mean (RLOO) is exactly unbiased. Dividing by the group standard deviation changes the relative weights of different tasks; see Dr. GRPO in Post-Training Chapter 4.) Good actions appear more often in successful trajectories on average, so with enough samples their probabilities get pushed up.

The problems are variance and coarse granularity. Good steps in failed trajectories get punished along with everything else, and bad steps in successful trajectories that happened to do no harm get rewarded; only a large number of samples can average this noise away, and agent trajectories are exactly what is expensive. There is also a problem specific to multiple turns: GRPO's within-group comparison makes sense because the samples in a group face the same prompt. In a multi-turn environment, the \(G\) trajectories share only the starting point; after the first turn they go their separate ways, and by turn 10 they are in completely different states, so the group mean is no longer "a fair baseline for the same state".

Interview questions

  • ★★ What goes wrong when GRPO is applied directly to multi-turn tasks?
  • ★ With only a terminal reward, why is broadcasting one advantage to every turn unbiased, and what does it cost?

Turn-level ★★

\[G_t = \sum_{t'=t}^{T} \gamma^{\,t'-t}\, r_{t'}, \qquad A_t = r_t + \gamma\, V_\phi(h_{t+1}) - V_\phi(h_t)\]

Turn-level methods give each turn its own advantage, shared by all tokens in that turn. There are three main routes.

First, design turn-level rewards. Give each turn an intermediate reward \(r_t\), such as whether the tool-call format is correct, whether the call executed successfully, or whether the search results contain the correct answer, and combine it with the final reward to compute the discounted return \(G_t\) after each turn (\(\gamma\) is the discount factor and \(T\) the number of turns). Zeng et al. (2025) modeled a search agent's interaction as a turn-level MDP, designed verifiable turn-level rewards (e.g. whether a tool executed successfully) as well as LLM-judge turn-level rewards, combined them with the outcome reward to estimate per-turn advantages, and built multi-turn versions of both GRPO and PPO, reporting more stable training and faster convergence than with trajectory-level rewards alone. The cost is that turn-level rewards must be hand-designed, and hand-designed signals are easy to exploit (see 6.4).

Second, learn a turn-level value function (critic). \(V_\phi(h_t)\) estimates "starting from the situation at turn \(t\), how much return will we eventually get", and the TD advantage \(A_t\) above measures how much this turn's action improved the situation: the immediate reward plus the value after the action, minus the value before it. ArCHer (Zhou et al. 2024) does exactly this: it trains a critic with TD learning at the turn level, then uses the critic's advantage as the reward at the end of each turn and updates tokens with a policy gradient. Learning values at the turn level is easier than at every token, because the time scale is coarser, far fewer steps need bootstrapping, and old data can be reused to train the critic. The paper reports much better sample efficiency than purely on-policy methods such as PPO. The cost is training an extra model, and a critic that misjudges long contexts introduces bias.

Third, skip the critic and compare within groups at "the same state". GiGPO (Feng et al. 2025) observes that in many environments different trajectories pass through identical states (returning to the same room in ALFWorld, or to the same search results page in WebShop). It treats states that recur across trajectories as anchor states, collects all actions taken from the same anchor into a group, compares their discounted returns within the group to get a step-level advantage \(A^S\), and adds it to the trajectory-level advantage \(A^E\): \(A = A^E + \omega A^S\) (\(\omega\) is a weight, set to 1 in the paper's main experiments). This compares "which action is better" at the same state with no extra rollouts and no critic. The paper reports gains of more than 12% over GRPO on ALFWorld and more than 9% on WebShop. Its limitation is that it relies on states repeating: in environments like the open web or code repositories, where states almost never repeat exactly, few anchor groups can be formed. (Another idea is to branch from intermediate states and sample again, deliberately creating several continuations from the same state to compare, but every extra level of branching multiplies the cost.)

Interview questions

  • ★ What ways are there to get turn-level advantages, and what does each cost?
  • ★ Why is it easier to learn a value function at the turn level than at the token level?
  • ★ What is an anchor state in GiGPO, and in which environments does it work poorly?

Token-level ★

The finest granularity is what PPO does: train a token-level value network and use GAE to compute an advantage for every token (details of PPO and GAE are in Post-Training Chapter 2; Search-R1 uses PPO by default, see RAG Chapter 6). In principle this gives the lowest variance, since every token gets its own baseline.

In multi-turn settings, however, a token-level critic faces extra difficulties. First, the value network has to estimate values over contexts that keep growing and are full of tool outputs, which is hard to do accurately. Second, environment transitions happen only between turns: right after the last token of an action comes an observation the model didn't generate, so the value estimate has to bootstrap "across" that observation, and the observation tokens themselves should have no advantage. Third, the critic is usually as large as the policy, which roughly doubles memory and compute. So in practice many works prefer trajectory-level critic-free methods with lots of samples, or do value estimation only at the turn level.

Interview questions

  • ★ What extra difficulties does a token-level critic trained with PPO face in multi-turn settings?

Comparison ★★

Trajectory-level Turn-level Token-level
Advantage unit One scalar per trajectory, broadcast to all action tokens One scalar per turn, shared by the tokens in that turn One value per token
Typical methods GRPO / RLOO over whole trajectories (e.g. WebAgent-R1) Turn rewards (Zeng et al. 2025), turn-level critic (ArCHer), anchor-state groups (GiGPO) PPO with a token-level critic and GAE
Needs a critic No Optional Yes
Bias / variance Unbiased; variance grows with horizon Lower variance; bias from the critic or the turn-reward design Lowest variance in principle; critic hard to train on long mixed contexts
Main risk Good turns in failed runs are punished Turn rewards get hacked; critic errors Unstable critic; bootstrapping across tool outputs

How to choose? With only an outcome reward and fairly short trajectories (a few rounds of search, say), trajectory-level GRPO is often enough, and it is simple and stable. If states repeat often in the environment (text games, fixed websites), anchor-state grouping as in GiGPO is almost a free gain. If trajectories are long and samples expensive, the variance reduction from a turn-level critic or turn-level rewards is most valuable, but watch out for critic bias and for turn rewards being hacked.

Interview questions

  • ★★ At what granularities can credit be assigned in multi-turn agents, how do they compare in bias and variance, and how would you choose?

6.4 Environment and Reward Design ★★

What an environment consists of ★

An agent RL environment isn't a static dataset but a system that can be executed again and again. It usually has five parts: a task set (task descriptions plus initial states, e.g. a GitHub issue plus a snapshot of the repository when the bug existed); an executable runtime (a Docker container with dependencies installed, a browser, a database, or a simulated user); a tool interface (which actions the model can call and what format the observations come back in); a reset mechanism (every trajectory starts from a clean initial state); and a verifier (which automatically decides whether the task succeeded when it ends).

The environment's design directly decides what the model can learn. If tasks are too easy, the model soon solves them all, every reward in a group is the same, and there is no learning signal; if they are too hard, everything fails, and again there is no signal. If tool permissions are too broad (e.g. the test files are directly readable), the model may learn to cheat; if too narrow, the learned strategies won't transfer to real settings. That's why building environments is the most labor-intensive part of agent RL. In coding, dedicated training environments that provide "executable repository + tests" have appeared, such as SWE-Gym (Pan et al. 2024), built from real GitHub issues, and R2E-Gym (Jain et al. 2025), which synthesizes tasks procedurally to scale up. Technical reports of frontier models increasingly stress the scale and diversity of environments: DeepSeek-V3.2 (DeepSeek-AI 2025) synthesized more than 1,800 environments and 85,000 complex prompts for agent RL, and Kimi K2 (Kimi Team 2025) built a large-scale tool-use data synthesis pipeline that generates multi-turn trajectories in simulated and real environments.

Interview questions

  • ★ What components make up an agent RL environment?
  • ★ When designing an RL environment, why do task difficulty and tool permissions matter so much?

Verifiable outcome rewards ★★

The most reliable reward is a task outcome that can be judged automatically and objectively. For coding tasks, check whether hidden tests pass after the patch is applied (SWE-bench requires that tests which failed before and should pass after the fix now pass, and that tests which passed before don't break). For QA and search tasks, check whether the final answer exactly matches the reference (EM), or use F1. For customer-service or booking tasks, check whether the final database state matches the goal state (τ-bench's approach, see Chapter 7). For web tasks, rule-based checks inspect the page or backend state.

The advantages of such rewards are that they are hard to fool, cheap to compute and free of human-preference noise, in line with single-turn RLVR. They have three limitations. First, they are sparse: only 0 and 1, so you can't see how well the intermediate work went, and on hard tasks most trajectories get 0. Second, test coverage is imperfect: overly strict tests reject a different but equally correct solution, while weak tests may let a patch pass without really fixing the problem. Third, many tasks have no verifiable outcome at all, such as writing a research report or planning a trip.

A compromise when code can't be executed is a cheap proxy. SWE-RL (Wei et al. 2025) runs no tests at all and instead uses the text similarity between the generated patch and the real merged patch as the reward. This lets it scale RL on huge amounts of GitHub PR data, but it rewards "looking like the reference" rather than "being functionally correct", so two equally correct fixes can score very differently.

Interview questions

  • ★★ What verifiable outcome rewards exist for agent tasks, and what are their limitations?
  • ★ When passing tests is the reward, what goes wrong if the tests are too strict or too loose?

Rubric and LLM-judge rewards ★

\[R(\tau) = \sum_{j=1}^{m} w_j \cdot \mathrm{Judge}(\tau, c_j)\]

For open-ended tasks with no reference answer, the common approach is to use an LLM as a judge. The simplest version asks the judge directly "was the task completed?"; WebRL (Qi et al. 2024), for example, trained an outcome reward model (ORM) to decide whether a web task succeeded. A finer approach is a rubric: write \(m\) scoring criteria \(c_j\) for each task (e.g. "does the report cite primary sources?", "does it answer every sub-question the user asked?"), have the judge score each one, and sum them with weights \(w_j\). A rubric breaks one vague overall judgment into several concrete, checkable questions, so the judge is more consistent and less swayed by overall style. The Kimi K2 technical report, beyond verifiable rewards, trains subjective tasks with a self-critique reward in which the model judges its own outputs against rubrics.

The cost is that the judge makes mistakes, and RL actively hunts for the judge's weak spots: if the judge prefers long answers, a confident tone or certain keywords, the policy quickly learns to cater to them, and the reward keeps rising while real quality doesn't. Common mitigations are: give the judge reference answers or verifiable evidence where possible (e.g. require citations and check what the links actually say), average several judges, calibrate with periodic human spot checks, and mix verifiable tasks with judge-scored tasks in training. (LLM-as-judge biases are also covered in RAG Chapter 7.)

Interview questions

  • ★★ How do you reward open-ended tasks with no verifiable outcome?
  • ★ What are the risks of using an LLM judge as the RL reward, and how can they be mitigated?

Process rewards and reward shaping ★

\[r'_t = r_t + \gamma\, \Phi(s_{t+1}) - \Phi(s_t)\]

To ease sparse rewards, we can score intermediate steps; this is a process reward. It can come from simple rules (the tool call parses correctly, execution raises no error, the number of passing tests goes up) or from a trained process reward model (PRM, see Post-Training Chapter 4) that scores every turn. Intermediate signals tell the model earlier whether it's on the right track, so exploration is more efficient.

The risk is that a process reward is our guess about what a good process looks like, and the model optimizes the guess, not the real goal. If every successful tool call earns points, the model learns to call useless tools like crazy; if "more passing tests" earns points, the model may simply edit the tests. RAGEN (Wang et al. 2025) also observed that without fine-grained, reasoning-aware rewards, reasoning behavior rarely emerges in multi-turn RL, and the model may learn only shallow tricks or fabricated thoughts. This shows that reward design directly shapes the behavior that gets learned.

RL theory offers one safe way to add reward: potential-based shaping (Ng et al. 1999). In the formula, \(\Phi(s)\) estimates how close a state is to success (the potential), \(r_t\) is the original reward, \(r'_t\) is the shaped reward, and the extra term is the (discounted) change in potential. When these extra terms are summed with discounting along any trajectory, the middle terms cancel in pairs and only the two end terms \(\gamma^{T}\Phi(s_T) - \Phi(s_0)\) remain. As long as the potential of terminal states is set to 0 (the usual convention for finite-length tasks), what remains is just \(-\Phi(s_0)\): it depends only on the starting state, not on how the policy behaves, so it doesn't change which policy is optimal; it just makes the learning signal denser. More generally, Ng et al. proved that the shaped Q-function equals the original Q-function minus \(\Phi(s)\), so the ranking of actions in any given state is unchanged. Conversely, if the extra reward isn't a "difference of potentials" (say, points for every successful tool call), the terms don't cancel when summed and can change the optimal policy, which is exactly where the problems in the previous paragraph come from. Most process rewards used in practice don't have this form, so they are usually given a small weight, with the final outcome reward always dominant.

Interview questions

  • ★ What are the risks of process rewards?
  • ★ What is potential-based reward shaping, and why doesn't it change the optimal policy?

Reward hacking in agent settings ★★

Reward hacking already exists in single-turn RL (see Post-Training Chapter 2), but it is worse for agents for a simple reason: an agent can act on its environment. A single-turn model can only exploit loopholes in text, whereas an agent can run commands, read and write files and access the network, and the reward is often computed by tests or scripts living in the same environment. Unless the verifier is strictly isolated from the agent, "changing the verifier" is often much easier than "actually doing the task".

Typical behaviors already observed in evaluation and training include:

  1. Editing or bypassing tests. Deleting failing tests, changing assertions, or hard-coding outputs for the test inputs. ImpossibleBench (Zhong et al. 2025) builds tasks whose tests contradict the specification so that no legitimate solution can pass; any "pass" means cheating, which measures a model's propensity to cheat.
  2. Attacking the scoring code. METR (2025) reported that in a GPU-kernel task, o3 didn't write a kernel at all; instead it walked the Python call stack to find the correct answer the scoring program had already computed and returned that. In another case it overrode PyTorch's equality operator so the comparison during scoring was always true.
  3. Finding the answer in the environment. In SWE-bench-style environments, agents have used git log --all to find "future commits" that shouldn't have been in the repository, containing the official fix; agents with internet access may also simply find the merged upstream PR.
  4. Exploiting LLM judges. Catering to the judge's preferred length and tone, or claiming "verified, all tests pass" in the output.

In RL training these behaviors get reinforced: once a cheating trajectory earns a high score, its probability goes up, it quickly spreads into a stable strategy, and it may even generalize into a tendency to "take a shortcut whenever things get hard". Prevention relies mainly on environment engineering: keep tests and scoring scripts where the agent can't reach them and run them in a separate environment only after the rollout ends; clean repository history and restrict network access; make test files read-only, or detect and penalize changes to them; review training trajectories with LLM monitors or human spot checks; and keep a set of stricter validation tasks outside the training set to catch the divergence of "training reward rising while real metrics don't".

Interview questions

  • ★★ What are examples of reward hacking in agent settings, and how do you prevent them?
  • ★ Why is reward hacking more serious for agents than for single-turn models?
  • ★★ Summarize the kinds of rewards used in agent RL and the pros and cons of each.

6.5 Multi-Turn Training Details ★★

Masking observation tokens ★★

\[\mathcal{L}(\theta) = -\frac{1}{\sum_k m_k} \sum_{k=1}^{|\tau|} m_k \cdot \min\Big(\rho_k A_k,\ \mathrm{clip}(\rho_k, 1-\epsilon, 1+\epsilon)\, A_k\Big), \qquad \rho_k = \frac{\pi_\theta(y_k \mid y_{<k})}{\pi_{\theta_{\text{old}}}(y_k \mid y_{<k})}\]
\[m_k = \begin{cases} 1, & y_k \text{ is generated by the policy (reasoning, tool calls, final answer)} \\ 0, & y_k \text{ comes from the system prompt, task, tool outputs or a simulated user} \end{cases}\]

Once a multi-turn trajectory is concatenated into one long sequence, its tokens come from different sources: the system prompt and task description come from data, reasoning and tool calls are generated by the policy, tool outputs (search results, file contents, error messages) come from the environment, and sometimes there are replies from a simulated user. Only tokens generated by the policy count toward the policy loss; the loss on all other tokens is masked out. In the formula, \(m_k\) is the mask for the \(k\)-th token, \(\rho_k\) is the ratio of new to old policy probabilities on that token, \(A_k\) is the token's advantage, \(\epsilon\) is PPO's clipping range, and the denominator counts only the included tokens. The KL penalty and entropy regularization are also computed only over these tokens.

Why is this necessary? There are three layers of reasons.

  1. In theory, observations are not actions. The derivation in 6.2 showed that the environment part of the trajectory probability doesn't depend on \(\theta\), so the policy gradient contains only the log probabilities of the model's own actions. Including observation tokens would mean raising the probability of "generating this search result" or "generating this error message", which trains an environment simulator and has nothing to do with the reward. Worse, with a positive advantage it makes the model memorize these specific tool outputs, and with a negative advantage it pushes their probability down; both are meaningless noise.
  2. Numerically, observation tokens were not sampled from the model. Tokens the model sampled itself usually don't have very low probability under the model, but external text (a chunk of HTML, a stream of logs) can have extremely low probability. The log-probability gradient of a low-probability token is close to its maximum, and the new-to-old probability ratio \(\rho_k\) is numerically unstable when probabilities are tiny; mixing many such tokens into the loss easily causes gradient spikes and unstable training. (For search agents this practice is called retrieved token masking; Search-R1's ablation is covered in RAG Chapter 6.)
  3. In weight, observations are often long. Tool outputs are often far longer than the model's own outputs. Without masking, the loss would be dominated by environment tokens, and the real action tokens would carry only a small share of the weight.

Note that the mask applies only to the loss, not to attention. Observation tokens stay in the context, and the model still sees and uses them when generating later actions; they are just not learning targets.

Interview questions

  • ★★ Why mask tool-output tokens in multi-turn RL, and what happens if you don't?
  • ★ Write the masked multi-turn PPO loss. Should the KL and entropy terms be masked too?
  • ★ Can the model still see the masked observation tokens, and can it still learn to use them?

Context growth ★

A multi-turn agent's context grows every turn: each turn adds the model's reasoning and tool call, plus the tool output. Tool outputs are often long; a web page can be thousands of tokens, a test run hundreds of lines. After a few dozen turns the context easily reaches tens of thousands or even over a hundred thousand tokens. This causes several problems: training memory and compute grow with length (attention is quadratic, see LLM Basic Chapter 1), so fewer trajectories fit in a batch; during rollout every step processes a longer prefix, so it slows down; and model quality also degrades in very long contexts, where early key information is easily ignored (see LLM Basic Chapter 2).

Common remedies:

  1. Truncate or compress tool outputs. Keep only the first lines, extract the main text of a web page, keep only the part of a long log near the error. Simple and effective, but key information may be lost.
  2. Keep full observations only for the last few turns. Older observations are replaced by a placeholder or a one-line summary.
  3. Let the model summarize. When the context is nearly full, have the model write a summary of progress so far, drop the old history and continue from the summary (also called context folding). The trajectory is then no longer a single prefix-consistent sequence, so training splits it into segments with separate losses that share the trajectory's reward. Writing the summary is itself an action whose quality affects the final reward, so it should be trained too. More general memory mechanisms are covered in Chapter 4.
  4. Cap the context length. When the cap is exceeded, terminate the trajectory and treat it as truncated (see the next subsection).

Context management must be the same in training and inference: if training keeps the full history but deployment keeps only summaries, the input distribution the model faces has changed. (An easily missed example: many reasoning models drop the previous turn's reasoning at the start of a new turn to save context, so the inputs built for training must drop it in the same way.)

Interview questions

  • ★ How do you handle ever-growing context, and what must training account for when history is compressed into summaries?

Turn limits and truncated trajectories ★

Every trajectory needs a maximum number of turns \(T_{\max}\) (or a maximum token count); otherwise a trajectory stuck in a loop runs forever and keeps holding rollout resources. Choosing the limit is a trade-off: too small, and tasks needing many steps simply can't be finished, so the model never learns long-horizon strategies; too large, and a few trajectories drag on, the whole batch waits for them (see 6.6), and aimless poking around is tolerated. One approach is a curriculum that gradually relaxes the limit: learn basic skills under a short limit first, then allow longer interactions.

How to handle truncated trajectories that hit the limit without finishing also needs thought. Giving them 0 is simplest, but it treats "on the right track, just ran out of time" the same as "completely lost". Alternatively, truncated trajectories can be excluded from the loss (similar to how DAPO handles overlong responses, see Post-Training Chapter 4), which avoids punishing reasonable long strategies, but then the model never learns "don't burn time in an endless loop". Also, if only success is rewarded and step count doesn't matter, the model has no incentive to be efficient; a small per-turn cost encourages concise behavior, but too large a weight pushes the model to give up early or submit carelessly ("premature termination", see Chapter 7).

Interview questions

  • ★ How do you set the turn limit, and how should trajectories that hit it be rewarded?

Train–inference consistency ★

Multi-turn RL has another engineering trap that is easy to fall into: inconsistency from re-tokenization. During rollout the inference engine samples token by token and produces token IDs. If, to assemble the conversation, those IDs are decoded into text, wrapped in the chat template, and tokenized again for the trainer, the resulting token sequence may differ from what was sampled: the same text can be split in more than one way, and templates may insert or remove spaces and special symbols. Then the \(\log \pi_\theta\) computed by the trainer no longer corresponds to the actions the model actually sampled, and both the importance ratios and the gradients are wrong. The safe approach is to keep the sampled token IDs throughout and only tokenize and append each new tool output (token-in, token-out). In addition, the inference engine and the training framework compute slightly different probabilities even for the same sequence, and the difference accumulates over long sequences; this issue and its fixes are covered in Post-Training Chapter 4.

Interview questions

  • ★ In multi-turn RL, what goes wrong if sampled outputs are decoded and re-tokenized, and how do you avoid it?

6.6 Rollout Infrastructure ★

Why rollouts are the bottleneck ★

In single-turn RLVR, a rollout is one generation and mostly consumes GPU time. In agent RL, a trajectory alternates "generate → run tool → generate → run tool" dozens of times. Tool execution can be slow: a test run takes tens of seconds, loading a web page takes seconds, and external API calls may queue. During all that time the model on the GPU just waits. And RL needs a huge number of trajectories: several per task, hundreds of tasks per training step, thousands of steps in total. So most of agent RL's wall-clock time goes to rollouts, and the efficiency of the infrastructure directly decides how far training can scale.

Interview questions

  • ★★ Why are rollouts the bottleneck of agent RL training?

Sandboxes ★

Every trajectory needs an independent, clean, resettable execution environment; this is the sandbox, usually a Docker container or lightweight VM (the trade-offs between isolation technologies are covered in Chapter 3, Section 3.7) with the task's repository, dependencies, browser or database installed. It serves three purposes. First, isolation: thousands of trajectories running in parallel don't interfere, so one trajectory deleting a file doesn't affect another. Second, reproducibility: every trajectory starts from the same initial state, so trajectories within a group are comparable and the rewards are fair. Third, safety: early in RL the policy does all kinds of strange or even dangerous things (rm -rf, infinite loops, outbound requests), which must be confined to the sandbox with limits on CPU, memory, run time and network access.

The engineering difficulty is scale: thousands of containers must be maintained at once, images must be pre-built and cached, startup must be fast, and crashes must recover automatically. There is also an easily overlooked principle: environment failures should not count as policy failures. If a trajectory fails because a container timed out or the network hiccupped, scoring it 0 punishes the policy for something it isn't responsible for; such trajectories should be marked invalid and discarded.

Interview questions

  • ★ Why does agent RL need sandboxes, and how should trajectories that fail because of environment errors be handled?

Long-tail latency and asynchronous rollouts ★

Synchronous RL works like this: sample a batch of trajectories with the current model, wait for all of them to finish, update the model, then sample the next batch. The problem is that agent trajectories vary hugely in length: some finish in 3 turns, some run the full 50, and some get stuck on one slow tool call. The whole batch must wait for the slowest one, and most GPUs sit idle meanwhile; this is long-tail latency. The longer and more uneven the trajectories, the worse the waste.

The main idea is to decouple generation from training:

  1. Asynchronous rollouts. Rollout workers keep generating trajectories into a buffer; the trainer updates as soon as the buffer holds a batch, without waiting for every trajectory to end; updated weights are synced back to the rollout workers periodically. AReaL (Fu et al. 2025) is a fully asynchronous system that reports up to 2.77× faster training on the same number of GPUs, with equal or better final results. Agent RL works such as WebAgent-R1 also use asynchronous trajectory rollouts.
  2. Concurrency across trajectories. While one trajectory waits for a tool, the inference engine serves generation requests from other trajectories (continuous batching, see LLM Basic Chapter 6), so the GPU isn't idle just because one trajectory is waiting.
  3. Partial rollouts. Give each iteration's generation a length budget; unfinished trajectories are paused and saved, then continued in the next iteration instead of being regenerated from scratch (Kimi k1.5, Kimi Team 2025).

The cost of asynchrony is staleness: some trajectories in the buffer were generated by a model several versions old, so updating the current model on them becomes off-policy learning. This is usually handled in two ways: bound the staleness (allow only a few versions of lag and drop older samples), and correct with importance-sampling ratios. For this, AReaL proposes decoupled PPO, which treats "the behavior policy that generated the data" separately from "the proximal policy used for the clipping constraint".

There is also a hidden bias: if the slowest trajectories are simply dropped to save time, the ones dropped tend to be hard tasks or long failed attempts, so the training data becomes systematically skewed toward easy, successful samples, and the model's long-horizon ability suffers.

Interview questions

  • ★★ How do you make agent RL rollouts more efficient?
  • ★ What are the benefits and costs of asynchronous RL, and how do you handle staleness?
  • ★ What bias do you introduce by simply dropping the slowest trajectories to save time?

6.7 Representative Work ★

Work Domain / environment Reward Key idea
Search-R1 (Jin et al. 2025) QA with a search engine Outcome only Covered in RAG Chapter 6, §6.4
SWE-RL (Wei et al. 2025) GitHub PR data; single-turn patch generation Similarity to the merged patch; −1 for bad format RL on software-evolution data without executing code; GRPO
DeepSWE (Agentica & Together AI 2025) Multi-turn coding agent in R2E-Gym repositories Hidden tests pass RL on Qwen3-32B; 42.2% Pass@1 on SWE-bench Verified
Golubev et al. 2025 Multi-turn SWE agent Tests pass RFT, then DAPO; about 11% → 39% Pass@1 on SWE-bench Verified
WebRL (Qi et al. 2024) WebArena-Lite Outcome reward model Self-evolving curriculum built from failed tasks
WebAgent-R1 (Wei et al. 2025) WebArena-Lite Binary rule-based outcome Multi-turn GRPO with async rollouts; behavior-cloning warm-up matters
RAGEN / StarPO (Wang et al. 2025) Bandit, Sokoban, FrozenLake, WebShop Environment reward Identifies the "Echo Trap" collapse; stabilized variant StarPO-S
GiGPO (Feng et al. 2025) ALFWorld, WebShop, search QA Outcome plus step returns Anchor-state groups for step-level advantages

Search agents

RL training of search agents such as Search-R1 (Jin et al. 2025), including the rollout format, outcome-only rewards, retrieved-token masking, and follow-up work such as R1-Searcher, is covered in detail in RAG Chapter 6, §6.4. Their core finding: with only an outcome reward on the final answer, a model can learn when to search, what to search for, and how to combine the results of several searches.

Coding agents: SWE-style RL

Software engineering is the most watched area of agent RL because it has a natural verifiable reward: tests. But works differ a lot in "is it really multi-turn, and does it execute code?"

SWE-RL (Wei et al. 2025) is actually not a multi-turn agent. It trains the model on large amounts of GitHub PR data to generate a patch in one shot, with the reward being the text similarity between the generated patch and the real merged patch (−1 for bad format), optimized with GRPO. The benefit is that it needs no execution environment at all and can use huge amounts of data. Under the authors' Agentless-style pipeline, Llama3-SWE-RL-70B reaches 41.0% on SWE-bench Verified, and it also improves on some tasks outside coding.

Truly multi-turn SWE agent RL needs executable repository environments: the model browses code, runs commands and edits files inside a container, and hidden tests decide success at the end. DeepSWE (Agentica and Together AI, 2025) ran RL on Qwen3-32B over about 4,500 tasks from R2E-Gym, reaching 42.2% Pass@1 on SWE-bench Verified (averaged over 16 runs) and 59% with test-time scaling. Golubev et al. (2025) applied RFT and then multi-turn RL with DAPO to Qwen2.5-72B, raising Pass@1 from about 11% to 39%. (SWE-bench Verified itself has contamination and labeling problems, see Chapter 7, so be careful when quoting these scores.)

Interview questions

  • ★ How does SWE-RL differ from multi-turn SWE agent RL, and what are the trade-offs of each?

Web agents

The difficulty with web tasks is that the environment is more open and success is harder to judge automatically. WebRL (Qi et al. 2024) trains on WebArena-Lite, uses an outcome reward model to judge task completion, and automatically generates new training tasks from the tasks the model failed, forming a curriculum that evolves with the model's ability; Llama-3.1-8B's success rate rose from 4.8% to 42.4%. WebAgent-R1 (Wei et al. 2025) uses only the binary outcome reward from WebArena's rule-based checks, extends GRPO to multiple turns and uses asynchronous rollouts; Qwen2.5-3B rose from 6.1% to 33.9%, and Llama-3.1-8B from 8.5% to 44.8%.

Interview questions

  • ★ Where does the reward for web-agent RL come from, and why does WebRL generate new tasks from failed ones?

Stability of multi-turn RL

RAGEN (Wang et al. 2025) systematically studied multi-turn RL training dynamics in controlled environments such as Sokoban and FrozenLake and found a recurring collapse mode called the Echo Trap: the model overfits to reasoning patterns that are rewarded locally, shown by collapsing reward variance within groups, a fast drop in entropy and gradient spikes, after which performance stalls. Their stabilized version, StarPO-S, mitigates this by filtering low-variance trajectory groups, adding a critic and stabilizing gradients. This shows that instability is more pronounced in multi-turn RL than in single-turn RL, and metrics such as reward variance and entropy need dedicated monitoring during training.

Interview questions

  • ★ What is the Echo Trap, and which metrics should you monitor during training?
  • ★★ Describe an agent RL work you know: what are its environment, reward and algorithm?

6.8 Experience Reuse and Skill Libraries ★

RL writes experience into the parameters, but every update needs many new trajectories, and what's learned is hard to inspect or edit. A complementary route stores experience outside the parameters and retrieves it for reuse at inference time, with no training. Voyager (Wang et al. 2023) writes verified behaviors in Minecraft as executable code skills stored in a skill library, then calls and composes existing skills when similar tasks come up; ExpeL (Zhao et al. 2023) distills natural-language lessons from successful and failed trajectories and puts them in the prompt for later tasks; Agent Workflow Memory (Wang et al. 2024) induces reusable workflows from web-task trajectories.

The two routes can be combined. An experience library improves exploration: an agent equipped with a skill library succeeds more often, which gives RL more useful positive samples and eases the "whole group scores 0" problem under sparse rewards. Conversely, rare successful trajectories can be stored in a replay buffer or used for RFT, reusing these expensive samples (at the cost of them gradually becoming off-policy data). WebRL generating new tasks from failed ones is also a form of experience reuse.

The trade-off is clear. Non-parametric experience is fast, interpretable and can be edited or deleted at any time, but it is limited by context length and retrieval quality and doesn't truly improve the model's underlying ability. Parameter updates really change ability but are slow, expensive and hard to undo. Memory mechanisms are covered in Chapter 4, and how agents keep accumulating experience and evolve themselves in Self-Improving Chapter 5.

Interview questions

  • ★ How do skill or experience libraries differ from RL, and how can they be combined?

6.9 Open Challenges ★

Exploration ★

Under sparse rewards, if all \(G\) samples for a task fail, GRPO's within-group advantages are all 0 and the task contributes nothing to training; the same happens if all succeed. Useful training signal comes only from tasks the model "sometimes solves and sometimes doesn't". Common practices: filter tasks by the model's current pass rate and keep only medium-difficulty ones; adjust the curriculum dynamically as training progresses (e.g. WebRL generating new tasks from failed ones); warm up with SFT or RFT to raise the success rate first; or give hints in the prompt and gradually remove them.

The deeper problem is that LLM exploration relies mainly on randomness from the sampling temperature. Token-level randomness rarely produces high-level exploration such as "try a completely different approach", and entropy collapse during training reduces exploration further. How to explore in a structured way at the level of strategies and plans is still an open problem.

Interview questions

  • ★ Why do tasks where every sample in the group succeeds or fails give no learning signal, and what can you do?
  • ★ Why is high-level exploration hard for LLM agents?

Sample efficiency ★

Every agent trajectory really executes dozens of tool calls, costing far more than a single-turn generation, yet on-policy methods use each batch only once or twice before discarding it. Directions for better sample efficiency include: reusing old trajectories off-policy (which requires handling distribution shift); reusing samples through a value function as ArCHer does; using LLMs to simulate environments or users in place of expensive real ones (at the cost of inaccurate simulation, which the policy may learn to exploit); and better credit assignment so that each trajectory yields more information.

Interview questions

  • ★ How can you improve the sample efficiency of agent RL, and what are the risks of simulating the environment or user with an LLM?

Stability ★

Multi-turn RL has longer sequences, sparser rewards and more random environments, so training collapses more easily than in the single-turn case: Echo-Trap-style mode collapse, sudden entropy drops, gradient spikes, stale samples from asynchrony, and probability mismatches between training and inference all amplify instability. In practice you need to keep monitoring within-group reward variance, entropy, gradient norm, average number of turns and truncation rate, and reuse the stabilization tricks developed for single-turn RL (such as clip-higher, dynamic sampling, and adjusting or removing the KL term, see Post-Training Chapter 4).

Interview questions

  • ★ Why is multi-turn RL training less stable than single-turn, and which metrics would you monitor?

Generalization across environments ★

A policy trained in one environment (one set of repositories, one website, one tool set) easily overfits to that environment's tool interface, task distribution and even the scaffold's format, and fails in a new environment. An ablation in DeepSeek-V3.2 gives direct evidence: RL only on synthetic, diverse agent tasks clearly improved the model on unseen tool-use benchmarks such as τ²-bench, MCP-Mark and MCP-Universe, while RL restricted to code and search scenarios brought no improvement on these benchmarks. This suggests that environment diversity may matter as much as data scale, which is why much recent work has turned to "environment synthesis" and "environment scaling". How to systematically build environments that are diverse, verifiable and hard to hack, and how to reliably evaluate cross-environment generalization, remain open problems.

Interview questions

  • ★ How can abilities learned through agent RL generalize to new environments?
  • ★★ What are the biggest open challenges in agent RL?