Manuscript Offprint
arXiv:2610.09759Unrolled Flow Models for Reasoning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Flow matching enables language generation in few steps, but whether additional integration steps improve reasoning remains unclear. We prove that a flow parameterized by a two-layer Transformer can solve graph reachability, with the required number of integration steps increasing with the target's distance from the root. Yet, standard flow language models can fail to benefit from additional steps on reasoning tasks. We attribute this limitation to objectives that supervise each time point independently, without explicitly training successive steps to build on one another. To address this, we instead train through the model's own latent rollout over a randomly sampled subinterval of , decoding only at the endpoint. On ProsQA, this raises accuracy to 97% and enables performance to improve with additional integration steps. For the longer rollouts required by reasoning tasks such as Sudoku and Maze, retracting the latent state onto a sphere stabilizes the dynamics and yields substantial gains over baselines with more than three times as many parameters. Sampling multiple rollouts further improves performance when paired with a parameter-free selection score, although reliable selection remains challenging for longer answers. Together, these results establish a theoretical basis for reasoning with flows and show how rollout training, stable latent dynamics, and rollout selection help realize this capacity in practice. The implementation can be found here.
1 INTRODUCTION
Autoregressive language models can spend more computation at inference by generating a longer chain of thought (Wei et al., 2022) or, more broadly, by scaling test-time compute (Snell et al., 2024). Flow matching (Lipman et al., 2023; Liu et al., 2023; Albergo et al., 2025) offers a different way to produce discrete answers (Eijkelboom et al., 2024). Instead of predicting one token after another, flow models start from noise and repeatedly update a continuous state that is decoded into a token sequence. The number of updates can be chosen at inference time. This makes flow models an appealing candidate for adaptive test-time computation.
Additional integration steps do not inherently guarantee deeper reasoning. In generation tasks, a small number of steps is often enough, and recent work has pushed flow language models toward one- or few-step sampling by learning flow maps that make direct jumps along a trajectory (Lee et al., 2026; Roos et al., 2026; Davis et al., 2026; Yoo et al., 2026). For reasoning, additional steps are useful only if later updates can build on information produced by earlier ones.
Prior work in latent and recursive reasoning motivates this work. Coconut shows that autoregressive language models can update a continuous latent state instead of emitting every intermediate thought as text (Hao et al., 2026). On graph reachability, Zhu et al. (2025) show that repeated latent updates can maintain a superposition of reachable vertices and expand it one hop at a time. Recursive reasoners similarly solve structured tasks by applying a small, weight-tied network repeatedly to an internal state (Wang et al., 2025; Jolicoeur-Martineau, 2025). An Euler rollout of a flow has the same basic form: one network is applied again and again to a latent state. We investigate how these repeated applications cooperate.
To show what integration steps can compute, we construct explicit weights for a two-layer Transformer that defines a flow solving the graph reachability problem. Its Euler rollout reaches vertices one
*Correspondence to tkrusch@tue.ellis.eu hop per step, so the number of steps needed to separate the candidates depends on the distance from the root to the answer. However, this existence result does not establish that training recovers the construction (Section 3.1).
Standard training of flow models does not directly assess whether an update produces a state that later updates can leverage. To address this limitation, we propose Unrolled Flow Model (UFM), which trains through its own latent rollout using a single prediction loss at the final state. To reduce memory usage for long rollouts, we backpropagate this loss through only the last few steps (Section 4). We stabilize these rollouts using sphere retraction to control latent-state growth (Section 5). On ProsQA and Sudoku-Hard, UFM improves with additional steps, whereas evaluated flow baselines show little gain. Multiple rollouts further improve reliability, although selecting among them remains challenging for tasks with long answers, such as maze solving.
Our contributions are: (i) We give a constructive result showing how flow integration can implement graph search with the number of steps determined by the instance. (ii) We introduce training through a terminal rollout loss and show that it makes flow steps useful for reasoning in our experiments, while connecting the resulting dynamics to a superposition-based mechanism. (iii) We use sphere retraction to stabilize long rollouts and demonstrate stronger scaling with additional steps than substantially larger flow baselines on structured reasoning tasks.
2.1 CONDITIONAL FLOW MATCHING
Setup. Given a prompt , the model generates an answer with positions. A flow transforms noise at into an answer representation at , using Euler steps on a grid .
Flow matching. Flow matching (Lipman et al., 2023; Liu et al., 2023; Albergo et al., 2025) defines a path between noise and data . We use the linear interpolant
The denoiser predicts the clean endpoint from a point on this path. Since , its corresponding velocity field is
Integrating from to transports noise toward the data distribution. In practice, we approximate this integration with Euler steps:
Conditioning and training. The prompt tokens are concatenated with L answer slots and processed by a bidirectional Diffusion Transformer (DiT) (Vaswani et al., 2017; Peebles & Xie, 2023). The DiT receives the flow time t as a conditioning input, while the prompt remains clean throughout the rollout; only the answer slots evolve. The conditional denoiser is trained using:
Here, is the per-example loss. Thus, each training example supervises a denoising prediction at one sampled time; the model is never evaluated on a state produced by its own preceding update. We return to this distinction in Section 3.2.
2.2 FLOW LANGUAGE MODELS
Flow Language Models (FLMs) apply this formulation to discrete tokens. FLM (Lee et al., 2026) represents the clean answer as a stack of one-hot vectors, . Its denoiser therefore predicts a distribution over the vocabulary at every answer position:
The model is trained with cross-entropy, and the evolving state is moved toward this predicted distribution at each Euler step. In our experiments, FLM refers to the multi-step flow model, rather than the distilled one-step flow-map variant introduced in the same work.
S-FLM. S-FLM (Deschenaux & Gulcehre, 2026) instead represents tokens with learned unit-norm embeddings on the hypersphere. It follows a geodesic path from noise toward these embeddings, rather than evolving a vocabulary-sized state as in FLM. Its denoiser still produces a distribution over the vocabulary; each sampling step follows a posterior-weighted average of geodesic directions toward the token embeddings. Both methods train a cross-entropy denoiser at one sampled point on their respective noise paths. S-FLM additionally uses a truncated, adaptive noise schedule. ELF (Hu et al., 2026) also defines the flow in a continuous token-embedding space.
FLM and S-FLM are our flow baselines. UFM also evolves a continuous latent state, but it predicts a latent target and applies the vocabulary decoder only once, at the endpoint. Its rollout is trained jointly with a terminal loss, as described in Section 4.
3 INTEGRATION STEPS AND REASONING DEPTH
3.1 A TWO-LAYER FLOW FOR GRAPH REACHABILITY
We define the graph-reachability task and the flow construction used in the existence result. The theorem below shows that the construction solves the task; its Euler discretization will later show how many integration steps are needed. Notation is collected in Table 2.
Graph and prompt. Let be a directed graph with vertices and edges. Let be a designated starting vertex, called the root, and let be two candidate destinations. Exactly one candidate, denoted , is reachable from ; we write for the other candidate.
We write for the length of a shortest directed path from to , and for the vertices reachable within hops. The sequence stops growing at the eccentricity of the root, is reachable from . Thus, .
We also write for the number of directed walks of length from to .
Following Zhu et al. (2025), the prompt lists the directed edges and then asks which candidate is reachable (Figure 4 in the appendix):
The flow state evolves at the position marked by , where the final answer is decoded.
Representation. Let be the vocabulary size and the embedding dimension. Each token has an embedding . As in Zhu et al. (2025), we assume orthonormal token embeddings,
This lets recover the coefficient of vertex in the state. This assumption applies solely to the construction; the trained models use standard embeddings.
The first layer stores each edge’s source and target embeddings in separate buffers at its position, and the two candidate embeddings in buffers at . It initializes the answer state as (Theorems 6 and 8).
Constructed velocity field. The second layer is a softmax-free linear-attention head (Theorem 9). It reads the content slot of as its query and the cached source and target edge embeddings as its keys and values. Using these cached edge endpoints, it applies , the adjacency operator of in embedding coordinates. With a fixed gain , the head induces

