potentialpaper

DiscoLoop: Looping Discrete Embeddings and Continuous Hidden States for Multi-hop Reasoning

Hengyu Fu, Tianyu Guo, Zixuan Wang, Hanlin Zhu, Jason D. Lee, Jiantao Jiao, Stuart Russell, Song Mei

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We diagnose why looped transformers still fail at implicit two-hop reasoning and propose DiscoLoop, a looping architecture that achieves near-perfect generalization on multi-hop reasoning tasks with much less training.

Abstract. Implicit in-weight multi-hop reasoning---composing multiple pieces of parametric knowledge within a single forward pass---is a fundamental yet challenging task of language models. Vanilla transformers consistently fail at this task, and even looped transformers, whose recurrent structure naturally fits its iterative nature, generalize imperfectly, particularly out-of-distribution (OOD). We make two contributions toward closing this gap. First, on a symbolic two-hop reasoning task, we mechanistically diagnose why looped transformers fall short: after the first loop, the intermediate answer is already decodable from the residual stream with certain probability, yet the continuous hidden vector carrying it is noisy and geometrically misaligned with the clean discrete embedding of the intermediate answer that the next loop would ideally consume. A training-free intervention that re-aligns this representation nearly closes the OOD gap, indicating that the representational mismatch is a bottleneck. Second, building on this insight, we propose DiscoLoop, a looping architecture whose recurrence carries both a discrete embedding channel and a continuous hidden-state channel. DiscoLoop achieves near-perfect two-hop accuracy with substantially less training across symbolic and synthetic-language multi-hop reasoning tasks. When applied to real pretraining, DiscoLoop attains lower training loss and stronger performance on pretraining benchmarks than looped-transformer baselines, suggesting that the mixed-channel design transfers to practical language modeling.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:42 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper provides an interesting mechanistic analysis of why looped transformers struggle with implicit multi-hop reasoning and uses this insight to motivate the DiscoLoop architecture. The authors added useful controls, ablations, deeper-hop experiments, and robustness results, which addressed most of the reviewers’ concerns.

Final justification

See meta-review.

Area Chair KJfE · Meta-reviewOpenReview ↗
Final justification
See meta-review.
Read meta-review
Meta-review

The paper provides an interesting mechanistic analysis of why looped transformers struggle with implicit multi-hop reasoning and uses this insight to motivate the DiscoLoop architecture. The authors added useful controls, ablations, deeper-hop experiments, and robustness results, which addressed most of the reviewers’ concerns.

Reviewer i9hyOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies why looped transformers generalize poorly on implicit two-hop reasoning, composing two stored facts in one pass. On a symbolic task it diagnoses the failure: after the first loop the bridge entity is already decodable from the hidden state, but the hidden state is geometrically misaligned with that entity's embedding, so the handoff to the next loop is noisy, and a training-free fix that injects the decoded embedding nearly closes the OOD gap. From this they propose DiscoLoop, a loop that carries a discrete embedding channel alongside the continuous hidden state, decoding each step to the vocabulary and writing the token-embedding mixture back. It reaches near-perfect two-hop accuracy on the symbolic and synthetic-language tasks, and shows smaller gains on 440M pretraining.

Strengths and weaknesses

Whether looped transformers fail two-hop reasoning because the bridge entity is unavailable or because it is in the wrong format is a relevant question, and the paper's main strength is its answer. The symbolic two-graph setup is clean and the ID/OOD split is well motivated. The diagnosis in Section 3 is the strongest part: Table 1 shows the bridge entity is decoded with probability 1.0 after the first loop while the hidden state has only moderate cosine similarity to its embedding, and the training-free intervention in Figure 2 nearly closes the OOD gap.

The novelty over the looped-transformer and latent-reasoning literature is not clearly delineated. DiscoLoop reads as a combination of three existing ideas: looped transformers, logit-lens decoding of intermediate states, and feeding a probability-weighted token-embedding mixture back into the residual stream. PonderLM is especially close on the decode-then-encode recurrence, and Soft Thinking and Coconut already use soft token embeddings or continuous latent thoughts. The paper compresses these distinctions into a sentence or two; it should state what is new beyond keeping the continuous channel while adding a PonderLM-like decoded channel.

The synthetic comparisons are only against a non-looped transformer and a vanilla loop, which show DiscoLoop beats a raw loop but not that its specific design is the right one. The controlled two-hop and three-hop tasks, where the effect is largest, do not compare against the closest discrete/soft-embedding alternatives: embedding-only versus continuous-only recurrence, hard argmax versus soft mixture, tied versus untied embeddings. PonderLM appears only in the pretraining section, not on the synthetic tasks.

The pretraining evidence is modest relative to the added mechanism. Table 2 reports an average zero-shot gain from 49.3 to 50.5 (PonderLM 49.8), single-run with no error bars, and the checklist states no significance testing or multiple seeds. The cost is also under-specified: the operator decodes through the vocabulary and re-encodes embeddings each loop, and the top-k=128 approximation suggests the exact version is expensive, yet no wall-clock, memory or throughput numbers are given against the vanilla loop or PonderLM.

Questions
  1. How does DiscoLoop differ from PonderLM, beyond also carrying the continuous hidden state? A direct PonderLM comparison along with results on the synthetic tasks would clarify novelty.
  2. Can you ablate embedding-only versus continuous-only recurrence, and hard argmax versus the soft mixture, on the controlled tasks? This isolates whether the two-channel design specifically is what closes the OOD gap.
  3. Does DiscoLoop require tied input/output embeddings? The diagnosis and the operator both assume a tied matrix, so it is unclear whether the result holds with untied embeddings.
  4. What is the runtime cost (wall-clock, memory) of the decode-then-encode operator versus the vanilla loop, and how large is the gap between the exact operator and the top-k=128 approximation?
  5. Can you show the pretraining gain is real, given single-run numbers with no error bars (50.5 vs 49.3/49.8)?
