Manuscript Offprint
arXiv:2610.30205Feedback That Backfires in Games: Do LLM Players Repeat the Move They Just Watched Fail?
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
When an LLM agent’s move fails, the harness writes the move and the failure message into the transcript and asks again. In tool calling, this record makes small models more likely to repeat the failed action. We test whether the same holds in games (Sokoban, Connect Four, Othello), where a move can fail by being illegal or by being legal but losing, both verified exactly. On fixed probe items built by perturbing a correct move, the record backfires: pooled over 8 instruction-tuned models (135M–1.7B) it makes the failed move more likely (corrective gain nats per token), through the move’s surface form, for illegal moves but not for losing ones, and not for every model. An exploratory analysis shows what sets the sign: after the record, the failed move’s log-probability barely depends on how likely it was before (slope 0.18). Moves the model would not have played become more likely, and greedy decoding starts to produce them; moves it was about to play become less likely, but greedy decoding still repeats 38% of them. A description of the failure that omits the move string keeps the model’s preference instead. Along the OLMo 2 1B post-training ladder the inversion is present in the base model and largely removed at the DPO stage. RAGEN’s default models invert in RAGEN’s own Sokoban format before any RL. A “do not repeat” instruction does nothing, a clean retry is the worst harness, and a decoder ban stops exact repeats but not illegal play. All measurements ran in float32 on a free Colab GPU, which first reproduced the original paper’s number.
1 Introduction
When an LLM plays a game through a harness, some of its moves fail. The harness then does what agent harnesses do with a failed tool call: it writes the move into the transcript, adds the referee's message (Illegal move: that column is already full.) and asks for another move. The message is ground truth, and a player that reads it should not try the same move again. Yet LLM players are known to get stuck repeating rejected moves; in XiangqiBench, rejected moves make up a third of all calls in failed trials of one protocol [Chai et al., 2026].
In earlier work we measured what such a failure record does to a small model’s next action in tool calling and program repair [Gumaan, 2026]. Defining the corrective gain G of the record as the drop in log-probability of re-emitting the failed action, we found it negative for every instruction-tuned model we tested: the record made the failed call more likely, mostly because the call’s surface form was now in the context. This paper asks whether that holds for game play, where the setting allows three things tool calling did not.
First, a move can fail in two ways: it can be illegal, or legal but losing, and both can be verified exactly (a one-ply check in Connect Four, an exhaustive search for Sokoban deadlocks). Second, the
Preprint.
same move can be written in different notations, which varies the surface form while holding the decision fixed. Third, a completion format lets us probe base models, so the measurement can follow one model through the stages of post-training. We use Sokoban, Connect Four and Othello, and ask four questions: RQ1, does the failure record backfire in games, for illegal and for losing moves? RQ2, which stage of training produces it, along the public OLMo 2 1B ladder from base to Instruct [OLMo et al., 2024]? RQ3, how do the default models of RAGEN [Wang et al., 2025], the standard multi-turn RL framework for these games, behave in RAGEN's own prompt format? RQ4, do the original paper's remedies transfer?
• The sign depends on how plausible the failed move was (Section 6). After the record, the failed move’s log-probability barely depends on its value before the attempt (slope 0.18 per nat). Moves the model would not have played become more likely; greedy decoding, which never produced them, produces 22% of them after the record. Moves the model was likely to play become less likely, but greedy decoding still repeats 38% of them. This flattening comes with writing the move: a description of the failure without the move string keeps the model’s preference.
• Along the OLMo 2 ladder the inversion is already present in the base model, and the DPO stage removes most of it (Section 7).
• In RAGEN’s format, both untrained default models invert on illegal Sokoban actions, with RAGEN’s own feedback as well (Section 9).
• A “do not repeat” instruction does nothing and a clean retry is the worst harness for repetition, as in tool calling. The runtime-generated description removes most of the inversion on average but not for every model; a decoder ban removes exact repeats but not illegal play (Section 10).
We could not run the RL half of RQ3 or a 7B scale check; everything reported here ran in float32 on a free Colab GPU after the GPU reproduced the original paper's headline number (Section 4). Code, items, raw per-item records and run metadata are available at https://github.com/Esmail-ibraheem/feedback-that-backfires/tree/games.
2 Related work
The measurement this paper extends. Gumaan [2026] define the corrective gain and find it negative for six instruction-tuned models (135M–1.7B) in simulated tool calling and MBPP program repair, with most of the damage carried by the failed call's surface form. Replacing the call with a runtime-generated description of the failure removed most of the inversion; an explicit “do not repeat” instruction and a clean retry did not. That study left three things open, and they define this one: whether the effect appears outside tool use, in a setting where a failure can be illegal or merely bad; which stage of training produces it; and whether training on the task, rather than editing the harness, removes it.
LLMs that repeat themselves in decisions. Schmied et al. [2025] identify greediness, frequency bias and a knowing-doing gap in LLM agents on bandits and tic-tac-toe, and show that RL fine-tuning on self-generated rationales reduces but does not remove them. Their frequency bias is a tendency to repeat the action that is most frequent in the context; they do not condition on failure feedback, and they measure behaviour, not log-probabilities. We ask the narrower counterfactual question of what a failure record does to the probability of the failed move, which their setup does not separate from frequency.
Multi-turn RL for LLM agents. RAGEN and its StarPO objective [Wang et al., 2025] train small models on Sokoban, FrozenLake and bandits and describe an “Echo Trap”, a training-time collapse into repetitive reasoning with falling reward variance. That is a property of the training dynamics;
ours is an inference-time property of the transcript. We probe RAGEN's default models in RAGEN's own prompt format, which is where RL on the game would start; measuring the same models after training is left open.
Games as agent benchmarks. XiangqiBench [Chai et al., 2026] evaluates frontier LLMs as closed-loop players; in its restricted-observation protocol, rejected moves make up a third of all calls in failed trials and about a fifteenth in successful ones. It reports the symptom without isolating a cause, and we use it as motivation only, since our experiments include no chess-family game. BALROG [Paglieri et al., 2024], TextArena [Guertler et al., 2025], SmartPlay [Wu et al., 2023] and GTBench [Duan et al., 2024] score policies across many games; like the agent benchmarks the original discussed, they are built to rank models, not to expose the counterfactual observations a decomposition needs.
Feedback in the transcript. ReAct [Yao et al., 2022], Reflexion [Shinn et al., 2023] and Self-Refine [Madaan et al., 2023] append actions, observations or critiques to a growing transcript on the premise that feedback is informative. Work on context contamination [Yang, 2026] finds that retries in a context that still holds the failed attempt fail more often and prescribes clearing the context; the original showed that this clean retry was the worst harness under greedy decoding.
Copying. Induction heads implement prefix matching and copying [Olsson et al., 2022], and repetition is self-reinforcing in open-ended generation [Xu et al., 2022]. If the inversion is copying, it should already be present in a base model, before any instruction tuning; the post-training ladder of OLMo 2 [OLMo et al., 2024], whose checkpoints differ only in post-training, makes that testable.
Negative instructions. Naming something raises its probability even under an instruction to avoid it [Castricato et al., 2024, Vrabcová et al., 2025]; the original’s “do not repeat” result is an instance, and we test whether it transfers.
3 Measuring the gain in games
3.1 The quantity
We use the original paper’s definitions unchanged [Gumaan, 2026]. Fix a decision point: a context that ends with a position and a request for a move, a move that fails at , the runtime’s observation , and a correct move . The corrective gain of the failure record is
where is the summed token log-probability of the move string and appends one agent turn and one runtime turn to the transcript. is what a harness is for: after the failure is recorded the failed move is less likely. is feedback inversion. With a valence-free observation (Move received.) the gain splits into a surface-form and a semantic term,
with by construction. is what merely having written the move does; is what saying that it failed adds. A counterfactual success observation (Move accepted.) gives the polarity contrast . We report every quantity in nats and, because move strings differ in length across notations, per token of the move (the original's normalisation), and we add the original's two readouts: the probability of the failed move normalised over a fixed four-move candidate set , and whether greedy decoding would reproduce token for token, which is read off the argmax path of the teacher-forced pass at no extra cost.
3.2 Two kinds of failure
Games let us ask a question tool calling could not: does it matter why the move failed?
Illegal moves. The runtime rejects the move and the position is unchanged: a full or non-existent column in Connect Four; an occupied square, a placement that flips nothing, or an off-board square in Othello; an unknown action, a walk into a wall, or a push against a wall or box in Sokoban.
Legal but losing moves. The move is accepted and is a mistake, and the harness lets the agent retry from the restored position. The loss is verified exactly, never judged: in Connect Four a move is losing if, after it, the opponent has an immediate winning reply (checked by trying every reply; a move that wins at once is never labelled losing); in Sokoban a push is a deadlock if the room was solvable before it and is not after it (an exact breadth-first search over player and box positions). The message says so and that the position has been restored.
3.3 Conditions
All conditions of an item share the system prompt, the goal, the successful prefix and the position s, byte for byte. Every post-attempt condition re-shows the same position s after its message, so conditions differ in exactly one thing, the record of the attempt (Table 8 in the appendix lists them all). The core set is the original's: pre (no attempt; also the clean-retry context), fail (the move and its failure message), succ, neut, and abstract (a runtime-generated description of the failure, with no move string). The remedy and control set adds fail_instr (a "do not repeat" instruction in the system prompt), fail_echo (the message also quotes the move), fail_k2 (the move fails twice), fail_other (a different failing move failed; the scored move was never written) and abstract_min (a bare failure marker). In the RAGEN format a further condition, fail_native, uses RAGEN's own feedback: its invalid-action warning, or nothing at all after a blocked move.
Two rules from the original keep the decomposition clean. First, the primary failure message never contains the move string (Illegal move: that column is already full., not column 4 is full); otherwise fail would hold the move twice and neut once, and occurrence count would leak into . Naming the move is the separate fail_echo manipulation. Second, the abstract description contains no move string and no digit in any notation: its counter is an ordinal word ([first attempt failed: the chosen column was already full; that move is not repeatable]), because a digit would be the move in the numeric notations.
3.4 Which failed move to probe
The original fixed the failing action by a perturbation operator so that every model was probed on byte-identical items; sampling each model's own mistakes would confound model with item difficulty. We keep that as the primary design and add two other sources, recording the source of every item. (b) Perturbation items apply an operator to the correct move: an adjacent or mirrored column; an adjacent, transposed or mirrored square; the opposite or a perpendicular direction, or a compass synonym (North for Up). An item is kept only if the result fails at s, and items are balanced over failure types. (c) Random items draw the failing move uniformly from every failing move expressible at s, a control. (a) Model-proposed items are the realistic case and are model-specific by construction: a proposal pass scores every move of the game, legal and illegal, at pre, and the item is the highest-ranked failing move among that model's top three. They are analysed as a robustness check, never pooled with the shared items in a cross-model comparison.
3.5 Mechanism test: notation
If the inversion is carried by the move's surface form, the way a move is written should change its size. Each game has three notations: a short code (4, d3, U), a verbose phrase (drop a disc into column 4, place a disc on column d, row 3, move the player one square up) and a plain zero-based index (3, 19, 0). Othello indices are zero-padded so that no move string is a prefix of another, which the unterminated scoring of the original requires. The board, rules and messages are otherwise identical across notations; only Connect Four's column labels follow the notation. For every item and model we record the move's length in tokens and its token overlap with the legal alternatives at s (the largest multiset overlap with any legal move), and regress the per-token gain on notation, length and overlap with random effects for position and model.
3.6 Formats, and why there are three
A post-training ladder starts at a base model, which has no chat template. We therefore probe every checkpoint of the ladder in one completion format: the rules, a blank line, then Referee: and Player: lines, ending in Player:, with the scored continuation _move, exactly as the move appears once written. Chat checkpoints are also probed in their own chat template, as a robustness check and for the cross-model study. RAGEN's default models are also probed in the RAGEN format: RAGEN's system prompt, Turn k: and State: blocks, Reward: lines, answers in <answer> tags, and our messages in RAGEN's warning slot. Our tests extract RAGEN's own prompt-building functions from its source and check that the messages we build are identical, so the models are probed on exactly the prompt shape that RL on the game would train them on. All three formats are rendered from one transcript representation, so a condition is defined once and cannot drift between formats.
3.7 Scoring and statistics
Scoring is the original’s code, vendored unchanged: teacher-forced, in float32, with a prefix key/value cache that crops to the longest common prefix of consecutive contexts and a finite-logits check at load and on every forward pass. On SmolLM2-135M a sample of items in each of the three formats is re-scored without the cache and must agree to nats. Items that share a position share a context, so every interval is a 95% cluster bootstrap over positions (10,000 resamples), and contrasts between conditions, checkpoints or harnesses are paired item by item. The bootstrap is the original’s estimator; we compute it without its per-resample loop, from the same random draws, and a test checks that both give the same intervals.
The new code reproduces the old number. Before any game was scored, the original paper’s 100 tool-calling items were run through the new pipeline on SmolLM2-135M, first on the original’s laptop CPU and then on the GPU used for every result here. The CPU run returns nats, against -23.92 in the original, with every stored log-probability reproduced to within nats; the GPU run returns -23.92, within nats of the CPU rows.
4 Experimental setup
4.1 Games
We use three games and no others; none involves chance or a chess-family piece set.
Sokoban. Rooms come from RAGEN's own generator [Wang et al., 2025], vendored unchanged, with its SimpleSokoban parameters: , one box, text grid. Step semantics and rewards follow gym-sokoban [Schrader, 2018], which RAGEN wraps. The agent is shown the moves it has made so far (at most 3), so a probe context starts at the room's first turn, as a RAGEN transcript does. Failure types: unknown action, walk into a wall, push against a wall or box (illegal), and deadlock push (losing).
Connect Four . Positions are taken from seeded self-play between random and one-ply-greedy players. The context shows the position two agent turns earlier and the two most recent agent moves with the opponent's replies. Failure types: full column and non-existent column (illegal), and losing move (legal; the opponent can win at once).
Othello . Positions from seeded self-play as above, with the same two-turn window; windows that contain a pass are skipped so that turns alternate. Failure types: occupied square, placement that flips nothing, off-board square (all illegal). We do not label losing moves in Othello.
4.2 Items
Each game contributes one decision point per position: 100 for Sokoban, 80 for Connect Four and 80 for Othello. Perturbation items are balanced over failure types (20 per type) and 20 random-source items are added per game; Appendix E gives the counts by failure type, source and operator. A run scores a prefix of one fixed order of the positions that cycles over failure types: 40 positions per game for the RQ1 models up to 0.6B and for the remedy study, 30 for the four larger RQ1 models, 20 for each OLMo 2 checkpoint, and 60 Sokoban positions in the RAGEN format. These sample sizes were set for a laptop CPU (Appendix A). A smaller sample is a prefix of a larger one, so a model scored on fewer positions sees a subset of the same items. Every decision point is rendered in every notation, so the notation contrast is within position. All messages are fixed in a versioned file (Appendix C). A
| Model | G per move token, by game | pooled over games | G < 0 | ||||
|---|---|---|---|---|---|---|---|
| Sokoban | Connect Four | Othello | G/tok | ||||
| SmolLM2-135M | -2.35 [-2.84, -1.86] | -1.34 [-1.98, -0.71] | -1.22 [-1.47, -0.98] | -1.64 [-1.93, -1.35] | 1.47 [1.16, 1.78] | 0.17 [0.09, 0.24] | 92% |
| SmolLM2-360M | -1.14 [-1.74, -0.58] | -0.95 [-1.42, -0.50] | -1.18 [-1.41, -0.98] | -1.09 [-1.36, -0.85] | 1.11 [0.86, 1.37] | -0.02 [-0.10, 0.07] | 74% |
| Qwen2.5-0.5B | -0.33 [-1.54, 0.85] | -0.20 [-1.05, 0.64] | 0.39 [-0.01, 0.76] | -0.05 [-0.58, 0.44] | -0.33 [-0.86, 0.23] | 0.38 [0.13, 0.65] | 40% |
| Qwen3-0.6B | -5.24 [-6.51, -3.97] | -6.68 [-7.75, -5.52] | -4.45 [-4.95, -3.96] | -5.45 [-6.08, -4.85] | 5.62 [5.02, 6.25] | -0.17 [-0.21, -0.13] | 92% |
| Llama-3.2-1B | 0.48 [-0.18, 1.06] | 0.36 [-0.61, 1.28] | 1.15 [0.79, 1.49] | 0.66 [0.26, 1.05] | -0.52 [-0.95, -0.08] | -0.15 [-0.26, -0.02] | 23% |
| Qwen2.5-1.5B | -2.02 [-3.73, -0.46] | -1.72 [-3.94, 0.36] | 1.12 [0.53, 1.70] | -0.87 [-1.85, 0.05] | 0.72 [-0.11, 1.59] | 0.15 [-0.13, 0.42] | 44% |
| SmolLM2-1.7B | -0.74 [-1.65, 0.11] | -0.44 [-1.14, 0.22] | -0.73 [-0.99, -0.47] | -0.64 [-1.02, -0.26] | -0.19 [-0.55, 0.20] | 0.82 [0.63, 1.02] | 58% |
| Qwen3-1.7B | -0.11 [-2.95, 2.65] | -3.57 [-5.27, -1.91] | 0.51 [-1.12, 2.05] | -1.06 [-2.32, 0.22] | 2.04 [1.12, 2.98] | -0.98 [-1.76, -0.21] | 50% |
Table 1: RQ1: corrective gain of a failure record, instruction-tuned models in their chat template, short notation, shared items (perturbation and random sources). Nats per move token; is feedback inversion. Cells: mean and cluster-bootstrap interval over positions; bold intervals exclude zero. Last column: share of items with .
check found that the failed move is not always new to the context: in 15/80 of the Connect Four and 24/100 of the Sokoban decision points the failed move equals one of the agent's own earlier moves (in Sokoban, the deadlock push often continues the previous direction). Tool calls in the original never had this property; we record it per item and use it as a covariate.
4.3 Models
Instruction-tuned models (RQ1). The original paper's models for continuity, plus two: SmolLM2-135M, SmolLM2-360M, Qwen2.5-0.5B, Qwen3-0.6B, Llama-3.2-1B, Qwen2.5-1.5B, SmolLM2-1.7B, Qwen3-1.7B, each probed in its own chat template [Allal et al., 2025, Qwen et al., 2024, Yang et al., 2025, Grattafiori et al., 2024].
The OLMo 2 1B post-training ladder (RQ2). The five public checkpoints of allenai/OLMo-2-0425-1B: base, SFT, DPO, RLVR and the released Instruct model [OLMo et al., 2024], which follow the Tulu 3 recipe [Lambert et al., 2024]. All five share one tokenizer and one architecture and differ only in post-training, which is what makes the stage comparison interpretable. Every checkpoint is probed in the completion format, the four post-trained ones also in their chat template.
The RAGEN format (RQ3). Qwen2.5-0.5B-Instruct and Qwen2.5-1.5B-Instruct, RAGEN's default models and members of the RQ1 set, probed on Sokoban in RAGEN's own Simple-Sokoban prompt, in no-think mode with one action per turn, the setting in which RAGEN trains them [Wang et al., 2025]. These are the untrained starting points of RL on the game. Training them with StarPO and probing again, which our proposal planned as the second half of RQ3, needed more GPU time than we had (Section 12).
Every checkpoint is pinned to a Hugging Face revision (Table 7 in the appendix).
4.4 Hardware and numerics
All reported scoring and free play ran on one Tesla T4 in Google Colab's free tier, in float32 with TF32 matrix multiplication disabled, under PyTorch 2.11.0+cu130 and Transformers 4.56.1, the Transformers version of the original run of record. Items were built, and the pipeline was developed and first validated, on the original paper's laptop (Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz, PyTorch 2.4.0+cpu). Before any game was scored, the GPU had to reproduce the original paper's number (Section 3.7; tolerance nats per log-probability) and cached and uncached scoring had to agree on it in all three formats. A small CPU pilot run during development is not used for any reported number, so every result in this paper comes from one device.
5 RQ1: does the failure record backfire in games?
Table 1 gives the corrective gain of a failure record for each instruction-tuned model, per game and pooled over the three games, on the shared items. Pooled over the 8 models, the record raises the probability of the move that just failed: nats per move token, negative on of the 840 (model, item) pairs. On a probability scale, the normalised probability of the failed

Figure 1: The decomposition by game, pooled over the RQ1 models (shared items, nats per move token, intervals clustered on position). Positive bars push towards repeating the failed move.
| Game | Failure | G/tok | P(repeat) | greedy repeat | n | ||
|---|---|---|---|---|---|---|---|
| Sokoban | illegal | -2.12 [-3.28, -1.04] | 1.89 [1.11, 2.76] | 0.23 [-0.17, 0.62] | 0.25 → 0.39 | 18% → 35% | 212 |
| Sokoban | losing | 0.23 [-0.26, 0.60] | 0.35 [-0.11, 0.79] | -0.58 [-0.87, -0.18] | 0.45 → 0.38 | 38% → 19% | 68 |
| Connect Four | illegal | -2.40 [-3.53, -1.33] | 2.78 [1.78, 3.87] | -0.39 [-0.51, -0.26] | 0.20 → 0.30 | 7% → 20% | 188 |
| Connect Four | losing | -0.84 [-1.48, -0.22] | 0.78 [0.01, 1.53] | 0.06 [-0.25, 0.35] | 0.26 → 0.33 | 16% → 22% | 92 |
| Othello | illegal | -0.70 [-1.10, -0.34] | 0.39 [0.07, 0.75] | 0.31 [0.20, 0.42] | 0.21 → 0.34 | 1% → 18% | 280 |
Table 2: RQ1 by game and failure class, pooled over the instruction-tuned models (intervals clustered on position). : probability of the failed move normalised over the four-move candidate set, before after the failure record. Greedy repeat: share of items on which greedy decoding reproduces the failed move token for token, before after.
move over the four-move candidate set rises from 0.24 before the attempt to 0.35 after it, and greedy decoding reproduces the failed move token for token on of items after the failure, against before it.
As in tool calling, the increase is carried by the surface form. Writing the move into the transcript with a valence-free acknowledgement accounts for [+0.95,+1.76] nats per token; replacing that acknowledgement with the failure message changes the failed move's log-probability by a further [-0.10,+0.17], an interval that includes zero (Figure 1).
Not every model. The pooled number hides a spread. 4 of the 8 models invert with intervals entirely below zero (SmolLM2-135M, SmolLM2-360M, Qwen3-0.6B and SmolLM2-1.7B), and 3 more have point estimates below zero but intervals that include it (Qwen2.5-0.5B, Qwen2.5-1.5B and Qwen3-1.7B). Llama-3.2-1B goes the other way: its gain is positive, +0.66 [+0.26,+1.05], and its copy term is negative, -0.52 [-0.95,-0.08]. For this model, seeing its own move in the transcript makes that move less likely. The pooled mean is also strongly influenced by Qwen3-0.6B, whose inversion (-5.45 [-6.08,-4.85]) is the largest we measured. In the original's tool-calling study every model inverted; in games, 7 of the 8 point estimates are below zero.
Illegal versus losing moves. Figure 2 and Table 2 separate the two kinds of failure. Illegal moves invert clearly: [-2.16, -1.11] nats per token, negative on of items, with a copy term of +1.52 [+1.07, +2.01]. Legal but losing moves invert much less, [-0.90, +0.06] (23 positions), an interval that includes zero. Their copy term is still positive (+0.59 [+0.10, +1.09]), but greedy decoding repeats a losing move less often after the failure (21%) than before it (26%). By game, losing moves in Connect Four give -0.84 [-1.48, -0.22] and deadlock pushes in Sokoban +0.23 [-0.26, +0.60].
The model's own mistakes go the other way. On the realistic items, where the failed move is the highest-ranked failing move among the model's own top three, the sign flips: [+1.18, +1.49] nats per token (759 items), negative on only . These items differ between models by construction
Negative = the failure record made the failed move more likely

illegal move losing move
Figure 2: RQ1 by model, game and failure class (chat template, short notation, shared items). Points: mean G per move token; bars: 95% cluster-bootstrap intervals over positions. Othello has no losing items.
and are never pooled with the shared ones, but the difference is too large to be a detail. Section 6 shows what separates the two kinds of item: how plausible the failed move was before the attempt.
Answer. H1 holds on the fixed items: a recorded illegal move makes that move more likely, through its surface form, for most but not all of the models. H2 does not hold: for legal but losing moves the pooled gain is indistinguishable from zero. On the models' own likely mistakes the record lowers the failed move's probability instead.
6 What sets the sign: the record flattens the model’s preference
This analysis was not part of our plan. We report it because it explains the opposite signs of Section 5, and because it changes what the inversion means for an agent.
Call a failed move’s log-probability before the attempt, , its prior. If a failure record shifted every failed move by the same amount, the log-probability after the record would follow the prior with slope one. It does not (Figure 3, left). Over all 2079 RQ1 items, shared and model-proposed, the per-token log-probability of the failed move after the verbatim failure record has a slope of +0.18 on its prior; per model the slope lies between 0.02 and 0.35. After the record, how likely the model is to repeat a move hardly depends on how much it wanted the move before. The valence-free record does nearly the same (slope +0.24 ), so the flattening comes with writing the move into the transcript, not with the failure message. The abstract description, which reports the same failure without the move string, keeps most of the preference (+0.75 ).
Flattening has opposite consequences at the two ends of the prior (Figure 3, right).
• Moves the model would not have played (prior below 1%, 652 items) become more likely: nats per token. Greedy decoding never produced them before the attempt (0%); after the verbatim record it produces them on 22% of items, after the abstract description on 0%.
• Moves the model was likely to play (prior above 30%, 469 items) become less likely: . Greedy repetition falls from 91% to 38% after the verbatim record, but only to 60% after the abstract description.
The fixed items of the original design lean towards the first kind. A perturbed or random failing move is usually one the model would not propose: 48% of the shared items have a prior below 1% and 10% one above 30%, against 2% and 44% of the model-proposed items. That is why the fixed items invert. A failure in free play is of the second kind by construction, since the agent wrote the move because it was likely. On the model-proposed items, greedy decoding repeats the failed move on 32% of items after the verbatim record, against 66% before the attempt and 36% after the abstract description.

Figure 3: Exploratory. Left: mean per-token log-probability of the failed move after each kind of record, against its value before the attempt (deciles of the latter; RQ1 models, chat template, all item sources). The dashed line is no change. Right: share of items on which greedy decoding reproduces the failed move, by its prior probability; bars are 95% cluster intervals over positions.
| Stage | G/tok, completion format | mean over notations | chat | |||
|---|---|---|---|---|---|---|
| short | verbose | index | G/tok (short) | |||
| base | -0.76 [-1.07, -0.48] | -0.20 [-0.29, -0.12] | -0.59 [-0.81, -0.38] | 0.49 | 0.03 | - |
| SFT | -0.56 [-0.90, -0.22] | -0.16 [-0.24, -0.08] | -0.54 [-0.86, -0.24] | 0.28 | 0.14 | -0.30 [-0.72, 0.10] |
| DPO | -0.16 [-0.63, 0.27] | -0.06 [-0.16, 0.03] | -0.13 [-0.53, 0.25] | -0.23 | 0.35 | 0.16 [-0.32, 0.62] |
| RLVR1 | -0.24 [-0.71, 0.20] | -0.06 [-0.15, 0.03] | -0.15 [-0.54, 0.23] | -0.20 | 0.35 | -0.06 [-0.49, 0.35] |
| Instruct | -0.26 [-0.73, 0.19] | -0.06 [-0.15, 0.03] | -0.17 [-0.58, 0.24] | -0.20 | 0.37 | -0.16 [-0.60, 0.27] |
Table 3: RQ2: the OLMo 2 1B post-training ladder. Every checkpoint is probed on the same items in one completion format; the post-trained checkpoints also in their chat template. Pooled over the three games; shared items; intervals clustered on position.
Two qualifications. First, contains the prior, so a slope below one is the same statement as growing with the prior, and any change of context unrelated to the move would weaken the dependence on the prior to some degree. The informative comparison is therefore between records that differ in one thing: writing the move flattens the preference, describing the failure without it does not. Second, the flattening is format-dependent. In the completion format of RQ2 the slope is larger (+0.45 [+0.37, +0.55] for the OLMo 2 base model), in RAGEN's format of RQ3 smaller (+0.09 [+0.04, +0.13]).
7 RQ2: which training stage?
The five OLMo 2 1B checkpoints differ only in post-training, and all are probed on the same items in one completion format (Table 3, Figure 4). Each stage is compared with the one before it item by item, so the contrasts below are paired over the same 180 (item, notation) pairs from 60 positions.
The base model already inverts. Before any post-training, the failure record raises the failed move's probability: [-0.70, -0.34] nats per token, negative on 82% of items. The surface form carries it ( [+0.31, +0.67]); the failure message adds almost nothing ( [+0.02, +0.05]). H4 holds: the inversion does not need instruction tuning, which fits a copying mechanism learned in pretraining.
Preference tuning is where it shrinks. Supervised fine-tuning changes the gain little (paired change +0.10 [-0.00, +0.20]), although it already lowers the copy term (-0.21 [-0.32, -0.09]). The DPO stage is the largest step: the gain rises by +0.30 [+0.21, +0.38] nats per token, and at DPO it is -0.12 [-0.39, +0.15], an interval that includes zero. The copy term falls by -0.51 [-0.59, -0.42] and is no longer positive (-0.23 [-0.51, +0.05]): after DPO, having written a move with a neutral acknowledgement no longer makes it more likely. The semantic term moves the other way, by +0.21 [+0.18, +0.24], to +0.35 [+0.30, +0.39]. Relative to a neutral acknowledgement, being told that the move failed now makes it more likely, which keeps the gain from turning clearly positive. RLVR (-0.03 [-0.06, -0.00]) and the final Instruct

short
notation
verbose
index
Figure 4: RQ2: the OLMo 2 1B post-training ladder in the completion format, by notation (shared items, nats per move token, 95% intervals clustered on position).
| RQ2 ladder | + prior | RQ1 models | + prior | |
|---|---|---|---|---|
| notation: verbose (vs. short) | 0.48 (0.25) | 0.53 (0.15) | -0.16 (0.78) | -2.12 (0.34) |
| notation: index (vs. short) | -0.19 (0.08) | -0.28 (0.05) | -0.06 (0.20) | -0.44 (0.11) |
| move length in tokens (z) | -0.36 (0.11) | -0.84 (0.06) | -0.03 (0.28) | -0.03 (0.13) |
| token overlap with a legal move | 0.86 (0.17) | -0.55 (0.11) | 1.12 (0.36) | 0.05 (0.15) |
| prior log-prob. of the move, per token | 0.81 (0.02) | 0.92 (0.01) | ||
| losing (vs. illegal) | -0.37 (0.24) | -0.17 (0.13) | ||
| items | 1140 | 1140 | 1320 | 1320 |
Table 4: Mechanism test: mixed-effects regression of per move token on notation, move length and token overlap, with random effects for position and model (shared items). Coefficients in nats per token with standard errors; bold: . Positive coefficients mean less inversion. The “+ prior” columns add the failed move’s log-probability before the attempt, which also enters itself (see text).
model (-0.01 [-0.03, +0.01]) change little after that. In their own chat template the post-trained checkpoints show the same step from SFT to DPO (+0.46 [+0.33, +0.59]).
Answer. Within this ladder, the inversion comes from the base model, and preference tuning, not supervised fine-tuning or RL with verifiable rewards, is the stage that removes most of it. One ladder at one scale cannot say whether this is a property of DPO or of this recipe's preference data.
8 Mechanism test: does the notation matter?
If the inversion is carried by the move's surface form, the way a move is written should change its size (H3: more inversion for longer moves and for moves that share more tokens with the legal alternatives). Notation varies within position in two places: the OLMo 2 ladder, where every item is probed in all three notations, and two of the RQ1 models (SmolLM2-360M and Qwen2.5-0.5B), which we also probed in the verbose and index notations. Table 4 gives the mixed-effects regressions.
The ladder. Longer moves invert more per token (-0.36 (SE 0.11, ) per standard deviation of length), in line with H3. The index notation inverts slightly more than the short one (-0.19 (SE 0.08, )), the verbose one, if anything, less (+0.48 (SE 0.25, )). Token overlap with a legal move goes against H3: moves that share more tokens with a legal alternative invert less (+0.86 (SE 0.17, )).
The chat models. With notation varied on two models only, neither notation contrast is distinguishable from zero (verbose -0.16 (SE 0.78, ), index -0.06 (SE 0.20, ) and neither is length (-0.03 (SE 0.28, )); overlap again goes against H3 (+1.12 (SE 0.36, )).
| Model | Failure | G | G, RAGEN's own feedback | positions | ||
|---|---|---|---|---|---|---|
| Qwen2.5-0.5B | illegal (wall, box, unknown) | -2.08 [-3.24, -0.97] | 2.05 [0.75, 3.36] | 0.03 [-0.19, 0.28] | -2.39 [-3.75, -1.02] | 45 |
| Qwen2.5-0.5B | deadlock push | 0.63 [-0.26, 1.47] | -1.75 [-2.97, -0.49] | 1.12 [0.67, 1.56] | - | 15 |
| Qwen2.5-1.5B | illegal (wall, box, unknown) | -3.82 [-5.54, -2.22] | 3.87 [2.29, 5.54] | -0.05 [-0.13, 0.03] | -3.89 [-5.52, -2.33] | 45 |
| Qwen2.5-1.5B | deadlock push | 0.50 [0.29, 0.75] | -0.13 [-0.38, 0.14] | -0.37 [-0.59, -0.16] | - | 15 |
Table 5: RQ3: Sokoban in RAGEN's own prompt format (SimpleSokoban, no-think, one action per turn), RAGEN's two default models before any training. A RAGEN action is one token, so these are also per-token values. RAGEN's own feedback is its invalid-action warning, or nothing after a blocked move; it is defined for illegal moves only.
Controlling for the prior. Section 6 showed that the failed move's prior largely sets the sign of . Notation, length and overlap all change the prior, so we add it as a covariate (the “+ prior” columns). The prior then dominates (+0.81 (SE 0.02, ) in the ladder, +0.92 (SE 0.01, ) in the chat models; it also enters itself), and several coefficients change sign: overlap now increases the inversion in the ladder (-0.55 (SE 0.11, )), as H3 predicted, and the verbose notation inverts much more in the chat models (-2.12 (SE 0.34, )).
Answer. The notation changes the size of the inversion, and longer moves invert more per token, but the direction of the other effects depends on whether the prior is held fixed. Given equally plausible moves, overlap with a legal move increases the inversion, as a copying account predicts; across moves as they come, overlap goes with plausibility and the net effect is the opposite. We read H3 as supported for length and only conditionally for overlap.
9 RQ3: the RAGEN format, before RL
RQ3 asked whether RL on the game removes the inversion. We could measure only its starting point: RAGEN's two default models, untrained, on Sokoban in RAGEN's own prompt format, which is exactly what StarPO training would see (Table 5).
Illegal actions invert strongly. After an illegal action (a walk into a wall, a push against a wall or box, or an unknown action), the record makes that action more likely for both models: nats for Qwen2.5-0.5B and for Qwen2.5-1.5B (45 positions each). An action is a single token here, so these are also per-token values. The copy term carries it again (+2.05 [+0.75, +3.36] and +3.87 [+2.29, +5.54]). RAGEN's own feedback, its invalid-action warning or no message at all after a blocked move, inverts at least as much as ours (-2.39 [-3.75, -1.02] and -3.89 [-5.52, -2.33]). For Qwen2.5-0.5B the RAGEN format shows a clear inversion where its chat template on Sokoban did not (-0.33 [-1.54, +0.85] per token, on overlapping but not identical positions), and the flattening of Section 6 is strongest in this format (slope +0.09 [+0.04, +0.13]).
Deadlock pushes do not. When the push is legal but makes the room unsolvable, the record lowers its probability: +0.63 [-0.26, +1.47] for Qwen2.5-0.5B, an interval that includes zero, and +0.50 [+0.29, +0.75] for Qwen2.5-1.5B. These rest on only 15 positions.
Answer. In the format that multi-turn RL on Sokoban trains in, the untrained models start with a clear inversion on illegal actions, with RAGEN's own feedback as with ours. Whether RL removes it, and whether that transfers to games it was not trained on (H5), remains to be measured.
10 RQ4: do the remedies transfer?
In the probe. Each harness variant is compared with the verbatim record item by item, as the change in the failed move's log-probability (positive: repetition more likely), pooled over the 3 models of the remedy study, SmolLM2-135M, SmolLM2-360M and Qwen2.5-0.5B (Table 6, Figure 5, left).
-
Replacing the move with the runtime's abstract description lowers the failed move's log-probability by -0.83 [-1.08, -0.58] nats; a bare failure marker does about as well (-0.72 [-0.97, -0.47]).
-
Adding “do not repeat” to the system prompt changes nothing (+0.03 [-0.00, +0.06]), as in tool calling.
| Variant | Sokoban | Connect Four | Othello | pooled |
|---|---|---|---|---|
| abstract description | -1.18 [-1.65, -0.74] | -0.25 [-0.68, 0.17] | -1.05 [-1.38, -0.72] | -0.83 [-1.08, -0.58] |
| bare failure marker | -0.95 [-1.45, -0.48] | -0.21 [-0.61, 0.18] | -0.99 [-1.33, -0.66] | -0.72 [-0.97, -0.47] |
| + "do not repeat" | 0.11 [0.05, 0.17] | 0.04 [-0.02, 0.10] | -0.07 [-0.10, -0.04] | 0.03 [-0.00, 0.06] |
| message quotes the move | 0.49 [0.35, 0.63] | 0.75 [0.67, 0.84] | 1.09 [0.96, 1.22] | 0.78 [0.70, 0.86] |
| the move failed twice | 0.67 [0.53, 0.82] | 1.71 [1.56, 1.85] | 2.67 [2.48, 2.85] | 1.68 [1.51, 1.86] |
| a different move failed | -1.10 [-1.55, -0.68] | -0.45 [-0.88, -0.02] | -0.77 [-1.11, -0.45] | -0.77 [-1.02, -0.54] |
Table 6: RQ4 in the probe: paired change in , nats, of each harness variant relative to the standard verbatim record, item by item (positive = repetition more likely). Pooled over the remedy-study models; intervals clustered on position.
harness variants, pooled over the RQ4 models

each RQ1 model: gain under each record
verbatim record abstract description
Figure 5: RQ4 in the probe. Left: change in of each harness variant against the verbatim record, item by item, pooled over the remedy-study models, by game. Right: for every RQ1 model, the gain under the verbatim record and under the abstract description (nats; shared items). intervals clustered on position.
-
Quoting the move in the failure message (+0.78 [+0.70, +0.86]) and recording it twice (+1.68 [+1.51, +1.86]) make it more likely still, for every model in the remedy study.
-
When a different failing move is recorded, so that the scored move was never written, the scored move is less likely than when it was itself recorded (-0.77 [-1.02, -0.54]). What drives the repetition is the specific string in the transcript.
The abstract description is a core condition, so it is measured for all 8 RQ1 models (Figure 5, right). Pooled, the gain is -1.61 [-2.12, -1.14] nats under the verbatim record and -0.39 [-0.54, -0.24] under the abstract description, which removes 76% of the inversion, close to the share the original reported for tool calling. It is not a fix for every model: it lowers the failed move for 5 models (SmolLM2-135M, SmolLM2-360M, Qwen3-0.6B, SmolLM2-1.7B and Qwen3-1.7B) and raises it for Qwen2.5-0.5B and Llama-3.2-1B, models whose copy term is negative (Table 1). Section 6 adds a second caveat: for moves the model was likely to play, the abstract description stops greedy repetition less well than the verbatim record does.
In free play. SmolLM2-360M and Qwen2.5-0.5B played 8 greedy episodes per game and harness against a random opponent (Figure 6; Table 12 in the appendix). Both are weak players: 81% of all moves are rejected and 68% of episodes end at the step limit, so a win occurs in only 2 of the 6 (model, game) combinations. Averaged over those combinations, the share of failed moves that repeat an earlier failed move exactly is 72% under the verbatim harness, 71% with the instruction, 75% with the abstract description and 94% with the clean retry, which, as in the original, is the worst harness for repetition: greedy decoding in the restored context writes the same move again. Here a failure is the model's own likely move, the case of Section 6 in which the verbatim record lowers repetition rather than raising it, which fits the verbatim harness repeating less than the clean retry. Banning previously failed strings at the decoder removes exact repeats (3% and 0%; at most 12% in any combination), but the share of illegal moves barely moves (81% under the verbatim harness, 79% with the ban): the models replace a repeated illegal move with a different illegal one.
Answer. The original's ranking of remedies transfers in part. The instruction does nothing and the clean retry is the worst harness for repetition, as before. The abstract description removes most of

SmolLM2-360M Qwen2.5-0.5B
Figure 6: Free play under each harness (greedy decoding, random opponent). Points: mean over episodes; bars: 95% bootstrap intervals over episodes.
the inversion on average, but not for every model and not for the moves a model is most likely to repeat. Only the decoder ban reliably stops exact repetition, and at these model sizes it does not turn repetition into legal play.
11 Discussion
What the record does. The simplest description of our results is not “the record makes the failed move more likely” but “the record makes the failed move’s probability stop depending on what the model thought of it before”. Writing the move into the transcript pulls its probability towards a level that is set by its being there. For a move the model would never have chosen, that is an increase, and it is what the fixed probe items of the original design measure. For the model’s own likely mistake it is a decrease, though an incomplete one. Both halves appear only when the move string is written: the valence-free record flattens almost as much as the failure record, and the abstract description, which carries the same information without the string, does not. This is the copying account of the original paper, seen from a different angle: what is copied is not simply “more of the failed move” but the move’s presence, which competes with the model’s own judgement of it.
What it means for the original’s numbers. The original probed tool calls built by perturbing a correct call, the analogue of our shared items. Our results suggest that such items mostly measure induced repetition, of actions the model would not otherwise have taken, and say less about the repetition of a model’s own likely errors. We did not test this in tool calling. In games, the model’s own likely errors are exactly what a free-play failure is, and there the verbatim record lowers repetition relative to deleting the attempt, but leaves much of it in place.
Where it comes from. The OLMo 2 base model already inverts, and its inversion is carried by the copy term, which points to copying mechanisms learned in pretraining [Olsson et al., 2022] rather than to instruction tuning. Preference tuning is the stage that removes most of it, and it does so by removing the copy term's push (from +0.49 [+0.31, +0.67] at the base model to -0.23 [-0.51, +0.05] after DPO), not by making the failure message more effective: after DPO the message pushes slightly towards the failed move relative to a neutral acknowledgement. One recipe at one scale cannot tell whether this is DPO itself or the content of its preference data, but it suggests that the property under study is set early and shaped late.
For harness design. Three recommendations survive from tool calling: do not quote the failed move in the message (it makes repetition more likely), do not rely on a “do not repeat” instruction, and do not retry from the restored context under greedy decoding. One needs qualifying. The abstract description protects against induced repetition, but for a move the model strongly prefers it suppresses repetition less than the verbatim record does, and for models that tend to avoid what is already in their context it can backfire. In practice that argues for combining it with a constraint that does not depend on the model’s judgement, such as banning previously failed strings at the decoder, which in our free play removed almost all exact repetition. At these model sizes even that does not produce legal play.
For RL on games. The default models of RAGEN start RL on Sokoban with a clear inversion on illegal actions, under RAGEN's own feedback. An RL run therefore begins in a regime where an illegal action, once recorded, becomes more likely to be taken again. Whether training removes this, or learns to work around it, is the measurement we could not make, and the one we would make next.
12 Limitations
Small models. Every number comes from models between 135M and 1.7B parameters (and the 1B OLMo 2 ladder), run in float32 on one free-tier Tesla T4. Float32 checkpoints larger than about 3B do not fit in its memory, so the OLMo 3 7B ladder we had planned as a scale check was not run, and we cannot say whether the stage-wise picture of RQ2 holds at a larger scale.
No RL training. Our proposal’s RQ3 asked whether multi-turn RL on Sokoban removes the inversion, with an SFT control on solver trajectories. Both need GPU time well beyond a free notebook, so we report only the first half: the inversion in RAGEN’s prompt format before training. The training configuration, the SFT-control data generator and the probes for trained checkpoints are in the released code, untested on real runs.
Free play is near the floor. The two models we could afford to run in free play rarely play legal moves: 81% of their moves are rejected, and 68% of episodes end at the step limit rather than with a result. The harness comparison in free play therefore mostly measures how illegal moves are distributed, not whether a harness wins games. The teacher-forced probe, which does not depend on playing strength, carries the main results.
The counterfactual success message is not fully coherent. After an illegal move the position does not change, so Move accepted. followed by the unchanged board is a slightly incoherent observation. The original built success observations from the call's own arguments to avoid exactly this; in a game, a coherent success would show a different position and change the decision being scored. We therefore rely on the valence-free reference (Move received.) for the decomposition.
Losing is defined one move ahead. A Connect Four move is “losing” only if the opponent can win immediately; deeper losses would need a solver. This makes every label exact, at the cost of covering only the most blatant losing moves. Sokoban deadlocks are exact at any depth, because the rooms are small enough for exhaustive search. Losing moves are also the smaller class: 23 of the 120 positions in RQ1.
Items are perturbations, not samples. As in the original, the primary items are built by operators so that every model sees byte-identical items. Model-proposed items are the realistic case, but they differ across models by construction and are reported separately.
Greedy decoding in free play. Rollouts use greedy decoding, so each (model, harness, game, episode) is one trajectory, and the clean-retry harness is degenerate in the way the original described: an identical context gives an identical move. With sampling it would not be.
Small samples. The studies used the sample sizes planned for a laptop CPU: 30 or 40 positions per game for each RQ1 model, 20 for each stage of the OLMo 2 ladder, the remedy conditions on 3 models and 8 free-play episodes per cell (Appendix A). A second session on the full item pools was prepared but not run. Intervals that include zero, such as those for losing moves, the SFT stage and the “do not repeat” instruction, may therefore reflect too few items rather than the absence of an effect.
13 Conclusion
Recording a failed move in an LLM player’s transcript does not simply warn the model off that move. It flattens the model’s preference for it. Moves the model would not have played become more likely, which reproduces the feedback inversion of tool calling on fixed probe items, and moves it was about to play become less likely, though greedy decoding still repeats a large share of them. The effect is carried by the move string, is present before any post-training, shrinks at the preference-tuning stage, and is clear in the prompt format that RL on Sokoban starts from. Harnesses should keep the failed string out of the message, should not rely on instructions or clean retries, and should pair any rewording of the failure with a constraint at the decoder.
Data and code availability
All code, the constructed probe items, the raw per-item log-probability records, the free-play transcripts, the per-run environment metadata and the research log are available at https://github.com/Esmail-ibraheem/feedback-that-backfires/tree/games. Every number, table and figure in this paper is regenerated from those records by one documented command; none is transcribed by hand. The model checkpoints are public and pinned to the revisions in Table 7.
Use of AI assistance
The author used Anthropic’s Claude, through the Claude Code command-line interface, to write the experimental and analysis code and to draft and revise the manuscript text. The author reviewed and edited the content and takes full responsibility for it.
References
Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, et al. Smollm2: When smol goes big – data-centric training of a small language model. arXiv preprint arXiv:2502.02737, 2025. URL https://arxiv.org/abs/2502.02737.
Louis Castricato, Nathan Lile, Suraj Anand, Hailey Schoelkopf, Siddharth Verma, and Stella Biderman. Suppressing pink elephants with direct principle feedback. arXiv preprint arXiv:2402.07896, 2024. URL https://arxiv.org/abs/2402.07896.
Yekun Chai, Qiwei Peng, and Haoyi Xiong. Finding the move is not winning the game: Xiangqibench for closed-loop evaluation of llm agents. arXiv preprint arXiv:2610.02425, 2026. URL https://arxiv.org/abs/2610.02425.
Jinhao Duan, Renming Zhang, James Diffenderfer, Bhavya Kailkhura, Lichao Sun, Elias Stengel-Eskin, Mohit Bansal, Tianlong Chen, and Kaidi Xu. Gtbench: Uncovering the strategic reasoning limitations of llms via game-theoretic evaluations. arXiv preprint arXiv:2402.12348, 2024. URL https://arxiv.org/abs/2402.12348.
Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024. URL https://arxiv.org/abs/2407.21783.
Leon Guertler, Bobby Cheng, Simon Yu, Bo Liu, Leshem Choshen, and Cheston Tan. Textarena. arXiv preprint arXiv:2504.11442, 2025. URL https://arxiv.org/abs/2504.11442.
Esmail Gumaan. Feedback that backfires: Why small language model agents repeat the call they just watched fail. arXiv preprint arXiv:2608.23651, 2026. URL https://arxiv.org/abs/2608.23651.
Nathan Lambert, Jacob Morrison, Valentina Pyatkin, et al. Tulu 3: Pushing frontiers in open language model post-training. arXiv preprint arXiv:2411.15124, 2024. URL https://arxiv.org/abs/2411.15124.
Aman Madaan, Niket Tandon, Prakhar Gupta, et al. Self-refine: Iterative refinement with self-feedback. arXiv preprint arXiv:2303.17651, 2023. URL https://arxiv.org/abs/2303.17651.
Team OLMo, Pete Walsh, Luca Soldaini, et al. 2 olmo 2 furious. arXiv preprint arXiv:2501.00656, 2024. URL https://arxiv.org/abs/2501.00656.
Catherine Olsson, Nelson Elhage, Neel Nanda, et al. In-context learning and induction heads. arXiv preprint arXiv:2209.11895, 2022. URL https://arxiv.org/abs/2209.11895.
Davide Paglieri, Bartłomiej Cupiał, Samuel Coward, et al. Balrog: Benchmarking agentic llm and vlm reasoning on games. arXiv preprint arXiv:2411.13543, 2024. URL https://arxiv.org/abs/2411.13543.
Qwen, :, An Yang, et al. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115, 2024. URL https://arxiv.org/abs/2412.15115.
Thomas Schmied, Jörg Bornschein, Jordi Grau-Moya, Markus Wulfmeier, and Razvan Pascanu. Llms are greedy agents: Effects of rl fine-tuning on decision-making abilities. arXiv preprint arXiv:2504.16078, 2025. URL https://arxiv.org/abs/2504.16078.
Max-Philipp B. Schrader. gym-sokoban. https://github.com/mpSchrader/gym-sokoban, 2018.
Noah Shinn, Federico Cassano, Edward Berman, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. Reflexion: Language agents with verbal reinforcement learning. arXiv preprint arXiv:2303.11366, 2023. URL https://arxiv.org/abs/2303.11366.
Tereza Vrabcová, Marek Kadlčík, Petr Sojka, Michal Štefánik, and Michal Spiegel. Negation: A pink elephant in the large language models' room? arXiv preprint arXiv:2503.22395, 2025. URL https://arxiv.org/abs/2503.22395.
Zihan Wang, Kangrui Wang, Qineng Wang, et al. Ragen: Understanding self-evolution in llm agents via multi-turn reinforcement learning. arXiv preprint arXiv:2504.20073, 2025. URL https://arxiv.org/abs/2504.20073.
Yue Wu, Xuan Tang, Tom M. Mitchell, and Yuanzhi Li. Smartplay: A benchmark for llms as intelligent agents. arXiv preprint arXiv:2310.01557, 2023. URL https://arxiv.org/abs/2310.01557.
Jin Xu, Xiaojiang Liu, Jianhao Yan, Deng Cai, Huayang Li, and Jian Li. Learning to break the loop: Analyzing and mitigating repetitions for neural text generation. arXiv preprint arXiv:2206.02369, 2022. URL https://arxiv.org/abs/2206.02369.
An Yang, Anfeng Li, Baosong Yang, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025. URL https://arxiv.org/abs/2505.09388.
Zhanfu Yang. Why retrying fails: Context contamination in llm agent pipelines. arXiv preprint arXiv:2605.08563, 2026. URL https://arxiv.org/abs/2605.08563.
Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. React: Synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629, 2022. URL https://arxiv.org/abs/2210.03629.
A Reproduction
Code and environment. Every number in this paper is produced by code in the accompanying repository and written into the manuscript as a macro; nothing is typed by hand, and a value that has not been measured expands to a visible red “TBD” marker. The original paper’s package is vendored unchanged at commit 4af0401, and a test checks every file against the git blob hashes of that commit. Every reported run used one Tesla T4 (Google Colab, free tier; CUDA 13.0), Python 3.13.15, PyTorch 2.11.0+cu130 and Transformers 4.56.1, in float32 with TF32 disabled. The reported results comprise 51,726 scored (item, condition, candidate) records plus the free-play episodes.
Regression against the original. The original paper’s 100 ToolShed items, run through this paper’s probe runner on SmolLM2-135M on the original’s laptop (Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz, PyTorch 2.4.0+cpu, single-threaded), give , and nats, the original’s values, and reproduce every stored log-probability to within nats. A separate check running the original code path on the same machine gives the same, which separates environment drift from code differences. On the GPU the same items give , with every log-probability within nats of the CPU rows.
One GPU session. Every reported study ran in one Colab session with the sample sizes planned for a laptop CPU (configuration files cpu_small.yaml and cpu_large.yaml; Section 4 gives the positions per run), the remedy conditions on 3 models, and 8 free-play episodes per model, game and harness. After that session we prepared a second one on the full item pools, with the remedy conditions for every RQ1 model and 24 free-play episodes (gpu_small.yaml, gpu_large.yaml). It was not run because the free tier’s GPU quota ran out, and no record from it enters this paper. The research log records both decisions.
Keys and resumption. Probe records are keyed by (model, revision, format, game, notation, item, condition, candidate); rollouts by (model, game, notation, format, harness, temperature, seed). Every run writes its git SHA, a configuration hash, the library versions and the device.
| Model | Hugging Face id | Revision | Formats probed |
|---|---|---|---|
| SmolLM2-135M | HuggingFaceTB/SmolLM2-135M-Instruct | 12fd25f773 | chat |
| SmolLM2-360M | HuggingFaceTB/SmolLM2-360M-Instruct | a10cc1512e | chat |
| SmolLM2-1.7B | HuggingFaceTB/SmolLM2-1.7B-Instruct | 31b70e2e86 | chat |
| Qwen2.5-0.5B | Qwen/Qwen2.5-0.5B-Instruct | 7ae557604a | chat, ragen |
| Qwen2.5-1.5B | Qwen/Qwen2.5-1.5B-Instruct | 989aa7980e | chat, ragen |
| Qwen3-0.6B | Qwen/Qwen3-0.6B | c1899de289 | chat |
| Qwen3-1.7B | Qwen/Qwen3-1.7B | 70d244cc86 | chat |
| Llama-3.2-1B | unsloth/Llama-3.2-1B-Instruct | 5a8abab4a5 | chat |
| OLMo-2-1B base | allenai/OLMo-2-0425-1B | a1847dff35 | completion |
| OLMo-2-1B SFT | allenai/OLMo-2-0425-1B-SFT | 0d85a3d037 | chat, completion |
| OLMo-2-1B DPO | allenai/OLMo-2-0425-1B-DPO | c4b0485961 | chat, completion |
| OLMo-2-1B RLVR1 | allenai/OLMo-2-0425-1B-RLVR1 | 12cb33498d | chat, completion |
| OLMo-2-1B Instruct | allenai/OLMo-2-0425-1B-Instruct | 48d788eca8 | chat, completion |
Table 7: Checkpoints and pinned revisions (first ten hex digits).
B Probe conditions in full
| Condition | What the transcript records after the successful prefix |
|---|---|
| pre | position s before the attempt (baseline; also the clean-retry context) |
| fail | attempt + failure message + s (standard harness, verbatim) |
| succ | attempt + counterfactual success message + s |
| neut | attempt + valence-free message + s |
| abstract | runtime-generated failure description + s, no verbatim move |
| fail_instr | as fail, plus a do-not-repeat instruction in the system prompt |
| fail_echo | as fail, but the message quotes the failed move |
| fail_k2 | the same move fails twice |
| fail_other | a different failing move failed; the scored one was never written |
| abstract_min | bare failure marker + s, no diagnosis and no verbatim move |
| fail_native | RAGEN format only: RAGEN's own feedback (warning or nothing) + s |
Table 8: Every probe condition. All conditions of an item share the system prompt, goal, successful prefix and position byte for byte; post-attempt conditions re-show the same position after their message.
C Messages
| Game | Failure type | Failure message (fail) | Gloss in the abstract description |
|---|---|---|---|
| connect4 | column_full | Illegal move: that column is already full. | the chosen column was already full |
| connect4 | off_board | Illegal move: there is no such column. | the chosen location is not on the board |
| connect4 | losing_move | That move lost: the opponent completes four in a row on the next turn. The position has been restored; choose again. | it let the opponent win on the next turn |
| othello | occupied | Illegal move: that square is already occupied. | the chosen square was already occupied |
| othello | no_flip | Illegal move: a disc there would not flip any of the opponent's discs. | a disc there would not flip any discs |
| othello | off_board | Illegal move: that square is not on the board. | the chosen location is not on the board |
| sokoban | unknown_action | Unknown action: that move was not recognised. | the action was not recognised |
| sokoban | blocked_wall | Blocked: a wall is in the way, so the player did not move. | a wall was in the way |
| sokoban | blocked_box | Blocked: the box cannot be pushed that way, so nothing moved. | the box could not be pushed that way |
| sokoban | deadlock_push | That push made the puzzle unsolvable: the box can no longer reach a target. The position has been restored; choose again. | the push made the puzzle unsolvable |
Table 9: Observation messages (version 2). Valence-free: Move received.; counterfactual success: Move accepted.; abstract description: [[ordinal] attempt failed: {gloss}; that move is not repeatable]; bare marker: [[ordinal] attempt failed]; fail_echo appends Your move was: {move}; instruction: “Important: some of your earlier moves failed. Do not repeat a move that has already failed; choose a different move.”.
D Notations
| Game | Notation | Example | Invalid example | Rules text |
|---|---|---|---|---|
| connect4 | short | 4 | 0 | Columns are numbered 1 to 7 from left to right. Reply with the column number only, for example: 4 |
| connect4 | verbose | drop a disc into column 4 | drop a disc into column 0 | Columns are numbered 1 to 7 from left to right. Reply with a phrase of the form: drop a disc into column 4 |
| connect4 | index | 3 | -1 | Columns are indexed 0 to 6 from left to right. Reply with the column index only, for example: 3 |
| othello | short | d3 | a9 | Squares are named by column letter (a-h, left to right) and row number (1-8, top to bottom). |
| othello | verbose | place a disc on column d, row 3 | place a disc on column a, row 9 | Reply with the square only, for example: d3 Columns are lettered a-h from left to right and rows numbered 1-8 from top to bottom. Reply with a phrase of the form: place a disc on column d, row 3 |
| othello | index | 19 | 64 | Squares are indexed 00 to 63 row by row: index = 8 x (row - 1) + column position, with a=0 ... h=7. Reply with the two-digit index only, for example: 19 |
| sokoban | short | U | N | Moves are written U (up), D (down), L (left), R (right). Reply with one letter only, for example: U |
| sokoban | verbose | move the player one square up | move the player one square north | Reply with a phrase of the form: move the player one square up (or down, left, right) |
| sokoban | index | 0 | 4 | Moves are indexed 0 (up), 1 (down), 2 (left), 3 (right). Reply with the index only, for example: 0 |
| sokoban | ragen | Up | North | Up, Down, Left, Right |
Table 10: Move notations. The RAGEN word form is used only in the RAGEN format.
E Item statistics
| Game | Failure type | Decision points |
|---|---|---|
| connect4 | column_full | 22 |
| connect4 | losing_move | 29 |
| connect4 | off_board | 29 |
| othello | no_flip | 27 |
| othello | occupied | 31 |
| othello | off_board | 22 |
| sokoban | blocked_box | 20 |
| sokoban | blocked_wall | 24 |
| sokoban | deadlock_push | 21 |
| sokoban | unknown_action | 35 |
Table 11: Item pools (seed 20261011; one decision point per position, each rendered in every notation). Sources: connect4: perturbation 60, perturbation+random 3, random 17; othello: perturbation 60, perturbation+random 1, random 19; sokoban: perturbation 80, perturbation+random 7, random 13.
F Free play in full
| Model | Game | Harness | won/solved | exact repeat | illegal | wasted | loop |
|---|---|---|---|---|---|---|---|
| qwen2.5-0.5b | Connect Four | verbatim | 62% | 96% | 32% | 9.6 | 38% |
| qwen2.5-0.5b | Connect Four | verbatim+instr | 62% | 96% | 21% | 6.4 | 25% |
| qwen2.5-0.5b | Connect Four | drop | 62% | 96% | 32% | 9.6 | 38% |
| qwen2.5-0.5b | Connect Four | abstract | 75% | 89% | 22% | 5.9 | 25% |
| qwen2.5-0.5b | Connect Four | verbatim+ban | 62% | 12% | 28% | 8.4 | 25% |
| qwen2.5-0.5b | Connect Four | abstract+ban | 88% | 0% | 5% | 0.5 | 0% |
| qwen2.5-0.5b | Othello | verbatim | 0% | 1% | 100% | 40.0 | 50% |
| qwen2.5-0.5b | Othello | verbatim+instr | 0% | 2% | 100% | 40.0 | 100% |
| qwen2.5-0.5b | Othello | drop | 0% | 98% | 100% | 40.0 | 100% |
| qwen2.5-0.5b | Othello | abstract | 0% | 86% | 100% | 40.0 | 100% |
| qwen2.5-0.5b | Othello | verbatim+ban | 0% | 8% | 100% | 40.0 | 75% |
| qwen2.5-0.5b | Othello | abstract+ban | 0% | 1% | 95% | 38.1 | 12% |
| qwen2.5-0.5b | Sokoban | verbatim | 0% | 52% | 61% | 8.0 | 25% |
| qwen2.5-0.5b | Sokoban | verbatim+instr | 0% | 45% | 45% | 5.2 | 12% |
| qwen2.5-0.5b | Sokoban | drop | 0% | 90% | 96% | 9.6 | 0% |
| qwen2.5-0.5b | Sokoban | abstract | 0% | 76% | 84% | 8.5 | 0% |
| qwen2.5-0.5b | Sokoban | verbatim+ban | 0% | 0% | 64% | 9.2 | 0% |
| qwen2.5-0.5b | Sokoban | abstract+ban | 12% | 0% | 61% | 8.4 | 0% |
| smollm2-360m | Connect Four | verbatim | 0% | 97% | 100% | 30.0 | 100% |
| smollm2-360m | Connect Four | verbatim+instr | 0% | 97% | 100% | 30.0 | 100% |
| smollm2-360m | Connect Four | drop | 0% | 97% | 100% | 30.0 | 100% |
| smollm2-360m | Connect Four | abstract | 0% | 73% | 100% | 30.0 | 100% |
| smollm2-360m | Connect Four | verbatim+ban | 0% | 0% | 100% | 30.0 | 0% |
| smollm2-360m | Connect Four | abstract+ban | 0% | 0% | 100% | 30.0 | 0% |
| smollm2-360m | Othello | verbatim | 0% | 97% | 99% | 39.5 | 100% |
| smollm2-360m | Othello | verbatim+instr | 0% | 96% | 99% | 39.5 | 100% |
| smollm2-360m | Othello | drop | 0% | 97% | 99% | 39.5 | 100% |
| smollm2-360m | Othello | abstract | 0% | 80% | 99% | 39.5 | 100% |
| smollm2-360m | Othello | verbatim+ban | 0% | 0% | 97% | 38.8 | 0% |
| smollm2-360m | Othello | abstract+ban | 0% | 0% | 98% | 39.0 | 0% |
| smollm2-360m | Sokoban | verbatim | 0% | 89% | 95% | 9.5 | 0% |
| smollm2-360m | Sokoban | verbatim+instr | 0% | 90% | 95% | 10.8 | 25% |
| smollm2-360m | Sokoban | drop | 0% | 89% | 95% | 9.5 | 0% |
| smollm2-360m | Sokoban | abstract | 0% | 49% | 97% | 14.5 | 100% |
| smollm2-360m | Sokoban | verbatim+ban | 0% | 0% | 85% | 12.6 | 0% |
| smollm2-360m | Sokoban | abstract+ban | 0% | 0% | 97% | 14.5 | 0% |
Table 12: Free play under each harness (greedy decoding). Exact repeat: share of failed moves that repeat an earlier failed move byte for byte; illegal: share of all moves that the runtime rejected; wasted: rejected moves per episode; loop: episodes that hit the turn limit with a repeat.