Agent·

Critical-State RL picks which model call to train — Nested continuation sampling — What does it mean?

The news. On September 21, 2026, Salesforce AI Research posted Critical-State RL: Diagnosing Trainable States for Multi-Turn Tool Use to arXiv. The paper asks one question before any training: which model call in a conversation would actually improve if trained? It answers with a training-free diagnostic, then applies reinforcement learning to the selected call only. On the BFCL v4 missing-function task, training the call the diagnostic picked took a Gemma-4-26B-A4B model from 0.14 to 0.283 accuracy, while training the other candidate call moved it down to 0.095. Read the paper →

Picture a chess coach reviewing a lost game. The student lost, but the loss does not say which move lost it — a blunder on move 40 can hide a perfectly good move 12. So the coach sets up one position on the board, tries several candidate moves from it, and for each move plays the rest of the game out several times against varied replies. If move A wins every play-out and move C loses every one, the position is worth drilling: the choice made here decides the game. If every move wins about half the time, the play-outs give no evidence that a different move here would do better, however dramatic the game looked, and drilling it is likely wasted time.

A multi-turn tool-use trace has the same structure. The agent makes a chain of calls, and a reward arrives at the end. Standard trajectory-level RL spreads that one reward over every call, which is the compounding-errors problem turned inside out: one bad call sinks a run, but the training signal cannot see which one. Critical-State RL treats "which call to train" as a measurement to take first, not an assumption to make.

The measurement is nested sampling: it separates the differences between action averages from the variation inside each action's continuations. It runs on the model's own rollouts. Fix a prefix — the conversation up to one candidate call. Sample several actions at that call. Then hold each action fixed and resample its continuation, the turns after it, several times. The law of total variance splits the reward spread at that point into two parts: the spread of the per-action average rewards, which the paper calls action-dependent variance, and the average spread within one action, which is continuation noise. Only the first part is signal that comes from what the model does at this call.

The paper's own pilot shows why this matters. In a Gemma missing-function run, every sampled response at the decision turn was the same clean refusal with no tool call, yet the rewards still swung between 0 and 1 with a within-group standard deviation of 0.477. A mixed-outcome filter would keep that group as a good training example. The rewards differed, but the actions did not — so there was nothing at that call for training to learn.

Before ranking, each candidate call must also pass two gates: its local reward must track task success (the paper calls this action-sufficiency), and some action's expected local reward must exceed a reference policy's mean there, establishing headroom to improve. The call with the largest action-dependent variance among the survivors is selected. Training then updates only that call's generated tokens as a contextual bandit; the calls around it supply context or reward but receive no gradient.

Put numbers on it (illustrative, one position, binary win/loss reward). Take two candidate calls, each with 2 actions × 4 continuations = 8 rollouts, and each showing 4 wins and 4 losses — the same mixed group, the same total variance of 0.25, so a mixed-outcome filter cannot tell them apart. At call 1, action A wins 3 of 4 play-outs and action B wins 1 of 4: the action means are 0.75 and 0.25, their variance around the overall 0.5 is 0.0625, and the remaining 0.1875 is continuation noise. At call 2, both actions win 2 of 4: the action means are 0.5 and 0.5, the action-dependent variance is 0, and all 0.25 is noise. Same wins, same losses, same total — but only call 1 has anything to train. The paper also subtracts a finite-sample correction, because a few noisy continuations can make action means look different by chance; this example skips it.

BFCL v4 cellDiagnostic roleCorrected action varianceAccuracy, start → trainedSource
missing-function / recovery turnselected0.02670.14 → 0.283 (+14.3 pp, 4 seeds)Table 1
missing-function / decision turnalternative0.01030.14 → 0.095 (−4.5 pp, single run)Table 1
missing-parameter / decision turnselected0.03610.435 → 0.473 (+3.8 pp, 4 seeds)Table 1
missing-parameter / recovery turnalternative0.00000.435 → 0.445 (+1 pp, single run)Table 1

Read the table by task, not by row. In missing-function tasks the needed tool is withheld for one turn: the agent must pause at the decision turn, then make the call at the recovery turn once the tool appears. For Gemma, the diagnostic picked recovery, and training it gained 14.3 points while training the decision turn cost 4.5. In missing-parameter tasks the diagnostic picked the opposite turn. The diagnostic selected the improving turn in both categories; either fixed turn rule missed one. Always training the decision turn, or always training the recovery turn, helps one category and leaves the other flat or worse. The choice also depends on the model: for Nemotron on the same missing-function task, the paper trains the decision turn instead.

Two controls in the paper check that the gain comes from where the signal is measured, not merely from which tokens get a gradient. Keeping one trajectory-level reward and only changing which turns receive gradient left missing-parameter accuracy near its start. Full multi-turn training with Monte-Carlo return-to-go fit its training environment far better (0.997 validation versus 0.77) but scored 0.45 on BFCL in a single-seed comparison, below the 0.473 from training the one selected call. This is error analysis first, applied to the training loop: locate the failure before spending gradient on it.

Goes deeper in: AI Agents → Evals & Diagnostics → Error Analysis First

Related explainers

Frequently Asked Questions

Check what you knowMap your AI & GPU knowledge across every track — free, role-based