Limitations

The paper's discussion (Section 6) acknowledges that pretraining is limited to moderate scale for compute reasons and frames length generalization and continual pretraining of larger models as future work. Three further limitations are not acknowledged: 1) the pretraining gains are single-run with no significance testing, 2) the runtime cost of the decode-then-encode operator is not characterized, and 3) the method relies on tied input/output embeddings. I do not see significant additional societal or ethical concerns.

Final justification

I raise my rating from 3 to 4.

The authors answered most of my concerns:

  • The single-channel ablations settle the two-channel question.
  • The untied-embedding run shows that the OOD accuracy depends on tied embeddings. The authors agree with this reading.
  • The runtime data now includes cached decoding.
  • The three-seed results (50.9 ± 0.5, 50.6 ± 0.7, 50.2 ± 0.9) show no significant gain. The authors state this clearly. The authors also make the pretraining experiment a transfer check, not proof of a better architecture. This is the correct reading and it closes the concern.

Two points stay open:

  • The comparison with PonderLM covers only the symbolic tasks. PonderLM gets 0.571 two-hop OOD accuracy with two-hop training data. It gets 0.959 when three-hop chains are added, which is almost equal to DiscoLoop. Thus the case for the two-channel design holds only at three hops and more. PonderLM is absent from the natural-language tasks and from the four-hop and five-hop runs.
  • The text that separates DiscoLoop from PonderLM, even though it was promised.
Formatting concerns
3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your valuable comments. Please find our detailed responses below.

1. Novelty and scope relative to PonderLM

We first clarify that our scope differs from PonderLM's. Our goal is not a better general-purpose LM architecture; it is to understand and fix implicit in-weight multi-hop reasoning. PonderLM instead targets general language-model pretraining.

Our contribution is also not the architecture alone. To the best of our knowledge, we are the first to diagnose the remaining failure of looped transformers as a representation mismatch, and to confirm this through a training-free intervention. DiscoLoop then follows as its differentiable version. We are also the first to close the OOD gap on this task, reaching near-perfect OOD accuracy (0.978 vs 0.025 for the vanilla loop) with much higher training efficiency, and we show that this also extends to more hops (see our response to Reviewer S1RA).

Architecturally, as the reviewer notes, PonderLM's recurrence replaces the residual stream with a mixture of the input and the soft embedding, and discards the continuous state, whereas DiscoLoop keeps it. We now compare the two directly on the controlled tasks.

Two-hop, symbolic:

Recurrence Train ID OOD
DiscoLoop (ours) 1.000 0.996 0.978
PonderLM 1.000 0.788 0.571

Three-hop, symbolic:

Recurrence 2-hop ID 2-hop OOD 3-hop ID 3-hop OOD
DiscoLoop (ours) 1.000 0.956 0.999 0.916
PonderLM 1.000 0.959 0.857 0.128
(This three-hop setup differs slightly from the one in Appendix A.2. We use the same two-graph construction, but a larger training set: all 10,000 atomic facts of both graphs plus 10,000 two-hop and 10,000 three-hop chains of GAG_A (Appendix A.2 uses 5,000 of each), and 2,000 rather than 1,000 held-out chains per evaluation split. Both models use K=3K=3 loops, a global batch of 2,048 and 3,000 epochs.)

Although PonderLM attains non-trivial ID and OOD accuracy compared with the vanilla looped and non-looped baselines, it still falls short of DiscoLoop, and the gap widens with depth. On the three-hop task it reaches only 0.128 three-hop OOD accuracy. DiscoLoop also continues to generalize at four and five hops (see our response to Reviewer S1RA).

We hypothesize that retaining the continuous state mainly helps optimization. Replacing the residual stream with a decoded embedding forces every loop to pass through the decode-then-encode operator, which is a sharp, close-to-discrete transformation of the hidden state. Keeping the continuous channel leaves a smooth path through the recurrence, so gradients can flow across loops without being routed entirely through that operator. This effect should compound with the number of loops, which is consistent with the widening gap at three hops.

2. Ablating embedding-only vs continuous-only, and hard vs soft

We conduct the following single-channel ablations. All runs use the two-hop symbolic dataset with K=2K=2 loops and an identical recipe, so the recurrence is the only difference.

Recurrence Channel(s) Train ID OOD
DiscoLoop (ours) discrete + continuous 1.000 0.996 0.978
Vanilla loop f(H)f(H) continuous only 1.000 0.721 0.025
Soft embedding Φ(f(H))\Phi(f(H)) discrete only (soft) 0.999 0.095 0.003
Hard embedding W[arg⁡max⁡]W[\arg\max] discrete only (hard) 0.005 0.004 0.004

Every single-channel variant fails; only the two-channel design generalizes. Comparing the last two rows also answers the hard-versus-soft question: the hard argmax variant cannot even fit the training set (0.005), while the soft variant fits the training set (0.999) yet fails to generalize (0.095 ID / 0.003 OOD). Neither discrete channel alone is sufficient.

3. Does DiscoLoop require tied input/output embeddings?

