Paper notes

Reading T²PO: Taming Hesitation in Multi-Turn Agentic RL

TL;DR

Reinforcement learning for multi-turn LLM agents often collapses partway through training. T²PO argues the cause is hesitation: the agent overthinks within a turn and repeats itself across turns, and these low-information rollouts make gradients noisy. It reads a cheap uncertainty signal from the model's own token distributions and uses it during rollout generation to (1) cut the thinking short once that signal stops changing and (2) resample a turn that looks like a repeat of the previous one. The policy update itself is unchanged from GiGPO.

On this page12 sections

I recently presented this paper at a reading group. These are my notes, written for someone who knows some ML but has not worked on LLM agents. The first three sections build up the background in order: how an LLM agent is trained, what a rollout is, and what changes when a task takes many turns. If you know all three, skip to the example.

1. How an LLM agent is trained

An "agent" is not a separate model. It is an ordinary LLM run in a loop: the environment shows it a state, the model writes a response, the environment executes the action in that response and returns the next state. Everything the agent learns is stored in one place, the LLM's weights θ. Training an agent means updating θ so that, in the states it meets, it writes better responses.

Those weights are shaped in stages (Figure 1). Pretraining on large text corpora teaches language and world knowledge. General post-training by the model developer (supervised fine-tuning and RL) turns the base model into an assistant that follows instructions and reasons inside <think>. Qwen3-4B and Qwen3-8B, where this paper starts, are at that point. The paper then adds task-specific post-training: a short warm-up called RFT, followed by RL on the agent task. When training ends, θ is frozen and the model is deployed as the agent.

From pretraining to a WebShop agent

One LLM; the same parameters θ, shaped in stages.

01 · Qwen team

Pretraining

Web text, books, code

Language + world knowledge

Base model
02 · Qwen team

General post-training

SFT + RL on instructions and answers

Follow instructions; reason in <think>

Qwen3-4B
03 · This paper

Task post-training

RFT: imitate good runs

RL: try → score → update θ

TTI + TDS during rollouts
04 · Use the agent

Deployment

Observe → LLM → action

Environment returns the next state ↺

θ stays frozen

Post-training covers stages after pretraining. Fine-tuning trains an existing model further. An agent is the LLM in an observe–act loop.

Figure 1. From pretraining to an agent. T²PO is a method for the last training stage, RL on the agent task. Every stage updates the same weights θ.

The RL stage is where T²PO lives, so it helps to state what one update does. The model attempts a task, the environment scores the result, and θ is nudged so that responses that led to good outcomes become more likely and responses that led to bad outcomes become less likely. What the model learns therefore depends on the attempts it produces, which brings us to rollouts.

2. Rollouts: the data RL learns from

A rollout (or trajectory) is one complete attempt at a task by the current model, recorded from start to finish together with its reward. Unlike supervised learning, RL has no fixed dataset: the training data is generated by the model being trained, and generated again after every update. Producing rollouts is also the expensive part of training, because it means running both the LLM and the environment.

Training follows the group-based recipe that has become standard since GRPO. For each task, the current model produces a group of rollouts (G = 8 in the paper). Sampling is random, so the attempts differ. Rollouts that end better than the group average get a positive advantage, the rest a negative one, and the update raises the probability of the former and lowers it for the latter. No value network is needed. If all rollouts in a group fail, or all succeed, there is no contrast and the group contributes no learning signal; DAPO's dynamic sampling drops such groups.

Rollouts also drive the warm-up. In rejection fine-tuning (RFT), the model plays the environment, low-scoring rollouts are discarded, and the model is fine-tuned to imitate the rest. This teaches the action format, so that RL starts with enough successful rollouts to compare against. RFT keeps only the good attempts; RL learns from the contrast between good and bad ones.

The RL training loop

Generate data with the current policy, learn from it, then generate again.

01 · Start

Current policy θ

One task

02 · Explore

Generate 8 rollouts

Rewards
10010101

TTI + TDS act here

03 · Evaluate

Score + compare

GiGPO advantages

Which runs and turns helped?

04 · Learn

Update θ

Good outputs ↑

Bad outputs ↓

Repeat with the updated policy

Why a group? Random sampling creates different attempts. All-fail or all-success groups provide no contrast.
RFT warm-up: keep and imitate high-reward rollouts. RL: learn from good and bad attempts.

Figure 2. One RL step: generate a group of rollouts with the current model, score and compare them, update θ, repeat. T²PO changes only the second box, how the rollouts are generated.

3. Multi-turn: when one attempt takes many steps