Figure 1: UFM computes in latent space and decodes once. At inference, a DiT repeatedly updates a noisy latent answer state from t = 0 to t = 1. A linear vocabulary decoder is applied only to the final state.
We use a linear head where Zhu et al. (2025) use softmax attention because it makes the velocity linear in the state, so the flow has a closed form. At time , the construction compares and and returns the candidate with the larger score. This is a candidate-restricted readout. The experiments use the stricter full-vocabulary decoder; we discuss that difference in Theorem 11.
Exact flow The constructed velocity field has a closed-form solution. This gives the existence result: the flow separates the reachable candidate from the unreachable one on every instance.
Theorem 1 (Existence). Fix a vocabulary of size V, , and . There exists a two-layer Transformer, consisting of a prompt-caching layer followed by a linear-attention layer, whose weights are independent of the graph, root, and candidate pair. Its answer state satisfies Equation (6) for every directed graph with , every root r, and every candidate pair with exactly one reachable candidate . At time ,
This coefficient is positive exactly when v is reachable from r. The candidate-restricted readout therefore returns , with the margin bound
Why the exact flow solves reachability. Since , the solution is . Orthonormality makes count length-k walks (Theorem 10), giving the theorem's nonnegative coefficient series. An unreachable vertex has no such walks; a reachable vertex has a shortest path of length , contributing at least at . The network realization is established in Theorems 8 and 9.
Unlike the Euler rollout considered next, the exact flow assigns positive mass to every reachable vertex at any . Reaching vertices one hop per step is therefore a property of the discretization, not of the flow itself.
Corollary 2 (Euler steps match graph distance). For any Euler grid with positive step sizes,
Hence, for every vertex v,
Thus, the candidate-restricted readout is correct when . Taking suffices for every valid candidate pair with this root.
Expanding the product in Theorem 2 gives positive coefficients for . The state therefore contains contributions from walks of length at most , and its vertex support is exactly . Step sizes change the weights on these walks and the number of steps determines how far information can propagate: a target farther from the root requires more Euler steps, using the same weights.
Remark 3 (Noisy initialization). For , with , the exact time-1 flow returns the correct candidate with probability at least
The bound weakens with noise and graph size; see Section A.9.
The construction uses orthonormal embeddings, a softmax-free propagation head, a prompt cache, and a time-independent velocity field. It does not show that gradient descent recovers this solution. Trained UFM uses learned embeddings and reapplies its DiT at every step; Section 4.1 examines whether its dynamics show a related mechanism.
3.2 INTEGRATION STEPS ALONE DO NOT PRODUCE REASONING
We test whether increasing the number of integration steps at inference improves reasoning accuracy in standard flow models.
Setup. As in Zhu et al. (2025), we use ProsQA (Hao et al., 2026), a directed graph-reachability task with two candidate answers. The models have two layers and approximately 15.7M parameters. The plotted UFM is trained with steps and gradients through all five updates. UFM and S-FLM have approximately matched training budgets measured by the total number of model evaluations across examples; configurations are given in Section D.
Figure 2 shows test accuracy as the number of Euler steps N increases at inference. Both baseline curves are nearly flat: more integration steps add little accuracy. We revisit the same baselines on the harder Sudoku and Maze benchmarks in Section 5.3. On Sudoku-Hard, the 28.6M baselines change by only about one point from N = 8 to N = 128 (Table 6). Consequently, standard flow models require more than additional forward passes to improve reasoning.
This behavior is consistent with the standard flow objective in Equation (4). FLM and S-FLM train the denoiser to recover the answer from a ground-truth interpolant at a

Figure 2: Rollout training makes additional steps useful. ProsQA test accuracy versus the number of Euler steps at inference. FLM and S-FLM remain nearly flat, while a single UFM trained with improves from 12% at N = 1 to approximately 97% with longer rollouts. Decoding uses the full vocabulary.
sampled time. The model is therefore not trained on the states created by its own preceding updates, and the objective does not assess whether one update leaves a useful state for the next. UFM instead trains a sequence of updates against one terminal answer loss.
S-FLM already evolves an embedding-space state; yet, its accuracy changes little with additional steps. Our construction motivates keeping the computation in latent space and decoding only at the endpoint; Section 4 trains these updates jointly through the rollout.
Algorithm 1 Base UFM training on one batch. Task-specific variants are described in the text.
Require: Batch , parameters , rollout length , backpropagation length
1: Sample noise in the latent answer space
2: Sample a task-specific grid
3:
4: for to do
5:
6:
7:
8:
9: if then
10: {stop gradients through early updates}
11: end if
12: end for
13: {decode once}
14:
15: return
4 UNROLLED FLOW MODEL
We want early updates to produce states that later updates can use to reach the answer. We therefore train an Unrolled Flow Model (UFM) through its own rollout with a loss on the final answer. UFM keeps the answer state in a continuous latent space and decodes only once, at the endpoint.
Latent rollout. , where is the hidden width. A DiT predicts a latent target, , and defines the velocity as in Equation (2).
Unlike FLM and S-FLM, intermediate states are not decoded into distributions over the vocabulary. The vocabulary decoder is applied only to the final state,
We use softmax on ProsQA and replace it with StableMax (Prieto et al., 2025) on the longer Sudoku and Maze tasks. Details are in Section C.
Terminal rollout loss. We apply the loss only at the endpoint, so backpropagation trains successive updates through their combined effect on the final answer.
During training, the rollout starts from a partially noised answer at a sampled time , with , and is integrated over a sampled subinterval ending at .
No intermediate state receives a vocabulary loss. At inference, we set , start from noise, and integrate the full interval . The complete long-rollout training and inference procedures, including sphere retraction and truncated backpropagation, are given in Section C.
4.1 WHAT THE INTERMEDIATE STATES CARRY
Following Section 3.1, we inspect the logit of each vertex , where is its output embedding. In Figure 3, non-reachable vertices remain near zero at every step, while several reachable vertices receive positive logits. At the first step, no single reachable vertex is clearly selected. The reachable group sits above the not-reachable one and drifts further right as grows, and within it the optimal node separates the most.

