← All 96 breakdowns
REREAD

An AI coder rereads your instructions instead of holding its goal (breakdown)

Comment word: REREAD

What's happening

When an AI writes code in steps ("sort the words, then check if the longest one is a palindrome"), does it hold a plan in its head? A team from Northeastern University, with co-authors at Parallax, Copenhagen and Oxford, looked inside Qwen-2.5-Coder-32B (a 32-billion-parameter open coding model with 64 layers) to find out.

  • The goal heads: 122 of its 2,560 attention heads, in layers 28-55, carry "what I'm about to do next". Three tokens before the model starts a step, a readout of those heads already matches the step over 90 % of the time. Read out in plain words, one says: "I am counting unique words …", just before the model writes b = len(set(words)).
  • It's about what, not how: copy that signal into a C++ file and the model writes the same step in C++ (96 % from three tokens early).
  • The puzzle: a transformer has no memory loop. Passing a state to a later token costs one layer, and the goal only forms around layer 40 of 64, so a goal could be carried at most 24 tokens. Yet the model keeps its goal well past 30.
  • The answer: it doesn't carry the goal. It keeps re-reading the task in your prompt, compares it with the code written so far, and does what's left. Swap what the goal heads read from the task (in the paper, 250 heads) and the model switches to a different step about 94 % of the time, even across languages.

Why it matters

For this model, the plan lives in your prompt, not in the model. What the instructions say, and how clearly the steps are laid out, is what it keeps going back to on every step.

What to do (rules of thumb, not the paper's advice)

  1. Write the steps into the prompt. Don't rely on the model to remember a plan it made earlier.
  2. A numbered list, one job each. The paper's prompts list the steps in order, and the model picks the next unfinished one.
  3. Restate the plan in long sessions. If the task scrolls far back or gets buried, put it in view again.

Honest limits

  • One model (Qwen-2.5-Coder-32B-Instruct) in controlled coding tasks with two to four steps; other models weren't measured.
  • The authors call their re-reading account "encouraging evidence" and say they haven't mapped its full implementation; a second test (swapping the progress signal) worked about 57 % of the time.
  • The task text on screen is shortened from the paper's Figure 5.

Source: Sen Sharma, Todd, Feucht, Arditi, Gandikota, Shapira, Sarti, Fierro, Schut, Bau, "Goal Encoding in LLMs", arXiv:2611.17297, 12 Nov 2026 (goals.baulab.info).

FREE ONE-TIME UNLOCK

Unlock the full REREAD breakdown

Drop your email once to read the complete step-by-step guide, grab the files, and unlock all 96 Reel breakdowns on this device forever.

✓ Instant reveal right here✓ No spam, unsubscribe any time