No. We rerun DiscoLoop with untied input and output embeddings, so that Φ\Phi becomes Φin softmax(Φout⊤f(H))\Phi_{\text{in}}\,\mathrm{softmax}(\Phi_{\text{out}}^\top f(H)) with the two matrices trained independently:

Embeddings Train ID OOD
Tied (paper setting) 1.000 0.996 0.978
Untied 1.000 0.989 0.742

DiscoLoop still works well with untied embeddings and remains far above the vanilla loop (0.721 ID / 0.025 OOD). Tying is therefore not required, although it does help: with a tied matrix the decoded distribution and the re-encoded embedding live in the same space by construction, which makes the representations between loops better aligned.

4. Pretraining evidence and runtime cost

Is the pretraining gain real? We agree that single-run results are insufficient to establish statistical significance. We are rerunning the pretraining experiments with multiple random seeds and will report the mean, standard deviation, and significance tests for the 50.5 vs. 49.3/49.8 comparison in the revision.

Runtime cost. We computed a direct runtime comparison among the vanilla loop , our DiscoLoop, and PonderLM. Overall, both DiscoLoop and PonderLM incur around 20% wall-clock overhead over the vanilla loop, with a corresponding reduction in throughput and MFU.

Method TFLOPs/s/GPU MFU Wall-clock training time
Vanilla loop 174.06 55.79% 80.79 h
DiscoLoop 145.61 46.67% 96.58 h
PonderLM 146.46 46.94% 96.00 h

We additionally benchmarked the exact full-vocabulary operator against its top-kk approximation on the final checkpoint using 32 sequences, a batch size of 4, a sequence length of 8192, BF16, and full-logit outputs.

Operator Peak memory Total time Throughput
Top-k=16k=16 8.83 GiB 9.86 s 26,579 tokens/s
Top-k=128k=128 8.83 GiB 10.65 s 24,606 tokens/s
Top-k=1024k=1024 8.83 GiB 15.58 s 16,829 tokens/s
Exact (full vocabulary) 33.18 GiB 31.03 s 8,448 tokens/s

Thus, relative to the top-k=128k=128 approximation, the exact operator uses 3.76× more peak memory and is 2.91× slower.

Reviewer i9hy · CommentOpenReview ↗

Thank you for your answer.

1. Comparison to PonderLM

By the author's description, the architectural difference is: DiscoLoop is PonderLM's recurrence with the continuous state kept (plus the gate and RMSNorm to mix the two).

Section 4 formalizes the recurrence without citing PonderLM, and the related work compresses the credit into "(also used by Zeng et al. [2025])". The difference should be stated more explicitly in both Section 4 and the related work. Claiming that the "scope differs from PonderLM's" does not change what the architecture is, and that the paper does not do a good job at acknowledging it.

In the two-hop table PonderLM gets 0.571 OOD, but in the three-hop setup its two-hop OOD is 0.959, essentially tied with DiscoLoop (0.956) showing that the two-hop gap disappears when three-hop chains are added to training. As it stands, the case for the extra machinery rests on the three-hop and deeper OOD results only. The paper does not acknowledge this at any point and PonderLM is also excluded from the synthetic tasks results.

2. Single channel ablations

Resolved thanks.

3. Tied embeddings

Thank you for the experiment. I read the result differently: OOD drops from 0.978 to 0.742 while ID barely moves, so the OOD generalization depends substantially on tying. "Not required, although it does help" understates this.

4.1 Runtime

Thank you for providing the runtime numbers. Even if the overhead is real it matches PonderLM, so it seems a consequence of using a decode-then-encode loop. I think it would be nice to add to the paper.

Decode is not reported. It is an important omission because this operator adds an LM-head projection per loop for every generated token.

4.2 Pretraining evidence

On significance, I will wait for the seed results you are running before updating my assessment of the 50.5 vs 49.3/49.8 comparison.

Authors · CommentOpenReview ↗

Thank you for the thoughtful follow-up. Here are our responses and concrete updates for the revision:

PonderLM Relation & Design: We will explicitly acknowledge the shared use of a decode-then-encode operator in Section 4 and Related Work, while emphasizing that our core contribution also includes the mechanistic experiments on implicit multi-hop reasoning tasks. We will clarify that DiscoLoop’s dual-channel design is specifically intended to improve training and optimization for deeper reasoning, where its advantage over PonderLM becomes decisive.

Role of Tied Embeddings: We agree that near-perfect OOD generalization depends on tying, while untied embeddings still substantially outperform the vanilla loop/ non-looped in both ID and OOD settings,. We will include these experiments and refine our discussion accordingly.

Runtime Overhead: We implement standard cached decoding on one A800 GPU using BF16 and batch size 1. DiscoLoop and PonderLM use top-k 128 and 96 independent KV-cache slots. The following table presents the throughput in tokens per second. Loop base is consistently fastest. DiscoLoop and PonderLM are closely matched.

Model 128 512 2048
Vanilla loop 8.487 8.425 8.486
DiscoLoop 8.224 8.149 8.034
PonderLM 8.093 8.076 8.073

Pretraining Validation and Scope. We completed three independent pretraining runs for each method, where DiscoLoop still obtains the highest mean aggregate score. With only three seeds, however, these sub-point differences are not statistically significant, and we therefore do not view this experiment alone as conclusive evidence that DiscoLoop is a superior general-purpose pretraining architecture. We also observe that DiscoLoop achieves the highest best-run score among the three seeds (51.4, versus 51.1 for PonderLM and 50.9 for the vanilla loop).

