DiscoLoop: Looping Discrete Embeddings and Continuous Hidden States for Multi-hop Reasoning
Summary
Looped Transformers fix the depth-local storage problem that blocks in-weight multi-hop reasoning (facts stored in early layers are unavailable where later retrieval happens), but they still generalize poorly out of distribution. This paper localizes the remaining failure as representational: on a controlled symbolic two-hop task (two entity-disjoint knowledge graphs, 500 entities / 50 relations each, compositions over the OOD graph never seen in training), a vanilla looped Transformer reaches only 71.1% ID and 8.3% OOD accuracy, even though a logit-lens probe shows the first loop already assigns probability ≈1.000 to the correct bridge entity. The problem is geometry: the post-first-loop hidden state has cosine similarity of only 0.327 (ID) / 0.266 (OOD) to the bridge token's embedding, so the second loop consumes a noisy continuous mixture instead of the clean discrete embedding it was trained on. A training-free intervention — mixing the normalized decoded bridge embedding into the hidden state at the bridge position between loops — lifts OOD accuracy from 8.3% to 25.9% at mixing weight α=0.1 and to near 100% (ID and OOD) at α≈0.5. DiscoLoop turns this into an architecture: the recurrence carries both channels, adding a gated, RMSNormed soft decode-then-encode term Φ(h) — the tempered LM-head distribution over the vocabulary re-embedded through the tied embedding matrix — into the residual stream at every position and loop. The learnable gate variant adds only d+1 parameters. On the symbolic task DiscoLoop reaches near-perfect ID and OOD accuracy with a sharp phase transition around epoch 500 (vs ~70% ID / <10% OOD for the vanilla loop and <20% ID / ~0% OOD for a FLOPs-matched non-looped model with K× the parameters); it also generalizes on a three-hop extension where both baselines fail OOD completely, and on a synthetic natural-language version it reaches ~100% ID / ~95% OOD vs the vanilla loop's ~90% ID and OOD failure. In real pretraining (440M model, 24 layers, 4 backbone applications, 20B tokens of 60% FineWeb-Edu + 40% FineMath-4plus), DiscoLoop beats the vanilla loop and PonderLM on a seven-benchmark zero-shot average, 50.5 vs 49.3 and 49.8, best or tied on six of seven benchmarks, overtaking the vanilla loop after ~13B tokens. Authors' stated limits: hop-length generalization (train ≤k hops, test >k) untested, pretraining verified only at 440M scale, and whether the recipe can be grafted onto existing pretrained models via continual pretraining is open.
- Venue
- arXiv:2607.00341 (cs.CL)
- Source
- arxiv
- Access
- free
- Language
- en
- Added
- Oct 12, 2026
- Verified
- Oct 12, 2026
- Found via
- #askalphaxiv
Research notes
- Discovery: @askalphaxiv X post 2026-10-12 ~3:12 AM ET (~3.4K views, 54 likes, 43 bookmarks at read); alphaXiv mirror https://www.alphaxiv.org/abs/2607.00341. Tweet claims verified against the paper: OOD two-hop accuracy from below 10% (8.3%, Table 1) to near 100% is the symbolic-task result; the real-pretraining gains are real but modest (+1.2 average points over the vanilla loop, Table 2) — the tweet's "improving real-world language modeling benchmarks" is accurate but the dramatic number is synthetic-task only. Key mechanism numbers: bridge decodable at P≈1.000 after loop 1 while cosine alignment is only ~0.27–0.33; the α≈0.5 training-free realignment is the paper's cleanest evidence that representation mismatch, not storage or capacity, is the bottleneck. Design detail: Φ is computed with a top-k truncation (k=128 retains essentially all probability mass in their pretraining runs), so the discrete channel is cheap relative to a full-vocabulary softmax at every loop. Relevance: squarely the looped-model cluster — 952 (Looped Models Done Right Part II), 1563 (Looped Prediction Transformers / shared KV), 1579, 1581, 1582, plus queued Elastic Latent Recurrence (Koi-4B) and the OrukLabs looped speech model. Complementary axis to 1563: LPT fixes the looped model's memory blowup (shared KV cache), DiscoLoop fixes its representation interface between loops (what the next loop actually reads); ELR fixes the one-loop tax. Also a latent-reasoning data point against pure continuous-latent approaches: PonderLM carries recurrence in embedding space only, vanilla loops in hidden-state space only, and the paper's controlled comparison says carrying both beats either alone. Directly relevant to his pretraining work — a d+1-parameter change to the loop interface, though all evidence is ≤440M and synthetic-task-heavy; transfer to his 3:1 SWA:full-attention hybrid is untested and any claim there is extrapolation. No code released at catalog time.
- License: arXiv nonexclusive distribution license 1.0 (not CC)
- Code: none linked in the paper; no official repo found at catalog time — unconfirmed.
Similar entries
- Paper Loop, Think, & Generalize: Implicit Reasoning in Recurrent-Depth Transformers
- Paper Critical-State RL: Diagnosing Trainable States for Multi-Turn Tool Use
- Paper Write Back the Δ: Revisiting the Same Tokens with Fresh Representations
- Paper Training Large Language Models to Reason in a Continuous Latent Space (Coconut)
- Paper Closing the Loop: Practical Training Recipes for Looped Language Models
- Paper One Model to Loop Them All: Elastic Latent Recurrence for Language Models