arXiv:2610.34639cs.LGOct 2026

Manuscript Offprint

arXiv:2610.34639

Cross-Loop Query Handoff: How Later Loops Redirect Two-Hop Retrieval in the Ouro Looped Language Models

Ziyu Mu, Zehua Wang

Abstract

How do later loops in a pretrained looped language model repair two-hop retrieval? We study Ouro-1.4B and Ouro-2.6B by transplanting attention queries between loops at the same layer, head and final prompt position. On synthetic in-context questions, injecting the layer-indexed collection of loop-3 queries throughout loop 1 rescues 90% and 97% of questions answered incorrectly at loop 1 and correctly at loop 3, versus 24% and 21% for shuffled donors. The rescue also holds under greedy generation in Ouro-2.6B; in Ouro-1.4B it is limited to four-candidate ranking. Crossed donor–recipient swaps favor retrieval through the donor’s bridge entity over copying its answer, although a substantial positional component remains in Ouro-2.6B. Late keys and values rescue far fewer targets. Freezing queries at their loop-1 values also damages two-hop accuracy more than a matched question that supplies the bridge. On natural questions, rescue is smaller and replicates only in Ouro-2.6B, and crossed swaps do not establish bridge redirection. These results identify a transferable collection of late-loop queries that supports bridge-conditioned retrieval on synthetic scenes; they do not locate where the bridge is computed or establish a single-vector handoff.

Code available on GitHub

1 Introduction

Language models often fail to compose two facts they know separately. On two-hop questions about facts stored in the weights, if the bridge entity is resolved late, the remaining layers may no longer carry out the second hop [Biran et al., 2024], and evidence for latent use of the second hop is only moderate [Yang et al., 2024]. Patching a later-layer state back into an earlier layer repairs some of these failures, but only if the best layer pair is chosen for each item [Biran et al., 2024]. In models trained from scratch, reusing layers on a second pass improves out-of-distribution two-hop generalization [Wang et al., 2024, Zhang et al., 2026].

Looped language models build this reuse into the architecture of pretrained models. Ouro [Zhu et al., 2025] applies its layer stack four times to every token and reads out a prediction after each loop; its authors conjecture that this recurrent structure is why small looped models manipulate synthetic knowledge better than non-looped models of the same size [Zhu et al., 2025, Sec. 6]. Pretrained looped models have mostly been analyzed through per-loop answers [Olszowiec et al., 2026], patches between runs at the same loop [Wu et al., 2026, Anonymous, 2026b], or interventions on whole loops [Anonymous, 2026a, Wang and Reid, 2026], rather than by moving a later loop's query into an earlier loop.

Attention offers a natural way to split the problem: at the answer position, the query determines what to look for; at the fact positions, the keys determine where each fact is found and the values what it contributes. In a looped model, each layer and head applies the same weights in every loop, so a query computed in loop 3 can be placed into loop 1 at exactly the same layer, head and position, with no search over layer pairs. Our intervention supplies each layer with its own late-loop query; it does not insert a single vector once. Sequential query mechanisms have been identified in small models trained on two-hop tasks [Guo et al., 2025]. Here we test whether queries in pretrained looped models can be transferred across recurrent passes at matching coordinates, and what retrieval behavior that transfer induces. We study Ouro-1.4B and Ouro-2.6B on synthetic in-context two-hop questions (“What color is in Bob’s box?”), each paired with matched one-hop questions. In both models, loop 1 answers nearly every one-hop question but fails on 42% (1.4B) and 35% (2.6B) of the two-hop ones.

Our contributions are as follows:

• A cross-loop query handoff. In a setting fixed before the first run, placing the late queries at the answer position into loop 1, with keys and values at earlier prompt positions left at loop 1, corrects most of the loop-1 failures that loop 3 corrects, far more than another example’s query does (Section 4); holding the query at its loop-1 value removes the loop gain (Section 6).

• What the handoff supports. Crossed swaps favor retrieval through the donor’s bridge over copying its answer, with a substantial positional component in Ouro-2.6B. Late keys and values recover far less (Section 5).

• A matched control. Against a question that names the bridge, the query freeze is composition-selective in both models, and more so than freezing the values of the fact line both questions read (Section 6).

• A boundary on natural text. On natural two-hop questions, the Ouro-2.6B rescue replicates on new items but is smaller; Ouro-1.4B shows no rescue, and a crossed swap shows no redirection (Section 7).

Together, these results identify a collection of late-loop queries at the answer position that can be transferred to an earlier loop and favors bridge-conditioned retrieval on synthetic scenes. Under this intervention, keys and values at earlier prompt positions remain at their loop-1 states, although freezing experiments also show that native loop gains depend on updates to fact values (Section 6). We use handoff for this transfer across matching layer and head coordinates; the experiments neither establish a single-vector bottleneck nor locate where the bridge is computed.

Our scope is limited. All results are on Ouro, and most are on synthetic scenes. The handoff weakens beyond the base template. On natural questions, it is smaller in Ouro-2.6B and absent in Ouro-1.4B, which also fails our behavioral gate on two of seven other templates (Sections 7 and 8); the boundary thus depends on model size and format. Ouro-1.4B's loop 1 generates no answer, so its rescue shows only in a ranking among candidates, and our two dense controls do not isolate looping as the source of the rescue (Section 4).