Feedback That Backfires: Why Small Language Model Agents Repeat the Call They Just Watched Fail
Reading guide · Based on sections of the original paper
Why read this
Engineers building agent harnesses around sub-2B open-weight models should read it for cheap, measured context and decoder changes that reduce repeat loops, and for evidence that clean restarts backfire under greedy decoding.
What the authors found
- In teacher-forced probes on the authors' ToolShed environment, all 6 checkpoints (135M–1.7B, 4 families) had negative corrective gain, averaging −17.38 nats, compared with the pre-attempt context. Every interval excluded zero. Per action token, the effect was similar on MBPP repair with real interpreter output. 6.1 The headline measurement
- Rewording the error barely moved repetition. Replacing the verbatim call with a runtime-generated failure description removed nearly all of the effect relative to the standard harness and drove the exact greedy repeat rate to zero. Removing the surface form does.
- In free-running rollouts with Qwen2.5-0.5B (24 tasks, greedy decoding), deleting the failed step, i.e. a clean restart, raised exact repeats from 31% to 80% compared with the standard harness. A decoder ban on previously failed strings cut repeats to 8%. Clearing the context is not a fix; it is the worst case.
Main limitation
Neither surface-form intervention raised task success in the single-model, 24-task rollout. Only the 'do not repeat' instruction did, and it did not reduce repetition. The authors restrict the clean-restart result to deterministic decoding and say they tested no models above 1.7B. Their cross-study summary in S62 also conflicts with these rollout numbers. Neither surface-form intervention improves task success, and we say so.
Where to start
Summary of the ordering. · See how all six harnesses rank on loop rate, and the authors' acknowledgment that task success does not follow that ranking.
Abstract
Agent harnesses record a failed tool call and its error message in the transcript and ask the model to continue, on the assumption that the error is corrective information. We measure whether it is. Defining the corrective gain of a failure record as the change in log-probability of re-emitting the action that just failed, we find the gain is negative for every instruction-tuned model we tested (6 checkpoints, 135M-1.7B, 4 families) in two environments: simulated tool calling and MBPP program repair. Normalised by action length the effect is about -1.03 nats per action token, a factor of 2.8 in the odds of each token, and holds on 90%-100% of individual items, not only on average. Over a fixed candidate set the probability of repeating the failed call rises from 0.06 to 0.54, and greedy decoding reproduces it token for token on 19% of items after the failure versus 0% before. Counterfactuals pairing the same call with a failure message, a success message, or a neutral acknowledgement separate two effects: the failed call's surface form accounts for 83% of the damage, while the semantic contribution of marking it failed is small and inconsistent in sign across environments. The problem is in the harness, not the model's grasp of error messages, and that predicts which remedies work. Replacing the verbatim call with a runtime-generated description of the failure removes 76% of the inversion at no token cost, and making previously-failed strings unreachable at the decoder acts on the same term. Two plausible remedies do not: an explicit "do not repeat" instruction leaves the measured quantity where it was, and deleting the failed attempt to retry from a clean context, the standard prescription for context contamination, is the worst harness we measured for repetition, because it restores the context that produced the failure. The study runs end to end on a CPU; all artefacts are released.