Setting ARC-C ARC-E HellaSwag LAMBADA PIQA RACE SciQ Avg.
Vanilla loop 31.5 ± 1.0 57.3 ± 0.7 45.2 ± 0.9 37.1 ± 1.8 67.6 ± 0.3 31.7 ± 0.7 81.0 ± 1.5 50.2 ± 0.9
PonderLM 32.5 ± 0.7 57.8 ± 1.9 44.4 ± 0.5 38.8 ± 0.7 68.0 ± 0.5 31.3 ± 1.1 81.8 ± 1.4 50.6 ± 0.7
DiscoLoop (Ours) 32.5 ± 0.5 58.1 ± 0.8 45.3 ± 1.0 39.0 ± 1.3 67.8 ± 0.6 32.2 ± 0.9 81.5 ± 0.3 50.9 ± 0.5

We would like to emphasize that, in academic-scale pretraining on real-world data, random-seed variation in benchmark performance can readily obscure the modest differences between architectures, making such experiments a relatively less reliable test of architectural advantages. Zhu, 2025, Physics of Language Models: Part 4.1 reports that, in experiments pretraining 1.3B-parameter Transformer-based models with different architectural designs, scores on individual benchmarks vary across eight random seeds by as much as 4% on LAMBADA, 3 points on BoolQ, and 1–3% on several other pretraining benchmarks, whereas many cross-architecture differences are only 1–2%. Generative evaluations exhibit even greater variability. Thus, the architectural advantages shown in controlled synthetic evaluations may otherwise be masked by pretraining randomness and the mixed-skill nature of broad benchmarks. Accordingly, we interpret our open-domain pretraining results as positive, but not statistically conclusive, evidence that the mechanism transfers beyond the controlled setting.

Importantly, our primary contribution and claim focus on implicit in-weight multi-hop reasoning, where the targeted evaluations show substantially larger and consistent gains across symbolic and synthetic-language settings. We will revise the paper to make this hierarchy of evidence explicit: the open-domain pretraining experiment is a noisy transfer check, whereas the controlled multi-hop experiments provide the primary evidence for our architectural contribution.

Thank you again for helping us strengthen the paper!

Reviewer S1RAOpenReview ↗
Rating
5/6
Confidence
5/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies implicit in-weight multi-hop reasoning, where a model must compose learned facts and answer directly without generating the intermediate bridge entity. The paper argues that looped transformers address the ordering problem of vanilla transformers, but still fail out-of-distribution because their intermediate bridge representations are decodable but noisy and misaligned with clean token embeddings. DiscoLoop addresses this by injecting a gated, softly decoded discrete-embedding channel alongside the continuous hidden state in the loop recurrence. The method is evaluated on symbolic, synthetic natural-language, and language-model pretraining tasks, with the strongest evidence coming from improved OOD two-hop reasoning on controlled synthetic datasets.

Strengths and weaknesses

Strengths

  • Clear mechanistic motivation for the architecture. The paper identifies a failure mode in looped transformers: the bridge entity is decodable after the first loop, but its hidden representation is noisy and misaligned with the clean token embedding. DiscoLoop architecture follows naturally from this diagnosis by providing a discrete embedding informed by an expectation over vocab.

  • Strong controlled results on OOD two-hop reasoning. The main empirical strength is that DiscoLoop improves OOD accuracy on symbolic and synthetic natural-language two-hop tasks, where vanilla looped and non-looped baselines perform poorly. The three-hop appendix is also promising, although the OOD gains appear weaker at greater depth.

  • Interesting evidence against single-loop memorisation. The Stage-1 analysis suggests that DiscoLoop encourages the model to offload composition to later loops rather than memorising two-hop answers in a single pass. This is one of the more interesting parts of the paper because it links the architecture to a specific compositional mechanism.

Weaknesses

  • The strongest evidence remains limited to controlled synthetic tasks. The symbolic and synthetic two-hop experiments are convincing, but the broader claims about language modelling and general multi-hop reasoning are less directly supported. The pretraining gains are small, and without seed variance, or accounting for parameter increases it is difficult to know whether they reflect a robust architectural advantage.

  • The compute and memory costs are underdeveloped. DiscoLoop requires soft decoding over the vocabulary, or a top-k approximation in pretraining. The paper should report the resulting speed, memory, and parameter overhead relative to the baselines.

  • The baselines may need longer training. Prior work suggests that these tasks can require extended training or grokking. It is therefore unclear whether vanilla looped transformers or non-looped baselines would close some of the gap with more training.

  • The mechanism needs stronger ablation. The paper should isolate the contribution of the decoded embedding channel, the token-wise gate, RMSNorm, fixed versus learned gates etc. This would make it clearer which design choices are essential.

  • The ID/OOD construction needs a clearer worked example. The two-graph split is central to the paper, but it is not immediately intuitive what the model has seen during training and what exactly makes a test example OOD. A concrete example of atomic facts, training two-hop questions, ID test questions, and OOD test questions would improve clarity.

  • The multi-hop framing is broader than the main evidence. Most of the main paper focuses on two-hop reasoning. The three-hop appendix helps, but longer-chain experiments would better support the claim that the method scales to general multi-hop reasoning.

  • The synthetic datasets are not described clearly enough. The paper should explain whether this data is fully generated by the authors or derived from an existing source. Clearer generation details and examples would make the experiments easier to reproduce.

