Qwen3.5-9B and 27B have a really bad habit of looping a lot when responding to RLVR-like coding questions in the same way that several Qwen3 models did.
This paper suggests that it's probably due to the fact that they were distilled on some narrow distribution from some stronger teachers.
Since this work found that Astra could directly look at weights and edit them to fix the looping issue, I asked Fable 5.2 to see if it could resolve Qwen3.5-9B's looping.
By editing one neuron in the final layer so that it writes </think>, on MBPP+,
(648 samples), the share of samples hitting the 32k cap falls from 20.4% to 0.2%, and the pass rate rises from 59.7% to 76.1%
and on MATH-500,
capped answers there fall from 11.2% to 2.7% and accuracy rises from 82.2% to 89.3%.
I don't really have a point here. Kind of interesting information, though.
Here's a bunch more stuff Opus 5.5 says about the mechanistics of this exact thing:
Mechanism. The model either closes its thinking decisively or not at all. In samples that finish, </think> gets a median probability of 0.87 at the line where it's sampled, and almost none at earlier line ends. A sample loops when, at that moment, the model writes another re-check or "I'll output this" line instead. From there, ordinary in-context copying takes over:
Fix. The edit, called ESC2, connects that "I'm repeating" signal to the exit. It rewrites one layer-31 MLP neuron (#10023) so that it reads the repeat direction at line ends and writes </think>. The direction comes from closed-form ridge fits on dev tasks, with no gradient descent. It is a strong neuron, though: its new output column alone changes the norm of that layer's output matrix by about 25%. Several alternatives failed:
Training origin. This is the most interesting finding. Qwen3.5-9B-Base, given the same chat-format prompts and seeds, hits the cap on only 1.7% of dev MBPP+ samples, against 20.1% for the post-trained model, and it passes more of them (78.4% against 64.1%). Yet the copy heads, the "Wait" brakes and the lock-in dynamics are all already present in Base, nearly unchanged. Post-training didn't build the loop machinery.
What post-training added is a thinking style. The post-trained model opens 60-69% of coding samples with a "Thinking Process: 1. …" outline that Base never uses. On MBPP+, samples with that opening hit the cap 28.5% of the time, against 4.1% for other openings. Swapping openings moves the loop rate in both directions:
The style isn't sufficient on its own, though. IFEval samples use it almost always and rarely loop, but they were sampled at temperature 1.0 with presence penalty 1.5. The agent's guess is that post-training taught the outline format from traces where every self-check resolves, so the model never saw a check that fails to settle and has no learned way out. That last step is speculation, since we can't see Qwen's data.