Intuition of Looped Transformers
From the publisher’s feed, collected in the ZeroLabs newsroom.
I have been delving into discussions about looped transformers, although much of the conversation is, to put it mildly, laden with jargon. Let us set this aside and concentrate on the core rationale. This will be the first in a two-part series, with the next installment exploring the mathematics, network architecture, and nuances of looped transformers in greater detail.Refresher on Transformer-based Language ModelsLanguage models encode semantic meanings within a high-dimensional embedding space. These spaces have a metric, essentially a ruler, to measure the distances between points, where closer points suggest similar meanings. In contemporary language models, these spaces are extremely high-dimensional and encode vast amounts of semantic information, much of which is irrelevant to specific contexts.Moreover, transformer-based models operate beyond static embedding spaces and dynamically reshape latent representations based on the given context. This ability allows them to effectively tackle linguistic challenges, such as homonyms and homographs. For instance, consider the term ”server”. It is essential for our language model to adapt its interpretation of this term to different contexts. Consider the following examples:We gave the server a large tip for the great service!The server crashed overnight, and the web application went offline the next day.If our language models can only manage the most obvious completions, their flexibility and usefulness for automation would be significantly reduced. This is where hyper-parameters like seed values, temperature, and top-p come into play, enabling more dynamic outputs. Continuing with the example above, we could prompt the model to complete “The server crashed,” and it might generate:The server crashed the cart into the table.The capability of language models to produce such varied results stems from the nature of the transformed embedding vectors. Without the ability to leverage transformations to update token representations, both the embedding dimensionality and model size would need to be substantially increased to replicate this ability. Transforming latent representations based on semantic contexts offers the more efficient method.In practice, this occurs because transformer layers repeatedly update token representations through attention and learned transformations.⁷ Each layer modifies how tokens relate to one another contextually, progressively reshaping the model’s internal representations as information flows deeper through the network. Rather than operating on static word meanings, the model continuously transforms these representations based on surrounding context.⁷As these transformations occur, the relative geometry of the model’s latent representation space changes dynamically during inference.⁸ Tokens and concepts that may initially appear semantically distant can become more closely aligned as contextual information accumulates, while irrelevant relationships are progressively suppressed.⁸ The attention mechanism continuously reshapes these latent representations, allowing the model to form lower-dimensional contextual relationships between tokens. These contextual relationships enable the network to represent certain behaviors more procedurally rather than relying entirely on memorized token associations.³The Debate of Model Size or Data QualityFor nearly a decade, one of the central debates surrounding language models was whether capability emerged primarily from model size or data quality. Initially, it was suggested that simply increasing the number of active parameters would naturally lead to significant improvements in model performance and emergent behaviors such as reasoning without substantially improving the training data itself.This assumption proved valid to some extent. However, the approach quickly encountered scaling limitations due to computing power, memory limitations, and significant training time. As researchers continued scaling these systems, it became increasingly apparent that parameter count alone was insufficient to fully realize the improvements in capability and emergent behavior observed and desired. The quality, diversity, and structure of the training data also played a substantial role, eventually leading to what became formalized through the Neural Scaling Law:Neural Scaling LawWhere C sets the difficulty level of the problem, x is the amount of data and/or the parameter count, and α determines the extent to which scaling reduces the loss. However, an important caveat is that our training data must be “good” for what we want the model to emulate.As a result, we would expect to see continual improvement in our model’s behavior as we scale up both the parameter count and training data. Ultimately, this is a good finding because we are no longer bound to the computational and memory constraints of training massive parametric models. shifting the burden toward data collection and labeling instead of exceedingly expensive GPU computing.Emergent Behavior, Really a ProblemUnfortunately, when we deal with parameterized model behaviors, “skills” appear to jump from absent to present rather suddenly. They do not seem to exhibit the same learning curve as humans; they either acquire the skill or they do not, and there seemed to be no in between. This is what we would colloqually refer to as, “emergent behavior.”This is a problematic limitation in our current architecture, as one-pass networks are constrained by the range of behaviors that they can reliably model based on their training data, parameter count, training approach, and reinforcement. One-shot models move through their embedding space in a constrained, “forward-only” manner, with no real opportunity for course correction once a path has been taken.Imagine a person trying to escape a maze while the walls continuously shift around them. Somewhere in the maze, there is a correct path to the exit, but the person is only allowed to move forward. They cannot effectively reconsider earlier trajectory choices, backtrack after realizing they made a wrong turn, or explore alternate routes once they have committed to a direction.If they happen to choose the correct sequence of turns, they appear intelligent and capable because they successfully reach the exit. However, if they commit to a nearby but incorrect path early on, they may continue moving confidently in the wrong direction despite having all the information necessary to eventually solve the maze. Not literal backtracking, but iterative refinement over the evolving latent representation itself.This is roughly what happens in one-pass language models. The latent information required to solve the task may already exist somewhere within the model, but the network must still discover the correct trajectory through the latent representation space during a single forward pass. When it fails to converge toward the correct path, the result is often hallucination, incoherent reasoning, or failure to generalize.Looped LLMs to Smooth the Learning CurveThe basic principle of the looped LLM is intuitive: context-specific semantic meaning can often be represented in a less information-dense and effectively lower-dimensional region than the full embedding space in which it resides. What occurs is less intuitive: instead of operating across the entire embedding space in a single pass, the model can iteratively refine how it leverages the space, collapsing into a smaller, more relevant region.This implies that the model can encode something such as multiplication as a behavior, rather than storing many instances of multiplication as discrete facts. This excerpt from Siddhant Rai captures this idea succinctly:The Logic is simple; If a model understands the symmetry of a mathematical operation (e.g., commutativity), it no longer needs to store A+B and B+A as separate facts.¹Consequently, transformer models encoding information in very high-dimensional embedding spaces empower them to perform tasks, but most of the encoded information is not useful for completing any singular specific task. Therefore, given some context C, there is a much lower-dimensional subspace L that contains the required information for a specific context, also known as the “Latent Space.”In a one-pass system, the model commits to a single forward trajectory by transforming its embeddings. Looped LLMs help with this because they allow the model to revisit and refine its intermediate trajectories, effectively exploring different paths through its latent representations rather than immediately committing to the first trajectory it encounters. This matters because the model may already contain the latent information necessary to solve the task correctly somewhere within its parametric structure, but that information exists inside an extremely high-dimensional semantic space filled with competing semantic representations.Iterative refinement does not guarantee convergence toward the correct representation, as recurrence can also stabilize semantically coherent but ultimately incorrect trajectories.² The fundamental change is providing an opportunity for the model to avoid locking itself into an adjacent but contextually incorrect region of its latent representation space.⁴What is Happening Under the HoodThe gates in these systems act as a control mechanism, evaluating whether a given output is sufficient and relevant and allowing further iterations when it is not. In theory, this should allow the parametric model to expose behaviors and skills more gradually, rather than having emergent transitions where capabilities suddenly manifest. Functionally, these gates behave less like simple ‘continue or stop’ mechanisms and more like dynamic confidence estimators over the model’s representational state. It is important to note that a poorly calibrated gating mechanism may also reinforce unstable or incorrect latent trajectories rather than suppress them.The Gating Mechanism¹In a traditional transformer, the network has no meaningful opportunity to evaluate whether its current trajectory through the semantic space is converging toward a coherent, relevant, and usable solution. The model continues its forward computation until the final logits are produced. Even when the intermediate representations are wrong the architecture itself provides no mechanism for iterative reconsideration. This is where looped architectures fundamentally alter the completion behavior.Instead of treating inference as an irreversible traversal through the embedding space,³ the model can repeatedly evaluate whether the current latent representation sufficiently resolves the contextual uncertainty of the task, in other words it allows the model some form of functional self-reflection on whether its current latent representation is sufficiently resolving the task.⁴ If this self reflection determines that the current latent representation has not sufficiently resolved the contextual uncertainty of the task, the gating mechanism permits additional refinement passes, allowing the network to continue reshaping and compressing its semantic representation before committing to a completion.⁵This is important because contextual interpretation often requires iterative disambiguation rather than immediate convergence.⁶ As noted before, these additional passes also create the possibility of recursively reinforcing incorrect intermediate representations, leading to stable but incorrect semantic convergence.Consider how we iterate through our phrasing, explanations, or other writings. We often arrive at partial interpretations first, then iteratively refine them.“This sentence seems sarcastic.”“No, actually the context suggests sincerity.”“Wait, the earlier phrase changes the interpretation entirely.”This iterative process is remarkably difficult for one-pass architectures because they must effectively encode all refinements into a single forward trajectory.³ Introducing looped systems allows the model to progressively stabilize its internal representations over multiple iterations rather than constraining the completion to a single trajectory.⁴ This has interesting implications for capability and skill development in various domains.As discussed earlier, traditional scaling laws largely assume that increasing capability requires an increasing number of parameters, improved training data, or more computing power. However, looped architectures suggest an alternative possibility. That some capabilities may not require substantially larger models but rather additional iterative refinement over existing representations.⁵In essence, a portion of what is currently ascribed to “greater intelligence” may, in fact, be attributable to “extended inference-time reasoning.⁶” Humans do not merely repeat information from textbooks. We integrate new information and skills with previously acquired knowledge. Allowing language models to revisit their embedding trajectories potentially facilitates a more faithful representation of this behavior,⁴ allowing our models to gradually develop skills instead of sudden emergence.A sufficiently large one-pass model may eventually memorize or encode enough representational trajectories in its subdimensions to emulate reasoning behavior. However, a looped system may learn reusable procedures that generalize across contexts without requiring dedicating many of its neuron connections to perform useful tasks. In effect, recurrence allows certain transformations to behave more like reusable computational routines than isolated memorized mappings. This potentially begins to blur the boundaries between parametric memory and procedural reasoning.³Importantly, this does not imply that looped architectures eliminate the need for scaling or coherent training data. The underlying representational capacity of the model remains important. A looped system cannot refine information that it does not have. However, recurrence changes the efficiency of representational capacity and its utilization within the model’s latent representations.This can be thought of as increasing the “effective depth” of reasoning without increasing the parameter count proportionally.⁵ This is particularly interesting when considering latent-reasoning tasks. Many reasoning problems are not difficult because the information is absent but because the correct representation is difficult to isolate from the competing semantic noise density.For example, consider a programming task where an agent is instructed to “remove duplicate users from the database.” The problem is not that the model lacks the necessary information. The issue is that “duplicate users” can represent several semantically valid interpretations simultaneously. It could refer to duplicate email addresses, multiple OAuth identities tied to the same person, test accounts, or redundant customer records.A one-pass model may immediately collapse toward the statistically dominant interpretation and begin deleting rows based solely on matching emails, despite the actual task requiring account merging and the preservation of relational integrity. The model likely already encodes the necessary latent information somewhere within its embedding structure, but a single forward pass may not sufficiently disentangle the relevant trajectory, instead wandering down an irrelevant or hallucinated path. Looped refinement allows the model to progressively re-evaluate its intermediate representations instead of immediately committing to the first trajectory it encounters.⁴Instead of forcing the network to immediately discover the optimal trajectory through its latent representation space, recurrence allows gradual convergence. This may ultimately prove to be one of the more important architectural shifts in modern language models: moving from static to adaptive inference. A one-pass transformer effectively assumes that intelligence is encoded entirely in the parameters.³ Looped architectures suggest that intelligence may emerge from the interaction between parameters, recurrence, iterative refinement, and inference time computation itself.ConclusionLooped architectures represent more than just another trick to avoid scaling and emulate progressive learning. They potentially represent a fundamental shift in the compartmentalization of skill sets in language models. Rather than assuming that comprehension is statically encoded into increasingly massive parametric spaces, these architectures treat intelligence as an iterative refinement process over latent representations.The industry is already beginning to collide with the practical realities of scaling computing, memory, energy consumption and training data availability. Larger models will continue to improve their capabilities, but looped systems suggest that some portion of what we currently interpret as “greater intelligence” may actually come from allowing models to reason longer and refine their internal trajectories during inference.⁵More importantly, looped architectures may help smooth out the abrupt emergence problem, allowing progressive learning rather than sharp emergence. Instead of skills appearing almost discontinuously as parameter counts scale upward, iterative refinement potentially allows behaviors to converge more gradually over multiple latent passes.⁴ Heuristically, this resembles the way humans refine their understanding. We revisit the assumptions, reevaluate the context, reconsider earlier conclusions, and progressively stabilize our reasoning over time rather than arriving at immediate conclusions. Excluding the Dunning-Krugger effect, which is an entirely different problem.However, these systems are not flawless. Additional refinement passes introduce latency, convergence problems, architectural complexity, gating challenges, and new optimization considerations into the design. A looped architecture still requires sufficient representational capacity and high-quality training data. The model cannot refine information that it does not fundamentally have.The broader implication remains extremely compelling: intelligence may not be purely a function of parameter count. This may also be a function of the model’s effectiveness in iteratively refining its own latent representations during inference.In the next article, we will move beyond intuition and dive into the actual mathematics and architectural implementations behind looped attention systems, including recurrence mechanisms, adaptive gating, latent trajectory refinement, convergence behavior, and how these systems differ computationally from traditional transformer inference.Works CitedVizuara. “Scaling Latent Reasoning via Looped Transformers.” Substack, 2025, https://vizuara.substack.com/p/scaling-latent-reasoning-via-looped.Thomas, Stephen. “How a Little Known Math Paper Inspired New Attention Mechanisms.” Medium, NYU Center for Data Science, 20 Aug. 2025, https://nyudatascience.medium.com/how-a-little-known-math-paper-inspired-new-attention-mechanisms-d204224e9518.Giannou, Angeliki, et al. “Looped Transformers as Programmable Computers.” arXiv, 2023, arXiv:2301.13196, https://arxiv.org/abs/2301.13196.Blayney, Hugh, et al. “A Mechanistic Analysis of Looped Reasoning Language Models.” arXiv, 2026, arXiv:2604.11791, https://arxiv.org/abs/2604.11791.Chen, Bo, et al. “Bypassing the Exponential Dependency: Looped Transformers Efficiently Learn In-context by Multi-step Gradient Descent.” arXiv, 2024, arXiv:2410.11268, https://arxiv.org/abs/2410.11268.Hagendorff, Thilo, Sarah Fabi, and Michal Kosinski. “Thinking Fast and Slow in Large Language Models.” arXiv, 2022, arXiv:2212.05206, https://arxiv.org/abs/2212.05206.Vaswani, Ashish, et al. “Attention Is All You Need.” Advances in Neural Information Processing Systems, vol. 30, 2017, https://arxiv.org/abs/1706.03762.Olah, Chris, et al. “A Mathematical Framework for Transformer Circuits.” Transformer Circuits Thread, Anthropic, 2021, https://transformer-circuits.pub/2021/framework/index.html.Intuition of Looped Transformers was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.