TL;DR
Looped flows combine the iterative computation of recurrent neural networks with the stable, local training objectives of flow-matching models. By training a stateful denoiser across progressively decreasing noise levels, this framework bypasses the instabilities of backpropagation through time (BPTT) while enabling models to scale their reasoning performance at inference time. The approach achieves state-of-the-art results on challenging reasoning benchmarks, including a 58.8% accuracy on ARC-AGI-1.
What Problem Does This Paper Address?
To solve complex reasoning problems, both humans and algorithms benefit from spending more time thinking. In deep learning, "looped models" attempt to mimic this by recurrently updating a hidden state using shared parameters, effectively increasing network depth at inference time.
However, training these models is notoriously difficult. Full backpropagation through time (BPTT) over many steps is computationally expensive and plagued by vanishing or exploding gradients. In practice, researchers truncate gradients to just one or a few steps. This local supervision creates a disconnect: early reasoning steps receive no learning signal from later steps, making it difficult for the network to learn early representations that support future computation. As a result, traditional looped models often suffer from unstable recurrences, failing to converge or getting trapped in "spurious attractors" (dead ends) even on simple tasks.
Methods
The authors introduce Looped Flows, a framework that re-envisions recurrent reasoning as a continuous probability flow problem. Instead of directly predicting a target from an input over and over, the model learns to denoise a noisy state vector over a sequence of steps.
Key components include:
- Stateful Denoiser: The core architecture is a denoiser $D_{t_i}$ that takes a noisy flow state $x_{t_i}$ and a recurrent hidden state $z_{t_i}$. It outputs a clean prediction $\hat{x}_{t_i}$ and updates the hidden state to $z_{t_{i+1}}$.
- Temporally Aligned Local Objectives: During training, the model is exposed to a sequence of local denoising tasks with progressively decreasing noise levels. Crucially, the initial noise $x_0$ and target $x_1$ are shared across all timesteps in a trajectory. Gradients are blocked between steps (no BPTT), but because adjacent tasks are highly correlated, the model is naturally incentivized to pass along useful features in its recurrent state.
- Adaptive Computation Time (ACT): To prevent overfitting when the denoising loss saturates, a binary classification head predicts whether subsequent steps should be ignored during training.
- Inference via Integration: At inference time, the model generates solutions by integrating the velocity field of the learned probability flow using standard ODE (Euler) or stochastic SDE samplers. This allows the user to scale up computation simply by using a finer temporal grid (more steps) or by ensembling multiple trajectories from different initial noise samples.
Datasets
The model was evaluated across six challenging reasoning benchmarks:
- Sudoku-Extreme: Hard $9 \times 9$ Sudoku puzzles.
- Maze-Hard: $30 \times 30$ mazes requiring long solution paths.
- ARC-AGI-1 & ARC-AGI-2: The Abstraction and Reasoning Corpus, testing few-shot visual and abstract reasoning.
- N-Queens (8x8 and 10x10): Multi-solution constraint satisfaction puzzles.
- Graph Coloring (8 and 10 vertices): Multi-solution graph benchmarks.
Key Insights and Ideas
- Flow Matching as a Recurrent Curricula: Flow matching naturally breaks a hard problem down into a smooth trajectory of partial computations. This provides a built-in curriculum for the recurrent state without needing long-range gradient propagation.
- Fixing Recurrence Failures: Traditional looped models like the Transformer Review Mechanism (TRM) frequently fail to converge or stabilize. Looped flows resolve this by smoothing the optimization landscape. PCA visualizations of the hidden states show that looped flows smoothly converge to the correct solution attractor, whereas baseline models get stuck or oscillate wildly.
- Compute Scaling Laws at Inference: Because inference is formulated as numerical integration, accuracy scales monotonically with the number of inference steps. A model trained on a maximum of 16 steps can be evaluated at 128 steps, yielding substantial performance gains.
Key Results
Looped flows outperformed prior state-of-the-art looped models on five out of six benchmarks under single-trajectory evaluation:
- ARC-AGI: On ARC-AGI-1, looped flows achieved 58.8% test accuracy, a major leap over TRM's 44.6%. On ARC-AGI-2, it achieved 12.2% (vs. TRM's 7.8%).
- Sudoku-Extreme: Achieved 97.9% accuracy with a single trajectory, rising to 99.3% when using inference-time ensembling.
- Multi-Solution Diversity: Using stochastic SDE integration, the model successfully generated diverse, valid solutions for the N-Queens and Graph Coloring tasks, outperforming specialized generative reasoning baselines like GRAM.
Limitations and Future Work
While looped flows demonstrate excellent performance and stability, they still rely on iterative numerical integration (ODE/SDE steps) during inference, which can be computationally demanding compared to single-forward-pass models. The authors note that a compelling direction for future work is developing simulation-free training algorithms that can achieve the same robust recurrence properties without requiring step-by-step trajectory integration during inference.
Summary updated