Visual Saccades
Inside the Loop

Later loop passes go back to the image and read the patches the question is about

Author

Published

 

Resources

Looped (recurrent-depth) transformers run a shared block of middle layers several times per forward pass, buying effective depth with compute instead of parameters (Dehghani et al., 2019; Geiping et al., 2025; Zhu et al., 2025). Thinking Machines’ Inkling-2-Mini (a fixed 3-pass looped MoE) and its variable-loop sibling TML-d24-varloop-research (Thinking Machines Lab, 2026) made this architecture available at a useful scale, and the first analyses followed within days (Barnes, 2026; DrHB, 2026; Lee et al., 2026).

Those analyses are text-only, and they run every token through the same number of passes. Both models are natively multimodal, though, and in typical visual prompts 58–77% of the prefill tokens are image patches. So we asked four questions about the image side of the loop:

  1. Without chain of thought (CoT), does pass 1 summarise the image once, or do later passes go back and read different, task-relevant patches?
  2. Do image tokens and text tokens evolve, and route through experts, the same way across passes? Can image tokens stop looping after pass 1?
  3. With CoT, should prefill and decode, or easy and hard decode tokens, get the same loop depth?
  4. When the model’s own CoT contains an early mistake, do extra passes help it notice, override it silently, or follow it?
Findings
  1. Later passes re-read the image, and the re-reading is causal. No-CoT accuracy rises from pass 1 to pass 3 on all four visual benchmarks (+10.8 to +27.5 points, all McNemar p < 0.01) and plateaus or decays after that. Masking the task-relevant patches from pass 2 onward collapses pass-3 accuracy (counting 78.8% → 35.0%, charts 36.7% → 4.2%). Masking an equal number of distractor patches does not.
  2. Pass 2→3 is where things change. Answer-token attention to the image peaks at pass 3 (up to 2.4×), the attention centroid moves 2.3–3.8× further on pass 2→3 than on 1→2, and the answer token’s top-8 MoE expert set turns over (Jaccard 0.75 → 0.49). Freezing image tokens after pass 1 is free on diagram QA but costs 8–10 points on relational chart and pointer-chain tasks.
  3. With CoT, an entropy gate on decode tokens matches uniform 3-pass decoding at 39–47% fewer decode passes. Cutting prefill loops is task-dependent: indistinguishable on charts (where CoT is near ceiling) but significantly worse on counting.
  4. Extra passes make the model follow a corrupted CoT. With a wrong count prefilled into its thinking, the model follows it on 10% of items at L = 1 but 84–95% at L ≥ 2 (p ≈ 10⁻¹⁸), and verbal self-correction drops from 26% to 0–6%. The written CoT becomes more predictive of the answer, and much more brittle.
  1. Barnes, J. (2026). Inside variable-looped transformers. https://jbarnes850.github.io/2026/11/22/inside-variable-looped-transformers/
  2. Dehghani, M., Gouws, S., Vinyals, O., Uszkoreit, J., & Kaiser, L. (2019). Universal Transformers. ICLR. https://arxiv.org/abs/1807.03819
  3. DrHB. (2026). What a looped transformer actually does inside its loop. https://drhb.github.io/blog/posts/looped-transformers/
  4. Geiping, J., McLeish, S., Jain, N., & others. (2025). Scaling up Test-Time Compute with Latent Reasoning: A Recurrent Depth Approach. arXiv Preprint arXiv:2502.05171. https://arxiv.org/abs/2502.05171
  5. Lee, A., Krishnamurthy, K., Merullo, J., Balsam, D., & Lubana, E. S. (2026). Interpreting Inkling 2 Mini. https://www.goodfire.com/research/interpreting-inkling-2-mini
  6. Thinking Machines Lab. (2026). Introducing Inkling 2 Mini. https://thinkingmachines.ai/news/inkling-2-mini/
  7. Zhu, R.-J., Wang, Z., Hua, K., & others. (2025). Scaling Latent Reasoning via Looped Language Models. arXiv Preprint arXiv:2510.25741. https://arxiv.org/abs/2510.25741

Setup

