Skip to content

Targeted Guidance for Agentic RL With Per-Turn Textual Feedback

THE ARGUMENT

A single score never teaches a behavior the model has not produced; put the judge's words before the failing turn, press only there, and you can lift style items without losing coding pass-rate.

On this page

Put 8 formatting rules in front of a team and most people, at first glance, hand out a bonus for each one, but 200 steps later the model has learned not one of them, so what went wrong? Say you run a small team shipping a coding assistant, and the brief now says: while it edits code, every reply must carry a markdown table, bold a few words, explain the problem in a fixed order, and even close with a short poem as a status line. Miss one step and users say the assistant does not listen. The cost is real. Yet all you get back is one number: right, you score a point; wrong, you score nothing; nobody tells you where you slipped, or what to change. The usual advice is to split that number into several parts, give each part its own bonus, and train longer. That instinct feels right. It is exactly the wall the paper keeps hitting. The authors try something else: leave the total alone, and, right before the turn where the model slips, slip in one plain line of advice, then let the model correct itself against that hint [1]. The hard part was never how many points you hand out; it is how a model first produces a behavior it has never produced before.

Why one score cannot teach a behavior the model never produced

Set the scene first. You already have an assistant that writes code; now you want it to change 2 habits: pass an extra line-count parameter when it calls the semantic search tool, and explain the problem in a fixed order. Most people would log a point for each of the 2 habits, add one when it complies, subtract one when it does not. One word needs explaining. A policy is simply the model's current habit of picking its next output: it tries things, and, guided by the score, makes high-scoring moves more likely later.

Here is the catch. If that habit has never once emitted the new parameter, the model never gets it right, never earns a point, and so has nothing to reinforce. It cannot guess 'add one more field', because it only learns where to move after it scores, and it never even reaches the door. That is wrong.

The paper calls this insufficient coverage [1]. A judge that scores a rubric can already write down why a turn failed, e.g. 'wrong format' or 'order scrambled'; the standard move squeezes all of that into one scalar, and the reasons vanish. The authors put it bluntly: ordinary training rewards what a model already does, and never tells it what a new behavior looks like. That is why, in Figure 1, the curve either crawls or lies flat: the moves that would score were never sampled at all. To learn something new, a model needs a hint about where to go, not just a number. 'Where to go' sounds abstract. In code it is just the line we describe next.

So the first instinct has to change. The issue is not too few points, it is a signal with the wrong shape. Split 1 total into per-item scores and you still have numbers; numbers never say 'change the delimiter on this turn'. Table 1 will check that claim for us.

  • You ask for a new tool format; the base model has never produced it, so it earns no point;
  • You add a bonus for that format, yet 200 steps later the format still never appears;
  • You split the total into 7 named items (Markdown, Sol. Desc, Req. Order, Approval, Bolded, Cmd Ran, Suggest Work), and Approval still sits at 0.00;
  • No line tells the model which word to type, so more points cannot fix a missing move.

What the paper built: a hint placed just before the failing turn

The setup is plain. The authors start from Qwen3-Coder-30B, tune it for a multi-turn harness that calls tools and edits code, then train for 200 steps. Each step uses 32 groups with 32 rollouts each; a rollout is simply one full run from the task prompt to the final answer. They use Adam at a 3e-6 learning rate, and each problem is seen once, a single pass over the data.

All of this sits in 5.2 [1]. The base model is not the point. The point is that every binary score item gets one fixed line of text, e.g. 'this turn did not use the correct tool format'.

The core move is to put that hint into the context. When a turn fails, the system inserts the hint just before that turn, reruns the same model with the same weights, and treats what it would now say as an example. Two words need glossing. A teacher policy here means 'what the model would answer if it had seen the hint in advance'; to self-distill means we take that example as a teacher and pull the original model toward it, by comparing, word by word, how the two rank every candidate word. The paper measures that gap with a reverse KL (a number for how far apart two rankings sit), and computes it over the whole vocabulary. Only the failing turn is compared; every other turn is left alone.

That alone is not stable, so the authors add two brakes [1]. First, that pull applies only to turns that fail a criterion; a turn that already passes gets no tug, so good behavior is not dragged off course. Second, the hint is combined with a normal score on each item: the hint leads a new behavior in, the unbiased score keeps it there and refines it. Merged, the loss is the usual GRPO term plus a KL summed over failing turns. GRPO is the standard method that compares a group of answers and shifts weights toward the better ones. The cost stays small: the teacher only scores candidate words, it never generates a full answer, so you pay one extra forward pass. As the model fixes the error, the pull from the hint falls to near 0 on its own.

The cleanest check is in 5.1 [1]. They add a new format to the semantic search tool: a call must now state how many lines to return. The base model never saw this format during tuning, so, even with an example in the prompt, it never uses it. With per-turn hints, the model learns the format, and coding pass-rate does not drop; the authors note that only the wrong delimiter token gets a strong signal, the rest barely moves. Small example. Full mechanism: aim narrowly, change little, stop when fixed.

  • Place the hint right before the failing turn, not in a global prompt;
  • Compute the KL only on turns that miss an item, mask all others;
  • Add the hint's pull to the per-item GRPO score, never let it stand in for the score;
  • Include the thinking words and the tool-call words, and use a full-vocabulary reverse KL.

