Viyan

Viyan AI

Looped Flows Decouple Inference Compute from Training Depth

Looped Flows treat hidden state updates as continuous denoising operations, allowing models to scale computation depth at inference time.

Standard recurrent models rely on backpropagation through time to update hidden states, which forces developers to balance model depth against memory and gradient stability. If you truncate backpropagation to a few steps, the model struggles to link early internal updates to a final output. Looped Flows shift this approach by treating the hidden state as a trajectory that evolves through local denoising objectives instead of a single forward pass.

The Mechanism of Refinement

In a Looped Flow, the hidden state is not merely a vector updated by a linear layer. Instead, the model views its hidden state as a point on a manifold that must be pulled toward a latent representation. During training, the model receives a hidden state corrupted by Gaussian noise. By sharing the same noise schedule across training steps, the model is forced to learn a consistent vector field—a map of 'velocities'—that consistently points the current state toward a cleaner representation of the latent solution. Because the model learns this field, it identifies the direction that reduces error for any given state.

Because the model knows the direction to move, you can perform inference by taking many small, incremental steps along this field. You can integrate the state over a finer temporal grid at inference time. This is equivalent to solving an ordinary differential equation where you approximate a curve using numerical methods like the Euler method. A coarser grid introduces discretization errors that deviate from the true trajectory. By taking finer steps, you stay closer to the learned path. Because the model learned the vector field during training, you use more compute to traverse that landscape more precisely, allowing the model to perform more denoising steps than it saw during training.

Iterative Scaling and Inference

Existing recurrent models often truncate gradients, which hampers their ability to learn long-term state dependencies. Looped Flows bypass this by iteratively refining the hidden state based on input constraints. Consider a grid-based puzzle where the model must satisfy global rules across a board. The first iteration identifies initial board constraints as noisy, high-entropy vectors. The second iteration refines these against known neighbors. By the tenth iteration, the hidden state settles into a configuration that satisfies the global rules of the puzzle. On the ARC-AGI-1 benchmark, the model achieves 58.8% accuracy (12.2% on ARC-AGI-2). The inference process is a loop that continues until a stop condition is met. You are not changing the model parameters to solve harder tasks; you run the same fixed-weight model for more cycles to allow the vector field integration to converge on a higher-quality result.

Implementation and Unknowns

In practice, developers can tune accuracy by monitoring hidden state deltas across iterations and stopping once the delta falls below a threshold. This technique replaces the need for deep, static architectures with an iterative, dynamic one where the depth of the logic is determined at inference time rather than at the moment of weight initialization.

One persistent unknown is the efficiency limit of this approach at extreme scale. While increasing the number of denoising steps allows for greater refinement, the marginal utility of each additional step remains bounded by the quality of the learned vector field. We do not yet know how this training objective scales as the complexity of the tasks increases beyond current benchmarks. Furthermore, while the current results demonstrate the viability of this decoupling, the computational cost per unit of accuracy improvement is not yet optimized for low-latency production environments.

Sources