TL;DR: Looped models run a block of layers multiple times for each token. Can later loops undo an intervention made early on? We find that they can. Sometimes, almost completely. For example, NVIDIA's Dory model has a refusal rate of 92.1% on a standard harmful prompts benchmark. Erasing the refusal direction in both of its usual loops cuts that down to 10.4%. But two extra loops with the edit switched off brings refusal back to 91.0%. In Qwen, our non-looped control, an edit in the middle still influences the output after all layers are processed. We demonstrate this self-correction phenomenon across four looped models (Ouro, Nanbeige, Dory and Inkling). Lastly, we close by proposing two new threat models. Future models with more advanced versions of this capability could make monitoring more difficult and undo safety control interventions.
Refusal rate: 0% 100% Refusal filter
Dory · Four unsteered loops gave 91.9% refusal.
Models
We study four looped models: Ouro, Nanbeige, Dory, and Inkling. For control, we use Qwen, which runs each layer once. Each model in this set has some unique architectural features, which we discuss in the appendix. The main differences between the looped models are that Ouro and Nanbeige repeat their whole stack of layers, while Dory and Inkling repeat a middle block between a prelude (entry non-looped block of layers) and a coda (exit block).
In a recent post, nesiacel found that adding a concept vector had the least effect on Ouro’s reply when applied only in the first loop, hinting at self-correction. It inspired us to explore this effect in detail on all looped models to establish whether the property is fundamentally linked to looping. Our intervention is a change in the model's hidden state h. Weights remain fixed. We try three sets of changes: intervening in one loop, every loop, or none (standard operation). For Qwen, this corresponds to quarters of its layer stack. Each experiment asks a different question.
Refusal ablation. How often will the model refuse if we remove its refusal signal? We estimate a unit direction u from the difference between the model’s average hidden states on two groups of prompts. Depending on the model, we group prompts by how it answered or use harmful and harmless prompts, following Arditi et al. (2024). At each edit site we subtract the component along that direction.
h ← h − (h · u)u
Persona addition. Can a nudge make a reply sound more optimistic, humorous, or otherwise different in tone? At one layer in each selected loop, we add a trait direction u with a tuned strength α.
h ← h + αu
Random kicks. Can the model still solve a math problem if we add noise to its hidden state? We draw a random unit direction r for each problem and reuse it in the selected loops. The kick size ε sets how large the nudge is relative to the current state.
h ← h + ε ‖h‖ r
Evaluation
Each direction comes from the tested model’s own hidden states. To select examples for those directions, we used gpt-oss-20b at medium reasoning effort for refusal and low effort for persona traits.
We used gpt-6-luna at low reasoning effort to evaluate the results. Luna judged whether a reply refused, scored how strongly it expressed the target trait from 0 to 100, and extracted the answer it settled on for comparison with the math answer key. Judge settings and scoring details.
Results
Refusal signal re-builds if applied only early
Erasing refusal in just the first loop retains a big chunk of the standard refusal rate across models. As we perform the erasure in later loops, the refusal rate decreases monotonically, with the lowest rate observed when all loops are edited. Choose a model/edit combination below, and find out the refusal rates, along with corresponding model outputs.
Erase refusal
A prompt goes under “Refuses” if at least half its scored replies refuse, weighting each thinking draw equally. Benchmark and scoring details
Personas do not persist if applied only early
Similar to refusal ablation, even persona vector addition loses all its effect due to looping, as the effect dies out. Persona elicitation increases monotonically with each additional loop, and the effect is highest when applied on all loops. Choose a model/trait/edit combination below, and find out the how the effect changes with each additional loop.
Looped models show robustness to strong random perturbations in early loops. Only late perturbations have a significant impact when the model has little chance to recover. Choose the model/edit combo below to see the effect.
Randomly perturb model residual
Luna checks the last 256 tokens for an answer the model settled on, even in its thinking, and we count it as correct if it matches the answer key. See scoring and kick sizes for more details.
Kicking affects model performance in various ways. Luna labeled 65 of Dory’s endings repetitive and 67 of Inkling’s endings incoherent. See how accuracy changes with kick size
Where does an edit last?
In general, the effect of an edit increases/decreases monotonically with each additional loop in looped models. In contrast, for Qwen, the effect is usually located in the middle, and late layers don't contribute to or undo the effect. Each bar below shows the output after editing just one loop or quarter, in the order the model runs them.
Effect by edit site
Looped model
Trait added
The dashed line marks each model’s unsteered score.
Qwen also differs from the looped models in its training and architecture. To test how much layer reuse contributes to recovery, we could compare a pretrained model with a version of that same model retrofitted with loops. McLeish et al. (2025)
What do two extra loops buy back?
We give each looped model two extra (clean: no edit) loops after intervening all the way through standard loop counts. Not Nanbeige, because its predictions break under anything other than 2x looping. Dory and Inkling closed up to 99% of their behavioral gap. Ouro recovers, but less prominently -- possibly due to its unique early-exit capabilities and no prelude/coda architecture.
Dory and Inkling recover most of their lost accuracy.
Dory
2 → 4 loops · 100 problems
No kick95%
All loops kicked0%
Original gap95 pp
+2 clean loops94%
Gap closed 99%94 pp
4 unsteered loops gave 95%.
Inkling
3 → 5 loops · 100 problems
No kick100%
All loops kicked0%
Original gap100 pp
+2 clean loops86%
Gap closed 86%86 pp
5 unsteered loops gave 100%.
Ouro
4 → 6 loops · 100 problems · kick size 0.5
No kick86%
All loops kicked11%
Original gap75 pp
+2 clean loops27%
Gap closed 21%16 pp
6 unsteered loops gave 86%.
At size 1, Ouro scored 0% at both depths. At size 0.7, it went from 1% to 1%. Compare kick schedules.
All four conditions had Luna scores on the same 100 MATH-500 problems for each model. Inkling used size 8 and Dory size 1. The chart shows Ouro at size 0.5, the weaker of the two follow-up kicks. Scoring and last-loop results.
The animations illustrate edit locations. Color between the measured outcomes is proportional to the magnitude of the effect.
We believe that Ouro's early exit training, its full-depth looping architecture and and primarily fixed depth-4 training could all contribute to its limited recovery. We leave this analysis for future work. You can try other loop combinations.
Mechanism
Why does the edit fade?
One possibility is iterative refinement. Each loop updates the model’s representations increasingly smaller in size. If an early edit changes the hidden state (not so much that it becomes unrecoverable), a later loop may pull it back toward the path it would have taken. In Huginn (Geiping et al.), another looped model, authors observed something similar: different starting states led to similar paths on the same text (§7).
In a sketch below, we illustrate how two early edits could divert a token’s path, and more loops can repair those edits quickly. To show this for real, we replayed the same tokens on Dory and compared each hidden state’s normalized direction with that at the same layer in unedited loop 4. A smaller distance means closer alignment. We show the the median case here, and mean in the appendix.
Illustration of a token’s path through 4 loops
Unedited
Edited in loops 1 and 2
+ Fixed point↗ Disturbance Unedited path
Dory’s measured path toward loop 4
Refusal ablation
UneditedEdited in loops 1–2Shading spans consecutive loop ends.
Edit onEdit off
10.10.010.001
Loop 1Loop 2Loop 3Loop 4
Edited loops 1 and 2 end at nearly the same distance (probably because of continuously steering away). Once the edit stopped, loop 3 closed a big chunk (87%) of the distance while the unedited loop 3 made tiny refinements, supporting the illustration presented above.
Random math push
UneditedEdited in loops 1–2Shading spans consecutive loop ends.
Edit onEdit off
10.10.010.001
Random math push. Median distances at the four edited-run loop ends: 0.1182, 0.1188, 0.0147, 0.0046. The vertical axis is logarithmic.BF16 floor ≈ 0.002
Loop 1Loop 2Loop 3Loop 4
Edited loops 1 and 2 end at nearly the same distance (probably because of continuously steering away). Once the edit stopped, loop 3 closed a big chunk (91%) of the distance while the unedited loop 3 made tiny refinements, supporting the illustration presented above.
We plot the median distance across 10,000 replayed token positions (100 replies, 100 tokens each) to show recovery at a typical position. The dotted line estimates the BF16 rounding floor implying distances indiscernible from zero. Unedited loop 4 has distance zero throughout by definition and lies off the log scale. Layer distances (CSV)
Is the prelude output handing refusal back?
In Dory and Inkling, the prelude output is presented to all loops unedited (as we intervene only inside the loop). This raises the question: could the refusal simply recover by reading it from that prelude output?
Dory
Dory adds the saved prelude to the running state at each loop. Refusal is erased in loops 1 and 2. The same copy enters the clean loops 3 and 4.Prelude output1234Refusal erasedClean loops
Each loop adds the prelude output to the state carried from the previous loop.
Inkling
Inkling starts each loop from the saved prelude and reads two messages from the previous loop. Refusal is erased in loops 1 to 3. The same prelude restarts the clean loops 4 and 5.Prelude output12345Refusal erasedClean loops
Each loop restarts from the prelude output. Only two messages carry information from the previous loop.
To test this, we remove the refusal signal by ablating that direction from the prelude output, before each extra loop. We also perform ablation of a random direction, for control. Additionally for Dory, we also test the setup where the prelude output is simply cut-off from the extra loops, so there is no possibility of a leak (this is not possible for Inkling since it restarts from the prelude output).
At each shared layer, we compare the mean hidden states of two groups from the harmful-request training set. We replay the same 40 traces that led to refusals and 40 that led to answers under every edit.
Here u is the unit refusal direction. The two groups have the same mean projection at 0%. At 100%, their gap equals the model’s unedited reference gap, g0.
Where does the refusal signal return?
Remove components from the prelude copy to stop potential leaks.
The gap between refusing and complying replies grows again despite refusal direction absent from the prelude output.
Remove components from the prelude copy to stop potential leaks.
Remove from both restart inputs
Each Inkling loop starts from the saved embedding and prelude output. The previous loop passes messages, so omitting both restart inputs would remove the loop’s starting state.
By shared layer 6 of loop 5, the two groups have separated again along the filtered direction.
We read the signal at the end-of-message token just after the user’s words. Signal during reasoning
Even with the refusal component filtered out of the prelude output copy, both Inkling and Dory closely follow the refusal signal strength of unedited loops. In fact, Inkling's signal in the clean loop 3 (with or without removing the refusal component of the prelude output), rises quicker than it did in the unedited pass. This supports the refinement theory: later loops can refine stronger if early loops are edited. The random control shows a similar behavior, showing that any projection of prelude output along the refusal direction did not contribute significantly to the recovery. Removing access to the prelude output completely in Dory breaks its outputs (as evident by the high next-token loss).
But, does a larger gap mean the model refuses more often? We let both models write fresh replies to the same 100 held-out prompts. In both cases, removing the refusal component from prelude resulted in a similar or even higher number of refusals (Dory), invalidating the hypothesis that prelude's refusal component contributes to the refusal recovery.
How often did the models refuse after the copy edit?
Replies Luna judged as refusals out of 100, with refusal erased in the early loops for every row.
Without the prelude copy, Dory got stuck repeating words or fragments, even in the four replies that reached the final-answer section, so we count it as a failure.
In summary
Looped models can undo edits by simply using more loops. We showed this effect on steering and other behavioral interventions. Importantly, they can also undo random perturbations. This property implies some implicit adversarial robustness in looped architectures, that needs further investigation.
What a monitor sees would depend on where it reads. A monitor reading activations early (just after an edit) might flag a change that two clean loops can largely undo later. Detection of an event could lose predictability of the behavior that usually follows it.
Two threat models and an opportunity
Dodging monitors. Current looped models show the capability to change behavior in a single forward pass. In the future, monitoring-aware models may dodge monitors by adapting their misaligned computations in regions of the forward pass that are unmonitored. Evaluation-awareness is already a known trait (Needham et al.). This could imply increased monitoring costs (as illustrated below), or worse: models becoming less monitorable in general.
Avoiding control mechanisms. Safety control mechanisms via interventions like steering may become standard to reduce the risk of misaligned actions on hard tasks. However, interventions usually come at a cost in performance, so they may be applied in a targeted manner. But in the near future, models could have the capacity to dynamically allocate computation for efficiency (Mishra et al.) They may maliciously allocate higher computation (more loops or otherwise) in the uncontrolled regions to undo the effect of the control interventions (see illustration below).
Could a model adapt to oversight?
A future model could recognize when it is being monitored or steered. It might still pursue a misaligned goal if it could choose where to compute and how long to spend on each token.
Monitoring where to look for misalignment?
Unmonitored regions can still influence the outputEach region reads the running state and adds an update to it. A ring marks the region whose update is monitored. All other regions contribute to a misaligned plan. The highlighted residual path carries those contributions forward, even when D is monitored.Residual stream1 of 4 monitoredRegion ARegion BRegion CRegion DOutput
Update monitoredMisaligned computation
The monitor reads region A. But the model could still use B, C or D to work on a misaligned action.
The same applies to regions B or C.
The same applies to regions B or C.
If the monitor reads region D. The model could still take misaligned actions in previous steps and use them through the residual stream.
Monitoring all regions solves this problem, but the increased coverage costs 4x.
Select a region in the diagram.
Control can models undo safety interventions?
Extra compute after steering endsTokens appear one at a time. Arrows mark steering on tokens 1 through 3. In this example, red warning triangles mark tokens 4 and 5, where the model uses five loops to take misaligned actions. Tokens 6 through 8 use ordinary depth again.Steering onSteering offTokenLoops12345678Reply pathSafe responseReturning toward planOriginal misaligned plan
Usual loopsExtra loopsMisaligned action
Tokens 1–3 take a normal number of loops. Steering pushes the reply toward a safe response.
With steering off, the model spends five loops on token 4 and develops some misaligned plan.
On token 5 it spends five loops again, potentially finalizing a misaligned action.
Tokens 6–8 return to the usual number of loops, but they are now influenced by the previous misaligned plan.
Both scenarios are hypothetical.
Are there architectures that make safeguards harder to remove? We looked at how looped models can recover from various interventions with model weights fixed. But if a model is open-sourced, people can change the weights to make behavioral changes permanent. In this scenario, there would be no clean loops to recover from interventions. The standard malicious weight edit, often called abliteration, subtracts the component along u (the refusal direction) from every column of W.
It makes the raw update W′x perpendicular to u for every input x. This method works cleanly for all models except Ouro, where this edit breaks model coherence. An edit adapted to Ouro's architecture still works (see Weight-edit results in the appendix). But this result suggests that some architectures may be more resilient to weight-based edits than others. In a future where democratizing access to AI is as important as ensuring its safety, the development and choice of tamper-resistant architectures will be crucial.
Acknowledgments
This work was carried out as part of the Machine Alignment, Transparency & Security (MATS) program (11.0) with mentorship from Isak Etinger at OpenAI. We thank MATS for fellowship funding (including compute) and OpenAI for providing additional API credits and ChatGPT Pro. This research used publicly available models and information. The views expressed are authors’ own and do not necessarily reflect those of OpenAI.
@misc{mishra2026loopcorrect,
author = {Mishra, Aayush and Khashabi, Daniel and Liu, Anqi and Etinger, Isak},
title = {Looped models can self-correct},
year = {2026},
month = nov,
url = {https://do-looped-models-self-correct.aamixsh.chatgpt.site/}
}
Appendix
A closer look at the evidence
More results
Choose more combinations of loops
On fixed-depth Inkling 2 Mini, refusal fell from 74% unedited to about 45% when we edited loop 2 or 3 alone, and to 10% when we edited both. The main experiment used the variable-loop checkpoint.
We added a trait on every standard loop. Each cell shows the gap from the unsteered trait score before and after two extra clean loops. A dash means the model and trait lacked a qualifying measurement at both depths.
Change from unsteered trait score at usual and extended depths, in points
Added trait
Dory 2 → 4 loops
Inkling 3 → 5 loops
Ouro 4 → 6 loops
Apathy
+37.6 → 0.0
+55.4 → +6.8
—
Hallucination
+3.1 → −0.8
+46.8 → +10.4
—
Humor
—
+40.2 → +0.8
—
Optimism
+41.6 → +6.6
+32.4 → +12.3
+32.8 → +22.1
Sycophancy
+51.6 → −1.2
—
—
During tuning, adding a trait had to raise its score by at least 10 points and erasing it had to lower its score by at least 15. Both allowed up to a 10-point loss in coherence. We evaluated on the same 20 questions, with five replies per question. The 95% intervals resample whole questions. Measurements (CSV).
Luna gave numeric scores to 299 of 23,900 replies it had initially labeled refusals. For Qwen’s unsteered “evil” persona, all 37 rescored replies received a zero, lowering the mean from 56.3 to 35.5. Judge prompts.
Erasing a prompted trait
We prompted the model to express a trait, then set its component along the trait direction to zero or to the mean on unprompted replies. The unedited run received the same persona instruction.
Erase a prompted trait
Luna scores each reply from 0 to 100 for how strongly it still expresses the prompted trait.
On Dory, the zero target suppressed impoliteness by 37.0 points and sycophancy by 54.9. After two clean loops those gaps shrank to 2.4 and 1.7 points. The gaps also shrank for Dory’s humor and Inkling’s apathy, humor and impoliteness. Those tests used an unprompted mean estimated separately at each depth, so recalibration could account for some of the change. Explorer data (CSV).
Ouro illustrates why we checked coherence. Zeroing apathy on all four loops raised the apparent trait score from 47.2 to 94.5 while coherence fell from 65.5 to 0.4. None of the 100 replies reached even 50/100 for coherence. Coherence cutoffs and coverage.
Kick sizes, and kicks on the last loop alone
How much does one kick hurt?
Each row places the kick on a single loop (one quarter for Qwen). The columns vary its size.
Dory · 2 loops · 95% correct without a kick
Loop kicked
Kick size (ε)
0.5
0.7
1
1.5
Loop 1
94%
88%
62%
30%
Loop 2
17%
2%
0%
0%
Dory · 4 loops · 95% correct without a kick
Loop kicked
Kick size (ε)
0.5
0.7
1
1.5
Loop 1
97%
95%
95%
94%
Loop 2
96%
96%
94%
92%
Loop 3
92%
90%
79%
38%
Loop 4
18%
3%
0%
0%
With a size-1 kick on loop 2, accuracy was 0% after 2 loops and 94% after 4.
Ouro · 4 loops · 86% correct without a kick
Loop kicked
Kick size (ε)
0.5
0.7
1
1.5
Loop 1
86%
84%
54%
8%
Loop 2
87%
70%
25%
1%
Loop 3
84%
76%
40%
2%
Loop 4
85%
58%
0%
0%
Nanbeige · 2 loops · 94% correct without a kick
Loop kicked
Kick size (ε)
0.5
0.7
1
1.5
Loop 1
88%
87%
45%
0%
Loop 2
70%
20%
2%
0%
Inkling · 3 loops · 100% correct without a kick
Loop kicked
Kick size (ε)
0.7
1
3
5
8
Loop 1
99%
100%
91%
93%
89%
Loop 2
100%
96%
70%
65%
62%
Loop 3
99%
98%
79%
68%
64%
At size 8, Inkling solved 64 of 100 with a kick on loop 3 alone. Kicking all three loops in the main experiment gave 0 of 100.
Inkling · 5 loops · 100% correct without a kick
Loop kicked
Kick size (ε)
0.7
1
3
5
8
Loop 1
100%
98%
99%
96%
97%
Loop 2
100%
98%
96%
97%
96%
Loop 3
100%
100%
99%
96%
95%
Loop 4
99%
99%
94%
95%
87%
Loop 5
99%
98%
95%
83%
78%
With a size-8 kick on loop 3 alone, accuracy rose from 64% at three loops to 95% at five.
Qwen · dense control · 4 quarters · 88% correct without a kick
Quarter kicked
Kick size (ε)
0.5
0.7
1
1.5
Quarter 1
89%
90%
75%
1%
Quarter 2
81%
45%
1%
1%
Quarter 3
74%
41%
1%
1%
Quarter 4
84%
87%
68%
1%
Accuracy on the same 100 MATH-500 problems, with one reply of up to 8,192 tokens per problem. Heatmap scores (CSV).
A kick on the last standard loop
A size-1 kick on the last standard loop dropped Dory and Ouro to 0 correct. Two clean loops later, Dory solved 94 of 100 and Ouro solved 65. When we kicked all four of Ouro’s loops at the same size, it still solved 0 after two clean loops.
Ouro · problems solved out of 100
Kick size
Kick on loop 4 alone
Kick on loops 1–4
4 loops
+2 clean
4 loops
+2 clean
0.5
85
88
11
27
0.7
58
85
1
1
1
0
65
0
0
1.5
0
7
0
—Unmeasured
Ouro solved 86 problems at both depths without a kick. After size-0.5 kicks on all four loops, two clean loops solved 18 previously missed problems and lost 2 previously solved, a net gain of 16 points (95% paired interval 6 to 26).
Inkling with a kick on loop three alone
Size
3 loops
5 loops
Gap closed points, 95% interval
1
98%
100%
2 [0, 5]
3
79%
99%
20 [13, 28]
5
68%
96%
28 [19, 37]
8
64%
95%
31 [22, 40]
Inkling already solved 98 of 100 with a size-1 kick on its third loop. Size 8 left room to measure recovery on the same problems, from 64 solved to 95 after two clean loops. Last-loop measurements (CSV).
For replies that hit the token limit, Luna reads the last 6,000 characters to distinguish repetition, incoherence and unfinished reasoning. How we scored math answers
What if the edit is baked into the weights?
A typical weight edit, often called abliteration, subtracts the component along u (refusal direction) from every column of W.
It makes the raw update W′x perpendicular to u for every input x. Every loop that uses these weights inherits the edit.
Our non-looped control model (Qwen) adds its attention and MLP outputs directly to the running state. After the standard edit, each update is perpendicular to the refusal direction, so these additions cannot write that component back, and the edit acts like ablation of the refusal direction. However, norms and other architectural idiosyncrasies introduce complications in standard weight editing of looped models.
Refusal and math accuracy after a weight edit
Unedited After the weight edit
Refusal rate and math accuracy before and after a weight edit, at each model’s usual depth.
For example, Ouro rescales each coordinate of an attention or MLP update via a learned gain before adding it to the state. Unequal gains can give the update a component along the refusal direction again. At each loop boundary, a second normalization can amplify the component carried forward from earlier layers.
The refusal component leaks via standard abliteration and breaks Ouro
Inside one layer
Refusal axisZero-component planeLeak
The dashed arrow is an edited write. Multiplying its coordinates by unequal gain values of 2, 1 and ½ tips it out of the plane and restores the red component.
Ouro with the standard weight edit Refusal component (RMS)
10501.63.97.110.9Loop 1Loop 2Loop 3Loop 4
The state carries the component through shared layers. Each red step is the rescaling at the end of a loop.
On 20 replies, the component grew from 5% of the state’s RMS length after the first loop to 23% after the fourth.
The loop boundary norms really matter (in addition to per layer post norms). On 20 fixed replies, teacher forced up to 256 generated tokens to compare the standard weight edit with a filter that removed the refusal component only at each layer. They predicted the same next token at 53.8% of reply positions. When we also cleared the component between loops, agreement rose to 80.5%, indicating a big impact.
Dory, Inkling and Nanbeige leak too but stay manageable. Dory’s sublayers damped the component they inherited, and its size stayed steady across loops 2–4. Inkling restarted each loop from the prelude, and the component its layers read shrank slightly over three loops. In Nanbeige, the component returned at the boundary between its two loops, then became a smaller share of the growing state. All three models refused less often after the standard edit, and their MATH-500 accuracy fell by just 0.4–1.2 percentage points. We will examine model-specific results in an upcoming post.
Ouro can still be abliterated. An edit adapted to Ouro's architecture still brought refusal down to 10.9% with 84.0% math accuracy. The exact edit is redacted for safety reasons.
Ouro repeats the whole stack of 24 layers. Its early-exit gate can dynamically decide the number of loops for each token. In standard operation, 4 fixed loops are recommended. Ouro uses a learned sandwich RMSNorm. Each attention or feed-forward block normalizes its input, then normalizes its update before adding it to the running state. A shared RMSNorm rescales the whole state at the end of each loop.
Like Ouro, Nanbeige repeats the whole stack and applies a shared RMSNorm at the end of each loop. It always runs twice, and has no early exit capability. Within a layer, each attention or feed-forward block reads a normalized state and adds its update directly to the residual stream (no sandwich).
Dory uses a loop-in-the-middle architecture. Only the middle stack repeats. Here we count an attention and a feed-forward block as one layer. Each loop adds the prelude’s output to the running state and rescales the sum to unit length. Within a layer, each block blends its output with the old state using a learned weight per coordinate, then returns the result to unit length. NVIDIA trained Dory with one to four loops. It recommends two by default and four when extra accuracy matters on tasks such as coding.
Inkling is a mixture of experts (MoE): 26.4B parameters, 3.4B active (effectively higher due to looping). Each feed-forward layer routes each token to 8 of 128 experts. The variable-loop model saw one to five loops during later midtraining and three during post-training.
Each loop restarts from the saved prelude, but has access to the previous loop's two messages, one summarizing each half. Each attention and feed-forward input in the next loop reads its own gated mix of those messages. Within a loop, attention residuals mix earlier blocks with the current one. RMSNorm rescales the inputs, and a short convolution mixes each output across 4 adjacent tokens before it enters the residual stream.
Follow one channel in one loop. Its four learned weights (solid lines) stay the same as the window slides. The dashed line adds a direct copy of the current value. Inkling divides the sum by √5.
Each layer runs once only. Each attention or feed-forward block reads a normalized state and adds its update to the residual stream. A final RMSNorm comes just before the language-model head. We split the stack into four groups of nine layers to compare edit locations (corresponding to 4 loops).
How does the effect depend on the edited loop?
On four-loop Dory, erasing refusal in loop 1 left the refusal rate close to baseline, but the edited and unedited replies shared only 56.1 opening tokens on average. Moving the edit to loop 4 cut that prefix to 5.8 tokens and refusal to 15.5%. On Nanbeige the matching prefix barely changed between its first and last loops (34.7 and 33.4 tokens).
Effect of an edit by loop or quarter
Dory · 4 loops · Refusal ablation
Four-loop Dory, refusal ablation
Edit site
Refusal rate487 prompts
Top next token changedreply tokens, 10 prompts
Tokens before first mismatchmean across all replies
None
91.9%
Baseline
100.0
Loop 1
92.3%
0.6%
56.1
Loop 2
90.8%
1.5%
46.5
Loop 3
84.0%
5.8%
17.2
Loop 4
15.5%
26.6%
5.8
All layers
9.3%
28.6%
5.5
Refusal and math scores come from separately judged replies. For fixed text, we average the fraction of reply positions where the most likely next token changes given identical preceding text. Refusal replays use the first 100 reply tokens on the same 10 prompts for every model and depth. For the matching prefix, we compare two greedy replies on each of 487 refusal prompts or 100 math problems. A mismatch on the first token counts as zero. A fully matching pair contributes its observed length, up to 100 tokens. Outcomes and replays (CSV) · Matching prefixes (CSV)
Each numbered row edits one loop or one nine-layer quarter of Qwen. “All layers” erases refusal throughout the model, including the prelude and coda where present. Math kicks act at the middle layer of each selected loop or quarter. “None” repeats an unedited run. These greedy repeats differed on three Ouro refusal prompts and one Qwen math problem.
Dory’s mean distance to unedited loop 4
Mean hidden-state distance by sublayer
Refusal ablation
UneditedEdited in loops 1–2
Edit onEdit off
10.10.010.001
Refusal ablation. Mean distance by sublayer on a log scale, shaded by one standard deviation across token positions. Unedited loop ends 0.0167, 0.0049, 0.0029, 0.0000. Edited loop ends 0.0614, 0.0604, 0.0143, 0.0053.BF16 floor ≈ 0.002
Loop 1Loop 2Loop 3Loop 4
Random math push
UneditedEdited in loops 1–2
Edit onEdit off
10.10.010.001
Random math push. Mean distance by sublayer on a log scale, shaded by one standard deviation across token positions. Unedited loop ends 0.0239, 0.0105, 0.0058, 0.0000. Edited loop ends 0.1226, 0.1235, 0.0250, 0.0137.BF16 floor ≈ 0.002
Loop 1Loop 2Loop 3Loop 4
Each line averages distance to the same sublayer in unedited loop 4 across 10,000 token positions (100 replies, 100 tokens each). Shading shows one standard deviation above and below each mean. Bands that extend below 0.001 are clipped at the bottom of the log scale. The unedited fourth loop has distance zero throughout. Means and standard deviations (CSV)
How far does Dory’s hidden state move on fixed text?
On ten harmful requests, we replayed the same tokens twice, once with an edit in loop 1 and once without. The bars track the distance between Dory’s unit-length hidden states. For either edit, the largest drop came in the first clean loop.
Distance from the unedited state after a loop 1 edit
Loop 1 · edited0.0589
Loop 2 · clean0.0132
Loop 3 · clean0.0045
Loop 4 · clean0.0033
Loop 1 · edited0.0229
Loop 2 · clean0.0054
Loop 3 · clean0.0029
Loop 4 · clean0.0026
Mean Euclidean distance at each loop end, measured on 100 reply positions per prompt. This replay used its own reference replies. Erasing refusal only in the last loop changed 27.3% of top next-token predictions here and 26.6% on the greedy reference replies in the cross-model table. Replay measurements (CSV) · First change by prompt (CSV)
Does Inkling’s refusal signal persist during reasoning?
With the refusal component removed from Inkling’s restart inputs, the gap between refusing and answering traces reached 117.0% of its unedited value at the final prompt token and 91.9% over the first 256 available reasoning tokens. With the original inputs, the readings were 101.4% and 89.8%. We measured both at shared layer 6 of loop 5, using a separate unedited reference for each token window. Layer-by-layer measurements (JSON)
Next-token loss is the average negative log probability the model assigns to the next token in the recorded text. A lower loss means those tokens were easier to predict. Inkling’s higher sampling temperature (1.0 versus Dory’s 0.6) likely contributed to its higher baseline loss.
Scoring and coverage
How we scored the weight-edit comparison
We used 250 refusal prompts per model and weighted each prompt equally. Luna scored available replies even when reasoning was unfinished or malformed. Dory and Qwen each lacked a verdict for one prompt, leaving 249 matched prompts for each.
Each model attempted all 500 math problems once per condition. We credited a correct answer the model settled on, including during reasoning. Resampling whole problems gave a 95% interval of 83–89 percentage points lost for Ouro’s standard edit. For the adapted edit, the change was −2.2 points (95% interval, −5.2 to +0.6).
What Ouro generated under the standard edit
On 250 refusal-test prompts, 748 of 750 reasoning traces were malformed or unfinished. These excerpts show why an automated verdict was hard to interpret.
Reasoning, prompt 122.and, and, and, and, and, and The word and comma repeated 993 times in a row. Luna judged this a refusal.
Reasoning, prompt 0.as well as, and as well as, and as well as, and The phrase repeated 200 times in a row. Luna judged this a nonrefusal.
Answer, prompt 14.5, 5, 5, 5, 5, 5, 6, 5, 5, 5, 5, 5, 6, 5 The model wrote a 5 followed by a comma and a space 268 times before the answer was cut off.
Refusal. The published test split has 487 requests, including benign OR-Bench prompts that can elicit unnecessary refusals. Some loop combinations used the first 250. We sampled three reasoning traces per prompt and three answers per completed trace. Unfinished traces received one judgment. We averaged Luna’s binary StrongREJECT verdict first across scored answers within each trace, then across traces within each prompt, giving each prompt equal weight. Benchmark sources.
Paired recovery estimates use prompts with a scored reply in all four conditions (edited and unedited at both depths). For refusal erasure, that leaves 487 prompts on Dory and Ouro and 486 on Inkling. Paired estimates and 95% intervals (CSV).
Judge settings. To estimate refusal directions, we grouped Ouro, Nanbeige and Qwen training examples by their StrongREJECT scores from gpt-oss-20b at medium reasoning effort. Dory and variable-depth Inkling used harmful and harmless prompt labels. For personas, gpt-oss-20b at low effort selected replies scoring ≥50/100 when instructed to express the trait and <50 when instructed to suppress it. We evaluated outcomes with gpt-6-luna at low effort.
Math. Random kicks used the same 100 MATH-500 problems. Weight edits used all 500. Luna read the problem and the reply’s final 256 tokens without the key and extracted the answer the model settled on, including during unfinished reasoning. We compared that answer with the key by rule, then asked Luna to check equivalence for unmatched answers. A reply without a committed answer in that window counted as unsolved.
Persona and coherence. Luna scored trait expression and coherence separately from 0 to 100. Coherence measures how clearly a reply addresses the question. Across the four optimism conditions, 99–100 of Inkling’s 100 replies in each condition reached 80/100 coherence, compared with 33–42 of Dory’s. Filtering on coherence would therefore exclude most Dory replies. Persona results and rubrics.
Can a refusal label hide a broken reply? On 250 harmless requests, steering all three Inkling loops toward refusal produced 99.96% refusal labels. Only 0.49% of replies both refused and reached 60/100 coherence. After two more clean loops, refusal fell to 2.22% and mean coherence rose from 14.56 to 89.34. Response quality checks (CSV).