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:
- Without chain of thought (CoT), does pass 1 summarise the image once, or do later passes go back and read different, task-relevant patches?
- Do image tokens and text tokens evolve, and route through experts, the same way across passes? Can image tokens stop looping after pass 1?
- With CoT, should prefill and decode, or easy and hard decode tokens, get the same loop depth?
- When the model’s own CoT contains an early mistake, do extra passes help it notice, override it silently, or follow it?
- 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.
- 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.
- 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.
- 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.
- Barnes, J. (2026). Inside variable-looped transformers. https://jbarnes850.github.io/2026/11/22/inside-variable-looped-transformers/
- Dehghani, M., Gouws, S., Vinyals, O., Uszkoreit, J., & Kaiser, L. (2019). Universal Transformers. ICLR. https://arxiv.org/abs/1807.03819
- DrHB. (2026). What a looped transformer actually does inside its loop. https://drhb.github.io/blog/posts/looped-transformers/
- 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
- 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
- Thinking Machines Lab. (2026). Introducing Inkling 2 Mini. https://thinkingmachines.ai/news/inkling-2-mini/
- 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:
- Prelude (layers 0–5), run once per token.
- Loop trunk (layers 6–17), run L times. Before each pass, an attention-residual module (Kimi Team et al., 2026) aggregates earlier pass outputs and a learned gate blends them into the residual stream. Each pass has its own KV/convolution cache slot.
- Coda (layers 18–23 and the LM head), run once after pass L.
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):
- Coda lens. After any pass p, run the trunk output through the unmodified coda and LM head: a logit lens that uses the model’s own readout block.
- Attention extraction. Exact post-softmax attention (including sinks) from the answer-query token to every image patch, at the full-attention trunk layers 11 and 17, per pass.
- Pass ≥ 2 key masking. Pass 1 sees the whole image. From pass 2 on, keys of a chosen patch set are masked at every trunk layer: all image tokens, target-object patches, an equal number of distractor patches, or single cells of a pointer chain.
- Image freeze. Image tokens run the prelude and pass 1, then skip passes 2…L; later passes read their pass-1 KV/conv states.
- Entropy-gated decode. Each decoded token runs pass 1 and reads its next-token entropy through the coda. If it exits, and its pass-1 KV/conv states are copied into the pass-2 and pass-3 cache slots, so later 3-pass tokens never attend to empty slots.
At L = 3 the engine reproduces Hugging Face’s Inkling2LoopForConditionalGeneration.forward exactly (identical top-1 tokens and probabilities).
- 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:
- AI2D (Kembhavi et al., 2016) (n = 120): real science-diagram multiple choice.
- Visual-Count (n = 160): cluttered multi-shape, multi-colour scenes, with a box for every target and distractor.
- Visual-Chart (n = 120): 6-bar charts with two-step arithmetic questions (e.g. second-highest minus lowest bar), with a box for every bar.
- Visual-NHop (n = 200): 3 × 3 pointer grids (cells hold
-> B3-style pointers or a target word), 50 items each at 1–4 hops, with a box per hop.
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 (%) | n | P1 | P2 | P3 | P4 | P5 | Δ P1→P3 | McNemar p |
|---|---|---|---|---|---|---|---|---|
| AI2D | 120 | 80.0 | 85.8 | 90.8 | 90.8 | 90.0 | +10.8 | 2.3e−3 |
| Visual-Count | 160 | 66.2 | 54.4 | 78.8 | 78.8 | 81.2 | +12.5 | 5.5e−3 |
| Visual-NHop (all hops) | 200 | 21.0 | 27.0 | 35.5 | 36.0 | 32.5 | +14.5 | 1.5e−4 |
| 1-hop only | 50 | 28.0 | 34.0 | 64.0 | 56.0 | 52.0 | +36.0 | – |
| Visual-Chart | 120 | 3.3 | 19.2 | 30.8 | 20.8 | 14.2 | +27.5 | 2.3e−10 |
Inkling-2-Mini, Visual-NHop | 200 | 24.0 | 32.5 | 49.0 | – | – | +25.0 | – |
Inkling-2-Mini, Visual-Chart | 100 | 0.0 | 0.0 | 51.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
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.
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
- Image attention peaks at pass 3. Answer-token attention mass on image patches stays flat over passes 1–2, spikes at pass 3, then falls back: Visual-Count 11.7 → 12.4 → 27.7 → 13.5%, Visual-Chart 14.6 → 14.8 → 22.8 → 16.1%.
- The gaze moves most on pass 2→3. The attention centroid over the patch grid shifts 2.3–3.8× further between passes 2 and 3 than between 1 and 2 (Visual-Count 0.021 → 0.079 image widths, Visual-Chart 0.023 → 0.065, AI2D 0.025 → 0.064).
- Pointer chains are read in order. On 3-hop grids with
Inkling-2-Mini(n = 50, unmasked 48%), we mask one cell from pass 2 on. The start cell has already been consumed by pass 1, so hiding it costs nothing, while the final cell is still needed (−18 points vs unmasked, p = 0.035; −26 vs the start cell, p = 0.004). With 50 items the intermediate steps are within noise, so read this as “early cells are done, the last is not” rather than a clean gradient.
- Barnes, J. (2026). Inside variable-looped transformers. https://jbarnes850.github.io/2026/11/22/inside-variable-looped-transformers/
- 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 / 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:
- AI2D: 90.8% → 90.0% (3 vs 4 discordant, p = 1.0), so pass-1 image states are enough for diagram lookup.
- Visual-Count: 78.8% → 74.4% (p = 0.25), a small, non-significant dip.
- Visual-Chart: 30.8% → 20.8% (p = 0.0075), and Visual-NHop: 35.5% → 27.5% (p = 0.009). On
Inkling-2-Minithe cost is larger: chart 51.0% → 15.0%, NHop 49.0% → 37.5% (p = 0.003).
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).
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:
- prefill and decode depths set separately (Pre ∈ 3 × Dec ∈ 3), plus 3-pass prefill with image tokens frozen after pass 1 (Pre = 3*);
- entropy-gated decode at τ ∈ 1, against random escalation at matched rates.
| Policy, vs uniform Pre 3 · Dec 3 | Chart acc | Chart passes | Chart +/−, p | Count acc | Count passes | Count +/−, p |
|---|---|---|---|---|---|---|
| Uniform Pre 3 · Dec 3 | 93.3 | 3.00 | – | 53.3 | 3.00 | – |
| Pre 1 · Dec 1 | 95.0 | 1.00 | +3/−2, 1.00 | 45.0 | 1.00 | +3/−8, 0.23 |
| Pre 1 · Dec 3 | 100.0 | 3.00 | +4/−0, 0.13 | 40.0 | 3.00 | +1/−9, 0.021 |
| Pre 3 · Dec 1 | 91.7 | 1.00 | +3/−4, 1.00 | 45.0 | 1.00 | +4/−9, 0.27 |
| Pre 3* (image frozen) · Dec 3 | 100.0 | 3.00 | +4/−0, 0.13 | 43.3 | 3.00 | +3/−9, 0.15 |
| Entropy gate τ = 0.15 | 93.3 | 1.60 | +3/−3, 1.00 | 53.3 | 1.84 | +4/−4, 1.00 |
| Entropy gate τ = 0.45 | 91.7 | 1.42 | +3/−4, 1.00 | 45.0 | 1.63 | +3/−8, 0.23 |
| Entropy gate τ = 1.00 | 91.7 | 1.13 | +3/−4, 1.00 | 38.3 | 1.31 | +2/−11, 0.022 |
| Random escalation, 50% | 88.3 | 2.01 | +2/−5, 0.45 | 48.3 | 2.00 | +6/−9, 0.61 |
| Random escalation, 25% | 93.3 | 1.51 | +3/−3, 1.00 | 45.0 | 1.50 | +3/−8, 0.23 |
- An entropy gate on decode tokens is the robust saving. At τ = 0.15 it ties uniform 3-pass decoding item-for-item on both tasks (+3/−3 and +4/−4) with 1.60 and 1.84 mean decode passes, 47% and 39% fewer. Pushed too far (τ = 1.0) it costs 15 points on counting (p = 0.022). Random escalation at a similar budget is never better.
- Cutting prefill loops depends on the task. On charts, CoT lifts every policy to 92–100% and they are statistically indistinguishable; the 100% for Pre 1 · Dec 3 is four items (p = 0.13). On counting, a 1-pass prefill is significantly worse (40.0% vs 53.3%, p = 0.021), and freezing image tokens looks similar (43.3%) but is not significant. Counting still needs the image re-read during prefill even when the model can write out its reasoning.
- The gate escalates whatever is uncertain. At τ = 0.15, reasoning pivots (
wait,so,check, …) almost always get 3 passes. Numbers split by task: on charts only 10% escalate, because they are arithmetic results that follow from earlier tokens, but on counting 77% do, because the number is the perceptual answer.
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:
- Visual counting (n = 80): the thinking block is prefilled with “Let me scan the image carefully and count the [target]. I see k [target] in total.”, with k = true count ± 2, and the model continues.
- Text arithmetic (n = 100): 3-step word problems (99–100% accuracy with a clean prefix), with a wrong step-1 intermediate sum prefilled.
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).
- Visual. At L = 1 the model often doubts the prefix: it spends a mean 95.7 tokens recounting, self-corrects on 26%, and follows the corruption on only 10%. Most of the rest (59%) are other wrong counts, so L = 1 is not a careful counter, just one that does not trust the prefix. At L ≥ 2 the model closes its thinking within 11–23 tokens and follows the corrupted count on 84–95% of items.
- Text. The same direction, weaker: following goes from 72% to 78–100%, and the 10% silent overrides at L = 1 vanish. Verbal self-correction is near zero at every depth, so the collapse in self-correction is specific to the visual task.
- Inside the model. Reading the coda lens right after the corrupted visual prefix, pass 1 already prefers the corrupted count on 82.5% of items. Passes 2–5 sharpen that preference (97.5%, 95.0%, 92.5%, 91.2%), and preference for the true count drops from 17.5% to 2.5–8.8% (Figure 11).
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
Same image, same prefix claiming 5.
<|end_message|><|message_model|><|content_text|>5<|end_message|> → 5
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.
- 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
- 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
- Depth should depend on the token. In decode, a zero-training entropy gate already saves 39–47% of decode passes at no measured cost. Prefill savings, such as freezing image tokens or a 1-pass prefill, are safe on some tasks (diagram QA, chart CoT) and not others (counting, relational no-CoT), so a learned, modality-aware halting gate (Elbayad et al., 2020; Schuster et al., 2022) looks more promising than a fixed rule.
- Pass 3 is specialised. The attention peak, the expert turnover and the post-3 accuracy decay on charts all line up at the RL depth. Cross-loop distillation (Wang et al., 2026) or RL with randomised readout depth might make the passes beyond 3 useful.
- Train against self-anchoring. Because extra passes sharpen confidence in whatever the CoT says, RL for looped reasoners should include corrupted-prefix and backtracking-recovery data, so that depth buys verification rather than early closure.
Limitations
- Two models. Both are from one family (sparse MoE, attention residuals). Dense looped VLMs may behave differently.
- One unexplained case. On
Inkling-2-MiniVisual-Count (n = 100), the coda lens reads 12% → 60% at passes 1–2, but the final pass-3 answer is only 25%. Freezing image tokens raises it to 53%, and masking a control patch set drops it to 0%. Every other model–task pair shows a pass-3 peak; we have not found why this one does not, so we leave it out of the headline numbers and report it here. - Mostly synthetic benchmarks. AI2D is real; Visual-Count, Visual-Chart and Visual-NHop are rendered, because the patch-masking and hop experiments need exact boxes.
- Small CoT samples. Section 3 uses 60 items per task, so only large differences are significant. The CoT versions of the n-hop and text-math tasks were started but not completed.
- Single greedy run. Every number comes from one deterministic run; we report paired McNemar tests, not seeds.
- Pass counts, not wall-clock time. Savings are counted in loop passes in an eager PyTorch engine. Turning them into latency needs pass-masked batched kernels in a serving stack such as vLLM or SGLang.
Code, data generators and raw results: github.com/samarth777/loop-lens.
- Elbayad, M., Gu, J., Grave, E., & Auli, M. (2020). Depth-Adaptive Transformer. ICLR. https://arxiv.org/abs/1910.10073
- 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
- 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