Figure 3: Intermediate states separate reachable vertices. We plot the logit of vertex , where is row of the final decoder . Logits are centered separately for each problem by their mean over vertices. UFM trained with is evaluated at , on the 217 ProsQA test problems with , averaged over four seeds. Vertices are grouped as not reachable, reachable, frontier ( ), and optimal (the vertex at hop on a shortest root-to-answer path).
While it does not establish that the trained model implements the construction, this qualitatively resembles Theorem 2, whose Euler states have support on all vertices reachable within k hops after k steps.
5 SCALING TO LONG ROLLOUTS
We evaluate UFM on Sudoku-Hard, Sudoku-Extreme, and Maze-Hard. These tasks require longer answer sequences and longer rollouts than ProsQA.
5.1 BENCHMARKS AND EVALUATION PROTOCOL
Sudoku-Hard. We use the split of Deschenaux & Gulcehre (2026): 48k training puzzles and 2k reporting puzzles, each with 30 givens. UFM checkpoints are selected on an additional 2k validation split, disjoint from both sets. Our best FLM and S-FLM checkpoints are selected on the reporting set.
Sudoku-Extreme. Following Wang et al. (2025); Jolicoeur-Martineau (2025), training uses 1k base puzzles with 1000 augmentations each. We evaluate on the full test set of 422,786 puzzles. Checkpoint selection uses 2k additional puzzles from the original training pool, disjoint from the selected 1k base training puzzles and the test set. Each answer contains 81 positions.
Maze-Hard. We use the benchmark of Wang et al. (2025); Jolicoeur-Martineau (2025), with 1000 training and 1000 test mazes whose shortest paths exceed 110 cells. The model predicts a 900-cell grid, of which roughly 110 cells lie on the solution path. UFM and both flow baselines select checkpoints on the test set; no separate validation split is used.
5.2 TRAINING LONG ROLLOUTS
Sphere retraction. On long Sudoku rollouts, the latent norm can grow sharply (Section B). This changes the scale of the inputs to later updates and can destabilize the rollout. We control this growth on Sudoku and Maze with a position-wise sphere retraction,
Let denote the state read by the DiT and its retracted version. The update is
This is a projected Euler-type update: after the first step, its base is retracted, while the DiT continues to read the raw state. We use this retraction on Sudoku and Maze only. In a separate Sudoku ablation, training without it lowers accuracy; details are in Section B.
Table 1: Accuracy (%) on Sudoku-Hard. FLM and S-FLM are our runs of the authors’ released code. Train is training-only wall-clock time on one NVIDIA A100. All methods use the same training data.
| Method | Params | Train (h) | Sudoku-Hard |
|---|---|---|---|
| FLM (Lee et al., 2026) | 28.6M | 1.6 | 51.9 |
| S-FLM (Deschenaux & Gulcehre, 2026) | 28.6M | 1.7 | |
| UFM (ours) | 8.4M | 1.1 |
Selected on the 2k reporting puzzles; UFM is selected on a separate 2k validation split. The UFM result is the mean and standard deviation over five independent noise seeds at on a uniform grid. With ancestral noise removal at ; with the default greedy final step, S-FLM peaks at 50.2% at (Table 6).
Truncated Backpropagation For the long tasks, we reduce activation memory by backpropagating only through the final of updates, as in Jolicoeur-Martineau (2025); Clark et al. (2024). The first 18 updates are computed without recording gradients and produce the state refined by the final six. We choose to fit the available memory.
Each training example uses a newly sampled increasing time grid ending at , exposing the model to varying step sizes. The complete long-rollout procedures are given in Section C.
5.3 COMPARISON WITH FLOW BASELINES
We compare all methods at on Sudoku-Hard (Deschenaux & Gulcehre, 2026). FLM and S-FLM use the authors’ released code and the best tested checkpoints and final-step settings at this budget (Section D.4).
On Sudoku-Hard, UFM reaches , compared with for FLM and for S-FLM, using 8.4M rather than 28.6M parameters.
The gap widens on the harder tasks. On Sudoku-Extreme, UFM reaches with a uniform grid, averaged over five noise seeds. FLM and S-FLM reach and , respectively. On Maze-Hard, UFM reaches , compared with for FLM and for S-FLM (Table 4). Published recursive-reasoner results and FRM are included for context in Tables 4 and 5.
5.4 SELECTING AMONG ROLLOUTS
Inference begins from Gaussian noise, so different rollouts can produce different answers. We therefore draw rollouts and select one with a parameter-free score. Margin averages the gap between the two largest raw logits over output positions. It is an output-space analogue of in Theorem 1.
On mazes, scores average over 900 cells, although only roughly 110 describe the solution path. This makes selection harder, and selected accuracy remains below Pass@100. Detailed diagnostics are in Section D.1.
6 RELATED WORK
Recursive and looped reasoning. Recursive reasoners repeatedly apply a small, weight-tied network to a latent state. HRM (Wang et al., 2025) uses slow and fast recurrent modules, while TRM (Jolicoeur-Martineau, 2025) uses a single recurrent block and an answer state. Subsequent work improves stability and scaling (Movahedi et al., 2026; Fein-Ashley & Rashidinejad, 2026; Gao et al., 2025). EqR and GRAM explore both depth, through more iterations, and breadth, through multiple trajectories (Huang et al., 2026; Baek et al., 2026). PTRM also studies sampling and selection (Sghaier et al., 2026).
Latent chain of thought. Coconut (Hao et al., 2026) feeds a language model's hidden state back as its next input embedding and introduces ProsQA. Zhu et al. (2025) show that a two-layer Transformer with continuous thoughts can solve graph reachability by maintaining a superposition of reachable vertices and expanding it over several steps. Their result provides the starting point for our construction in Section 3.1. UFM updates one latent answer state in place and uses answer-only supervision throughout training. Coconut appends continuous thoughts and uses a curriculum that gradually replaces language reasoning steps.
Differentiating through generation. Backpropagating a terminal objective through a generative sampler is established in diffusion reward fine-tuning. DRaFT (Clark et al., 2024) backpropagates differentiable rewards through a diffusion sampler and introduces DRaFT-K, which truncates gradients to the final K sampling steps. UFM uses the same general optimization mechanism, but is trained from scratch with endpoint cross-entropy on reasoning tasks rather than fine-tuned against an external reward. Our plays the role of a truncated sampler-backpropagation horizon.
Flow models for reasoning. Flow Reasoning Models (FRM) (Helbling et al., 2026) add recurrent self-conditioning to a flow model. Their Fixed-Point Forcing procedure uses a carry produced by the model's own rollout, while stopping gradients through that carry. They also report that increasing the number of sampling steps of a standard FLM does not improve Sudoku performance, consistent with our ProsQA observation in Section 3.2. FRM reports a peak accuracy of 99.5% on a fixed 1000-puzzle subset of the Sudoku-Extreme test set, included for context in Table 4. Its maze evaluation uses Maze-Unique rather than Maze-Hard.
Looped Flows (Suleymanzade et al., 2026), concurrent with this work, follows the TRM preprocessing and evaluation protocol on Sudoku-Extreme and Maze-Hard. It trains recurrent flow updates with local denoising losses and stops gradients between updates. UFM instead applies one terminal loss and backpropagates through the final updates of the rollout.
7 LIMITATIONS
Our experiments use relatively small models, from 8M to 16M parameters, on synthetic structured reasoning tasks. Training through a rollout requires memory for the backpropagated suffix, which limited model size in this work. Extending UFM to larger models and less structured language-reasoning tasks will require more memory-efficient ways to train consecutive updates jointly.
The construction in Section 3.1 is an existence result. It relies on orthonormal embeddings and a linear propagation head, and does not show that gradient descent recovers this velocity field. The trained models share only a qualitative pattern with the construction, examined in Section 4.1.
Finally, a rollout begins from Gaussian noise, so a correct answer may appear among several trajectories without being selected by a single rollout. Our parameter-free selection rule recovers most of the Pass@100 gap on Sudoku-Extreme, but is less reliable for the much longer Maze-Hard outputs and could benefit from a learned correctness or halting head, as used in HRM and TRM (Wang et al., 2025; Jolicoeur-Martineau, 2025). Although UFM substantially improves over standard flow baselines, it remains behind the strongest reported recursive reasoners on Sudoku-Extreme.
8 CONCLUSION
We show how flow models can use additional integration steps to improve reasoning. On graph reachability, a two-layer construction propagates information along the graph, and its Euler discretization requires at least as many steps as the distance from the root to the answer. Standard flow language models do not use their steps in this way: their accuracy remains largely flat as the number of sampling steps increases. UFM changes this by training through the model's own latent rollout with a single loss at its endpoint. Accuracy then grows with the number of steps on ProsQA. For longer Sudoku and Maze rollouts, sphere retraction stabilizes the updates and allows an 8.4M-parameter model to outperform 28.6M standard-flow baselines. Multiple rollouts further improve reliability, although selecting among them is less effective for long answers.
Applying this approach to larger language models will require more memory-efficient rollout training and stronger selection mechanisms. Our results show that training through the rollout can make additional flow steps useful for reasoning.
ACKNOWLEDGEMENTS
This work was supported in part by the Hector Foundation, by the Max Planck ETH Center for Learning Systems, and by EPSRC Turing AI World-Leading Research Fellowship No. EP/X040062/1 and EPSRC AI Hub on Mathematical Foundations of Intelligence: An "Erlangen Programme" for AI No. EP/Y028872/1.
REFERENCES
Michael Albergo, Nicholas M. Boffi, and Eric Vanden-Eijnden. Stochastic interpolants: A unifying framework for flows and diffusions. Journal of Machine Learning Research, 26(209):1–80, 2025. URL http://jmlr.org/papers/v26/23-1605.html.
Junyeob Baek, Mingyu Jo, Minsu Kim, Mengye Ren, Yoshua Bengio, and Sungjin Ahn. Generative recursive reasoning, 2026. URL https://arxiv.org/abs/2605.19376.
Kevin Clark, Paul Vicol, Kevin Swersky, and David J. Fleet. Directly fine-tuning diffusion models on differentiable rewards. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=1vmSEVL19f.
Oscar Davis, Anastasiia Filippova, Pierre Ablin, Victor Turrisi, Amitis Shidani, Marco Cuturi, and Louis Béthune. Scaling categorical flow maps, 2026. URL https://arxiv.org/abs/2605.07820.
Justin Deschenaux and Caglar Gulcehre. Language modeling with hyperspherical flows, 2026. URL https://arxiv.org/abs/2605.11125.
Floor Eijkelboom, Grigory Bartosh, Christian A. Naesseth, Max Welling, and Jan-Willem van de Meent. Variational flow matching for graph generation. In A. Globerson, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. Tomczak, and C. Zhang (eds.), Advances in Neural Information Processing Systems, volume 37, pp. 11735–11764. Curran Associates, Inc., 2024. doi: 10.52202/079017-0374. URL https://proceedings.neurips.cc/paper_files/paper/2024/file/15b780350b302a1bf9a3bd273f5c15a4-Paper-Conference.pdf.
Jacob Fein-Ashley and Paria Rashidinejad. Solve the loop: Attractor models for language and reasoning, 2026. URL https://arxiv.org/abs/2605.12466.
Zitian Gao, Lynx Chen, Yihao Xiao, He Xing, Ran Tao, Haoming Luo, Joey Zhou, and Bryan Dai. Universal reasoning model, 2025. URL https://arxiv.org/abs/2512.14693.
Shibo Hao, Sainbayar Sukhbaatar, DiJia Su, Xian Li, Zhiting Hu, Jason Weston, and Yuandong Tian. Training large language models to reason in a continuous latent space, 2026. URL https://arxiv.org/abs/2412.06769.
Alec Helbling, Andrey Bryutkin, Mauro Martino, Duen Horng Chau, Nima Dehmamy, and Hendrik Strobelt. Flow reasoning models: Turning flows into efficient recurrent reasoners, 2026. URL https://arxiv.org/abs/2606.29150.
Keya Hu, Linlu Qiu, Yiyang Lu, Hanhong Zhao, Tianhong Li, Yoon Kim, Jacob Andreas, and Kaiming He. ELF: Embedded language flows, 2026. URL https://arxiv.org/abs/2605.10938.
Benhao Huang, Zhengyang Geng, and Zico Kolter. Equilibrium reasoners: Learning attractors enables scalable reasoning, 2026. URL https://arxiv.org/abs/2605.21488.
Alexia Jolicoeur-Martineau. Less is more: Recursive reasoning with tiny networks, 2025. URL https://arxiv.org/abs/2510.04871.
Angelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, and François Fleuret. Transformers are RNNs: Fast autoregressive transformers with linear attention. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 5156–5165. PMLR, 2020. URL https://proceedings.mlr.press/v119/katharopoulos20a.html.
Chanhyuk Lee, Jaehoon Yoo, Manan Agarwal, Sheel Shah, Jerry Huang, Aditi Raghunathan, Seunghoon Hong, Nicholas M. Boffi, and Jinwoo Kim. Flow map language models: One-step language modeling via continuous denoising, 2026. URL https://arxiv.org/abs/2602.16813.
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matthew Le. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=PqvMRDCJT9t.
Xingchao Liu, Chengyue Gong, and Qiang Liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=XVjTT1nw5z.
Sajad Movahedi, Vera Milovanović, Shlomo Libo Feigin, Alexander Theus, Thomas Hofmann, Valentina Boeva, T. Konstantin Rusch, and Antonio Orvieto. Fixed-point reasoners: Stable and adaptive deep looped transformers, 2026. URL https://arxiv.org/abs/2606.18206.
William Peebles and Saining Xie. Scalable diffusion models with transformers. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 4172–4182, 2023. doi: 10.1109/ICCV51070.2023.00387.
Lucas Prieto, Melih Barsbey, Pedro A. M. Mediano, and Tolga Birdal. Grokking at the edge of numerical stability, 2025. URL https://arxiv.org/abs/2501.04697.
Daan Roos, Oscar Davis, Floor Eijkelboom, Michael Bronstein, Max Welling, Ismail İlkan Ceylan, Luca Ambrogioni, and Jan-Willem van de Meent. Categorical flow maps, 2026. URL https://arxiv.org/abs/2602.12233.
Amin Sghaier, Ali Parviz, and Alexia Jolicoeur-Martineau. Probabilistic tiny recursive model, 2026. URL https://arxiv.org/abs/2605.19943.
Charlie Snell, Jaehoon Lee, Kelvin Xu, and Aviral Kumar. Scaling LLM test-time compute optimally can be more effective than scaling model parameters, 2024. URL https://arxiv.org/abs/2408.03314.
Ayhan Suleymanzade, Chanhyuk Lee, Floor Eijkelboom, Nicholas M. Boffi, Ismail İlkan Ceylan, and Jinwoo Kim. Thinking with looped flows, 2026. URL https://arxiv.org/abs/2609.11801.
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, 2017. URL https://arxiv.org/pdf/1706.03762.pdf.
Guan Wang, Jin Li, Yuhao Sun, Xing Chen, Changling Liu, Yue Wu, Meng Lu, Sen Song, and Yasin Abbasi Yadkori. Hierarchical reasoning model, 2025. URL https://arxiv.org/abs/2506.21734.
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (eds.), Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=_VjQ1MeSB_J.
Jaehoon Yoo, Wonjung Kim, Floor Eijkelboom, Chanhyuk Lee, Nicholas M. Boffi, Seunghoon Hong, and Jinwoo Kim. Self-conditioned flow map language models via fixed-point flows, 2026. URL https://arxiv.org/abs/2607.00714.
Hanlin Zhu, Shibo Hao, Zhiting Hu, Jiantao Jiao, Stuart Russell, and Yuandong Tian. Reasoning by superposition: A theoretical perspective on chain of continuous thought, 2025. URL https://arxiv.org/abs/2505.12514.
APPENDIX OVERVIEW
The appendix provides theoretical proofs, training and sampling algorithms, and additional experimental details and results.
-
Appendix A gives the graph-reachability construction and proofs, including Euler discretization, noisy initialization, and full-vocabulary readout.
-
Appendix B describes sphere retraction and reports the retraction ablation and norm diagnostic.
-
Appendix C provides the training and inference algorithms for long rollouts.
-
Appendix D gives the experimental settings, evaluation procedures, and additional results.
A GRAPH REACHABILITY: CONSTRUCTION AND PROOFS
We give the construction and proofs supporting Section 3.1. We describe the prompt representation and attention layers, then establish the exact-flow solution, its Euler discretization, and the noisy-initialization bound.
A.1 NOTATION AND ASSUMPTIONS
Notation is collected in Table 2. Fix a maximum graph size and a vocabulary containing the vertex labels and the special tokens. These special tokens are distinct from all vertex labels. Graphs are directed, may contain cycles, and have distinct edges, so .
Each token has an embedding . As in Zhu et al. (2025), the construction assumes , which requires . These assumptions apply to the construction; the trained models use learned embeddings.
We set for unreachable vertices. The walk count includes zero-length walks: when and otherwise. The evolving state is the content slot of ; the prompt information remains in the cache.
Table 2: Notation for Section 3.1 and this appendix. The last column gives the symbol of Zhu et al. (2025) where one exists; we rename their and to free for flow time and for vertices.
| Symbol | Meaning | Zhu et al. |
|---|---|---|
| directed graph, , distinct edges | same | |
| source and target of edge | ||
| root; candidates; reachable, unreachable candidate | same | |
| graph distance; eccentricity of the root | — | |
| vertices within hops of | ||
| number of directed walks of length from to | — | |
| prompt length; its bound | — | |
| special tokens | same | |
| token embedding, | ||
| residual-stream slots | content, buffers, pos | |
| sinusoidal encoding of position ; separation gap | same; — | |
| position in the prompt | same | |
| attention chooser (token , offset ); its gains | — | |
| threshold | — | |
| content slot of at flow time | — | |
| propagation operator; value gain | — | |
| ; readout margin | — | |
| number of Euler steps | ||
| initialization noise; its scale | — | |
| readout gain on the candidates | — |