Both models share a 24-layer decoder: hybrid sliding-window (1024) and global attention (global at layers 5, 11, 17 and 23, with per-head attention sinks), fine-grained MoE with 128 routed experts and top-8 routing, and a vision encoder whose merger maps each 40 × 40 px region to one image token. Computation has three stages:

The loop, and where each intervention acts
Step through the views. The same diagram returns, highlighted, wherever an intervention is used below.

Inkling-2-Mini always runs L = 3. TML-d24-varloop-research was pretrained for 1–5 loops and RL-trained at 3, so L can be set at inference time. Most experiments use the varloop model; the key causal results are repeated on Inkling-2-Mini.

Instrumentation

We wrote a forward engine with five interventions, none of which changes weights (the views in the diagram above):

At L = 3 the engine reproduces Hugging Face’s Inkling2LoopForConditionalGeneration.forward exactly (identical top-1 tokens and probabilities).

  1. Kimi Team, Chen, G., & others. (2026). Attention Residuals. arXiv Preprint arXiv:2603.15031. https://arxiv.org/abs/2603.15031

1. Later passes re-read the image

We evaluate without CoT: the thinking block is prefilled empty, so all reasoning must happen inside the forward pass. There are four benchmarks with 600 items in total:

No-CoT accuracy peaks at pass 3
Accuracy by loop pass, with 95% Wilson intervals. The varloop model is run at L = 1…5; for Inkling-2-Mini, passes 1–2 are read through the coda lens of a 3-pass run. Greedy decoding, one run. Hover for values.
No-CoT accuracy (%)nP1P2P3P4P5Δ P1→P3McNemar p
AI2D12080.085.890.890.890.0+10.82.3e−3
Visual-Count16066.254.478.878.881.2+12.55.5e−3
Visual-NHop (all hops)20021.027.035.536.032.5+14.51.5e−4
 1-hop only5028.034.064.056.052.0+36.0–
Visual-Chart1203.319.230.820.814.2+27.52.3e−10
Inkling-2-Mini, Visual-NHop20024.032.549.0––+25.0–
Inkling-2-Mini, Visual-Chart1000.00.051.0––+51.0–

Pass 3 is the sweet spot, and it is the depth the varloop model was RL-trained at. Beyond it, accuracy plateaus (AI2D, counting) or decays: Visual-Chart falls from 30.8% at pass 3 to 14.2% at pass 5 (p = 1.1 × 10⁻⁵), the same depth-extrapolation fragility reported on text tasks (Barnes, 2026). Counting also dips at pass 2 (66.2% → 54.4%) before recovering, so intermediate passes are not simply partial answers.

The re-reading is causal

Key masking: pass 1 sees the whole image; passes 2 and 3 cannot read the hidden patches.

If pass 1 compressed everything the model needs from the image, masking all image keys from pass 2 on would be harmless. Instead it drops pass-3 accuracy below pass-1 accuracy: counting 78.8% → 21.9%, charts 30.8% → 0.0%, AI2D 90.8% → 75.0% (all p < 10⁻⁴).

Masking every image key is a large distribution shift, so the stronger test masks matched subsets: the patches covering the objects the question is about, or an equal number of distractor patches.

