Solve the Loop: Attractor Models for Language and Reasoning

Jacob Fein-Ashley, Paria Rashidinejad

TL;DR

Attractor Models introduce a hybrid architecture that combines a standard Transformer backbone with a recurrent "attractor" module to iteratively refine token representations toward a mathematical fixed point. By using implicit differentiation, these models achieve constant-memory training and adaptive compute, eventually learning to "internalize" the refinement process so the backbone can predict the final result in a single pass at inference time.

What Problem Does This Paper Address?

Modern Large Language Models (LLMs) are essentially massive feed-forward "one-pass" machines. Whether a model is predicting the word "the" or solving a complex logic puzzle, it spends the same amount of computation per token. While "Chain-of-Thought" (CoT) allows models to "think" by writing intermediate steps, this forces the reasoning into the discrete token space, which is slow and computationally expensive.

Researchers have tried "looped" or recurrent Transformers to allow for latent (internal) thinking. However, these models are notoriously difficult to scale. They suffer from training instability, massive memory requirements (because Backpropagation Through Time scales linearly with the number of loops), and a "train-test mismatch" where increasing the number of loops at inference time often degrades performance.

Methods

The authors propose Attractor Models, which decouple the initial prediction from the refinement process:

  1. The Backbone: A standard Transformer module that proposes an initial "guess" embedding ($y_0$).
  2. The Attractor: A smaller, weight-tied recurrent module that refines $y_0$ until it reaches an equilibrium (a fixed point).
  3. Implicit Differentiation: Instead of backpropagating through every single loop, the authors use the Implicit Function Theorem (IFT). This allows them to calculate gradients based only on the final equilibrium state, making training memory constant regardless of how many refinement steps are taken.
  4. Anderson Acceleration: To speed up the search for the fixed point, the model uses a root-finding algorithm rather than simple repeated application of the layers.
  5. Persistent Injection: The initial guess from the backbone is fed into every step of the attractor, preventing the refinement from drifting away from the original context.

Datasets

The models were evaluated across two distinct regimes:

  • Large-Scale Language Modeling: Trained on the FineWeb-Edu dataset (up to 100B tokens). Performance was measured using Lambada (long-range word prediction) and the CORE/CORE-Extended benchmarks.
  • Hard Reasoning Tasks: Evaluated on Sudoku-Extreme and Maze-Hard. These are algorithmic tasks where standard Transformers typically fail because they require iterative search or backtracking.

Key Insights and Ideas

  • Equilibrium Internalization: This is the paper's most striking finding. During training, the backbone learns to predict an initial embedding that is already very close to the final fixed point. Essentially, the backbone "internalizes" the work the attractor was doing. By the end of training, the attractor can often be removed or bypassed at inference time with almost no loss in accuracy.
  • Recurrence as a Moving Teacher: The attractor acts as an automatic curriculum. Early in training, it does the heavy lifting of refinement; late in training, it simply acts as a "target" that the backbone learns to hit on the first try.
  • The Implicit Gradient Barrier: The math of the IFT naturally penalizes unstable, non-convergent dynamics. This creates a "barrier" that keeps the model in a stable regime, solving the instability issues that plague traditional recurrent networks.

Key Results

  • Efficiency: Attractor Models achieved a 25–31% reduction in training FLOPs compared to state-of-the-art looped baselines like Parcae.
  • Pareto Improvement: A 770M parameter Attractor Model outperformed a 1.3B parameter standard Transformer, despite the latter being trained on twice as much data.
  • Reasoning Superiority: On Sudoku-Extreme, a tiny 27M parameter Attractor Model achieved 91.4% accuracy. In contrast, frontier models like GPT-o3 and Claude 3.5 (at the time of the study) failed these tasks completely (0% accuracy) when forced to solve them in a single forward pass.
  • Constant Memory: Unlike standard looped models, the peak training memory for Attractor Models remains flat even as the number of iterations increases.

Limitations and Future Work

  • Local Contraction: The mathematical stability of the model relies on the "local contraction" assumption (the idea that the loops actually converge). While the authors found this generally holds, they note that explicit Jacobian regularization might be needed for even larger scales.
  • Architecture Search: The current implementation uses Transformers for both the backbone and the attractor. The authors suggest that exploring different architectures (like State Space Models or CNNs) for the attractor module could be a fruitful direction.
  • Internalization Dynamics: While "internalization" is observed, the exact mechanism of how the backbone distills the attractor's iterative logic into a single-pass representation is still not fully understood and warrants further mechanistic interpretability research.

Summary updated

BibTeX
@inproceedings{feinashley2026solve,
  author = {Jacob Fein-Ashley and Paria Rashidinejad},
  title = {{Solve the Loop: Attractor Models for Language and Reasoning}},
  booktitle = {FoGen @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=AlZtpLVXKf},
}
Figure