LoopSight: Looped Vision Transformers with Gated Prediction Memory

Zhaozhi Wang, Mingrui Wu, Jiaming Zhao, An-Syu Li, Jun LuoarXiv 2026

Imagine you’re tackling a complex logic puzzle—the kind where you have to deduce a pattern from a few examples and apply it to a new grid. You start sketching out a solution. You’ve got the top half right, and you’re working on the bottom. But as you focus harder on the bottom, you accidentally smudge the top half, losing the progress you already made.

In the world of AI, this is known as "overthinking." It’s a major hurdle for Looped Vision Transformers (LoopViTs), which are designed to be parameter-efficient by running the same "brain" (a Transformer core) over and over again to refine a prediction. The problem? As the model keeps "thinking," its internal state evolves so much that it often forgets the correct parts of the solution it found in earlier steps.

LoopSight is a new architecture that solves this by giving the model a dedicated, stable "scratchpad" to record its progress.

TL;DR

LoopSight introduces a "Gated Prediction Memory" that separates a model's internal reasoning from its final output, preventing it from "overthinking" and ruining a correct answer. By decoupling the thinking state from the memory state, the model achieves state-of-the-art reasoning performance on the notoriously difficult ARC-AGI benchmark while remaining incredibly parameter-efficient.

What Problem Does This Paper Address?

The authors focus on visual abstract reasoning, specifically the Abstraction and Reasoning Corpus (ARC). ARC is often called an "IQ test for AI" because it requires models to infer rules from just a few examples—something humans are great at but machines find incredibly difficult.

Looped models are a clever way to handle this. Instead of building a massive, 100-layer model, you build a small 6-layer "core" and run it 10 or 20 times. However, these models suffer from instability. As shown in Figure 1, a standard LoopViT might find the correct answer at loop 12, but by loop 24, its internal state has drifted so much that the decoded output becomes garbage.

Figure 1. Comparison of LoopViT and LoopSight in prediction design and stability across loops. (a) LoopViT decodes its evolving hidden state, while LoopSight uses a decoupled Gated Prediction Memory (GPM) for readout. (b) In this example, LoopViT loses a correct intermediate prediction as iteration continues, whereas LoopSight maintains correct predictions over subsequent loops.

Methods

The researchers introduced three key innovations to stabilize these loops:

  1. Gated Prediction Memory (GPM): This is the "scratchpad." Instead of the model outputting its current "thought" directly, it uses a Write Gate to decide which parts of its new thoughts are worth adding to a persistent memory. This gate uses cross-attention to look at the current task, the previous memory, and the new candidate features.
  2. Asymptotic Loop Encoding (ALE): Models need to know which loop they are on (e.g., "I'm on step 5 of 12"). Standard encodings can be jarring. ALE provides a signal that decays toward a "steady state." This tells the model it's in the "late-stage refinement" phase without overwhelming the reasoning process.
  3. Variable-Depth Training: During training, the authors don't just supervise the model at a fixed loop count (like exactly 12 loops). Instead, they sample the loop count from a Gaussian distribution. This teaches the model to produce a reliable readout at any point in its reasoning process.
Figure 2. Overview of LoopSight. A shared ViT core iteratively updates the hidden state, conditioned by asymptotic loop encodings through feature-wise linear modulation (FiLM). At each iteration, a task-conditioned write gate controls how the current candidate updates the prediction memory. The final memory is decoded into the output grid.

Datasets

The model was primarily tested on:

  • ARC-AGI-1 & ARC-AGI-2: The gold standard for measuring general fluid intelligence in AI.
  • Visual Sudoku: A task requiring global constraint satisfaction (all rows/columns must be unique).
  • ImageNet-100: To ensure the model still works for standard image classification.

Key Insights and Ideas

  • Separation of Concerns: The most powerful idea here is that "thinking" (the hidden state) and "remembering the answer" (the prediction memory) should be separate. This allows the reasoning core to explore complex features without the risk of immediately corrupting the output.
  • Test-Time Scaling: Because LoopSight is stable, you can actually run it for more loops at inference time than it saw during training. As seen in Figure 4, LoopSight's accuracy stays high even out to 24 loops, whereas the baseline LoopViT's performance falls off a cliff.
  • Selective Writing: The GPM learns to write aggressively in early loops to form a "rough draft" and then switches to subtle refinements in later loops.
Figure 4. Prediction and readout stability across loops. (a) Of- fline exact-grid accuracy of Small checkpoints on 416 test queries from the 400 ARC-AGI-1 training tasks. (b) Cell-wise accuracy of linear probes fitted to each model’s loop-12 readout features and held fixed across loops, averaged over 32 probe test tasks. (c) Spatial centered kernel alignment (CKA) of recurrent core fea- tures at loops 1–24 relative to loop 12, averaged over 128 tasks. (d) LoopSight’s mean GPM write coefficient at loop n relative to the uniform accumulation baseline 1/n, averaged over the same 128 tasks. The horizontal dashed line marks the baseline. Gray shading marks inference depths beyond LoopSight-Small’s train- ing maximum of 18 loops.

Key Results

  • ARC-AGI-1: LoopSight-Small achieved 67.4% pass@2, a massive 6.6 percentage point gain over the previous LoopViT-Small.
  • Efficiency: Remarkably, the "Small" LoopSight model outperformed the "Large" version of the original LoopViT, despite having significantly fewer parameters and lower computational costs (FLOPs).
  • Sudoku: On "Hard" Sudoku puzzles (out-of-distribution), LoopSight improved accuracy by 2.7% over the baseline, showing it generalizes better to difficult constraints.

Limitations and Future Work

While LoopSight is a big step forward, the authors note that exact spatial alignment remains a challenge. Sometimes the model understands the shape of the answer but places it a few pixels off or gets the grid dimensions slightly wrong.

Future work could involve more sophisticated "stopping criteria"—letting the model decide for itself when it has finished the puzzle—and applying this looped architecture to even broader multi-modal reasoning tasks.

Summary updated

Abstract

Looped vision transformers extend computation for visual reasoning by repeatedly applying a shared Transformer core. A challenge is to preserve useful prediction information across loop iterations while allowing the computation state to evolve. In this paper we introduce LoopSight, a looped vision transformer that uses Gated Prediction Memory (GPM) to maintain a persistent prediction state for readout, separate from the core's evolving computation state. At each iteration, a cross-attention gate uses the core's candidate features, the previous prediction state, and the current task state to control writes at the patch and channel level. The model decodes its prediction from the updated memory. We condition the shared core on the current iteration using asymptotic loop encoding and train the model by supervising its prediction at loop counts sampled from a truncated Gaussian distribution. LoopSight outperforms LoopViT across three model scales on ARC-AGI-1 and ARC-AGI-2. On ARC-AGI-1, LoopSight-Small achieves 67.4% pass@2, a gain of 6.6 percentage points over LoopViT-Small with comparable parameter counts and FLOPs. LoopSight also outperforms LoopViT on Visual Sudoku and ImageNet classification. Further analyses on ARC-AGI-1 show that LoopSight preserves more already-correct predictions and maintains more stable readout features as its computation state continues to evolve. The code will be released at https://github.com/feufhd/LoopSight.
BibTeX
@misc{wang2026loopsight,
  author = {Zhaozhi Wang and Mingrui Wu and Jiaming Zhao and An-Syu Li and Jun Luo},
  title = {{LoopSight: Looped Vision Transformers with Gated Prediction Memory}},
  year = {2026},
  eprint = {2611.28575},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28575},
}
Figure