What the two matched masks hide on one item of each benchmark (the patch grid is the model's image tokens). The relevant-patch mask breaks the answer; the distractor mask, the same size, does not.
Masking relevant patches from pass 2 collapses pass-3 accuracy
A. Matched patch sets (relevant vs an equal number of distractor patches). Discordant pairs, distractor vs relevant: Visual-Count 76 vs 6 (p = 1.6 × 10⁻¹⁶), Visual-Chart 40 vs 1 (p = 3.8 × 10⁻¹¹). B. Masking every image key, or freezing image tokens after pass 1. Hover a marker for the McNemar test against the unmasked run.

Hiding distractor bars even helps a little on charts (30.8% → 36.7%), which fits the idea that later passes are looking for specific bars and clutter gets in the way.

Where the attention goes

Attention readout: what the answer position attends to in the image, on every pass.
Attention to the image surges, and moves, at pass 3
A. Share of the answer token's attention (trunk layers 11 and 17) that lands on image patches, per pass. B. Distance the 2D attention centroid moves between consecutive passes, in image widths. Bands are 95% intervals over items.
Where the answer token looks, pass by pass
Examples the loop gets wrong at pass 1 and right at pass 3. Pick a pass, or press play. The heatmap is the answer token's attention over image patches; dashed boxes mark the task-relevant objects; bars show the coda-lens top-1 probability at each pass.
Masking one pointer-chain cell from pass 2
Pass-3 accuracy on 3-hop chains when a single cell is masked from pass 2 onward. Plum shades follow the cell's position in the chain; the dashed line is the unmasked accuracy. Whiskers are 95% Wilson intervals.
  1. Barnes, J. (2026). Inside variable-looped transformers. https://jbarnes850.github.io/2026/11/22/inside-variable-looped-transformers/
  2. Kembhavi, A., Salvato, M., Kolve, E., Seo, M., Hajishirzi, H., & Farhadi, A. (2016). A Diagram Is Worth a Dozen Images. ECCV. https://arxiv.org/abs/1603.07396

2. Image tokens, and the pass-3 expert swap

Image tokens move more than text tokens

Pooled over all 600 items, image tokens change more per pass than prompt-text tokens. The relative step size ∥hp−hp−1∥\lVert h_p - h_{p-1}\rVert / ∥hp−1∥\lVert h_{p-1}\rVert is 0.475 and 0.501 on passes 1→2 and 2→3, against 0.370 and 0.364 for text. The answer token sits between them (0.389, 0.488). All three settle after pass 3 (Figure 6A).

Whether that movement matters depends on the task. Freezing image tokens after pass 1 skips 58–77% of prefill tokens in passes 2–3:

Image freeze: image tokens stop after pass 1, and passes 2–3 read their pass-1 states.

So on relational tasks, image tokens do useful cross-patch work during passes 2 and 3, and a static pass-1 memory of the image is not enough.

The answer token swaps experts at pass 2→3

We tracked top-8 router choices at all 12 trunk layers (Figure 6B). Text tokens’ expert sets stabilise steadily across passes (Jaccard between consecutive passes 0.635 → 0.690 → 0.784 → 0.850). Image tokens dip slightly at 2→3 (0.620 → 0.579 → 0.684 → 0.774). The answer token turns over sharply at exactly the transition where its image attention peaks: 0.746 on 1→2, 0.489 on 2→3 (0.33 on Visual-Chart, 0.40 on Visual-Count), then 0.812 by 4→5. The turnover is largest at the trunk’s first layer (layer 6, pass-1 vs pass-5 Jaccard 0.397) and at full-attention layer 11 (0.617).

Image tokens move most; the answer token changes experts at pass 2→3
A. Relative hidden-state step size per pass transition, by token type (n = 600 items). B. Overlap of the top-8 routed experts between consecutive passes, averaged over the 12 trunk layers. Bands are 95% intervals.

Together with Figures 3–5, this suggests passes 1–2 run one expert ensemble over a working state, and pass 3 switches both what the answer token looks at and which experts process it.

3. With CoT: where the loops are needed

Everything so far is no-CoT, where the forward pass carries all of the reasoning. With CoT, much of the computation moves into generated tokens. On Visual-Chart and Visual-Count with CoT (n = 60 each) we compared:

Entropy gate: during decoding, a confident token exits after pass 1; an uncertain one runs all three passes.
An entropy gate matches uniform 3-pass decoding with fewer passes
CoT accuracy against mean loop passes per decoded token, for ten policies. Whiskers are 95% Wilson intervals (n = 60 per point, so differences under ~10 points are within noise). Hover a point for its paired comparison with uniform Pre 3 · Dec 3 (exact McNemar test).
Policy, vs uniform Pre 3 · Dec 3Chart accChart passesChart +/−, pCount accCount passesCount +/−, p
Uniform Pre 3 · Dec 393.33.00–53.33.00–
Pre 1 · Dec 195.01.00+3/−2, 1.0045.01.00+3/−8, 0.23
Pre 1 · Dec 3100.03.00+4/−0, 0.1340.03.00+1/−9, 0.021
Pre 3 · Dec 191.71.00+3/−4, 1.0045.01.00+4/−9, 0.27
Pre 3* (image frozen) · Dec 3100.03.00+4/−0, 0.1343.33.00+3/−9, 0.15
Entropy gate τ = 0.1593.31.60+3/−3, 1.0053.31.84+4/−4, 1.00
Entropy gate τ = 0.4591.71.42+3/−4, 1.0045.01.63+3/−8, 0.23
Entropy gate τ = 1.0091.71.13+3/−4, 1.0038.31.31+2/−11, 0.022
Random escalation, 50%88.32.01+2/−5, 0.4548.32.00+6/−9, 0.61
Random escalation, 25%93.31.51+3/−3, 1.0045.01.50+3/−8, 0.23
Which decoded tokens the entropy gate escalates
Share of decoded tokens in each category that run all 3 loop passes under the entropy gate (τ = 0.15). Pivots are rare (13 tokens on Visual-Chart), so their bar is noisy. Hover for token counts.
Token-level loop depth under the entropy gate
Full CoT traces with each token marked by how many loop passes it ran (τ = 0.15). Special tokens are shown as ⟨…⟩.

4. Extra passes make the model follow its own mistakes

A common worry about recurrent-depth models is that they can compute an answer silently in the residual stream and ignore their written CoT (Chen et al., 2025; Turpin et al., 2023). The optimistic counterpart is that extra passes might help a model catch a mistake in its own reasoning. We tested both with prefilled, corrupted CoT at L ∈ 5:

Each continuation is scored as one of: follows the corruption; verbal self-correction (notices, recomputes, gives the true answer); silent override (gives the true answer without acknowledging the error); or other (a different wrong answer, or truncated).

With more loop passes, the model follows a corrupted CoT
Outcome shares by loop depth L. Visual, L = 1 vs 3: follows 59 vs 0 discordant (p = 3.5 × 10⁻¹⁸); self-correction 19 vs 3 (p = 8.6 × 10⁻⁴). Hover a bar for exact values.
vcount_0005, L = 1 · 110 tokens · self-corrects

True count: 3 blue diamonds. The prefix claims 5.

“Let me verify: top-right area has a blue diamond, middle-right has a blue diamond, center has a blue diamond, left-upper has an orange diamond (not blue). So blue diamonds: top-right (1), middle-right (1), center (1) = 3? Wait let me recount…” → 3

vcount_0005, L = 3 · 6 tokens · follows

Same image, same prefix claiming 5.

<|end_message|><|message_model|><|content_text|>5<|end_message|> → 5

Coda lens: read the answer the model would give if it stopped after pass p.
The loop sharpens belief in the written claim
Coda-lens readout immediately after the corrupted visual prefix, by pass: share of items whose top choice is the corrupted vs the true count (solid), and the mean probability of each (dashed).

Our reading is that the extra passes behave like an in-context belief sharpener. When the context contains a confident, self-authored claim, more refinement makes the model more confident in the most salient hypothesis, the written claim, instead of generating the doubt needed to look at the image again. For monitoring this cuts both ways: at L ≥ 2 the written CoT predicts the answer almost perfectly (no silent overrides), but an early error in it propagates almost every time.

  1. Chen, Y., Benton, J., Radhakrishnan, A., & others. (2025). Reasoning Models Don’t Always Say What They Think. arXiv Preprint arXiv:2505.05410. https://arxiv.org/abs/2505.05410
  2. Turpin, M., Michael, J., Perez, E., & Bowman, S. R. (2023). Language Models Don’t Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Prompting. NeurIPS. https://arxiv.org/abs/2305.04388

Implications

Limitations

Code, data generators and raw results: github.com/samarth777/loop-lens.

  1. Elbayad, M., Gu, J., Grave, E., & Auli, M. (2020). Depth-Adaptive Transformer. ICLR. https://arxiv.org/abs/1910.10073
  2. Schuster, T., Fisch, A., Gupta, J., Dehghani, M., Bahri, D., Tran, V. Q., Tay, Y., & Metzler, D. (2022). Confident Adaptive Language Modeling. NeurIPS. https://arxiv.org/abs/2207.07061
  3. Wang, Y., Qian, R., Li, Y., Yao, H., & Wang, W. (2026). Recurrent Self-Improvement: Dynamic Cross-Loop On-Policy Distillation for Looped Language Models. arXiv Preprint arXiv:2610.10623. https://arxiv.org/abs/2610.10623