In a single-turn task such as a math problem, a rollout is one response, and it is scored right away. Agent tasks are multi-turn. A turn is one "see the state, write a response" step, and a rollout is a sequence of turns. In WebShop, the main benchmark of the paper, the state is a shopping page rendered as text, together with the task and a short memory of the last two turns. The model must search, browse, pick a product, choose options and buy, within 15 turns. Each response has a fixed format: reasoning inside <think>…</think>, then exactly one command inside <action>…</action>, such as search[brown men shirt] or click[next >].

One rollout, many connected turns

Task: buy a brown men’s shirt under $40. Each action changes the page seen next.

Turn 1

State s1
Blank search page
Output a1
think… → search[brown shirt]

Turn 2

State s2
Results page 1
Output a2
think… → click[next >]

Turn K

State sK
Item + size chosen
Output aK
think… → click[buy now]
Environment executes between turns · up to 15 turnsFinal purchase → reward 1 or 0

TTI · inside a turn
Stop flat thinking → write the action.

TDS · before execution
Compare ak with ak−1; too similar → resample from the same state.

A turn is one state–response step. A rollout is the full attempt; its reward arrives at the end. A single-turn task stops after one response.

Figure 3. In a multi-turn task, one rollout is a sequence of turns with a single reward at the end. T²PO acts in two places: inside a single output (TTI) and between consecutive outputs (TDS).

Three things get harder in this setting. The reward is sparse: only the final purchase is scored, so it is unclear which of the many turns deserves the credit. Rollouts are long, so each one costs more to generate. And mistakes compound: a wasted turn early on eats into a fixed turn budget. The paper is about one consequence of this: what happens to training when many of the turns in the batch carry little information.

4. The intuition, in one example

The idea behind T²PO fits in one sentence: when the agent stops gaining new information, stop and move on. Figure 4 shows it on one task, buy a brown men's shirt under $40, where the first results page has nothing that fits.

Two ways to stop wasting a rollout

Same task: buy a brown men’s shirt under $40. The first results page has no match.

Within one turn

TTI · stop overthinking

A useful decision

No brown shirt under $40 → check the next page.

Repeating known facts

“The fit says women…”
“$40.98 is over budget…”

Without TTI

Keep thinking

Token limit → no action

With TTI

Stop → act

click[next >]

Across turns

TDS · break repetition

Search → go back

Turn 1: search for a shirt
Turn 2: back to search

Repeat the same search

Turn 3 returns to the same results.

Without TDS

Execute it

Same page; turn wasted

With TDS

Discard → retry

New query → new results

TTI acts while tokens are generated. TDS acts before an action reaches the environment. These are illustrative examples of the two intervention points.

Figure 4. Two places where information stops growing. Left: inside one turn, the model keeps restating facts after it has decided; TTI cuts the thinking there. Right: across turns, the agent repeats a search it has already done; TDS throws that turn away and has the model try again. Wording is illustrative, adapted from the paper's appendix.

That is the whole method. The reward and the loss stay the same as in the baseline. The next sections explain why this waste destabilizes training and how "no new information" is measured.

5. The diagnosis: training collapse comes from hesitation

The paper opens with a familiar picture: strong multi-turn methods such as GRPO and GiGPO improve for a while, then the success rate drops sharply while the gradient norm and the KL divergence to the old policy spike. Whether a run collapses depends on the random seed.

Prior fixes worked either at the level of whole trajectories (filtering bad ones, as in DAPO's dynamic sampling or SimpleTIR's void-turn filtering) or by reshaping rewards. The authors argue the root cause is inefficient exploration, which they call hesitation, and that it shows up at two scales:

Both behaviours fill the training batch with long, low-information sequences. The claim is that this noise in credit assignment raises gradient variance and eventually destabilizes training. The fix, then, is to stop generating such rollouts in the first place, rather than to penalize them through the reward.

6. A cheap uncertainty signal from the model itself

At each decoding step the model outputs a probability distribution \(p_t\) over its whole vocabulary (about 152K tokens for Qwen3). Two standard summaries of how peaked it is:

$$H_t = -\sum_{i} p_t^{(i)} \log p_t^{(i)}, \qquad C_t = -\frac{1}{j}\sum_{i=1}^{j} \log p_t^{(i)} .$$

Entropy \(H_t\) is high when probability is spread out. Confidence \(C_t\), the token confidence used in DeepConf, averages the negative log-probability over the top-\(j\) tokens: when the distribution is sharp, the runner-up tokens are nearly impossible and \(C_t\) is large. The paper argues each has a blind spot. With a 152K vocabulary, entropy ranges over \([0, \log V] \approx [0, 12]\), so a one-hot distribution and a 50/50 split between two tokens differ by only \(\log 2\). Confidence looks only at the top of the distribution and ignores how the remaining mass is spread. So the two are min-max normalized within a response and mixed:

$$M_t = \alpha\,\tilde H_t + (1-\alpha)\,(1-\tilde C_t), \qquad \alpha = 0.4 .$$