Questions
  • How robust are the results across random seeds? Can the authors report mean and variance across multiple seeds for the symbolic, synthetic natural-language, and pretraining experiments?

  • Would the baselines close the gap with longer training? Can the authors extend the vanilla looped and non-looped baseline runs to test whether the performance gap persists under longer training?

  • What are the computational costs of DiscoLoop? Can the authors report parameter count, training speed, inference speed, memory usage, and the overhead from the soft decode-then-encode operation or top-k approximation?

  • Can the authors give a concrete ID/OOD example? It would be helpful to show exactly which facts and two-hop questions are seen during training, and what makes a held-out example OOD.

  • How far does DiscoLoop scale beyond two hops? Can the authors evaluate longer chains, for example four to six hops, and explain why the OOD gains appear weaker in the three-hop appendix?

  • Does DiscoLoop improve realistic multi-hop reasoning? Can the authors evaluate the pretrained models on benchmarks that more directly test implicit multi-hop composition, rather than only standard pretraining language-model benchmarks? - This would make the paper better scoped and more clear.

  • How is the synthetic natural-language dataset generated? Can the authors provide the generation procedure, examples from the direct and reverse formats, and a clear explanation of how the ID/OOD split maps onto this setting?

Limitations

No limitations but see questions for improvements

Final justification

My questions have been satisfactorily met and I have improved my score. I think this will be helpful for the community.

Formatting concerns

Not that I am aware.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your valuable comments. Please find our detailed responses below.

1. Dataset description and a worked ID/OOD example

We apologize for the lack of clarity. All synthetic datasets are generated by us; none is derived from an existing source. We will add the following worked example and the full generation procedure to the appendix.

Consider a minimal version with two graphs of four entities and three relations (the two graphs need not be isomorphic):

  • Graph AA: <a_1> <r_1> <a_2>, <a_2> <r_2> <a_3>, <a_3> <r_3> <a_4>
  • Graph BB: <b_1> <r_2> <b_2>, <b_2> <r_1> <b_3>, <b_3> <r_3> <b_4>

The two graphs share the relation vocabulary but have disjoint entity sets. The splits are then:

Split Content Example
Train (atomic) all atomic facts of both graphs <a_1> <r_1> <a_2> ; <b_1> <r_2> <b_2>
Train (two-hop) a subset of two-hop chains of AA only <a_1> <r_1> <r_2> <a_3>
Test ID held-out two-hop chains of AA <a_2> <r_2> <r_3> <a_4>
Test OOD two-hop chains of BB <b_1> <r_2> <r_1> <b_3>

The model thus sees every atomic edge of BB during training, but never a single composition over BB: an OOD question requires composing two facts whose entities have only ever been observed in isolation. The bridge entity (<a_2>, <b_2> above) is never a training target.

For the natural-language datasets we instantiate the same graphs with concrete names for entities (e.g. Finley, Charlie) and concrete relations (e.g. teacher, wife), and verbalize each question in one of two formats:

  • Direct: "Finley's teacher's wife is Charlie".
  • Reverse: "Who is the wife of the teacher of Finley? Answer: Charlie".

Both formats share the same underlying graphs, facts and answers; only the surface form differs. The ID/OOD split is exactly the one above, applied to the verbalized questions.

2. Scaling beyond two and three hops

We extend the two-graph construction of Sec. 2 to depths 4 and 5. The training set always contains all 10,000 atomic facts of both graphs plus 10,000 chains per depth sampled from GAG_A; every evaluation split has 2,000 chains (ID = held-out GAG_A, OOD = GBG_B). We set KK to the maximum reasoning depth of each dataset (K=4K=4 and K=5K=5, respectively). DiscoLoop retains essentially perfect ID accuracy and clearly non-trivial OOD accuracy up to five hops.

Training depth (K) 2-hop ID 3-hop ID 4-hop ID 5-hop ID 2-hop OOD 3-hop OOD 4-hop OOD 5-hop OOD
4 hops (K=4) 1.000 1.000 1.000 – 0.959 0.928 0.852 –
5 hops (K=5) 1.000 1.000 1.000 1.000 0.987 0.929 0.863 0.705

Why OOD is weaker at greater depth. An OOD chain consists entirely of GBG_B entities, which during training appear only as endpoints of isolated atomic facts and never as an intermediate bridge. A kk-hop chain therefore requires k−1k-1 consecutive hand-offs at bridge positions whose representations were never directly supervised, so per-hop errors can compound multiplicatively. ID chains reuse GAG_A entities that were seen as bridges during training, so much less such error compounding occurs.

3. Robustness across random seeds

We rerun the experiments with two additional seeds per configuration, keeping the recipe otherwise identical.

Symbolic two-hop task:

Model ID (mean ± sd) OOD (mean ± sd)
No loop 0.136 ± 0.003 0.007 ± 0.002
Vanilla loop 0.731 ± 0.010 0.033 ± 0.007
DiscoLoop 0.996 ± 0.000 0.973 ± 0.004

Synthetic natural language:

Model ID (mean ± sd) OOD (mean ± sd)
No loop 0.095 ± 0.001 0.003 ± 0.003
Vanilla loop 0.195 ± 0.011 0.018 ± 0.011
DiscoLoop 0.955 ± 0.003 0.849 ± 0.017

The ordering DiscoLoop > vanilla loop > no loop is identical across every seed.

4. Do the baselines close the gap with longer training?

We extend both baselines to 10K epochs (100K optimization steps), more than 3× the 3K-epoch budget used in the paper:

Model ID @ 3K ep ID @ 10K ep OOD @ 3K ep OOD @ 10K ep
No loop 0.136 0.198 0.007 0.009
Vanilla loop 0.731 0.825 0.033 0.025

Longer training yields a slow, marginal ID improvement (+0.06 and +0.09) and no OOD improvement at all, so the gap is not an optimization-budget artifact but a generalization gap that longer training cannot resolve.

