Inside the Loop: A Mechanistic Study of Looped Transformers on Permutation Traversal
Magnus Sesodia, Philip Torr, Christian Schroeder de Witt
NeurIPS 2026
TL;DR. On a permutation traversal task, we show that looped transformers use their iterations to carry out the algorithm step by step, whereas untied models of the same effective depth do not.
Abstract. Solving algorithmic tasks with many sequential steps typically requires scaling up transformer depth or chain-of-thought length, incurring unfavorable parameter and inference-compute costs, respectively. Looped transformers, which reuse one block of layers across many iterations, are poised to address this, since they scale effective depth without adding parameters or tokens. Yet, it remains unclear what each iteration is actually computing, or whether the loop merely simulates a deeper untied stack. Here, we study directed permutation traversal, in which a model follows hops from a starting node and reports the node it reaches, so every intermediate hop has a known ground truth. We find that a minimum effective depth is necessary to solve the task, beyond which the degree of weight tying becomes the determining factor. For instance, a looped transformer with a four-layer block iterated eight times solves the task in every seed, while an identically trained untied transformer of the same effective depth never does, succeeding only with a lower learning rate or supervision of its intermediate layers. Probing and intervening on the residual stream, we find that the looped model advances through the intermediate nodes gradually, forming a staircase that adapts to its iteration budget, whereas the untied model, at that lower rate, exposes them only in its final layers. Taken together, our results recast looped transformers as iterative program learners, which allocate their iterations to successive steps of the algorithm and solve tasks that identically trained untied models of the same effective depth do not. Code is available at https://github.com/magnus-sesodia/insidetheloop.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
(a) Summarize the scientific claims and findings of the paper based on your own reading and characterizations from the reviewers. Authors explored the mechanism of looped transformers. Using"Directed Permutation traversal task" they demonstrated that looped transformers are iterative program which learns a single per-iteration rule, which corresponds to one algorithmic step.
(b) What are the main strengths of the paper? Very clear experimental work based on one of the syntetic tasks from Physics of LM , and good probing methodology. Experiments are well defined and executed. The paper is well written.
(c) What are the main weaknesses of the paper? What might be missing in the submission? Core weakness is that only one task explored.
(d) [For initial meta-review only] Are there weaknesses that, if addressed sufficiently in the author response, might significantly adjust your odds of accepting this paper? If so, describe what you would need to see. NA
Final justification
Good, interesting paper. Accept as poster
Read meta-review
Meta-review
(a) Summarize the scientific claims and findings of the paper based on your own reading and characterizations from the reviewers. Authors explored the mechanism of looped transformers. Using"Directed Permutation traversal task" they demonstrated that looped transformers are iterative program which learns a single per-iteration rule, which corresponds to one algorithmic step.
(b) What are the main strengths of the paper? Very clear experimental work based on one of the syntetic tasks from Physics of LM , and good probing methodology. Experiments are well defined and executed. The paper is well written.
(c) What are the main weaknesses of the paper? What might be missing in the submission? Core weakness is that only one task explored.
(d) [For initial meta-review only] Are there weaknesses that, if addressed sufficiently in the author response, might significantly adjust your odds of accepting this paper? If so, describe what you would need to see. NA
Final justification
Good, interesting paper. Accept as poster
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper aims to address the problem of understanding why looped transformers outperform their equivalent unlooped models on depth-bounded algorithmic tasks. The authors use a synthetic task named DEPO (Directed Permutation Traversal) that requires H hops, meaning sequential pointer-following steps on a fixed N=16 permutation. They train a small looped model (LxK) and an unlooped model (depth LK) at a matched effective depth of = LK. They report two findings: 1) they show that weight tying, rather than effective depth, predicts capability. A looped 4x8 model (3.2M params) solves the full 15-hop chain, while the equivalent depth-32 unlooped model (25.8M params) cannot progress past H~2; and 2) their mechanistic analysis shows that linear probes on the residual stream reveal a clean staircase pattern, where iteration k decodes hop k with a slope of exactly 1, which they cross-validate using the model’s own logit-lens. The paper is well-written, the experiments are carefully designed, and the use of dual-tool probing is a genuine contribution. However, several limitations weaken the confidence in and interpretation of these claims, as detailed below.
Strengths and weaknesses
Strengths:
-
Clean experimental isolation: Matching while varying the weight-tying configuration is the correct way to design this experiment. The compute-parity check in Appendix B is thorough, i.e., accounting for wall-clock time and per-step FLOPs, which successfully demonstrates that this capability gap is architectural rather than an issue of training budget symmetry.
-
Dual Probing Methodology: Using linear probes (external readouts) alongside the model’s own logit-lens provides excellent cross-validation. The key insight here is that probing and the logit-lens can diverge, and that this divergence itself serves as a sign of deferred commitment, which represents a genuine conceptual contribution. The Hewitt-Liang shuffled-label control and random-initialization sanity checks in Appendix C are also highly appropriate.
-
H(star)@ alpha Metric : Requiring all hops 1 to H to exceed a specific accuracy threshold (alpha) before claiming that depth H is solved correctly prevents a non-monotonic accuracy curve from overstating the model's capability. This is a well-designed metric.
-
The behavioural finding is robust : The performance gap between looped and unlooped models holds across three different L/K factorizations at = 32, as well as across the full range of alternative configurations. Furthermore, the flat trajectory of the unlooped models (0 out of 5 seeds succeeding at every tested) convincingly demonstrates that this is an architectural gap rather than a consequence of insufficient compute.
Weakness
-
The Anomalous seed is buried and underexplored. The anomalous seed is buried and underexplored: Appendix C, Figure A2 reports that one looped 2x16 seed (sanity = 0.99 - meaning it actually solves the task with high accuracy) shows no staircase pattern. The authors dismiss this as "an alternative encoding that still satisfies the head" and exclude it from further analysis. However, this is arguably the most scientifically interesting observation in the paper.
-
The Lu et al. contradiction is explained away, not resolved. Huggin- 3.5B and actual large-scale looped model and find no clean per-iteration staircase. The authors account for this by arguing that Huggin lacks the two preconditions that make the staircase visible. While this explanation is logically coherent, it is scientifically unsatisfying. It essentially implies that the staircase only appears when the task and training are specifically engineered to produce it. If this is true, the staircase is a property of a specific training regime rather than a general property of how looped transformers implement sequential reasoning. The paper should be more explicit about this limitation in scope, rather than framing the Lu et al. result as a finding that complements deferred commitment.
-
Training dynamics are not matched, only computed. Matched matches the per-step FLOPs, which is correct. But the gradient flow is structurally different between 2 architectures under uniform H training. In the looped model, the gradient for a H- hop query flows back through H applications of the same shared weights. In a deep 32, the same gradients flows primarily through the final H layers of a 32-layer stack, with attenuating signals reaching early layers. This could contribute to deep-32’s failure independently of weight tying. However, a more targeted ablation- for example, training deep-32 with auxiliary losses at intermediate layers would cleanly separate the architectural effect from the training dynamics effect.
Questions
-
For the anomalous loop (2x16) seed (sanity=0.99, no staircase), can you please provide the logit lens trajectory alongside the probe heatmap?
-
Have you tested whether a pre-trained model shows any structure when evaluated on DEPO like multi-hop queries at inference time. Without fine-tuning?
-
For deep-32, what does the residual stream look like internally when probed layer by layer? Does it develop any partial per-layer structure, early encoding hop 1, middle layers encoding hop 2 approximately – or is there any structure at all? Understanding this would sharpen the contrast with the looped model and strengthen the inductive bias argument.
Limitations
Yes
Final justification
The authors’ rebuttal addressed all three weaknesses I raised. On the anomalous seed (W1), they showed it reflects a recurring “endpoint-anchored” solution mode rather than a one-off artifact, which meaningfully qualifies their claim that weight tying uniquely determines the internal code. On the Lu et al. contradiction (W2), they revised their framing into an explicit, falsifiable scope condition rather than treating it as complementary evidence. On training dynamics (W3), the new auxiliary-loss ablation on deep-32 isolates a learnability-from-sparse-supervision account from pure representability, which was exactly the ambiguity I flagged. Given this new causal evidence rather than argument alone, I am raising my score from 4 to 5.
Formatting concerns
none
1 comment
Rebuttal
Thank you for the feedback! We appreciate that you recognised the matched-effective depth design and the dual-tool probing as genuine contributions. The three weaknesses you raise turned out to be the most productive to chase: we ran your auxiliary-loss deep-32 ablation (W3), we analyzed the anomalous seed you flagged and found it is one instance of a broader alternative solution mode (W1), and we now state the Lu et al. scope condition explicitly rather than framing it as a complement (W2). We address each point below.
W1: "The anomalous seed (loop-2x16, sanity=0.99, no staircase) is buried and underexplored; this is arguably the most scientifically interesting observation."
Our response: You are right that it deserves more than a footnote, and it turns out to be part of a broader pattern. The seed is s44; it solves the task (next-token accuracy 0.98) but its per-hop peak probe selectivity is [0.80,0.33,0.30,0.84], i.e., endpoints decodable and middle hops near chance, versus [0.95,0.96,0.96,0.97] for the staircase seeds. It is a second, endpoint-anchored solution mode. We now show it is not a one-off: it also appears in 2/3 saturating seeds when we ablate the timestep embedding, and it is the same weakly-legible regime a low-budget loop falls into (loop-2x5). We present it, and the reframed Contribution 2, as evidence that weight tying is necessary for the capability but does not uniquely determine the internal code; the one-hop staircase is the typical solution in the zero-slack regime (the majority of saturating seeds), not the only one. So your observation reshapes the claim rather than sitting beside it.
W2: "The Lu et al. contradiction is explained away, not resolved. If the staircase only appears when task and training are engineered for it, it is a property of a specific training regime rather than a general property of looped transformers."
Our response: We agree, and we now say exactly that, as a scope condition rather than a complement. The clean staircase requires two things: per-iteration ground truth in the data, and a training signal that rewards intermediate hops. Huginn has neither, so its absence there is predicted, not contradictory. This is falsifiable: a looped model trained with a final-answer-only loss on data without per-iteration ground truth should not show the staircase. We restate our contribution as characterizing the regime in which the loop's computation is legible, and we do not claim the staircase appears under generic pretraining.
W3: "Training dynamics are not matched, only compute. In deep-32 the gradient for an H-hop query flows mainly through the final H of 32 layers. A deep-32 trained with auxiliary losses at intermediate layers would separate the architectural effect from the training-dynamics effect."
Our response: We ran your experiment, and you are correct. deep-32 with an auxiliary next-token loss at layers (read through the shared unembedding) saturates the full chain (, 2/2 seeds) versus 0/5 for plain deep-32. Probed layer by layer it now develops a per-layer staircase (per-hop peak [0.99,0.87,0.82,0.80,0.93], peak layer rising 7->12->22->23->28), whereas plain deep-32 shows one weak hop [0.97,0.53,0.02,0.03,0.11]. We think this strengthens rather than undercuts the paper, because our thesis is about learnability from sparse supervision, not representability (which we already note is not the bottleneck).
Under matched, final-answer-only supervision the looped model learns the chain and the unlooped model does not; the aux result shows why that gap is not a dead end for the unlooped stack, and that weight tying gives it from the final answer alone what dense per-layer supervision gives it explicitly. The staircase is what both successful models build; tying is the inductive bias that lets SGD find it without being told the intermediate steps. We add deep-32-aux as a third condition in Fig 3 and restate the headline as "at matched supervision and compute, weight tying predicts capability."
Q1: "For the anomalous seed, provide the logit-lens trajectory alongside the probe heatmap."
Our response: Done; see W1. We report s44's lens and probe together and characterize the endpoint-anchored encoding.
Q2: "Have you tested whether a pretrained model shows structure on DEPO-like multi-hop queries at inference, without fine-tuning?"
Our response: We do not have a pretrained looped model matched to the DEPO tokenization, so a clean zero-shot number would be confounded by format mismatch; the closest evidence is Lu et al. on Huginn (no clean structure under generic pretraining), which is consistent with the scope condition in W2.
Q3: "For deep-32, what does the residual stream look like probed layer by layer? Does it develop partial per-layer structure, or none?"
Our response: We probed all 33 levels (). Plain deep-32 encodes the input and partially the first hop (peak selectivity 0.53, late at layer 28) but never hop 2 or hop 3 (0.02, 0.03) and barely the answer (0.11): one weak hop, no chain. This is the contrast that motivated the aux experiment in W3, where the same architecture, given intermediate supervision, does build the full per-layer staircase. Depth alone does not induce the iterative representation; tying, or explicit intermediate supervision, does.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work addresses the central challenge of understanding whether weight tying in looped Transformers induces genuinely iterative computation, rather than merely simulating a deeper untied network. The paper studies directed permutation traversal (DEPO) with looped and unlooped Transformers at matched effective depth. It reports that looped models solve longer traversal chains and that linear probes and logit-lens analyses reveal an approximately step-by-step progression through intermediate nodes.
Strengths and weaknesses
Strengths
- The paper studies an important question about the inductive bias of weight sharing in recurrent-depth Transformers.
- The paper combines behavioral results, linear probes, logit-lens analysis, multiple seeds, and detailed training information.
Weaknesses
1. The task does not necessarily require sequential steps
The paper claims that an -hop query requires exactly sequential steps. This is not generally true for the cyclic DEPO setting with . For , the answer can be reached more cheaply by traversing backward for steps. More generally, the complete permutation table may permit algorithms such as pointer jumping or function composition.
Therefore, solving all 15 hops does not by itself demonstrate 15-step sequential computation. The paper should weaken this claim or evaluate on an acyclic task, larger values of , or only .
2. The evidence does not show exactly one hop per iteration
The reported dynamics are only approximately one hop per iteration. The paper itself observes warm-up iterations, occasional double steps, a slope of roughly in one setting, phase shifts across seeds, and at least one successful seed without a clear linear-probe staircase.
A more accurate conclusion is that some successful looped models learn a monotonic, locally progressive representation of the traversal. The current results do not show that exactly one hop per iteration is universal or necessary.
Questions
- Do the main results remain after removing the learned timestep embeddings?
- For , does the model traverse forward for steps or backward for steps?
Limitations
- The study is limited to one single synthetic task.
- Experiments are conducted at a relatively small scale (~26M parameters).
Final justification
I maintain rejection.
Formatting concerns
N/A
1 comment
Rebuttal
Thank you for the feedback! We appreciate that you found the inductive bias of weight sharing an important question. We agree with both premises you raise and have revised our claims: we corrected the sequential-depth claim to and backed it with new directional-decode evidence and an replication with no backward shortcut, and we reframed one-hop-per-iteration as the solution the loop finds when its budget matches the task, with the deviations shown to be systematic rather than noise. We think this leaves a more honest and more interesting result, and address each point below.
W1: "The task does not necessarily require H sequential steps. For the cyclic N=16 setting with H>8 the answer can be reached by traversing backward 16-H steps; the complete permutation table may also permit pointer jumping or composition."
Our response: Thanks for flagging this, we agree and have revised the claim. On a single -cycle the minimum sequential depth to reach is , at most 8 for , which is exactly why our loop-4x8 () can reach every . We over-stated "15 sequential steps" and will use throughout.
That said, the model does not exploit the shortcut when it has the budget to walk forward. Direction is governed by the iteration budget. For loop-2x16 () there is room to walk past , and when we probe it at the two most adversarial hops, (backward shortcut only 4 steps) and (only 6), a linear probe decodes the full forward chain at 0.91-0.97 selectivity with the peak iteration rising hop by hop, a clean forward staircase, while the intermediate nodes a backward walk would instead pass through sit far lower at 0.14-0.29. The model walks the entire forward path when a far shorter backward one exists, so it is running the algorithm, not taking the shortcut. It falls back on the backward shortcut only when the forward walk exceeds its budget, which is the complementary regime we document in our reply to Reviewer fy5k (Q1).
Second, we replicate at , where so no backward shortcut exists for any tested , and the behavioral dissociation persists with no shortcut available: loop-4x8 (3.2M params) solves the chain forward to depth 6 (2 of 3 seeds), while deep-32 with ~8x the parameters reaches depth 1 in both seeds. Third, the headline behavioral gap is about weight tying at matched depth and does not depend on the shortcut. We restate the depth claim, add the directional-decode figure, and promote to the main text.
W2: "The evidence does not show exactly one hop per iteration. There are warm-up iterations, occasional double steps, a slope of roughly 12/16, phase shifts across seeds, and at least one successful seed without a clear staircase. A more accurate conclusion is that some successful looped models learn a monotonic, locally progressive representation."
Our response: You are right, and we are revising the claim rather than defending "exactly." One hop per iteration is the solution the loop finds in the zero-slack regime, where the iteration budget matches the task depth (): there the rule is sharp across all saturating loop-4x8 seeds, and activation patching now confirms it causally. Away from the allocation adapts to the budget in the directions the - split predicts, which is exactly the set of deviations you list: warm-up under slack (loop-2x16, , slope ~12/16), compression under a deficit (loop-2x5, ), and an endpoint-anchored code in a minority of runs (the seed you note, and 2 of 3 saturating seeds in the timestep-embedding ablation).
So the corrected claim is not a universal one-hop law but a phase structure: the loop finds the one-hop algorithm when its budget matches the task, and departs from it systematically, not randomly, otherwise.
Q1: "Do the main results remain after removing the learned timestep embeddings?"
Our response: Yes. Retraining loop-4x8 without the timestep embedding (4 seeds), 3/4 seeds still saturate the full 15-hop chain (vs 5/5 with it). The staircase does not require the embedding (seed s43 shows it fully without it); the other saturating seeds adopt the endpoint-anchored code. So the timestep embedding biases the loop toward the legible one-hop solution but is not its cause, consistent with the reframed claim in W2: which solution the loop finds depends on its budget and training dynamics.
Q2: "For H>8, does the model traverse forward for H steps or backward for 16-H?"
Our response: Forward, as shown in W1: at the model represents the forward intermediates , not the backward-shortcut nodes.
On scale and significance: we agree ~26M is small and scope our claims to the inductive-bias regime rather than the at-scale one. Within that regime, we hope the revised paper reads as a more complete result than the submission: a clean behavioral separation (weight tying beats 8x the parameters at matched effective depth and matched supervision), a causal account of the mechanism where it emerges (activation patching yields the composed permutation power, with a random-init control at chance), a map of the regime in which the one-hop algorithm forms, and a control that shows the same architecture succeeds and builds the same representation once given dense supervision (so the bottleneck is learnability from a sparse signal, not representability). We would be glad to run any further control you would find convincing.
On task coverage (your Limitations note): our single task is the simplest member of a family of step-by-step tasks, chosen because it is the cleanest place to get a known answer for every intermediate step, which is what the probe rests on. The mechanism and method are defined on the family, not this one task: it already survives the harder version above (W1), and concurrent work [Zhang et al., 2026] finds the same per-loop progression on a different family, group word problems. The fuller version is in our reply to Reviewer fy5k (W2).
New references cited:
- Zhang, Hu, Peng, Xie. When Does Recurrence Become an Algorithm? Convergence Selection in Weight-Tied Looped Transformers. arXiv:2607.20594, 2026.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Looped Transformers have been a recent studied Transformer architecture-variant, promising better performance on recurrent tasks, which causal, autoregressive transformers struggle with. While prior work has shown empirical and theoretical promise, a major unexplored component was the mechanistic component. This work investigates looped transformers learning DEPO, a permutation composition task. Looped transformers learn the expected mechanism, where each loop performs one permutation iteration at a time. This is shown through linear probes of the output, where a clear staircase pattern emerges. A core finding of this work is that looped transformers are powerful because of their inductive bias through weight tying the different iterations, since a deeper model in a single iteration performs poorly.
Strengths and weaknesses
Strengths:
- Looped Transformers have been a popular architecture of study for a few years. This work provides some clear evidence that looped transformers will learn the expected mechanism, at least in certain settings. Additionally, this work identifies that without training the model to construct traversals of smaller depth than the longest target, performance drops significantly.
- The mechanistic experiments dissecting the behavior of the model are quite clear. The probes of Figure 4 and the different architectures of Figure 3 depict their respective results in an easy-to-digest way.
- Results can be seen both with linear probes (Figure 4) as well as using the model's own unembedding matrix (Figure 5). The latter of these shows how the model is specifically learning the task in a way that fits with the output geometry, rather than some difficult-to-interpret internal processing.
Weaknesses:
- As reported in the paper as well, similar mechanistic experiments have been done before on the Huginn-3.5B model. The originality of the work primarily lies in pretraining models and encouraging them to learn the iterative mechanism by training on the intermediate steps as well, rather than a general mechanistic understanding of looped transformers.
- There are two core weaknesses to the work (which the authors also identified): only one task is used, and no interventional experiments were conducted. Both limit the significance and verifiability of the work.
Questions
- In Figure 2, it appears as though the model with is able to perform DEPO with non-zero accuracy. However, this seems to differ from the findings later that the model learns to perform each iteration once per loop: such a shallow model should not be able to perform the task. Can you comment on this? Does this have to do with and , so the model only needs to learn how to invert the permutation?
- The "sanity" checks in the appendix were somewhat confusing, both for what each check was doing as well as how that ties to the experiments of the main body. Can this appendix and the main body be added to so that there is better clarity for their use?
- While constructing a new task is not feasible in the rebuttal time period, can an interventional experiment be added to the paper? One possibility that may be interesting to test is whether the output of the looped model, with its state replaced with that from a different prompt halfway through decoding, results in a combination of the appropriate powers of both the original and intervened permutations. If this does not make sense, other interventional experiments are welcome as well.
Small questions: . Why do some of the experiments in Figure 2 have a different number of seeds than the others? While reporting this is appreciated, it appears odd as models with larger effective depth were trained with the complete 5 seeds. Also, what are the error bars on this figure?
Limitations
yes
Final justification
The authors provided clarifications to a few misunderstandings of mine, namely the comparison of this work to prior work and the meaning of the sanity checks in the appendix. They also conducted a few additional experiments to elevate the observations from correlative to causal, raising the impact of the work. The few remaining questions were also addressed. While this work still primarily focuses on a single task, it is the simplest representative of step-by-step tasks, making DEPO the best choice for probing the capabilities of looped transformers.
Formatting concerns
none
3 comments
Rebuttal
Thank you for the feedback! We appreciate that you found the mechanistic experiments clear and easy to digest, and that you valued confirming the mechanism with both linear probes and the model's own unembedding. We ran the causal intervention you proposed (Q3), and we analyze the low-iteration Fig 2 cell you asked about (Q1); we address each point below.
W1: "similar mechanistic experiments have been done before on Huginn-3.5B ... the originality primarily lies in pretraining models and encouraging the iterative mechanism, rather than a general mechanistic understanding of looped transformers."
Our response: The closest prior work, Lu et al. (2025), applies a logit lens to Huginn-3.5B and finds it unreliable there, with no clean temporal separation or latent chain, and has to introduce a bespoke Coda Lens to recover any signal at all. Our contribution differs in two ways. First, we study a controlled sequential task with a per-iteration ground truth , which lets us ask whether iteration encodes hop ; a pretrained generalist has no such per-step target, so the question cannot even be posed there. Second, in our setting the standard logit lens and unembedding do work, tracing a clean one-hop-per-iteration staircase in the zero-slack regime , whereas on Huginn the vanilla lens recovers no such structure. So rather than repeat a Huginn-style analysis, we identify the conditions (a sequential task plus per-iteration supervision) under which the loop's computation becomes legible to exactly these tools. We state as an explicit scope condition that dropping either condition removes the staircase, consistent with the Huginn negative result.
W2: "only one task is used, and no interventional experiments were conducted."
Our response: On interventions, we added the state-swap test you suggested (Q3), which gives causal rather than correlational evidence.
On task coverage, we picked this task deliberately: it is the simplest member of a family of step-by-step tasks in which every intermediate step has a known correct answer, and that per-step ground truth is exactly what our per-iteration probe needs. DEPO is the corner of the family where the step is fixed, reversible, and acts on a single item. Two results show the finding is not confined to that corner.
First, the finding survives when we make the task strictly harder. On a larger permutation () the backward shortcut that existed at is gone, so the model must walk the chain forward, and the small looped model still beats the much larger unlooped one with no shortcut available (numbers in our reply to Reviewer Rmsh, W1). So it is not an artifact of the construction.
Second, the behavior is not specific to our task. Concurrent work [Zhang et al., 2026] independently finds a weight-tied looped transformer resolving a fixed number of steps per loop iteration on a different family, group word problems, with that per-loop rate set by the training setup, which closely matches the budget-driven account in our reply to Reviewer Rmsh (W2). And on ordinary unlooped transformers this kind of step-by-step search is known to spread across layers rather than across iterations (Saparov et al., 2024; Brinkmann et al., 2024), so the one-step-per-iteration behavior looks like a property of the looped architecture, not of our task. Broader task coverage remains the natural next step.
Q1: "In Fig 2 the loop L=2 model at low D_eff performs DEPO with non-zero accuracy, which seems to differ from one hop per iteration; does this relate to pi^N=id and pi^0, so the model only needs to invert the permutation?"
Our response: Thanks for highlighting this, we've dug deeper and found the following:
One hop per iteration is not a general law; it is the solution the model finds only in the zero-slack regime . Fig 2's low- cells are off-regime, and there a model with fewer iterations than hops packs several hops into each iteration up to its budget. This packing is a harder optimization, which is why only 2/5 loop-2x5 seeds saturate. We will state this scope explicitly rather than presenting one-hop-per-iteration as the default behavior (see our reply to Reviewer Rmsh W2).
The reason non-zero accuracy is possible at all is that capability at low is set by , not by : on the worst-case sequential depth is (the backward shortcut, since ), so ten layer-applications suffice to represent every hop. With iterations and , several hops must therefore be packed into each iteration rather than resolved one per iteration, which is the harder optimization noted above.
Your intuition is the other half. The high- end is solved backward ( steps), and the three non-saturating seeds show this directly: a U-shape that solves near-forward hops () and near-backward hops () but dips in the true middle (, per-hop accuracy 0.6-0.77), where neither direction fits the budget. So the model can work backward, and does so past two steps, up to about five here.
Q2: "The sanity checks in the appendix were confusing, both for what each check does and how it ties to the main body."
Our response: Apologies for the opacity; we will rewrite that appendix so each control sits next to the figure it supports. Each control rules out one way the staircase (Fig 4-6) could be an artifact of the probing rather than a property of the model, and answers the question "could this signal have appeared even if the model were not doing per-iteration computation?"
(1) Random-init control (rules out: pipeline/architecture artifact). We run the identical lens and probe pipeline on an untrained loop-4x8. It reads the answer out at chance (lens solved-rate 6.5%, versus the chance rate), so the staircase comes from the trained weights, not from the lens, the probe, or the loop architecture itself.
(2) Shuffled-label control (rules out: probe memorizing labels). Following Hewitt & Liang, we retrain each probe on randomly permuted labels; it scores at chance. So the probe is decoding real structure in the residual stream, not fitting the labels through an expressive readout. This is why every selectivity number in the main body is reported as real-minus-shuffled, not raw probe accuracy.
(3) Lens-versus-forward agreement (rules out: lens misrepresenting the head). At the final iteration the lens logits equal the model's actual forward-pass logits to numerical tolerance (agreement within 1e-3, and identical argmax on 1.000 of 10k queries). So the lens is an exact decomposition of the trained head, which is what licenses trusting it at the earlier iterations where the staircase is read.
Q3: "Add an interventional experiment: replace the state halfway with that from a different prompt and see whether the output combines the appropriate powers of both permutations."
Our response: We implemented this exactly as you suggested. Take two prompts with different permutations (donor) and (receiver), the same start and hop ; run the receiver, and at iteration overwrite the residual at the answer position with the donor's iteration- residual, then let the loop finish. If each surviving iteration applies one permutation step, the output should be the composed node , precisely the combination of powers of both permutations you described.
That is what we observe. As the patch moves toward the commit iteration the answer tracks the composed node monotonically (match to the composed power rising 0.21 -> 1.00) while its match to the un-patched receiver answer falls 1.00 -> 0.21; a random-initialized model shows no such effect (flat at chance, 0.07). The composed node coincides with the pure donor answer right at the commit iteration, so we also isolate the trials where the composed node differs from both single-permutation answers: there the match to the composed node peaks at 0.31 at the mid-patch point (versus 0.07 chance), which is the portion of the signal that reflects genuine two-permutation composition rather than a plain redirect to the donor chain. We corroborate the pointer reading with the same-permutation variant (donor and receiver share and differ only in start node), which is the clean causal test: injecting the donor state redirects the answer to the donor chain, reaching 1.00 one iteration before commit (0.17 -> 1.00) while the receiver answer is displaced 1.00 -> 0.17, with a random-init control at chance. Together these show the per-iteration residual is causally the running pointer and that the loop advances it one hop at a time. This upgrades the probe evidence from correlational to causal.
Q4: "Why do some Fig 2 experiments use a different number of seeds, and what are the error bars?"
Our response: We have completed the points at in to five seeds so the figure is uniform (they saturate in 4/5 and 3/5 seeds respectively).
On error bars: the y-axis is a binomial proportion (fraction of seeds reaching ) over seeds, so we have added 95% Wilson score intervals to every marker (though they are quite wide at ).
New references cited:
- Zhang, Hu, Peng, Xie. When Does Recurrence Become an Algorithm? Convergence Selection in Weight-Tied Looped Transformers. arXiv:2607.20594, 2026.
- Saparov, Pawar, Pimpalgaonkar, Joshi, Pang, Padmakumar, Kazemi, Kim, He. Transformers Struggle to Learn to Search. ICLR 2025 / arXiv:2412.04703.
- Brinkmann, Sheshadri, Levoso, Swoboda, Bartelt. A Mechanistic Analysis of a Transformer Trained on a Symbolic Multi-Step Reasoning Task. ACL 2024 Findings / arXiv:2402.11917.
I thank the authors for their detailed feedback! This response has clarified the few confusions I had, and the additional experiments have some useful and added insights into the core results of the work. The interventional experiments that grant causal evidence are some of the most appealing. I plan to raise my score accordingly.
Thank you from the authors
Thank you for your careful reading and thoughtful engagement throughout the review, and for raising your score.
We are glad the additional experiments clarified the remaining points, and we especially appreciate that the activation-patching results landed for you. We'll make sure these casual interventions are foregrounded in the revision!
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Author response to Meta Review
Dear Area Chair, thank you very much for handling our submission. Your meta-review identifies the single-task scope as the core weakness, and we wanted to respond to that point directly.
We chose this one task deliberately. Our mechanistic question, whether the loop computes one algorithmic step per iteration, requires a task with a known correct answer at every intermediate step, and DEPO is the simplest task that supplies it. The core mechanism is not specific to this task: concurrent independent work on a different family, group word problems, reports the same budget-set per-loop rate under weight tying [Zhang et al., 2026], which indicates the effect is architectural. We scope the paper's claims to the inductive-bias regime accordingly, and see broader task coverage as the natural next step.
In the reviewer threads we also ran the controls the reviewers proposed, and several sharpened the paper: a causal activation-patching intervention that upgrades the probe evidence from correlational to causal, an auxiliary-loss ablation that isolates weight tying from gradient-flow differences, an N=32 replication that removes the backward shortcut, and tighter statements of the sequential-depth and one-hop-per-iteration claims.
We are grateful for the time the reviewers and area chair put into the paper, and we hope these responses and the revisions they prompted address the concerns raised.
New Reference: Zhang, Hu, Peng, Xie. When Does Recurrence Become an Algorithm? Convergence Selection in Weight-Tied Looped Transformers. arXiv:2607.20594, 2026.