Larger \(M_t\) means the model is less sure what to write next. A useful way to read it: high \(M_t\) marks the places where the model is making a decision. The paper's word cloud of the most uncertain tokens contains two kinds of words: discourse markers such as "so" and "then" (where the reasoning changes direction) and task words such as product names and attributes (where it picks what to buy). Neither mechanism below uses the level of \(M_t\) directly; both look at how it changes.

7. Token level: stop thinking once the signal flattens (TTI)

Averaged over the baseline's responses, \(M_t\) rises early in the response, peaks, then decays and flattens. The authors read the three phases as restating the task, actually deciding, and then circling. Token-level Thinking Intervention (TTI) cuts the response in the third phase. It tracks \(\Delta_t = |M_t - M_{t-1}|\) and, after a minimum prefix \(L_{\min}\), stops once the average change over a sliding window is negligible:

$$\frac{1}{N+1}\sum_{i=0}^{N}\Delta_{t-i} < \varepsilon \quad\text{or}\quad t \ge L_{\max}, \qquad N = 20,\; \varepsilon = 10^{-4},\; L_{\max} = 450 .$$

Why not stop at the peak? Because the peak is where the decision is being made: it sits on product names and on the "then" that turns analysis into a plan. Cutting there removes exactly the content the action depends on. The sliding window also keeps a single uncertain token from triggering a stop.

The stop itself is a small piece of decoding surgery. At the next step, the logit of </think> is set to \(+\infty\) and every other logit to \(-\infty\), so the model emits </think> with probability 1. A fixed sequence </think>, \n, <action> is then appended without sampling, and normal sampling resumes so the model writes the action itself. The intervention fires at most once per response.

TTI: from normal sampling to a forced stop

Toy vocabulary: overwrite the next-token logits, insert the format tokens, then resume sampling.

Trigger: mean |ΔMt| over N+1 tokens < ε
01 · Sample

Normal decoding

TokenLogitP(token)
the2.00.49
next1.50.30
page0.50.11
</think>0.10.07
shirt−1.00.03

P(</think>) = 0.07: stopping is unlikely.

02 · Intervene

Overwrite logits

TokenLogitP(token)
the−∞0
next−∞0
page−∞0
</think>+∞1
shirt−∞0

P(</think>) = 1: the stop is forced.

03 · Not sampled

Insert fixed tokens

</think> · \n · <action>
04 · Sampling resumes

Let the model act

click[next >]</action>

The action is generated by the model. The forced queue only closes thinking and opens the action field. In Qwen3, </think> is token 151668.

Figure 5. How TTI stops thinking, on a toy five-token vocabulary. Overwriting the logits makes the stop deterministic; inserting <action> guarantees the output can be parsed.

Same decision, different outcomes

WebShop: no brown men’s shirt under $40 on this page. The next step is to open the next page.

Without TTI

Baseline

Reasoning keeps repeating

“None of the results are brown… Wait, the fit type is women… The color brown isn’t present…”

↺ More tokens, no new decision

500-token limit

Cut off mid-sentence

No </think> or <action>

Unparseable output

Turn wasted

With TTI

T²PO

The decision is already formed

“Since none match, the next step is to check the next page. Then…”

Thinking signal flattens → TTI

Force </think> · \n · <action>

Model writes the action

click[next >]</action>
Valid next step

Reasoning excerpts are shortened for display. The baseline follows Appendix G; the TTI side illustrates where the rule would cut. Safety net: force the same stop at Lmax = 450 if the plateau rule has not fired.

Figure 6. The same decision with and without TTI. The left text follows the paper's Appendix G failure case; the right side is my illustration of where the rule would cut.

8. Turn level: resample a turn that repeats the last one (TDS)

Single-turn RL has a neat trick for wasted samples. DAPO's dynamic sampling drops prompts whose group is all-correct or all-wrong, since they carry no learning signal. In a multi-turn episode there is no per-turn accuracy to filter on, so Turn-level Dynamical Sampling (TDS) substitutes the uncertainty signal. Each turn gets a fingerprint, the geometric mean of its token signals, and consecutive turns are compared:

$$\Phi^k = \Big(\prod_{t=1}^{T} M_t^{k}\Big)^{1/T}, \qquad \Gamma^k = \lvert \Phi^k - \Phi^{k-1} \rvert .$$

If \(\Gamma^k < \eta\) (with \(\eta = 10^{-3}\)), the model's internal state looks the same as on the previous turn, which suggests it is about to repeat itself. The turn is then discarded and regenerated from the same state, up to a resampling budget. Because this check happens before the action is sent to the environment, a discarded turn costs one extra generation but no environment step. (One note when reading: the prose in Section 4.3 describes the trigger as the turn deviating "too much", but the equation and the algorithm both regenerate when the change is too small. I follow the equation.)

9. The policy update is GiGPO, unchanged