Figure 4: Visualization of the prompt token sequence.
A.2 PROMPT FORMAT
A.3 OVERVIEW
Relation to Zhu et al. (2025). The first layer follows their construction: five attention choosers (Theorem 6) cache the information needed later, and a threshold MLP removes attention leakage. We adapt their construction as follows. (i) As in their paper, we state the construction with causal attention; Theorem 7 shows that the same weights work with the bidirectional attention of our models. (ii) The last three heads read from : two cache the candidates there, and the fifth writes the root r into the content slot of , which sets the initial state of the flow. (iii) Their second layer, which expands the frontier by one hop per continuous thought with softmax attention and a threshold MLP, is replaced by a single linear attention head whose output defines the velocity field.
What is evaluated along the flow. Layer 1 is applied once to the prompt: it fills the buffers and sets the initial state at . At every time , the velocity is the output of the propagation head with the current state as query. Neither the chooser heads nor the threshold MLP act on , and the construction uses no normalization layers, so the velocity is linear in the state.
A.4 TRANSFORMER PRELIMINARIES
Prompt length. With appended, the prompt has length . Since the edges are distinct, , so . All gains below are chosen from , so they do not depend on the graph.
Residual stream. We split the residual stream of width into six slots: a content slot ct and four buffers , , , , all of width , and a positional slot pe of width . Token embeddings live in the content slot and are orthonormal (Section A.1): , where and .
In full-stream expressions, token embeddings are zero-padded outside the content slot. We keep positional encodings separate as ; the displayed cached states omit this positional block.
Attention. One head of parameters computes the query , the keys , and the attention scores
where ranges over with causal masking and over all of in the bidirectional case (Theorem 7).
Definition 4 (Sinusoidal Positional Encoding). Fix an even positional dimension , set , and let . The positional encoding has entries:
and is the vector living in the positional slot with .
Lemma 5 (Separation, Zhu et al. 2025). With the choices in Theorem 4, for all , and there exists , depending only on , such that for all in
. Hence, for and , is maximized over at the unique index , with a gap of at least .
Lemma 6 (Attention chooser, Zhu et al. 2025). Consider a token , an offset and . Under Theorem 4, there exist , for a causal head, with gains depending only on and , such that for any and any input sequence satisfying:
(H1) with and , for all ;
(H2) for all , so each state is either equal to or orthogonal to it;
(H3) for , so none of the first positions holds .
We have, for all ,
We write for such a head.
The idea is the following. Since the encoding is sinusoidal, for a fixed rotation , so a linear key can contain both and . Taking and in two orthogonal subspaces, with , gives
If position holds , then and Theorem 5 puts the unique maximum at (and by (H3), so ). Otherwise by (H1)–(H2), and for large the second term, uniquely maximized at , dominates. A large turns both gaps into attention weights above . We refer to Zhu et al. (2025) for the complete proof.
Our five heads use and offsets . Each input position carries one token embedding, so (H1)–(H2) hold. Edge tokens occur at positions , while the answer token occurs at position . Since the edge heads use offsets at most two and the answer heads use offsets at most four, (H3) also holds.
Remark 7 (Bidirectional attention). In a bidirectional head, the softmax runs over all instead of , and the score is unchanged:
For a head that does not fire, by (H1)–(H2), and by Theorem 5, is uniquely maximized at over all of , not only over ; for large, the head attends to . For a head that fires, and the score is ; since for every , Theorem 5 gives the unique maximum at with the same gap . The softmax runs over at most positions in both cases, so the gains , of Theorem 6 are unchanged, and Theorem 8 holds. The propagation head is unaffected, since is the last position.
A.5 LAYER 1: CACHING
Lemma 8 (Static memory and answer initialization). Append immediately after the root. One pass of the five chooser heads
followed by a threshold MLP, stores the source and target of each edge at its edge token, stores and in separate buffers at , and copies into the content slot of . The relevant states are
The key and value of the propagation head (Theorem 9) read and of , and is zero at every non-edge position.
Non-firing heads assign more than attention to , whose value is zero. We choose and . The threshold and chooser gains can therefore be fixed using only .
Proof. Each of the five heads is an attention chooser, so each one puts at least of its attention on the position it is aimed at. We check that the offsets land correctly. With appended after the root, the positions are , , , , , , , , and . So and read and ; and read and ; and reads .
As in Zhu et al. (2025), all heads use the value matrix, , which will send to zero.
Heads 1–4 write into buffers 1–4, respectively, and head 5 writes into the content slot. A non-firing head assigns more than attention to , whose value is zero. Each remaining output coefficient is therefore smaller than and is removed by the threshold MLP.
As in Zhu et al. (2025), a threshold MLP with threshold , applied to each coefficient of the content slot and the buffers in the embedding basis, maps coefficients at most to 0 and coefficients at least to 1.
Each head puts attention above on its target and leaks less than elsewhere, so with every coefficient becomes exactly 0 or 1, and does not depend on the graph.
Only head 1 writes into buffer 1, and it fires only at edge tokens, so after thresholding buffer 1 is zero at every other position. Since buffer 1 is the key of the propagation head, only edge tokens contribute to its output.
Buffer 2 is written only by head 2, which fires at edge tokens, and buffers 3 and 4 only by heads 3 and 4, which fire at . Hence at buffers 1 and 2 are empty, buffers 3 and 4 hold and , and the content slot holds together with the root written by head 5, so , as claimed.
A.6 LAYER 2: LINEAR PROPAGATION
Definition 9 (Linear propagation head). The second layer is a single unnormalized linear-attention head (Katharopoulos et al., 2020), with
in a way that it reads the content slot as a query, the buffer 1 as key and the buffer 2 as a value with a gain , and writes back on the content slot. There is no softmax and no normalizing denominator:
(the sum runs over all j in the bidirectional case; at , the last position, the two coincide)
Define
By Theorem 8, the buffer 1 is non-zero only at the edge tokens, where it contains and the buffer 2 contains . Hence, with a query at , the head returns . Moreover, the terms of the sum are orthonormal in the Frobenius sense for distinct edges, thus
A.7 PROOF OF THEOREM 1
Because is orthogonal to every vertex embedding,
so under
the answer-token identity remains fixed.
Writing
is only a mathematical decomposition of the single residual state, not a separate architectural block. Its vertex component satisfies
Lemma 10 (Reachability from the matrix exponential). Let be the number of directed walks of length from to . Then and, for every ,
(i)
(ii) for t > 0, this coordinate is positive iff v is reachable from r, and is exactly 0 otherwise;
(iii) if v is reachable, then .
Proof. Orthonormality gives , hence by induction for every vertex . Expanding the exponential proves (i). All terms are nonnegative, proving (ii). For reachable , a shortest path has length and , so its single series term proves (iii). The equality follows from .
Proof of Theorem 1. By Theorem 8, layer 1 sets . By Theorem 9, the velocity at is , whose time-1 flow is since . Theorem 10(i)–(ii) give the coefficients and their signs; the reachable candidate has coefficient at least by (iii) and the unreachable one exactly 0 by (ii), which gives the arg max and the margin. The weights depend only on , the fixed vocabulary, and , as required.
A.8 EULER DISCRETIZATION
Proof of Theorem 2. Since , Euler integration gives
Expanding the product gives , where and every : each coefficient is a sum of products of positive step sizes and powers of . By Theorem 10,
This coefficient is positive exactly when a walk of length at most connects to , equivalently when . The reachable candidate therefore has a strictly larger score once . If , both candidate scores are zero, so the readout does not yet separate them.
17
□
A.9 NOISY INITIALIZATION
Proof of Theorem 3. For the exact flow with , where and ,
Let , which are i.i.d. by orthonormality, and . By Theorem 10, for every vertex ,
with . Since every , the covariance of and is , so . The readout fails only if , and by Theorem 10(iii). The tail bound for and gives
The component of orthogonal to the vertex span is frozen and invisible to the readout, and .
A.10 READOUT OVER THE FULL VOCABULARY
Remark 11 (Full-vocabulary readout). Under the noiseless initialization of Theorem 1, a reachable vertex other than can have a larger coefficient because the coefficients count walks. We use the candidate embeddings stored in buffers 3 and 4 to define
By orthonormality, the added term is on the two candidates and zero elsewhere. Every vertex coefficient is at most ; the answer-token coefficient is one, and all other special-token coefficients are zero. Thus, choosing gives , , and for every other token.
The full-vocabulary readout therefore returns with margin at least . This is a fixed linear decoder on the content slot and candidate buffers, with depending only on and . The velocity field is unchanged.
B SPHERE RETRACTION
B.1 LOCAL GEOMETRIC EFFECT
For a nonzero position vector, define , with . The following statement describes the local effect of this retraction.
Proposition 12 (Local effect of sphere retraction). Let be continuously differentiable near the sphere over a fixed interval , with . For on the sphere and sufficiently small ,
The associated velocity is tangent to the sphere.
Proof. For nonzero z,
Taylor expansion at a point with gives the stated formula. Since , the resulting continuous-time dynamics preserve the norm.