5. Ablations of the mechanism

Single-channel ablations. We isolate the contribution of the decoded embedding channel by removing one channel at a time. All runs use the two-hop symbolic dataset with K=2K=2 loops and an identical recipe, so the recurrence is the only difference:

Recurrence Channel(s) Train ID OOD
DiscoLoop (ours) discrete + continuous 1.000 0.996 0.978
Vanilla loop f(H)f(H) continuous only 1.000 0.721 0.025
Soft embedding Φ(f(H))\Phi(f(H)) discrete only (soft) 0.999 0.095 0.003
Hard embedding W[arg⁡max⁡]W[\arg\max] discrete only (hard) 0.005 0.004 0.004

Every single-channel variant fails; only the two-channel design generalizes. Notably, the hard-argmax variant cannot even fit the training set (0.005), confirming that the non-differentiable bottleneck breaks optimization.

Role of RMSNorm. RMSNorm is what makes the discrete channel contribute on a comparable scale to the continuous one. Measured on a trained DiscoLoop model at the bridge position:

∣f(H)∣|f(H)| (continuous) ∣Φ(f(H))∣|\Phi(f(H))| (raw discrete) ∣RMSNorm(Φ(f(H)))∣|\mathrm{RMSNorm}(\Phi(f(H)))|
29.48 2.91 30.05

Because Φ(f(H))\Phi(f(H)) is a convex combination of token embeddings, its raw norm is an order of magnitude smaller than the continuous state, and without normalization the injected signal would be negligible. RMSNorm rescales it automatically so that the gate α\alpha controls a meaningful mixing ratio rather than having to compensate for the scale difference.

6. Pretraining experiments

The following points from this review concern the 440M pretraining experiments:

  • Seed variance for pretraining : Regarding seed variance in the pretraining results: we are currently running repeated pretraining runs with different random seeds, and we will post the resulting mean and variance in a follow-up Official Comment during the discussion period.

  • Computational cost: parameter count, training speed, inference speed, memory usage, and the overhead of the soft decode-then-encode operator versus the top-k approximation, relative to the vanilla loop. The soft decode-then-encode operator adds only a gate whose dimension equals the model’s hidden dimension, resulting in negligible parameter overhead. During training, our method takes 96.58 h, compared with 80.79 h for the vanilla loop—a 19.5% wall-clock overhead—with 145.61 versus 174.06 TFLOPs/s/GPU and 46.67% versus 55.79% MFU.

As autoregressive inference is not yet optimized (e.g., with a KV cache), we benchmark only prefill on the final checkpoints: 32 sequences, batch size 4, sequence length 8,192, BF16, A800 80 GB, and full output logits.

Inference method Time per sequence Overhead vs. vanilla Peak memory
Vanilla loop 0.235 s — 8.83 GiB
Top-k=16k=16 0.308 s +31.0% 8.83 GiB
Top-k=128k=128 0.333 s +41.5% 8.83 GiB
Top-k=1024k=1024 0.487 s +106.9% 8.83 GiB
Exact (full vocabulary) 0.970 s +312.1% 33.18 GiB

Overall, top-k=128k=128 preserves the vanilla loop’s peak memory with moderate latency overhead, while being 2.91× faster and using 3.76× less memory than the exact operator.

  • Small pretraining gains / parameter accounting (W1): whether the 49.3 → 50.5 improvement is robust once seed variance and any parameter increase are accounted for.

We are rerunning the pretraining experiments with additional random seeds and will report error bars to assess the robustness of the improvement. We believe that the observed gain cannot reasonably be attributed to additional model capacity, since the additional gate increases the parameter count by only 0.00020.0002%.

Reviewer S1RA · CommentOpenReview ↗

Thank you for your detailed responses. I think the initial experiment is good it just needs to be made clearer and that its your design. The improvement to further hops, improvements across seeds, longer training. I think the abalations of the mechanisms, pretraining and time complexities would improve the paper and can be put in the appendix.

Good paper, I have raised my score.

Authors · CommentOpenReview ↗

Thank you very much for your response! We will add the additional experiments and detailed experimental design in revision.

Reviewer RSFkOpenReview ↗
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

This paper studies implicit in-weight reasoning, focusing on the two-hop setting where a model must combine two atomic facts stored in its parameters and directly produce the final answer without generating an explicit chain of thought. The paper considers two bottlenecks. First, standard transformers may store the required atomic facts in a layer order that does not match the order of the reasoning steps. Looped transformers partly address this issue by repeatedly applying the same backbone, allowing each loop to resolve one hop. Second, even with looping, the intermediate bridge entity may not be represented in a form that the next loop can reliably use. Through experiments on a symbolic two-hop task, the authors find that the correct bridge entity is already decodable after the first loop, while its hidden representation is not well aligned with the corresponding token embedding. A training-free intervention that moves the hidden state toward the decoded bridge embedding nearly closes the ID and OOD accuracy gap. Based on this observation, the authors propose DiscoLoop, which passes both the continuous hidden state and a soft decoded token-embedding signal between loops. DiscoLoop achieves near-perfect ID and OOD accuracy with fewer training steps on symbolic and synthetic natural-language tasks. In a 440M pretraining experiment, it also obtains lower late-stage training loss and stronger zero-shot performance than the looped-transformer baselines.

Strengths and weaknesses