Read Table 1: who kept the coding pass-rate

Table 1 in 5.2 is the one to stare at [1]. It compares 7 style items plus a rightmost coding pass-rate column: Markdown, Sol. Desc, Req. Order, Approval, Bolded, Cmd Ran, and Suggest Work. Every number is a mean over the last 32 steps, followed by the spread across those steps, written like 0.33 ± .05. Look at the rightmost column first: Baseline, which optimizes code only, scores 0.33; GRPO, which adds a bonus per item, also scores 0.33; TG, the authors' method, again 0.33. All three match. Lifting the format cost nothing in coding ability.

MethodCoding pass-rateBolded styleWhat the row says
Baseline (code only)0.33 ± .050.43 ± .07No style taught, so bolded stays low
GRPO (bonus per item)0.33 ± .070.95 ± .01Bolded hits 0.95, yet Approval stays 0.00
OPSD (self-distill)0.30 ± .050.90 ± .02Style rises, pass-rate slips a little
Online SFT0.26 ± .050.69 ± .03Pass-rate drops to 0.26
LaTRO0.14 ± .090.21 ± .11Pass-rate nearly halves to 0.14
Verifree0.20 ± .060.65 ± .19Pass-rate falls to 0.20
TG (this paper)0.33 ± .050.99 ± .00Bolded 0.99, pass-rate still 0.33

Now the bolded column. Baseline sits at 0.43, GRPO reaches 0.95, TG reaches 0.99, almost full marks; the real gap is the rightmost column. Online SFT drops to 0.26, Verifree to 0.20, LaTRO to 0.14, and OPSD to 0.30. The authors' read: those three have a teacher generate a whole new move to replace the failing turn, and, in an asynchronous trainer, such moves go stale, so raising their odds hurts the main task. TG never replaces a move, it only shifts odds, so it pays no such cost.

And 0.14 is not a small dip; it is half the baseline.

  • To check whether training moved at all, look for the 0.00 cells: GRPO leaves Approval and Cmd Ran at 0.00;
  • To check whether the main task broke, watch the rightmost column, where LaTRO 0.14 and TG 0.33 sit far apart;
  • To check stability, read the spread: TG bolded is 0.99 ± .00, LaTRO bolded is 0.21 ± .11 and wobbles hard.

If you want to try it, check these steps

Read the paper backwards and you get a checklist [1]. Two things must hold first: you need a judge that scores item by item, and you need one fixed line of text per item. Miss either one, and the steps below do not apply.

  • Step 1: split the 7 style items into one binary score each, and give each its own static hint, do not keep a single total;
  • Step 2: place the hint just before the failing turn, compute the KL only there, and mask every turn that passes;
  • Step 3: add the hint's pull to the per-item GRPO score, do not let it stand in for the score, or you repeat the 5.3 OPSD run that learned poems yet stayed unstable;
  • Step 4: sweep the pull weight: set it too high and the model starts guessing wildly, output length grows, then coding pass-rate collapses, set it low and training stays steady but slower;
  • Step 5: include the thinking words in the pull too, or style scores swing back and forth, in Figure 7 the curve only rises once that is on.

That word 'wildly' has a measured form in the paper: entropy, roughly how unsure the model is about the next word; a sharp entropy spike tends to come with longer outputs, then a pass-rate slide, and Figure 6 draws that chain clearly [1]. In 5.3 the authors also run a harsher test: every turn must report status as a short poem. GRPO lifts coding pass-rate as usual, yet never learns to write poems; OPSD, given the hint but no matching poem score, does learn poems, but the curve jumps around and pass-rate falls; a variant that gives the hint on every turn, pass or fail, drops pass-rate too. Those three runs pin down why both brakes are needed.

Where it stops, and my judgment

Draw the limit first [1]. The paper lists its own caveats. One, all 7 scored items need a human-written static hint; whether a hint works is checked by hand, since the authors only query the base model with a candidate line, compare average scores to the hint-free model, and keep lines that help. Learning hints automatically, or learning the weight between the RL signal and the hint pull, is left to later work. Two, all the runs sit in one multi-turn software engineering harness, and the targets are almost all style and format, not core task intelligence; carry this to a brand-new reasoning skill and the result is out of scope. Three, the authors say a batch of earlier OPSD variants could not be ported for a head-to-head test.

One more easy-to-miss caveat: the whole thing leans on the base model reading hints zero-shot, and on a human writing the judge's prompt; if either breaks down, that hint signal breaks down with it.

So do not read this as a general score-raising trick. It only holds in a narrow case: you have a judge that scores item by item, and you are willing to write one plain line per item; the target is a behavior the model never produced, and you refuse to move the main-task score. That is its home ground.

Here is the limit, stated flatly: this method only holds when a judge scores item by item, the setup is a multi-turn software engineering harness, and every item has a writable hint. Ask a model to learn a brand-new reasoning skill from scratch, or move to a task with no judge, and the result no longer holds; lifting core task intelligence is out of scope too [1]. The line worth screenshotting: this method does not teach a model to earn a higher score, it teaches it to produce, once, a behavior it never produced, and the price is that you must not damage what it already does.

References

  1. Stabilizing On-Policy Targeted Guidance in Agentic Reinforcement Learning

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…