After rollouts are collected, T²PO computes advantages exactly as GiGPO does. Two levels are added together:

$$A'(a^k_i) = A(\tau_i) + \omega\, A_{\text{turn}}(a^k_i) .$$

The combined advantage goes into a standard PPO-style clipped objective with a KL penalty to the frozen RFT model. A few supporting choices matter in practice: only the last two turns are kept in the prompt as memory, malformed outputs get a 0.1 format penalty, and the RFT warm-up described above.

Two advantages merge into one policy update

GiGPO supplies the update. T²PO changes the rollouts that feed it.

Input 1 · Whole attempt

Trajectory advantage A(τ)

Rewards R₁ … R₈ · same task

10010101
A(τ) = (R − mean) / std
mean = 0.5, std = 0.5

Success: +1 · Failure: −1

Input 2 · Action at a shared state

Turn advantage Aturn

Same anchor: “Results page 1”

FromActionReturn
τ₄, τ₆next >0.81
τ₂back0
Aturn = return − 0.54

next: +0.27 · back: −0.54

Combine both signals

A′ = A(τ) + ω · Aturn

τ₄ “next”: +1.27   ·   τ₂ “back”: −1.54   (ω = 1)

PPO-style objective

J(θ) = E[min(ρA′, clip(ρ, 1±ε)A′)]
− β KL(πθ ∥ πref)

ρ = πθ/πold · clip limits the step · KL keeps the policy near the frozen RFT model

Update θ

A′ > 0 → more likely

A′ < 0 → less likely

Toy numbers: discounted return 0.9² × 1 = 0.81. ω = 1 is assumed, not reported. GiGPO also normalizes the turn advantage; the caption notes the trajectory-normalization convention.

Figure 7. The two-level advantage with toy numbers. The left panel uses GRPO's mean/std normalization for illustration; the paper's WebShop configuration lists mean-only normalization, and \(\omega\) is not reported, so I set it to 1.

This is the point I would stress most when explaining the paper: T²PO is a rollout-side method. Its loss and its advantage estimator are GiGPO's. What changes is which sequences end up in the batch. The appendix supports the "plug-and-play" framing by swapping GiGPO for GSPO: adding TTI + TDS on top of GSPO raises WebShop success from 85.18% to 91.79%.

10. What the experiments show

On Qwen3-4B (after RFT), averaged over three environment seeds:

MethodWebShop scoreWebShop success (%)ALFWorld success (%)
GRPO80.02 ± 7.9468.56 ± 4.1177.35 ± 0.62
GiGPO86.03 ± 4.1873.83 ± 3.0480.47 ± 2.43
GiGPO + DAPO86.54 ± 9.8174.02 ± 8.1880.86 ± 1.37
T²PO93.84 ± 0.2281.64 ± 0.3990.23 ± 1.38

Three things stand out to me:

The paper also compares against other ways of controlling thinking length on WebShop. A length-based reward reaches 65.87% success, a short-CoT cold start 71.29%, void-turn filtering 76.20%, and a fixed hard thinking budget 79.21%, against 81.64% for TTI + TDS. The paper also reports results on search-augmented QA, which I do not cover here.

11. Where it sits among related work

WorkSignalWhat it does with it
GiGPOShared anchor statesTurn-level credit assignment; T²PO's update and code base
DAPOGroup accuracyDrops uninformative prompt groups; the inspiration for TDS
DeepConfToken confidenceFilters or stops low-confidence reasoning at inference; source of \(C_t\)
ARPOEntropy after tool callsBranches more rollouts where uncertainty is high
AT²POEntropyTurn-level tree search; expands high-entropy nodes
AEMResponse-level entropyRescales advantages instead of changing rollouts
RAGEN-2Mutual informationShows entropy can miss "template collapse"

The contrast with ARPO and AT²PO is instructive: they use uncertainty to add exploration where it seems valuable, while T²PO uses it to remove exploration that seems wasted. All three act on rollout generation rather than on the loss, which looks like where much of the action in agentic RL is right now.

12. Takeaways

References

  1. H. Wang et al. T²PO: Uncertainty-Guided Exploration Control for Stable Multi-Turn Agentic Reinforcement Learning. ICML 2026. Code.
  2. L. Feng et al. Group-in-Group Policy Optimization for LLM Agent Training. NeurIPS 2025.
  3. Z. Shao et al. DeepSeekMath (GRPO). 2024.
  4. Q. Yu et al. DAPO: An Open-Source LLM Reinforcement Learning System at Scale. 2025.
  5. Y. Fu et al. Deep Think with Confidence. 2025.
  6. S. Yao et al. WebShop. NeurIPS 2022.

Figures are original illustrations based on the paper; numbers are taken from the paper's tables. Corrections are welcome at qin.681@osu.edu.