Strengths

  1. The two-graph setup provides a clean way to test composition on unseen combinations while ensuring that the model has seen all required atomic facts. The separate ID and OOD splits help distinguish interpolation from transfer of the learned composition rule.
  2. The paper first studies why looping does not fully solve the two-hop task and then uses the observed representation issue to design DiscoLoop. The training-free intervention is easy to understand and uses the model’s own predicted bridge entity rather than the ground-truth bridge label. DiscoLoop turns this observation into a simple differentiable method with very few additional parameters.
  3. DiscoLoop gives large improvements on symbolic and synthetic natural-language tasks, especially on the OOD splits. The paper also includes a three-hop experiment and a 440M pretraining experiment, providing evidence beyond the main symbolic two-hop setting.

Weaknesses

  1. Unclear distinction from explicit CoT: DiscoLoop keeps the bridge entity inside the model rather than emitting it, but its computation is still close to explicit CoT. It decodes an intermediate token distribution, converts it back into an embedding signal, and then runs the same backbone again. Explicit CoT similarly generates a bridge token, appends it to the sequence, and uses its embedding in the next decoding step. The paper does not compare these approaches or show what capability is gained by moving token feedback into the hidden-state recurrence. This makes the need for the proposed paradigm unclear.
  2. Problematic layer-order motivation: The paper motivates looping with the idea that the first-hop fact should be stored in shallower layers than the second-hop fact. However, the required order of facts is determined by the query, not by the facts themselves. In a general knowledge graph, the same fact or relation can appear at different hop positions in different reasoning chains, creating conflicting requirements on where it should be stored. Therefore, no single fixed ordering of facts across layers can support all possible questions. Looping may still be useful, but this layer-storage argument does not provide a sound motivation for it.
  3. Insufficient support for the proposed mechanism: The paper identifies representation mismatch as a main reason why vanilla looped transformers fail. However, Table 1b shows that the correct bridge entity is predicted with probability 1 after the first loop, and the intervention then feeds the embedding of this almost always correct intermediate answer into the second loop. The intervention also changes the direction, norm, residual signal, and input distribution of the hidden state. This shows that token-embedding feedback is useful, but it does not isolate geometric misalignment as the main cause of failure. Similarly, the collapse of Stage-1 accuracy only shows that the final answer is no longer directly decodable by the tied LM head after one loop. It does not by itself prove that the model has stopped memorizing the answer and shifted to hop-by-hop composition. These results support the proposed method but do not fully establish the paper’s mechanistic explanation.
Questions
  1. Intervention controls: Could the authors compare the current intervention with a norm-matched incorrect or random token embedding? Please also report the norms of the original hidden state and the injected embedding. These controls would clarify whether the improvement specifically depends on alignment with the correct bridge embedding or can be explained by the added residual signal. A clear result would materially increase my confidence in the representation-mismatch explanation.
  2. Query-dependent fact order: How does the layer-order explanation handle the fact that the same atomic fact or relation may appear at different hop positions in different questions? A fixed layer location could satisfy the required order for one reasoning chain but conflict with another. Could the authors clarify whether their argument assumes that facts are replicated across layers, retrieved dynamically based on the query, or represented in some other way?
  3. Comparison with explicit CoT: Could the authors add a baseline that explicitly generates the bridge entity before producing the final answer on the synthetic tasks? A hard internal token-feedback baseline would also be useful. This comparison would show whether DiscoLoop provides a benefit beyond decoding an intermediate token and feeding its embedding back to the same backbone. A clear advantage would materially improve my evaluation of the paper’s significance.
  4. Stage-1 representation: Could the authors test whether the two-hop answer remains recoverable after the first loop from other token positions or with a nonlinear probe? This would clarify whether the Stage-1 accuracy collapse reflects a real removal of the memorized answer or only a change in how and where the answer is represented.
Limitations

Yes.

Final justification

After reading the rebuttal, I am raising my rating from 3 to 4. The response addresses the main reasons for my original rating. The layer-order motivation is now clear, and the discussion of explicit CoT clarifies the scope of the proposed method, while the additional baselines show that its gains are not explained by embedding-only token feedback. The new controls also provide substantially stronger support for the representation-mismatch explanation and the interpretation of the Stage-1 behavior. These results resolve my main technical concerns, and I now find that the reasons to accept outweigh the reasons to reject.

Formatting concerns

None.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Thank you for your valuable comments. Please find our detailed responses below.

1. Comparison with explicit CoT and additional baselines

We address a fundamentally different task from explicit CoT. Explicit CoT performs reasoning in the context: it emits the bridge entity as a token, appends it to the sequence, and reasons over the expanded context. In contrast, we study implicit in-weight reasoning, where the composition must happen inside a single forward pass and the context is never expanded.

A second, equally important difference is supervision. CoT requires intermediate supervision: the bridge entity bb appears in the training context as a prediction target. In our setting the bridge is never supervised: no two-hop training example ever contains bb, and the model is trained only to predict the final answer. For this reason we do not include an explicit-CoT baseline: it would require changing the supervision signal, and would therefore no longer measure the same capability.

As the reviewer requested, we report the hard internal token-feedback baseline the reviewer suggests, together with its soft counterpart. Both are embedding-only recurrences that discard the continuous state: the hard variant feeds back W[arg⁡max⁡]W[\arg\max], the soft variant feeds back the expected embedding Φ(f(H))\Phi(f(H)). All runs use the same recipe in the symbolic experiments.

Recurrence Channel(s) Train ID OOD
DiscoLoop (ours) discrete + continuous 1.000 0.996 0.978
Vanilla loop f(H)f(H) continuous only 1.000 0.721 0.025
Soft token feedback Φ(f(H))\Phi(f(H)) discrete only (soft) 0.999 0.095 0.003
Hard token feedback W[arg⁡max⁡]W[\arg\max] discrete only (hard) 0.005 0.004 0.004