Figure 5: Raw latent norms in separately trained Sudoku-Extreme models with and without retraction. The dashed line marks , the norm of the retracted update base. The raw state itself need not remain on this sphere.
Relation to the implemented update. The algorithms in Section C evaluate the denoiser at the raw state and use its retracted version as the update base. If their difference is , where is the largest grid spacing, local Lipschitz continuity of the denoiser makes the prediction difference . On an interval bounded away from , this changes an update by . The proposition therefore describes the leading-order interior dynamics under these conditions. It does not establish convergence through the endpoint .
B.2 RETRACTION ABLATION AND NORM DIAGNOSTIC
We trained two Sudoku-Extreme models with and without , using the same time-conditioned, constant-learning-rate recipe. At , their best recorded test accuracies were 67% with retraction and 55% without it. Both models were trained separately. The ablation uses a different recipe from the cosine-schedule runs in the main comparison.
In the norm diagnostic (Figure 5), evaluated over a 252-step rollout, the model trained without retraction reaches a latent norm roughly 44,000 times its initial scale. Retraction limits this growth, but does not hold the raw state at a fixed norm. The fixed radius applies to the retracted update base.
The construction in Section 3.1 also allows the latent norm to grow during propagation, while its final candidate decision is unchanged by positive rescaling.
C LONG-ROLLOUT TRAINING AND INFERENCE
This appendix gives the full procedure used for the long Sudoku and Maze rollouts. Sphere retraction is applied independently to each answer position:
Algorithm 2 Long-rollout UFM training on one batch with sphere retraction
Require: Batch , parameters , rollout length , backpropagation length , time-grid distribution , noise scale , and retraction
1: Sample noise in the latent answer space
2: Sample from
3:
4: for to do
5: Evaluate this update without gradient tracking when
6:
7:
8: if then
9: {final endpoint prediction}
10: else
11:
12: if then
13:
14: end if
15:
16:
17: end if
18: if then
19:
20: end if
21: end for
22: {decode once}
23: {with the specified label smoothing}
24: return
Algorithm 3 UFM inference with sphere retraction
Require: Prompt , EMA parameters , evaluation grid , noise scale , and retraction
1: Use for the denoiser and decoder
2: Sample in the latent answer space
3:
4: for to do
5:
6:
7: if then
8: {final endpoint prediction}
9: else
10:
11: if then
12:
13: end if
14:
15:
16: end if
17: end for
18:
19: return The highest-probability token at each position
The denoiser reads the raw state. After the first step, retraction is applied only to the update base. Noise scales and label smoothing are given in Table 7.
Table 3: UFM single-rollout accuracy with and a uniform time grid. Results are percentages, reported as mean standard deviation over five noise seeds.
| Benchmark | Test examples | Pass@1 (%) |
|---|---|---|
| Sudoku-Extreme | 422,786 | 74.4 ± 0.0 |
| Sudoku-Hard | 2,000 | 86.9 ± 0.9 |
| Maze-Hard | 1,000 | 89.3 ± 0.5 |
D EXPERIMENTAL DETAILS
This appendix describes the data splits, training settings, and evaluation procedures used in our experiments.
Reporting convention. For the single-rollout results in Table 3, each noise seed gives one independently initialized rollout per test example, using a fixed checkpoint. We report the mean and standard deviation of exact-match accuracy over five noise seeds. Values are rounded to one decimal place, so a displayed standard deviation of 0.0 may be nonzero before rounding. The reported checkpoints have the DiT's time input disabled.
D.1 SELECTING AMONG ROLLOUTS
We evaluate rollouts per problem on a 2000-puzzle subset of the Sudoku-Extreme test set and on all 1000 Maze-Hard test mazes. On the Sudoku subset, Pass@1 is , Pass@100 is , and margin-based selection reaches . On Maze-Hard, margin-based selection reaches , compared with Pass@100.
We select among the rollouts using the mean gap between the largest and second-largest raw logits,
Here, and are the two largest logits at position , before probability normalization. This parameter-free score is an output-space analogue of the separation margin in Theorem 1.
Selection is less effective on Maze-Hard. A Sudoku answer has 81 positions, whereas a Maze answer contains 900 cells describing the maze layout and solution path. Averaging scores over cells shared by different candidate answers can dilute differences in their paths.
On a probe of 300 Maze boards with 50 rollouts each at , a subset of the boards in the evaluation above, 18 boards are recoverable, meaning that the first rollout is wrong but at least one of the 50 is correct; the remaining 282 boards are either already solved by the first rollout or solved by none of the 50. On these 18 boards, correct and incorrect rollouts differ in mean margin by 0.07, for mean margins around 200 in logit units, and the chooser picks a correct rollout on 9 of 18, against for a uniformly random pick among the distinct answers.
These diagnostics suggest that the mean logit margin is less reliable for selecting long maze answers and a learned scorer, such as the latent reward model of GRAM (Baek et al., 2026), or the halting mechanism used in Jolicoeur-Martineau (2025); Wang et al. (2025) is a natural replacement.
D.2 PROSQA
FLM and UFM use a DiT backbone; S-FLM keeps the architecture of Deschenaux & Gulcehre (2026), which was designed for that method. All models have two layers and approximately 15.7M parameters and are trained on the same data. As in Zhu et al. (2025), we use the ProsQA questions whose answer is at most four hops from the root: 14,785 training, 257 validation, and 419 test questions, out of the 17,886 / 300 / 500 released. UFM is trained with steps, so each example costs it 5 forward and backward passes. To approximately match the number of forward and backward passes, FLM and S-FLM see more training examples: 43,500 optimizer steps at batch
Table 4: Test accuracy (%) on Sudoku-Extreme and Maze-Hard with a single inference trajectory (Pass@1). Recursive-reasoner numbers are as reported in the respective papers; we did not rerun them. FLM and S-FLM are our runs of the authors' released code with the default greedy final step, at their best checkpoint and inference setting. UFM uses on a uniform grid; its results are means and standard deviations over five noise seeds, evaluated on 422,786 Sudoku-Extreme puzzles and 1000 Maze-Hard mazes. FRM's entry is its reported peak on a fixed 1000-puzzle Sudoku-Extreme test subset. Its maze evaluation uses Maze-Unique, so no Maze-Hard result is listed.
| Model | Params | Sudoku-Extreme | Maze-Hard |
|---|---|---|---|
| Recursive reasoners | |||
| Attractor Model (Fein-Ashley & Rashidinejad, 2026) | 7M | 54.3% | 46.7% |
| HRM (Wang et al., 2025) | 27M | 55.0% | 74.5% |
| URM (Gao et al., 2025) | 14M | 77.6% | - |
| TRM (Jolicoeur-Martineau, 2025) | 5M/7M | 84.1% | 85.3% |
| Attractor Model (Fein-Ashley & Rashidinejad, 2026) | 27M | 91.4% | 93.1% |
| EqR () (Huang et al., 2026) | 5M | 93.0% | - |
| FPRM (Movahedi et al., 2026) | 7M | 94.2% | 87.0% |
| Flow models | |||
| FLM (Lee et al., 2026) | 28.6M | 10.7% | 40.4% |
| S-FLM (Deschenaux & Gulcehre, 2026) | 28.6M | 9.4% | 49.9% |
| UFM (ours) | 8.4M | 74.4 ± 0.0% | 89.3 ± 0.5% |
| FRM (Helbling et al., 2026) | 7M | 99.5%* | - |
TRM-MLP (5M) on Sudoku, reproduced value from Huang et al. (2026); the original paper reports 87.4%. TRM-Att (7M) on Maze-Hard as reported. Not reproduced by Movahedi et al. (2026), who obtain 71.4% on Sudoku. D=64 outer iterations at test time, 4× the training budget; at D=16 the result is 86.4%. At 8M, both baselines failed to train stably, reaching 1.5% on Sudoku-Extreme and then declining. *FRM reports this peak on a fixed 1000-puzzle subset of the Sudoku-Extreme test set, not the full 422,786-puzzle test set used for our Pass@1 evaluation.
Table 5: Test accuracy (%) on Sudoku-Extreme and Maze-Hard with multiple inference rollouts. Rollouts is the number of trajectories drawn at inference, followed by selection or voting. Recursive-reasoner numbers are as reported in the respective papers. UFM uses Euler steps and rollouts with the chooser of Section 5.4. UFM is evaluated on a 2000-puzzle Sudoku-Extreme test subset and all 1000 Maze-Hard test mazes (Section D.1).
| Model | Params | Rollouts | Sudoku-Extreme | Maze-Hard |
|---|---|---|---|---|
| Recursive reasoners | ||||
| GRAM (Baek et al., 2026) | 10M | 20 | 97.0% | - |
| PTRM (Sghaier et al., 2026) | 5M/7M | 100 | 98.75% | 86.73% |
| EqR () (Huang et al., 2026) | 5M | 128 | 99.8% | - |
| Flow models | ||||
| UFM (ours) | 8.4M | 100 | 98.6% | 92.0% |
20 parallel trajectories selected by a learned latent reward model. Inference-only on a TRM checkpoint; best-Q@100 on Sudoku, majority vote on Maze; Pass@100 is 99.06% / 95.63%. D=64 outer iterations at test time, 4× the training budget. EqR reports 93.0% on Maze-Unique, a filtered variant, not Maze-Hard.
size 512 ( 22.3M examples), against 34,500 steps at batch size 128 for UFM ( 4.4M examples). UFM uses a smaller batch to fit the rollout in memory. Gradients flow through all five updates, but the gradient passed back through the latent state is scaled by 0.7 at each update; the forward value is unchanged.
D.3 COMPARISON WITH RECURSIVE REASONERS
We also place UFM in context against published recursive reasoners. These rows are reported from the respective papers rather than reruns, so they provide a reference point rather than a controlled pairwise comparison.
D.4 BASELINE REPLICATION ON SUDOKU-HARD
We use the best tested checkpoint of each baseline at 30k training steps, corresponding to 1.6 hours for FLM and 1.7 hours for S-FLM. For S-FLM, we used the truncated schedule in the authors' released code (the 43.2% setting in Table 1 of Deschenaux & Gulcehre (2026)), not the adaptive-schedule variant.
The released split has no validation set, so each baseline checkpoint is selected on the same 2k puzzles on which it is reported, which favors the baselines. The UFM checkpoint is instead selected on a separate 2k validation split (best exact match at ); this is the final checkpoint (19.7k steps, 1.1 h). The updated evaluation reaches at over five noise seeds. Table 6 reports accuracy as a function of the number of sampling steps, with the default greedy final step. With ancestral noise removal at , S-FLM reaches 50.9%, the number in Table 1; FLM has no such option. Training times exclude evaluation.
Table 6: Accuracy (%) on the hard Sudoku split of Deschenaux & Gulcehre (2026) as a function of the number of sampling steps , with the default greedy final step and without ancestral noise removal. FLM and S-FLM are our runs of the authors' released code (28.6M parameters) with the cosine schedule of their code base, at their best checkpoint (30k steps), selected on these same puzzles, which favors the baselines. With ancestral noise removal at , S-FLM reaches 50.9% (Table 1); with the released constant schedule it reaches 36.8%, and its authors report 43.2% with the truncated linear noise schedule and 45.0% with the additional adaptive schedule. UFM (8.4M parameters) is trained with 24-step rollouts and selected on a separate validation split. Training is training-only wall-clock time on one A100. The UFM row reports an earlier single-run step-count sweep. The updated five-noise-seed result at is (Table 3). The second UFM row uses the same setup with a longer training budget of 22 hours. We report it separately from the main comparison in Table 1.
| Model | Train (h) | N=8 | 16 | 32 | 64 | 128 |
|---|---|---|---|---|---|---|
| FLM | 1.6 h | 51.2 | 51.8 | 51.8 | 51.6 | 51.9 |
| S-FLM | 1.7 h | 48.9 | 49.5 | 50.0 | 50.2 | 50.1 |
| UFM (ours) | 1.1 h | 2.8 | 65.1 | 80.2 | 84.4 | 86.1 |
| UFM (ours) | 22 h | 64.1 | 97.0 | 99.4 | 99.8 | 99.8 |
D.5 HYPERPARAMETERS
UFM on Sudoku and Maze. All three benchmarks use a two-layer DiT with hidden width 448, eight attention heads, and 8.4M parameters. The backbone uses pre-norm RMSNorm, SwiGLU with expansion factor four, adaLN-Zero, two-dimensional rotary position embeddings, and 16 puzzle prefix tokens. The implementation supports sinusoidal time conditioning with frequency dimension 256. The reported checkpoints disable this input; flow time still enters through the update coefficients.
We use AdamW with , gradient clipping at 1.0, dropout 0.1, and an exponential moving average of the weights with decay 0.999. After warmup, the learning rate follows a cosine schedule from to . We retain weights and accumulation in FP32 and use BF16 matrix multiplications. Settings that differ across benchmarks are listed in Table 7.
Training grid and terminal loss. We train with updates and backpropagate through the final ; the preceding updates run without gradient tracking. For each example, we sample and initialize the state from the noise–answer interpolant. The upper bound decreases from 0.6 to 0.2 over the first of training. We sample and sort 23 further times in independently for each example.
The final network call returns the predicted endpoint directly, equivalent to taking the last Euler update to . The decoder applies RMS normalization followed by an untied linear vocabulary projection. We compute one StableMax cross-entropy loss at this endpoint, with the label smoothing shown in Table 7.
Table 7: Benchmark-specific UFM training settings. The noise scale is the standard deviation of each latent noise coordinate. The Sudoku-Hard column describes the run used for the main comparison.
| Setting | Sudoku-Extreme | Maze-Hard | Sudoku-Hard |
|---|---|---|---|
| Global batch size | 768 | 128 | 256 |
| Noise scale | 1 | ||
| Label smoothing | 0.1 | 0 | 0.1 |
| Weight decay | 0.75 | 1.0 | 0.75 |
| Warmup steps | 2,000 | 2,000 | 500 |
| Training budget (steps) | 130k | 125k | 19.7k |
D.6 COMPUTING RESOURCES
UFM training uses one NVIDIA A100 on Sudoku-Extreme and Sudoku-Hard, and two A100s on Maze-Hard. Training time excludes evaluation and is estimated from the median steady-state iteration rate in the logs.
On Sudoku-Hard, UFM takes 1.14 hours for 19.7k optimization steps. FLM and S-FLM take 1.07 and 1.12 hours, respectively, for 20k steps. Their selected 30k-step checkpoints require 1.61 and 1.68 hours of training. These estimates give the rounded training times reported in the main comparison.