When do stored facts become available in looped transformers?

Fabio Valerio Massoli, Arnau Padrés Masdemont, Jordi Ros Giralt, Arash BehboodiarXiv 2026

It’s late, you’ve got a cup of tea, and you’re wondering: How does a neural network actually "think" through a problem?

We know that Transformers—the engines behind ChatGPT—store a staggering amount of trivia in their weights. But for "looped" Transformers (models that recycle the same layer over and over, like a recursive function), the internal process is a bit of a black box. Do they find the answer instantly? Or do they have to "mull it over" for a few cycles?

A new paper from Qualcomm AI Research, "When do stored facts become available in looped transformers?", pulls back the curtain. They found that retrieving a fact isn't an instantaneous flip of a switch; it’s a progressive climb, and the more the model has to remember, the longer the climb takes.

TL;DR

Looped transformers don't just "know" a fact; they have to retrieve it from their weights over several iterations. This paper shows that the more information a model has memorized, the more "loops" it needs to surface a fact, and these intermediate "thoughts" are causally essential for solving complex, multi-step reasoning problems.

What Problem Does This Paper Address?

We’ve known for a while that you can build a "looped" Transformer that performs just as well as a standard "deep" one while using far fewer parameters. However, we didn't know the schedule of its internal retrieval.

If you ask a model for someone's birth city, does it find that info in Loop 1 or Loop 8? Does the "difficulty" of the search change if the model has memorized 20,000 biographies versus 100,000? The authors wanted to see if there's a "computational cost" to having a bigger internal library, even if the final output looks the same.

Methods

The researchers used two main tools to "peek" inside the model's brain:

  1. Native Readouts: Using the model's own output layer at every loop to see what it thinks the answer is right now.
  2. Tuned Lenses: Training a small, separate "translator" (a linear probe) to decode the model's internal hidden states into human-readable bits at every step.

They measured "Readable Bits"—a metric of how much certain information is present in the model's state. To test if these internal representations actually matter, they performed Causal Patching: they surgically swapped out a specific "entity" in the model's memory during a reasoning chain to see if it would force the model to change its final answer.

Datasets

  • BioS: A synthetic dataset of biographies for up to 100,000 individuals. Each person has attributes like birth city, university, and employer.
  • Multi-hop Chains: A synthetic reasoning task where the model is given a starting point and a series of relations (e.g., "Who is the employer of the person who went to the university where [Name] was born?") and must navigate its internal knowledge graph to find the end.

Key Insights and Ideas

  • The "Library" Effect: As the number of individuals ($N$) the model has to remember increases, the retrieval of a single fact is delayed. It takes more loops to reach the same level of "readability." Think of it as a librarian taking longer to find a book in a massive archive than in a small shelf.

    Figure 1: Readable bits M(t) over five seeds (mean ±1 SD). Left: native readout and full lens at loop-8; dashed lines and shaded spans mark the plateau depth. Right: loops to 95% of the final M(t) per attribute against the number of individuals N (full lens).
  • Looped vs. Untied: Interestingly, looped models surface facts earlier in their total depth than standard "untied" models (where every layer has different weights). Recurrence seems to help the model "focus" on the fact faster.

  • The Reasoning Staircase: In multi-hop tasks, the model retrieves entities in logical order. It finds the first "bridge" entity, then uses that as a key to find the next, creating a beautiful "staircase" of decodability over time.

    Figure 6: Successive entities in a reasoning chain become decodable as depth increases, forming a staircase pattern.
  • Training Dictates the Schedule: The delay in retrieval isn't an inherent physical limit; it's a result of how we train them. If you supervise the model at every loop during training, it learns to retrieve facts almost immediately (in the very first loop).

Key Results

  • Causal Influence: When the researchers "patched" an intermediate entity (swapping Entity A for Entity B internally), the model followed the new "counterfactual" path to the wrong answer in 79% to 97% of cases. This proves the model isn't just "guessing" at the end; it is actually using those intermediate steps to calculate the result.
  • Robustness: If they swapped an entity with a different "version" of itself (reached via a different logical path), the model still got the right answer 99.5% of the time. The internal representation of "The University of Paris" is the same regardless of how the model "thought" of it.
  • Information Saturation: Tuned lenses reached 94.5–97.5% of the source entropy, meaning they are very effective at capturing almost everything the model knows internally.

Limitations and Future Work

The authors are careful to note that this work was done on synthetic data. While this allows for perfect control and measurement, real-world natural language is much messier. They also used linear probes, which might miss more complex, non-linear ways the model stores information.

The next frontier? Seeing if these "retrieval schedules" exist in massive models like Llama or GPT-4, and whether we can use this knowledge to make them faster or more "thoughtful" by adjusting their looping behavior.

If you're interested in the nitty-gritty of how these chains are composed, check out Figure 5 in the paper, which illustrates the latent chain of entities the model navigates.

Figure 5: A 3-hop query and the corresponding latent chain of entities the model must retrieve from its weights.

Summary updated

Abstract

Looped transformers do not acquire new knowledge during a forward pass. Prior work shows that they store as many bits in their weights as non-looped models. It remains unclear how recurrence makes this knowledge available during inference. We study this question using synthetic factual recall and multi-hop reasoning, measuring depth-resolved readable information in bits with native readouts and tuned lenses. Under final-loop supervision, single-hop facts become readable progressively: heavier memorization loads delay retrieval despite comparable final readable information. Untied baselines of equal unrolled depth concentrate retrieval near the end of their stacks, whereas looped models expose facts earlier. This delay is not intrinsic to the tested recall tasks: training with supervision and depth-specific readouts at every loop makes near-final information readable after the first loop in all tested configurations. Representational analysis shows value-related structure emerging within states organized by the query key. We then study multi-hop chains whose facts are stored in the weights rather than given in the prompt. Intermediate entities become decodable in chain order, and aligned transitions show next-entity structure developing while current-entity structure remains dominant. Interventions in a released six-recurrence model establish a causal role for these representations. Counterfactual replacements of a probe-defined entity component at a single prompt position redirect downstream bridge entities and the final answer. Conversely, replacements from queries that reach the same entity through different preceding relations, preserving the remaining relation suffix, retain the original answer in over 99.5\% of tested cases. These results distinguish a training-dependent schedule for factual recall from the causal role of retrieved-entity representations in subsequent composition.
BibTeX
@misc{massoli2026when,
  author = {Fabio Valerio Massoli and Arnau Padrés Masdemont and Jordi Ros Giralt and Arash Behboodi},
  title = {{When do stored facts become available in looped transformers?}},
  year = {2026},
  eprint = {2611.28808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28808},
}
Figure