Simply decoding an intermediate token and feeding its embedding back to the same backbone is therefore not sufficient: the hard variant cannot even fit the training set, and the soft variant fits it (0.999) yet fails to generalize at all (0.095 ID / 0.003 OOD). Keeping the continuous state alongside the discrete channel is what makes the recurrence work.

2. The layer-order motivation

We agree with the reviewer's observation and believe it is in fact the point we intended to make; we will revise the corresponding paragraph to remove the ambiguity.

Our argument is not that a fixed layer ordering can support multi-hop reasoning. It is the opposite: the order in which facts happen to be stored across layers is fixed by pretraining, whereas the order in which they must be retrieved is determined by the query. For a non-looped transformer these two orders generally disagree: once the first hop is resolved at some layer, the fact needed for the second hop may no longer be available in the later layers. Just as the reviewer notes, no single fixed ordering can satisfy all queries simultaneously, since the same fact appears at different hop positions in different chains.

This is exactly why we adopt a looping architecture. By re-applying the same backbone, every hop has access to the entire set of facts, so the requirement of a consistent cross-layer ordering disappears and no conflict between chains arises. Also, our argument does not assume that facts are replicated across layers. It assumes only that each fact is stored at some fixed depth, and it is the looping recurrence (not replication) that makes every fact reachable at every hop.

3. Additional support for the proposed mechanism and intervention control experiments

First, we note that high ID/OOD accuracy is itself clear evidence that the looped model does not directly memorize two-hop answers but instead decomposes the question hop by hop, since the ID and OOD two-hop questions never appear during training. We further provide the additional experiments requested by the reviewer.

1) Norm-matched intervention controls

We repeat the position-1 intervention H1(1)←(1−α)H1(1)+αNorm(e)H^{(1)}_1 \leftarrow (1-\alpha)H^{(1)}_1 + \alpha\mathrm{Norm}(e) with three choices of the injected vector ee, all passed through the same normalization and therefore exactly norm-matched:

  1. Decoded bridge W[bmax⁡]W[b_{\max}] (the original intervention);
  2. Incorrect entity W[a′]W[a'], a random entity of the same graph (a′≠ba'\neq b) that also has an outgoing edge for r2r_2;
  3. Random Gaussian vector.

Norms (averaged over samples). All three injected vectors pass through the same normalization, so they are exactly norm-matched and differ only in direction:

original hidden state ∣H1(1)∣|H^{(1)}_1| raw embedding ∣W[⋅]∣|W[\cdot]| injected ∣Norm(e)∣|\mathrm{Norm}(e)|
ID 61.97 2.94 35.78
OOD 66.48 3.15 35.78

Two-hop accuracy under each injection:

α\alpha decoded bridge incorrect entity Gaussian
ID (72.1% at α=0\alpha=0) 0.25 88.3 68.9 72.2
0.50 97.6 34.4 69.2
0.75 99.4 0.2 47.5
1.00 99.7 0.1 1.8
OOD (2.5% at α=0\alpha=0) 0.25 12.1 2.5 2.2
0.50 50.3 1.6 2.2
0.75 84.0 0.2 1.5
1.00 91.9 0.1 0.2

Only the correct bridge embedding helps. The two norm-matched controls never improve accuracy and destroy it at large α\alpha.

Moreover, when injecting the incorrect entity a′a', the model's prediction switches to the second hop of a′a', i.e. the tail of (a′,r2,⋅)(a', r_2, \cdot), at a rate that grows monotonically with α\alpha and reaches 100% (ID) / 95.6% (OOD) at α=1\alpha{=}1 when changing the target to the second hop of a′a'. The second loop thus causally reads position 1 as the bridge-entity slot and faithfully executes the second-hop retrieval on whatever entity is written there. This further demonstrates that the model has shifted to hop-by-hop composition instead of memorizing the two-hop answer.

2) Multi-position and non-linear probing

We decode Ht(1)H^{(1)}_t through the LM head at every input position $t \in $ {0,1,2} (the answer token is not part of the input, so no position can leak it). The table below shows that the two-hop answer is not linearly decodable at any position.

top-1 = answer pos 0 (aa) pos 1 (r1r_1) pos 2 (r2r_2)
train_2hop 0.2% 0.3% 1.3%
test_id 0.3% 0.4% 0.2%
test_ood 0.2% 0.2% 0.0%

We further train a one-hidden-layer ReLU MLP (R3d→Rd\mathbb{R}^{3d}\to\mathbb{R}^d) on the concatenated post-first-loop hidden states of all three positions, read out through the frozen tied embedding, for 1,000 steps on the 10k training two-hop questions only:

probe accuracy train_2hop test_id test_ood
95.2% 15.8% 0.0%

The high training accuracy mainly reflects the probe overfitting to the 10k training items; on held-out ID questions recoverability is weak (15.8%), and on OOD the answer is not recoverable at all, even nonlinearly and with access to all positions jointly. The two-hop answer is therefore genuinely not retrievable at Stage 1.

Reviewer RSFk · CommentOpenReview ↗

Thank you for the detailed response and additional experiments. The clarification and new results have substantially addressed my main concerns, and I will update my rating accordingly.

Authors · CommentOpenReview ↗

Thank you very much for your encouraging comment! We truly appreciate your support and look forward to your updated score, and please let us know if you have any further questions.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…