Unlocking OOD Generalization via Latent Recurrence

Four architectural mechanisms that let Transformers learn algorithms that scale, on circuits several times larger than those seen in training.

arXiv Code

Systematic, compositional generalization beyond the training distribution remains a core challenge in machine learning, and a critical bottleneck for the emergent reasoning abilities of modern language models. In this work, we investigate the architectural mechanisms that enable algorithmic out-of-distribution (OOD) generalization in Transformer models: the ability to learn a procedure on small problem instances and apply it correctly to larger and harder ones.

Trained iteration rangeScaling beyond the training regimeContinuousDiscreteDiscrete+ self-correctionLearned representation manifolderrorerrorcorrectionRecurrent iterationsDiscrete stateContinuous stateDiscretize + re-embed
TrainedScaling beyond trainingContinuousDiscreteDiscrete + self-correctionLearned representation manifolderrorerrorcorrectionRecurrent iterationsDiscrete stateContinuous stateDiscretize + re-embed
Discrete representations and self-correction under test-time scaling. Each row traces one token's latent state across recurrent iterations; the shaded band represents the representation space learned during training. Continuous latent states drift off that space as computation scales beyond the training regime. Discrete states stay anchored to it and follow the target algorithmic path (dotted) far longer, but once an error occurs, it propagates to all later iterations. Self-correction teaches the model to repair the error at the next iteration.

The task: arithmetic circuit evaluation

A problem instance is an arithmetic circuit: a directed acyclic computation graph that specifies a network of modular arithmetic computations. Leaf nodes are directly assigned values, and every other node is computed by applying an operation to the values of its parent nodes. The operations are modular addition, multiplication, and subtraction with prime modulus p=23p = 23. The task is to compute the value of every node, and an output counts as correct only if all node values are correct.

Leaves
= 20
= 2
= 6
= 14Depth 1++×
= 22= 8= 15Depth 2×−+
= 15= 17
Leaves
= 20
= 2
= 6
= 14Depth 1++×
= 22= 8= 15Depth 2×−+
= 15= 17
An illustration of a modular arithmetic circuit instance. The goal is to compute the values of all nodes in the circuit.

Arithmetic circuit evaluation is P\mathsf{P}-complete, so any polynomial-time computation can be encoded as an arithmetic circuit. The computation it requires grows with the depth of the circuit, and under standard complexity conjectures it lies outside the expressive power of fixed-depth Transformers. We train models on circuits with N≤32N \leq 32 nodes and test them on deeper circuits of up to N=128N = 128 nodes. Generalizing to these circuits requires both the ability to adaptively scale computation at test time beyond the training regime and a learned procedure that remains correct as that computation is extended.

Standard approaches do not scale

Models trained end-to-end, to output the answer directly, perform a fixed amount of computation on every input, so they cannot scale to deeper circuits. Chain-of-thought (CoT) models do not have this limitation, since their reasoning trace grows with the input size. Their limitation lies in learning rather than expressivity: the procedure they learn from small circuits generalizes only modestly beyond the training regime and degrades rapidly on larger circuits.

Four mechanisms for latent space reasoning

We propose four architectural mechanisms, built on the Transformer, that together enable a model to learn a computation that scales robustly.

RecurrentBlock
Mechanism 1: Recurrence and adaptive computation
supervision
∅∅∅
∅∅
∅
depth schedule
supervision
∅∅∅∅
∅∅∅
∅
own schedule
Schedule
Mechanism 2: Incremental computation schedules
RecurrentBlock
discretize
re-embed
Mechanism 3: Anchored discrete latent space
errorRecurrent Blockrepaired
Mechanism 4: Error correction
Four mechanisms for out-of-distribution generalization.

Mechanism 1: Recurrence and input-adaptive computation. We employ a recurrent Transformer block so that each application emulates one algorithmic iteration: computing values for one additional layer of the circuit. The number of recurrent iterations is not fixed but adapts to input complexity, scaling linearly with the depth of the circuit.

Mechanism 2: Incremental computation schedules. The model must learn a robust computation schedule: an assignment of each part of the computation to a recurrent iteration. We learn it through latent space supervision, where a loss is applied to the model’s intermediate latent states after every recurrent iteration. In Mechanism 2a, the schedule is supervised using the depth of each node. A shared linear readout predicts node values from the latent embeddings Ei(t)E_i^{(t)}, and a step-wise loss aligns the model with the layer-by-layer algorithm:

DepthSupervisedLoss=∑t=1T∑iℓ(WvalueEi(t),Mask(Value(xi),Depth(xi)<t)),\mathrm{DepthSupervisedLoss} = \sum_{t=1}^{T} \sum_{i} \ell\big(W_{\mathtt{value}} E_i^{(t)}, \mathrm{Mask}(\mathrm{Value}(x_i), \mathrm{Depth}(x_i) < t)\big),

where Mask(v,b)\mathrm{Mask}(v, b) returns vv when bb holds and ⟨empty⟩\langle\mathtt{empty}\rangle otherwise, a special value that marks a node as not yet computed. In Mechanism 2b, the model discovers its own schedule by abstaining: it predicts ⟨empty⟩\langle\mathtt{empty}\rangle when it is uncertain, which receives partial credit α∈[0,1)\alpha \in [0, 1), deferring the node to a later iteration. With pi(t)p_i^{(t)} the predicted distribution over values for xix_i at iteration tt,

SelfSchedulingLoss=∑t=1T∑i−log⁡(pi(t)[Value(xi)]+α pi(t)[⟨empty⟩]).\mathrm{SelfSchedulingLoss} = \sum_{t=1}^{T} \sum_{i} - \log \big( p_i^{(t)}[\mathrm{Value}(x_i)] + \alpha \, p_i^{(t)}[\langle\mathtt{empty}\rangle] \big).

Abstaining gives a fixed loss of −log⁡α-\log \alpha, so it becomes the optimal choice when the model is uncertain, and α\alpha sets the level of confidence required to commit.

Mechanism 3: Anchoring via discretization. After each iteration, the model’s continuous hidden states are projected into a structured discrete symbolic space and immediately re-embedded to form the input for the next recurrent step. This ensures the input at each iteration lies in a shared structured space, even as computation scales beyond the training regime.

Mechanism 4: Learning to self-correct. We train each recurrent update on the model’s own intermediate states, which may contain errors. When such a state contains an error, the model learns to repair the error while continuing the computation.

Results

Combining these mechanisms yields an architecture capable of generalizing far beyond the training distribution. OOD performance improves sharply as more mechanisms are incorporated. When all mechanisms are included, the model (Discrete LSS + EC) maintains near-perfect performance across the entire range we evaluate: averaged over five training seeds, it solves 99.9% of instances at N=32N = 32 and 99.6% at N=128N = 128, four times the largest circuit seen in training.

0%20%40%60%80%100%Solve rate83248648096112128Graph sizeTrainingrangeFeedforward E2E, N = 8 100.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 16 86.4% ± 2.4% (mean ± SEM, 5 seeds)Feedforward E2E, N = 24 43.9% ± 6.3% (mean ± SEM, 5 seeds)Feedforward E2E, N = 32 12.2% ± 3.8% (mean ± SEM, 5 seeds)Feedforward E2E, N = 40 2.0% ± 0.7% (mean ± SEM, 5 seeds)Feedforward E2E, N = 48 0.1% ± 0.1% (mean ± SEM, 5 seeds)Feedforward E2E, N = 56 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 64 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 72 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 80 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 88 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 96 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 104 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 112 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 120 0.0% ± 0.0% (mean ± SEM, 5 seeds)Feedforward E2E, N = 128 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 8 100.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 16 82.9% ± 2.8% (mean ± SEM, 5 seeds)Recurrent E2E, N = 24 36.7% ± 4.5% (mean ± SEM, 5 seeds)Recurrent E2E, N = 32 10.2% ± 2.4% (mean ± SEM, 5 seeds)Recurrent E2E, N = 40 1.5% ± 0.6% (mean ± SEM, 5 seeds)Recurrent E2E, N = 48 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 56 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 64 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 72 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 80 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 88 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 96 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 104 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 112 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 120 0.0% ± 0.0% (mean ± SEM, 5 seeds)Recurrent E2E, N = 128 0.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 8 100.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 16 100.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 24 99.9% ± 0.1% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 32 99.9% ± 0.1% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 40 99.7% ± 0.2% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 48 91.4% ± 4.9% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 56 40.9% ± 10.1% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 64 1.6% ± 0.8% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 72 0.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 80 0.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 88 0.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 96 0.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 104 0.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 112 0.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 120 0.0% ± 0.0% (mean ± SEM, 5 seeds)Chain-of-Thought, N = 128 0.0% ± 0.0% (mean ± SEM, 5 seeds)Continuous LSS, N = 8 99.8% ± 0.1% (mean ± SEM, 5 seeds)Continuous LSS, N = 16 98.7% ± 0.7% (mean ± SEM, 5 seeds)Continuous LSS, N = 24 97.7% ± 1.0% (mean ± SEM, 5 seeds)Continuous LSS, N = 32 94.0% ± 2.2% (mean ± SEM, 5 seeds)Continuous LSS, N = 40 87.2% ± 4.4% (mean ± SEM, 5 seeds)Continuous LSS, N = 48 79.0% ± 7.5% (mean ± SEM, 5 seeds)Continuous LSS, N = 56 70.8% ± 10.5% (mean ± SEM, 5 seeds)Continuous LSS, N = 64 62.2% ± 13.6% (mean ± SEM, 5 seeds)Continuous LSS, N = 72 54.5% ± 15.1% (mean ± SEM, 5 seeds)Continuous LSS, N = 80 48.4% ± 16.7% (mean ± SEM, 5 seeds)Continuous LSS, N = 88 43.6% ± 17.4% (mean ± SEM, 5 seeds)Continuous LSS, N = 96 39.2% ± 17.7% (mean ± SEM, 5 seeds)Continuous LSS, N = 104 36.1% ± 17.6% (mean ± SEM, 5 seeds)Continuous LSS, N = 112 32.3% ± 16.7% (mean ± SEM, 5 seeds)Continuous LSS, N = 120 30.3% ± 17.0% (mean ± SEM, 5 seeds)Continuous LSS, N = 128 28.6% ± 16.2% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 8 99.3% ± 0.4% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 16 96.7% ± 2.4% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 24 94.5% ± 3.7% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 32 92.5% ± 5.0% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 40 90.7% ± 5.5% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 48 89.1% ± 6.1% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 56 87.9% ± 6.7% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 64 85.3% ± 7.6% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 72 83.3% ± 8.3% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 80 80.9% ± 9.5% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 88 79.6% ± 10.6% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 96 77.0% ± 11.3% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 104 74.5% ± 12.4% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 112 72.7% ± 13.3% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 120 71.6% ± 13.7% (mean ± SEM, 5 seeds)Self-Scheduled LSS, N = 128 69.3% ± 14.8% (mean ± SEM, 5 seeds)Discrete LSS, N = 8 100.0% ± 0.0% (mean ± SEM, 5 seeds)Discrete LSS, N = 16 99.8% ± 0.1% (mean ± SEM, 5 seeds)Discrete LSS, N = 24 99.6% ± 0.2% (mean ± SEM, 5 seeds)Discrete LSS, N = 32 99.4% ± 0.2% (mean ± SEM, 5 seeds)Discrete LSS, N = 40 99.2% ± 0.2% (mean ± SEM, 5 seeds)Discrete LSS, N = 48 99.0% ± 0.3% (mean ± SEM, 5 seeds)Discrete LSS, N = 56 98.7% ± 0.3% (mean ± SEM, 5 seeds)Discrete LSS, N = 64 98.2% ± 0.5% (mean ± SEM, 5 seeds)Discrete LSS, N = 72 98.2% ± 0.5% (mean ± SEM, 5 seeds)Discrete LSS, N = 80 97.6% ± 0.6% (mean ± SEM, 5 seeds)Discrete LSS, N = 88 97.2% ± 0.8% (mean ± SEM, 5 seeds)Discrete LSS, N = 96 96.8% ± 0.8% (mean ± SEM, 5 seeds)Discrete LSS, N = 104 96.5% ± 1.0% (mean ± SEM, 5 seeds)Discrete LSS, N = 112 96.3% ± 1.0% (mean ± SEM, 5 seeds)Discrete LSS, N = 120 95.4% ± 1.3% (mean ± SEM, 5 seeds)Discrete LSS, N = 128 94.1% ± 1.8% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 8 100.0% ± 0.0% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 16 100.0% ± 0.0% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 24 100.0% ± 0.0% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 32 99.9% ± 0.1% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 40 99.9% ± 0.1% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 48 99.9% ± 0.0% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 56 99.8% ± 0.2% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 64 99.8% ± 0.1% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 72 99.6% ± 0.2% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 80 99.9% ± 0.1% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 88 99.7% ± 0.2% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 96 99.6% ± 0.3% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 104 99.7% ± 0.2% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 112 99.6% ± 0.3% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 120 99.4% ± 0.3% (mean ± SEM, 5 seeds)Discrete LSS + EC, N = 128 99.6% ± 0.3% (mean ± SEM, 5 seeds)Discrete LSS + ECDiscrete LSSSelf-Scheduled LSSContinuous LSSChain-of-ThoughtFeedforward E2ERecurrent E2E
Out-of-distribution generalization across methods. Each curve is the mean over five training seeds and each band is ±1 standard error of the mean; the shaded region marks the training range N ≤ 32. LSS: latent space supervision; EC: error correction.
0%20%40%60%80%100%Solve rate02468101214161820# Recurrent iterationsN = 8, 0 iterations 0.0% solvedN = 8, 1 iterations 71.2% solvedN = 8, 2 iterations 100.0% solvedN = 8, 3 iterations 100.0% solvedN = 8, 4 iterations 100.0% solvedN = 8, 5 iterations 100.0% solvedN = 8, 6 iterations 100.0% solvedN = 8, 7 iterations 100.0% solvedN = 8, 8 iterations 100.0% solvedN = 8, 9 iterations 100.0% solvedN = 8, 10 iterations 100.0% solvedN = 8, 11 iterations 100.0% solvedN = 8, 12 iterations 100.0% solvedN = 8, 13 iterations 100.0% solvedN = 8, 14 iterations 100.0% solvedN = 8, 15 iterations 100.0% solvedN = 8, 16 iterations 100.0% solvedN = 8, 17 iterations 100.0% solvedN = 8, 18 iterations 100.0% solvedN = 8, 19 iterations 100.0% solvedN = 8, 20 iterations 100.0% solvedN = 16, 0 iterations 0.0% solvedN = 16, 1 iterations 0.0% solvedN = 16, 2 iterations 8.2% solvedN = 16, 3 iterations 52.0% solvedN = 16, 4 iterations 86.5% solvedN = 16, 5 iterations 97.2% solvedN = 16, 6 iterations 99.4% solvedN = 16, 7 iterations 99.8% solvedN = 16, 8 iterations 100.0% solvedN = 16, 9 iterations 100.0% solvedN = 16, 10 iterations 100.0% solvedN = 16, 11 iterations 100.0% solvedN = 16, 12 iterations 100.0% solvedN = 16, 13 iterations 100.0% solvedN = 16, 14 iterations 100.0% solvedN = 16, 15 iterations 100.0% solvedN = 16, 16 iterations 100.0% solvedN = 16, 17 iterations 100.0% solvedN = 16, 18 iterations 100.0% solvedN = 16, 19 iterations 100.0% solvedN = 16, 20 iterations 100.0% solvedN = 24, 0 iterations 0.0% solvedN = 24, 1 iterations 0.0% solvedN = 24, 2 iterations 0.1% solvedN = 24, 3 iterations 7.2% solvedN = 24, 4 iterations 36.7% solvedN = 24, 5 iterations 70.1% solvedN = 24, 6 iterations 90.8% solvedN = 24, 7 iterations 97.7% solvedN = 24, 8 iterations 99.4% solvedN = 24, 9 iterations 99.9% solvedN = 24, 10 iterations 100.0% solvedN = 24, 11 iterations 100.0% solvedN = 24, 12 iterations 100.0% solvedN = 24, 13 iterations 100.0% solvedN = 24, 14 iterations 100.0% solvedN = 24, 15 iterations 100.0% solvedN = 24, 16 iterations 100.0% solvedN = 24, 17 iterations 100.0% solvedN = 24, 18 iterations 100.0% solvedN = 24, 19 iterations 100.0% solvedN = 24, 20 iterations 100.0% solvedN = 32 (largest training size), 0 iterations 0.0% solvedN = 32 (largest training size), 1 iterations 0.0% solvedN = 32 (largest training size), 2 iterations 0.0% solvedN = 32 (largest training size), 3 iterations 0.3% solvedN = 32 (largest training size), 4 iterations 8.7% solvedN = 32 (largest training size), 5 iterations 36.2% solvedN = 32 (largest training size), 6 iterations 67.8% solvedN = 32 (largest training size), 7 iterations 87.5% solvedN = 32 (largest training size), 8 iterations 96.3% solvedN = 32 (largest training size), 9 iterations 98.8% solvedN = 32 (largest training size), 10 iterations 99.7% solvedN = 32 (largest training size), 11 iterations 99.9% solvedN = 32 (largest training size), 12 iterations 100.0% solvedN = 32 (largest training size), 13 iterations 100.0% solvedN = 32 (largest training size), 14 iterations 100.0% solvedN = 32 (largest training size), 15 iterations 100.0% solvedN = 32 (largest training size), 16 iterations 100.0% solvedN = 32 (largest training size), 17 iterations 100.0% solvedN = 32 (largest training size), 18 iterations 100.0% solvedN = 32 (largest training size), 19 iterations 100.0% solvedN = 32 (largest training size), 20 iterations 100.0% solvedN = 40, 0 iterations 0.0% solvedN = 40, 1 iterations 0.0% solvedN = 40, 2 iterations 0.0% solvedN = 40, 3 iterations 0.0% solvedN = 40, 4 iterations 1.4% solvedN = 40, 5 iterations 14.6% solvedN = 40, 6 iterations 42.9% solvedN = 40, 7 iterations 70.1% solvedN = 40, 8 iterations 88.3% solvedN = 40, 9 iterations 96.7% solvedN = 40, 10 iterations 99.3% solvedN = 40, 11 iterations 99.8% solvedN = 40, 12 iterations 100.0% solvedN = 40, 13 iterations 100.0% solvedN = 40, 14 iterations 100.0% solvedN = 40, 15 iterations 100.0% solvedN = 40, 16 iterations 100.0% solvedN = 40, 17 iterations 100.0% solvedN = 40, 18 iterations 100.0% solvedN = 40, 19 iterations 100.0% solvedN = 40, 20 iterations 100.0% solvedN = 48, 0 iterations 0.0% solvedN = 48, 1 iterations 0.0% solvedN = 48, 2 iterations 0.0% solvedN = 48, 3 iterations 0.0% solvedN = 48, 4 iterations 0.3% solvedN = 48, 5 iterations 4.3% solvedN = 48, 6 iterations 23.1% solvedN = 48, 7 iterations 51.4% solvedN = 48, 8 iterations 77.9% solvedN = 48, 9 iterations 90.6% solvedN = 48, 10 iterations 97.4% solvedN = 48, 11 iterations 99.0% solvedN = 48, 12 iterations 99.9% solvedN = 48, 13 iterations 100.0% solvedN = 48, 14 iterations 100.0% solvedN = 48, 15 iterations 100.0% solvedN = 48, 16 iterations 100.0% solvedN = 48, 17 iterations 100.0% solvedN = 48, 18 iterations 100.0% solvedN = 48, 19 iterations 100.0% solvedN = 48, 20 iterations 100.0% solvedN = 56, 0 iterations 0.0% solvedN = 56, 1 iterations 0.0% solvedN = 56, 2 iterations 0.0% solvedN = 56, 3 iterations 0.0% solvedN = 56, 4 iterations 0.0% solvedN = 56, 5 iterations 1.5% solvedN = 56, 6 iterations 9.8% solvedN = 56, 7 iterations 34.7% solvedN = 56, 8 iterations 64.8% solvedN = 56, 9 iterations 82.8% solvedN = 56, 10 iterations 94.4% solvedN = 56, 11 iterations 97.9% solvedN = 56, 12 iterations 99.5% solvedN = 56, 13 iterations 99.8% solvedN = 56, 14 iterations 100.0% solvedN = 56, 15 iterations 100.0% solvedN = 56, 16 iterations 100.0% solvedN = 56, 17 iterations 100.0% solvedN = 56, 18 iterations 100.0% solvedN = 56, 19 iterations 100.0% solvedN = 56, 20 iterations 100.0% solvedN = 64, 0 iterations 0.0% solvedN = 64, 1 iterations 0.0% solvedN = 64, 2 iterations 0.0% solvedN = 64, 3 iterations 0.0% solvedN = 64, 4 iterations 0.0% solvedN = 64, 5 iterations 0.4% solvedN = 64, 6 iterations 5.0% solvedN = 64, 7 iterations 22.3% solvedN = 64, 8 iterations 48.6% solvedN = 64, 9 iterations 73.5% solvedN = 64, 10 iterations 89.6% solvedN = 64, 11 iterations 95.9% solvedN = 64, 12 iterations 98.7% solvedN = 64, 13 iterations 99.8% solvedN = 64, 14 iterations 100.0% solvedN = 64, 15 iterations 100.0% solvedN = 64, 16 iterations 100.0% solvedN = 64, 17 iterations 100.0% solvedN = 64, 18 iterations 100.0% solvedN = 64, 19 iterations 100.0% solvedN = 64, 20 iterations 100.0% solvedN = 72, 0 iterations 0.0% solvedN = 72, 1 iterations 0.0% solvedN = 72, 2 iterations 0.0% solvedN = 72, 3 iterations 0.0% solvedN = 72, 4 iterations 0.0% solvedN = 72, 5 iterations 0.0% solvedN = 72, 6 iterations 1.9% solvedN = 72, 7 iterations 13.8% solvedN = 72, 8 iterations 38.0% solvedN = 72, 9 iterations 61.1% solvedN = 72, 10 iterations 81.1% solvedN = 72, 11 iterations 93.0% solvedN = 72, 12 iterations 97.2% solvedN = 72, 13 iterations 99.5% solvedN = 72, 14 iterations 99.8% solvedN = 72, 15 iterations 100.0% solvedN = 72, 16 iterations 100.0% solvedN = 72, 17 iterations 100.0% solvedN = 72, 18 iterations 100.0% solvedN = 72, 19 iterations 100.0% solvedN = 72, 20 iterations 100.0% solvedN = 80, 0 iterations 0.0% solvedN = 80, 1 iterations 0.0% solvedN = 80, 2 iterations 0.0% solvedN = 80, 3 iterations 0.0% solvedN = 80, 4 iterations 0.0% solvedN = 80, 5 iterations 0.0% solvedN = 80, 6 iterations 0.6% solvedN = 80, 7 iterations 7.8% solvedN = 80, 8 iterations 25.9% solvedN = 80, 9 iterations 50.5% solvedN = 80, 10 iterations 72.6% solvedN = 80, 11 iterations 87.7% solvedN = 80, 12 iterations 96.1% solvedN = 80, 13 iterations 98.1% solvedN = 80, 14 iterations 99.5% solvedN = 80, 15 iterations 99.8% solvedN = 80, 16 iterations 99.9% solvedN = 80, 17 iterations 99.9% solvedN = 80, 18 iterations 100.0% solvedN = 80, 19 iterations 100.0% solvedN = 80, 20 iterations 100.0% solvedN = 88, 0 iterations 0.0% solvedN = 88, 1 iterations 0.0% solvedN = 88, 2 iterations 0.0% solvedN = 88, 3 iterations 0.0% solvedN = 88, 4 iterations 0.0% solvedN = 88, 5 iterations 0.0% solvedN = 88, 6 iterations 0.4% solvedN = 88, 7 iterations 4.0% solvedN = 88, 8 iterations 19.1% solvedN = 88, 9 iterations 42.1% solvedN = 88, 10 iterations 66.9% solvedN = 88, 11 iterations 82.7% solvedN = 88, 12 iterations 94.8% solvedN = 88, 13 iterations 98.4% solvedN = 88, 14 iterations 99.4% solvedN = 88, 15 iterations 99.9% solvedN = 88, 16 iterations 100.0% solvedN = 88, 17 iterations 100.0% solvedN = 88, 18 iterations 100.0% solvedN = 88, 19 iterations 100.0% solvedN = 88, 20 iterations 100.0% solvedN = 96, 0 iterations 0.0% solvedN = 96, 1 iterations 0.0% solvedN = 96, 2 iterations 0.0% solvedN = 96, 3 iterations 0.0% solvedN = 96, 4 iterations 0.0% solvedN = 96, 5 iterations 0.0% solvedN = 96, 6 iterations 0.0% solvedN = 96, 7 iterations 1.8% solvedN = 96, 8 iterations 12.5% solvedN = 96, 9 iterations 33.9% solvedN = 96, 10 iterations 58.0% solvedN = 96, 11 iterations 80.9% solvedN = 96, 12 iterations 89.5% solvedN = 96, 13 iterations 95.5% solvedN = 96, 14 iterations 98.5% solvedN = 96, 15 iterations 100.0% solvedN = 96, 16 iterations 100.0% solvedN = 96, 17 iterations 100.0% solvedN = 96, 18 iterations 100.0% solvedN = 96, 19 iterations 100.0% solvedN = 96, 20 iterations 100.0% solvedN = 104, 0 iterations 0.0% solvedN = 104, 1 iterations 0.0% solvedN = 104, 2 iterations 0.0% solvedN = 104, 3 iterations 0.0% solvedN = 104, 4 iterations 0.0% solvedN = 104, 5 iterations 0.0% solvedN = 104, 6 iterations 0.0% solvedN = 104, 7 iterations 1.0% solvedN = 104, 8 iterations 6.9% solvedN = 104, 9 iterations 25.9% solvedN = 104, 10 iterations 51.0% solvedN = 104, 11 iterations 72.1% solvedN = 104, 12 iterations 87.4% solvedN = 104, 13 iterations 94.6% solvedN = 104, 14 iterations 97.5% solvedN = 104, 15 iterations 99.0% solvedN = 104, 16 iterations 99.8% solvedN = 104, 17 iterations 100.0% solvedN = 104, 18 iterations 100.0% solvedN = 104, 19 iterations 100.0% solvedN = 104, 20 iterations 100.0% solvedN = 112, 0 iterations 0.0% solvedN = 112, 1 iterations 0.0% solvedN = 112, 2 iterations 0.0% solvedN = 112, 3 iterations 0.0% solvedN = 112, 4 iterations 0.0% solvedN = 112, 5 iterations 0.0% solvedN = 112, 6 iterations 0.0% solvedN = 112, 7 iterations 0.8% solvedN = 112, 8 iterations 5.0% solvedN = 112, 9 iterations 19.1% solvedN = 112, 10 iterations 39.6% solvedN = 112, 11 iterations 65.5% solvedN = 112, 12 iterations 82.8% solvedN = 112, 13 iterations 92.7% solvedN = 112, 14 iterations 97.1% solvedN = 112, 15 iterations 98.9% solvedN = 112, 16 iterations 99.6% solvedN = 112, 17 iterations 99.9% solvedN = 112, 18 iterations 100.0% solvedN = 112, 19 iterations 100.0% solvedN = 112, 20 iterations 100.0% solvedN = 120, 0 iterations 0.0% solvedN = 120, 1 iterations 0.0% solvedN = 120, 2 iterations 0.0% solvedN = 120, 3 iterations 0.0% solvedN = 120, 4 iterations 0.0% solvedN = 120, 5 iterations 0.0% solvedN = 120, 6 iterations 0.0% solvedN = 120, 7 iterations 0.1% solvedN = 120, 8 iterations 2.9% solvedN = 120, 9 iterations 14.6% solvedN = 120, 10 iterations 37.6% solvedN = 120, 11 iterations 60.3% solvedN = 120, 12 iterations 76.8% solvedN = 120, 13 iterations 90.0% solvedN = 120, 14 iterations 96.1% solvedN = 120, 15 iterations 98.8% solvedN = 120, 16 iterations 99.8% solvedN = 120, 17 iterations 100.0% solvedN = 120, 18 iterations 100.0% solvedN = 120, 19 iterations 100.0% solvedN = 120, 20 iterations 100.0% solvedN = 128, 0 iterations 0.0% solvedN = 128, 1 iterations 0.0% solvedN = 128, 2 iterations 0.0% solvedN = 128, 3 iterations 0.0% solvedN = 128, 4 iterations 0.0% solvedN = 128, 5 iterations 0.0% solvedN = 128, 6 iterations 0.0% solvedN = 128, 7 iterations 0.1% solvedN = 128, 8 iterations 1.7% solvedN = 128, 9 iterations 10.0% solvedN = 128, 10 iterations 30.1% solvedN = 128, 11 iterations 54.1% solvedN = 128, 12 iterations 74.1% solvedN = 128, 13 iterations 89.6% solvedN = 128, 14 iterations 95.4% solvedN = 128, 15 iterations 98.8% solvedN = 128, 16 iterations 99.5% solvedN = 128, 17 iterations 99.8% solvedN = 128, 18 iterations 99.9% solvedN = 128, 19 iterations 100.0% solvedN = 128, 20 iterations 100.0% solved
Test-time scaling for Discrete LSS + EC (best of five seeds): the fraction of instances solved as a function of the number of recurrent iterations, for each circuit size N. Scaling recurrent iterations beyond the training regime enables solving progressively larger and harder instances.

Discovering a schedule without depth supervision

Self-Scheduled LSS (Mechanisms 1 and 2b) receives no depth information during training. Averaged over five seeds, it solves 69.3% of instances at N=128N = 128, where the chain-of-thought and end-to-end baselines solve none, and its best seed solves 98.6%. In every seed, the time at which a node is first filled in grows linearly with its depth, and this trend extrapolates from the training regime (depth at most 66) to circuits of depth up to 1919. The model therefore discovers a schedule that is aligned with the depth structure of the circuit and performs a bounded amount of computation per iteration, without any depth supervision.

15101520Median first-fill time14710131619
Node depth
Seed 1, depth 1 Median first-fill time 1 (100.0% of nodes filled)Seed 1, depth 2 Median first-fill time 2 (100.0% of nodes filled)Seed 1, depth 3 Median first-fill time 2 (100.0% of nodes filled)Seed 1, depth 4 Median first-fill time 3 (100.0% of nodes filled)Seed 1, depth 5 Median first-fill time 3 (100.0% of nodes filled)Seed 1, depth 6 Median first-fill time 4 (100.0% of nodes filled)Seed 1, depth 7 Median first-fill time 5 (100.0% of nodes filled)Seed 1, depth 8 Median first-fill time 5 (100.0% of nodes filled)Seed 1, depth 9 Median first-fill time 6 (100.0% of nodes filled)Seed 1, depth 10 Median first-fill time 7 (100.0% of nodes filled)Seed 1, depth 11 Median first-fill time 7 (100.0% of nodes filled)Seed 1, depth 12 Median first-fill time 8 (100.0% of nodes filled)Seed 1, depth 13 Median first-fill time 9 (100.0% of nodes filled)Seed 1, depth 14 Median first-fill time 9 (100.0% of nodes filled)Seed 1, depth 15 Median first-fill time 10 (100.0% of nodes filled)Seed 1, depth 16 Median first-fill time 10 (100.0% of nodes filled)Seed 1, depth 17 Median first-fill time 11 (100.0% of nodes filled)Seed 1, depth 18 Median first-fill time 11 (100.0% of nodes filled)Seed 1, depth 19 Median first-fill time 12 (100.0% of nodes filled)Seed 2, depth 1 Median first-fill time 1 (100.0% of nodes filled)Seed 2, depth 2 Median first-fill time 1 (100.0% of nodes filled)Seed 2, depth 3 Median first-fill time 2 (100.0% of nodes filled)Seed 2, depth 4 Median first-fill time 2 (100.0% of nodes filled)Seed 2, depth 5 Median first-fill time 3 (100.0% of nodes filled)Seed 2, depth 6 Median first-fill time 3 (100.0% of nodes filled)Seed 2, depth 7 Median first-fill time 4 (100.0% of nodes filled)Seed 2, depth 8 Median first-fill time 4 (100.0% of nodes filled)Seed 2, depth 9 Median first-fill time 5 (100.0% of nodes filled)Seed 2, depth 10 Median first-fill time 5 (100.0% of nodes filled)Seed 2, depth 11 Median first-fill time 6 (100.0% of nodes filled)Seed 2, depth 12 Median first-fill time 6 (100.0% of nodes filled)Seed 2, depth 13 Median first-fill time 7 (100.0% of nodes filled)Seed 2, depth 14 Median first-fill time 7 (100.0% of nodes filled)Seed 2, depth 15 Median first-fill time 8 (100.0% of nodes filled)Seed 2, depth 16 Median first-fill time 8 (100.0% of nodes filled)Seed 2, depth 17 Median first-fill time 8 (100.0% of nodes filled)Seed 2, depth 18 Median first-fill time 9 (100.0% of nodes filled)Seed 2, depth 19 Median first-fill time 9 (100.0% of nodes filled)Seed 3, depth 1 Median first-fill time 1 (100.0% of nodes filled)Seed 3, depth 2 Median first-fill time 2 (100.0% of nodes filled)Seed 3, depth 3 Median first-fill time 2 (100.0% of nodes filled)Seed 3, depth 4 Median first-fill time 3 (100.0% of nodes filled)Seed 3, depth 5 Median first-fill time 4 (100.0% of nodes filled)Seed 3, depth 6 Median first-fill time 5 (100.0% of nodes filled)Seed 3, depth 7 Median first-fill time 5 (100.0% of nodes filled)Seed 3, depth 8 Median first-fill time 6 (100.0% of nodes filled)Seed 3, depth 9 Median first-fill time 7 (100.0% of nodes filled)Seed 3, depth 10 Median first-fill time 7 (100.0% of nodes filled)Seed 3, depth 11 Median first-fill time 8 (100.0% of nodes filled)Seed 3, depth 12 Median first-fill time 9 (100.0% of nodes filled)Seed 3, depth 13 Median first-fill time 9 (99.8% of nodes filled)Seed 3, depth 14 Median first-fill time 10 (100.0% of nodes filled)Seed 3, depth 15 Median first-fill time 10 (100.0% of nodes filled)Seed 3, depth 16 Median first-fill time 11 (100.0% of nodes filled)Seed 3, depth 17 Median first-fill time 11 (100.0% of nodes filled)Seed 3, depth 18 Median first-fill time 11 (100.0% of nodes filled)Seed 3, depth 19 Median first-fill time 11.5 (100.0% of nodes filled)Seed 4, depth 1 Median first-fill time 1 (99.7% of nodes filled)Seed 4, depth 2 Median first-fill time 2 (98.9% of nodes filled)Seed 4, depth 3 Median first-fill time 3 (97.8% of nodes filled)Seed 4, depth 4 Median first-fill time 4 (96.5% of nodes filled)Seed 4, depth 5 Median first-fill time 6 (95.1% of nodes filled)Seed 4, depth 6 Median first-fill time 7 (93.2% of nodes filled)Seed 4, depth 7 Median first-fill time 8 (91.5% of nodes filled)Seed 4, depth 8 Median first-fill time 9 (89.9% of nodes filled)Seed 4, depth 9 Median first-fill time 11 (88.6% of nodes filled)Seed 4, depth 10 Median first-fill time 12 (87.2% of nodes filled)Seed 4, depth 11 Median first-fill time 13 (86.3% of nodes filled)Seed 4, depth 12 Median first-fill time 14 (86.4% of nodes filled)Seed 4, depth 13 Median first-fill time 15 (85.8% of nodes filled)Seed 4, depth 14 Median first-fill time 16 (85.6% of nodes filled)Seed 4, depth 15 Median first-fill time 17 (83.2% of nodes filled)Seed 4, depth 16 Median first-fill time 18 (80.8% of nodes filled)Seed 4, depth 17 Median first-fill time 18 (91.3% of nodes filled)Seed 4, depth 18 Median first-fill time 19 (100.0% of nodes filled)Seed 4, depth 19 Median first-fill time 19.5 (100.0% of nodes filled)Seed 5, depth 1 Median first-fill time 1 (100.0% of nodes filled)Seed 5, depth 2 Median first-fill time 2 (99.8% of nodes filled)Seed 5, depth 3 Median first-fill time 3 (99.7% of nodes filled)Seed 5, depth 4 Median first-fill time 5 (99.3% of nodes filled)Seed 5, depth 5 Median first-fill time 6 (98.7% of nodes filled)Seed 5, depth 6 Median first-fill time 7 (97.9% of nodes filled)Seed 5, depth 7 Median first-fill time 9 (96.5% of nodes filled)Seed 5, depth 8 Median first-fill time 10 (95.2% of nodes filled)Seed 5, depth 9 Median first-fill time 11 (93.3% of nodes filled)Seed 5, depth 10 Median first-fill time 12 (91.1% of nodes filled)Seed 5, depth 11 Median first-fill time 14 (88.9% of nodes filled)Seed 5, depth 12 Median first-fill time 15 (86.5% of nodes filled)Seed 5, depth 13 Median first-fill time 16 (84.1% of nodes filled)Seed 5, depth 14 Median first-fill time 18 (79.7% of nodes filled)Seed 5, depth 15 Median first-fill time 18 (78.7% of nodes filled)Seed 5, depth 16 Median first-fill time 19 (69.9% of nodes filled)Seed 5, depth 17 Median first-fill time 19.5 (69.6% of nodes filled)Seed 5, depth 19 Median first-fill time 22 (100.0% of nodes filled)0.8 levels/iter. · 31%0.9 levels/iter. · 36%1.6 levels/iter. · 99%1.6 levels/iter. · 87%2.1 levels/iter. · 94%Layer-by-layerSchedule rate · solve rate at N = 128
15101520Median first-fill time14710131619
Node depth
Seed 1, depth 1 Median first-fill time 1 (100.0% of nodes filled)Seed 1, depth 2 Median first-fill time 2 (100.0% of nodes filled)Seed 1, depth 3 Median first-fill time 2 (100.0% of nodes filled)Seed 1, depth 4 Median first-fill time 3 (100.0% of nodes filled)Seed 1, depth 5 Median first-fill time 3 (100.0% of nodes filled)Seed 1, depth 6 Median first-fill time 4 (100.0% of nodes filled)Seed 1, depth 7 Median first-fill time 5 (100.0% of nodes filled)Seed 1, depth 8 Median first-fill time 5 (100.0% of nodes filled)Seed 1, depth 9 Median first-fill time 6 (100.0% of nodes filled)Seed 1, depth 10 Median first-fill time 7 (100.0% of nodes filled)Seed 1, depth 11 Median first-fill time 7 (100.0% of nodes filled)Seed 1, depth 12 Median first-fill time 8 (100.0% of nodes filled)Seed 1, depth 13 Median first-fill time 9 (100.0% of nodes filled)Seed 1, depth 14 Median first-fill time 9 (100.0% of nodes filled)Seed 1, depth 15 Median first-fill time 10 (100.0% of nodes filled)Seed 1, depth 16 Median first-fill time 10 (100.0% of nodes filled)Seed 1, depth 17 Median first-fill time 11 (100.0% of nodes filled)Seed 1, depth 18 Median first-fill time 11 (100.0% of nodes filled)Seed 1, depth 19 Median first-fill time 12 (100.0% of nodes filled)Seed 2, depth 1 Median first-fill time 1 (100.0% of nodes filled)Seed 2, depth 2 Median first-fill time 1 (100.0% of nodes filled)Seed 2, depth 3 Median first-fill time 2 (100.0% of nodes filled)Seed 2, depth 4 Median first-fill time 2 (100.0% of nodes filled)Seed 2, depth 5 Median first-fill time 3 (100.0% of nodes filled)Seed 2, depth 6 Median first-fill time 3 (100.0% of nodes filled)Seed 2, depth 7 Median first-fill time 4 (100.0% of nodes filled)Seed 2, depth 8 Median first-fill time 4 (100.0% of nodes filled)Seed 2, depth 9 Median first-fill time 5 (100.0% of nodes filled)Seed 2, depth 10 Median first-fill time 5 (100.0% of nodes filled)Seed 2, depth 11 Median first-fill time 6 (100.0% of nodes filled)Seed 2, depth 12 Median first-fill time 6 (100.0% of nodes filled)Seed 2, depth 13 Median first-fill time 7 (100.0% of nodes filled)Seed 2, depth 14 Median first-fill time 7 (100.0% of nodes filled)Seed 2, depth 15 Median first-fill time 8 (100.0% of nodes filled)Seed 2, depth 16 Median first-fill time 8 (100.0% of nodes filled)Seed 2, depth 17 Median first-fill time 8 (100.0% of nodes filled)Seed 2, depth 18 Median first-fill time 9 (100.0% of nodes filled)Seed 2, depth 19 Median first-fill time 9 (100.0% of nodes filled)Seed 3, depth 1 Median first-fill time 1 (100.0% of nodes filled)Seed 3, depth 2 Median first-fill time 2 (100.0% of nodes filled)Seed 3, depth 3 Median first-fill time 2 (100.0% of nodes filled)Seed 3, depth 4 Median first-fill time 3 (100.0% of nodes filled)Seed 3, depth 5 Median first-fill time 4 (100.0% of nodes filled)Seed 3, depth 6 Median first-fill time 5 (100.0% of nodes filled)Seed 3, depth 7 Median first-fill time 5 (100.0% of nodes filled)Seed 3, depth 8 Median first-fill time 6 (100.0% of nodes filled)Seed 3, depth 9 Median first-fill time 7 (100.0% of nodes filled)Seed 3, depth 10 Median first-fill time 7 (100.0% of nodes filled)Seed 3, depth 11 Median first-fill time 8 (100.0% of nodes filled)Seed 3, depth 12 Median first-fill time 9 (100.0% of nodes filled)Seed 3, depth 13 Median first-fill time 9 (99.8% of nodes filled)Seed 3, depth 14 Median first-fill time 10 (100.0% of nodes filled)Seed 3, depth 15 Median first-fill time 10 (100.0% of nodes filled)Seed 3, depth 16 Median first-fill time 11 (100.0% of nodes filled)Seed 3, depth 17 Median first-fill time 11 (100.0% of nodes filled)Seed 3, depth 18 Median first-fill time 11 (100.0% of nodes filled)Seed 3, depth 19 Median first-fill time 11.5 (100.0% of nodes filled)Seed 4, depth 1 Median first-fill time 1 (99.7% of nodes filled)Seed 4, depth 2 Median first-fill time 2 (98.9% of nodes filled)Seed 4, depth 3 Median first-fill time 3 (97.8% of nodes filled)Seed 4, depth 4 Median first-fill time 4 (96.5% of nodes filled)Seed 4, depth 5 Median first-fill time 6 (95.1% of nodes filled)Seed 4, depth 6 Median first-fill time 7 (93.2% of nodes filled)Seed 4, depth 7 Median first-fill time 8 (91.5% of nodes filled)Seed 4, depth 8 Median first-fill time 9 (89.9% of nodes filled)Seed 4, depth 9 Median first-fill time 11 (88.6% of nodes filled)Seed 4, depth 10 Median first-fill time 12 (87.2% of nodes filled)Seed 4, depth 11 Median first-fill time 13 (86.3% of nodes filled)Seed 4, depth 12 Median first-fill time 14 (86.4% of nodes filled)Seed 4, depth 13 Median first-fill time 15 (85.8% of nodes filled)Seed 4, depth 14 Median first-fill time 16 (85.6% of nodes filled)Seed 4, depth 15 Median first-fill time 17 (83.2% of nodes filled)Seed 4, depth 16 Median first-fill time 18 (80.8% of nodes filled)Seed 4, depth 17 Median first-fill time 18 (91.3% of nodes filled)Seed 4, depth 18 Median first-fill time 19 (100.0% of nodes filled)Seed 4, depth 19 Median first-fill time 19.5 (100.0% of nodes filled)Seed 5, depth 1 Median first-fill time 1 (100.0% of nodes filled)Seed 5, depth 2 Median first-fill time 2 (99.8% of nodes filled)Seed 5, depth 3 Median first-fill time 3 (99.7% of nodes filled)Seed 5, depth 4 Median first-fill time 5 (99.3% of nodes filled)Seed 5, depth 5 Median first-fill time 6 (98.7% of nodes filled)Seed 5, depth 6 Median first-fill time 7 (97.9% of nodes filled)Seed 5, depth 7 Median first-fill time 9 (96.5% of nodes filled)Seed 5, depth 8 Median first-fill time 10 (95.2% of nodes filled)Seed 5, depth 9 Median first-fill time 11 (93.3% of nodes filled)Seed 5, depth 10 Median first-fill time 12 (91.1% of nodes filled)Seed 5, depth 11 Median first-fill time 14 (88.9% of nodes filled)Seed 5, depth 12 Median first-fill time 15 (86.5% of nodes filled)Seed 5, depth 13 Median first-fill time 16 (84.1% of nodes filled)Seed 5, depth 14 Median first-fill time 18 (79.7% of nodes filled)Seed 5, depth 15 Median first-fill time 18 (78.7% of nodes filled)Seed 5, depth 16 Median first-fill time 19 (69.9% of nodes filled)Seed 5, depth 17 Median first-fill time 19.5 (69.6% of nodes filled)Seed 5, depth 19 Median first-fill time 22 (100.0% of nodes filled)0.8 levels/iter. · 31%0.9 levels/iter. · 36%1.6 levels/iter. · 99%1.6 levels/iter. · 87%2.1 levels/iter. · 94%Layer-by-layerSchedule rate · solve rate at N = 128
The computation schedule discovered by Self-Scheduled LSS: median first-fill time (the first iteration at which a node’s decoded value is not ⟨empty⟩\langle\mathtt{empty}\rangle) against node depth, for each of five training seeds. The dotted line is the layer-by-layer schedule used for depth supervision.

Eight times the training size

In a follow-up experiment, we double the evaluation range once more, to circuits with up to N=256N = 256 nodes, eight times the largest training input. The best Discrete LSS + EC model remains essentially perfect across the entire range, making only 33 errors on 32,76832{,}768 test instances. The gaps between methods widen at this scale: at N=256N = 256, the best Discrete LSS model solves 96.8% of instances, the best Self-Scheduled LSS model 71.6%, and the best Continuous LSS model only 7.8%.

0%20%40%60%80%100%Solve rate8326496128160192224256Graph sizeTrainingrangeFeedforward E2E, N = 8 100.0% (1024 / 1024 solved)Feedforward E2E, N = 16 84.1% (861 / 1024 solved)Feedforward E2E, N = 24 45.8% (469 / 1024 solved)Feedforward E2E, N = 32 14.6% (149 / 1024 solved)Feedforward E2E, N = 40 3.0% (31 / 1024 solved)Feedforward E2E, N = 48 0.4% (4 / 1024 solved)Feedforward E2E, N = 56 0.0% (0 / 1024 solved)Feedforward E2E, N = 64 0.0% (0 / 1024 solved)Feedforward E2E, N = 72 0.0% (0 / 1024 solved)Feedforward E2E, N = 80 0.0% (0 / 1024 solved)Feedforward E2E, N = 88 0.0% (0 / 1024 solved)Feedforward E2E, N = 96 0.0% (0 / 1024 solved)Feedforward E2E, N = 104 0.0% (0 / 1024 solved)Feedforward E2E, N = 112 0.0% (0 / 1024 solved)Feedforward E2E, N = 120 0.0% (0 / 1024 solved)Feedforward E2E, N = 128 0.0% (0 / 1024 solved)Feedforward E2E, N = 136 0.0% (0 / 1024 solved)Feedforward E2E, N = 144 0.0% (0 / 1024 solved)Feedforward E2E, N = 152 0.0% (0 / 1024 solved)Feedforward E2E, N = 160 0.0% (0 / 1024 solved)Feedforward E2E, N = 168 0.0% (0 / 1024 solved)Feedforward E2E, N = 176 0.0% (0 / 1024 solved)Feedforward E2E, N = 184 0.0% (0 / 1024 solved)Feedforward E2E, N = 192 0.0% (0 / 1024 solved)Feedforward E2E, N = 200 0.0% (0 / 1024 solved)Feedforward E2E, N = 208 0.0% (0 / 1024 solved)Feedforward E2E, N = 216 0.0% (0 / 1024 solved)Feedforward E2E, N = 224 0.0% (0 / 1024 solved)Feedforward E2E, N = 232 0.0% (0 / 1024 solved)Feedforward E2E, N = 240 0.0% (0 / 1024 solved)Feedforward E2E, N = 248 0.0% (0 / 1024 solved)Feedforward E2E, N = 256 0.0% (0 / 1024 solved)Recurrent E2E, N = 8 100.0% (1024 / 1024 solved)Recurrent E2E, N = 16 88.2% (903 / 1024 solved)Recurrent E2E, N = 24 52.7% (540 / 1024 solved)Recurrent E2E, N = 32 19.9% (204 / 1024 solved)Recurrent E2E, N = 40 5.8% (59 / 1024 solved)Recurrent E2E, N = 48 0.6% (6 / 1024 solved)Recurrent E2E, N = 56 0.0% (0 / 1024 solved)Recurrent E2E, N = 64 0.0% (0 / 1024 solved)Recurrent E2E, N = 72 0.0% (0 / 1024 solved)Recurrent E2E, N = 80 0.0% (0 / 1024 solved)Recurrent E2E, N = 88 0.0% (0 / 1024 solved)Recurrent E2E, N = 96 0.0% (0 / 1024 solved)Recurrent E2E, N = 104 0.0% (0 / 1024 solved)Recurrent E2E, N = 112 0.0% (0 / 1024 solved)Recurrent E2E, N = 120 0.0% (0 / 1024 solved)Recurrent E2E, N = 128 0.0% (0 / 1024 solved)Recurrent E2E, N = 136 0.0% (0 / 1024 solved)Recurrent E2E, N = 144 0.0% (0 / 1024 solved)Recurrent E2E, N = 152 0.0% (0 / 1024 solved)Recurrent E2E, N = 160 0.0% (0 / 1024 solved)Recurrent E2E, N = 168 0.0% (0 / 1024 solved)Recurrent E2E, N = 176 0.0% (0 / 1024 solved)Recurrent E2E, N = 184 0.0% (0 / 1024 solved)Recurrent E2E, N = 192 0.0% (0 / 1024 solved)Recurrent E2E, N = 200 0.0% (0 / 1024 solved)Recurrent E2E, N = 208 0.0% (0 / 1024 solved)Recurrent E2E, N = 216 0.0% (0 / 1024 solved)Recurrent E2E, N = 224 0.0% (0 / 1024 solved)Recurrent E2E, N = 232 0.0% (0 / 1024 solved)Recurrent E2E, N = 240 0.0% (0 / 1024 solved)Recurrent E2E, N = 248 0.0% (0 / 1024 solved)Recurrent E2E, N = 256 0.0% (0 / 1024 solved)Chain-of-Thought, N = 8 100.0% (1024 / 1024 solved)Chain-of-Thought, N = 16 100.0% (1024 / 1024 solved)Chain-of-Thought, N = 24 100.0% (1024 / 1024 solved)Chain-of-Thought, N = 32 100.0% (1024 / 1024 solved)Chain-of-Thought, N = 40 99.9% (1023 / 1024 solved)Chain-of-Thought, N = 48 99.5% (1019 / 1024 solved)Chain-of-Thought, N = 56 83.4% (854 / 1024 solved)Chain-of-Thought, N = 64 18.5% (189 / 1024 solved)Chain-of-Thought, N = 72 0.2% (2 / 1024 solved)Chain-of-Thought, N = 80 0.0% (0 / 1024 solved)Chain-of-Thought, N = 88 0.0% (0 / 1024 solved)Continuous LSS, N = 8 100.0% (1024 / 1024 solved)Continuous LSS, N = 16 99.8% (1022 / 1024 solved)Continuous LSS, N = 24 99.4% (1018 / 1024 solved)Continuous LSS, N = 32 98.4% (1008 / 1024 solved)Continuous LSS, N = 40 98.0% (1004 / 1024 solved)Continuous LSS, N = 48 95.7% (980 / 1024 solved)Continuous LSS, N = 56 93.1% (953 / 1024 solved)Continuous LSS, N = 64 89.1% (912 / 1024 solved)Continuous LSS, N = 72 88.1% (902 / 1024 solved)Continuous LSS, N = 80 84.2% (862 / 1024 solved)Continuous LSS, N = 88 79.0% (809 / 1024 solved)Continuous LSS, N = 96 73.4% (752 / 1024 solved)Continuous LSS, N = 104 68.9% (706 / 1024 solved)Continuous LSS, N = 112 62.7% (642 / 1024 solved)Continuous LSS, N = 120 59.4% (608 / 1024 solved)Continuous LSS, N = 128 54.9% (562 / 1024 solved)Continuous LSS, N = 136 50.1% (513 / 1024 solved)Continuous LSS, N = 144 43.8% (449 / 1024 solved)Continuous LSS, N = 152 41.4% (424 / 1024 solved)Continuous LSS, N = 160 34.7% (355 / 1024 solved)Continuous LSS, N = 168 33.5% (343 / 1024 solved)Continuous LSS, N = 176 29.2% (299 / 1024 solved)Continuous LSS, N = 184 25.1% (257 / 1024 solved)Continuous LSS, N = 192 22.9% (235 / 1024 solved)Continuous LSS, N = 200 21.6% (221 / 1024 solved)Continuous LSS, N = 208 18.0% (184 / 1024 solved)Continuous LSS, N = 216 15.5% (159 / 1024 solved)Continuous LSS, N = 224 13.2% (135 / 1024 solved)Continuous LSS, N = 232 12.7% (130 / 1024 solved)Continuous LSS, N = 240 9.7% (99 / 1024 solved)Continuous LSS, N = 248 9.0% (92 / 1024 solved)Continuous LSS, N = 256 7.8% (80 / 1024 solved)Self-Scheduled LSS, N = 8 99.3% (1017 / 1024 solved)Self-Scheduled LSS, N = 16 99.2% (1016 / 1024 solved)Self-Scheduled LSS, N = 24 99.0% (1014 / 1024 solved)Self-Scheduled LSS, N = 32 98.5% (1009 / 1024 solved)Self-Scheduled LSS, N = 40 98.2% (1006 / 1024 solved)Self-Scheduled LSS, N = 48 97.2% (995 / 1024 solved)Self-Scheduled LSS, N = 56 96.7% (990 / 1024 solved)Self-Scheduled LSS, N = 64 96.7% (990 / 1024 solved)Self-Scheduled LSS, N = 72 95.3% (976 / 1024 solved)Self-Scheduled LSS, N = 80 94.8% (971 / 1024 solved)Self-Scheduled LSS, N = 88 93.8% (961 / 1024 solved)Self-Scheduled LSS, N = 96 93.8% (960 / 1024 solved)Self-Scheduled LSS, N = 104 92.4% (946 / 1024 solved)Self-Scheduled LSS, N = 112 93.2% (954 / 1024 solved)Self-Scheduled LSS, N = 120 89.3% (914 / 1024 solved)Self-Scheduled LSS, N = 128 89.4% (915 / 1024 solved)Self-Scheduled LSS, N = 136 89.6% (917 / 1024 solved)Self-Scheduled LSS, N = 144 88.4% (905 / 1024 solved)Self-Scheduled LSS, N = 152 88.2% (903 / 1024 solved)Self-Scheduled LSS, N = 160 85.4% (874 / 1024 solved)Self-Scheduled LSS, N = 168 86.0% (881 / 1024 solved)Self-Scheduled LSS, N = 176 82.8% (848 / 1024 solved)Self-Scheduled LSS, N = 184 84.3% (863 / 1024 solved)Self-Scheduled LSS, N = 192 83.2% (852 / 1024 solved)Self-Scheduled LSS, N = 200 81.7% (837 / 1024 solved)Self-Scheduled LSS, N = 208 80.6% (825 / 1024 solved)Self-Scheduled LSS, N = 216 77.7% (796 / 1024 solved)Self-Scheduled LSS, N = 224 78.3% (802 / 1024 solved)Self-Scheduled LSS, N = 232 76.3% (781 / 1024 solved)Self-Scheduled LSS, N = 240 75.4% (772 / 1024 solved)Self-Scheduled LSS, N = 248 72.9% (747 / 1024 solved)Self-Scheduled LSS, N = 256 71.6% (733 / 1024 solved)Discrete LSS, N = 8 100.0% (1024 / 1024 solved)Discrete LSS, N = 16 100.0% (1024 / 1024 solved)Discrete LSS, N = 24 100.0% (1024 / 1024 solved)Discrete LSS, N = 32 100.0% (1024 / 1024 solved)Discrete LSS, N = 40 100.0% (1024 / 1024 solved)Discrete LSS, N = 48 100.0% (1024 / 1024 solved)Discrete LSS, N = 56 99.9% (1023 / 1024 solved)Discrete LSS, N = 64 99.8% (1022 / 1024 solved)Discrete LSS, N = 72 99.6% (1020 / 1024 solved)Discrete LSS, N = 80 99.4% (1018 / 1024 solved)Discrete LSS, N = 88 99.5% (1019 / 1024 solved)Discrete LSS, N = 96 99.5% (1019 / 1024 solved)Discrete LSS, N = 104 99.9% (1023 / 1024 solved)Discrete LSS, N = 112 99.1% (1015 / 1024 solved)Discrete LSS, N = 120 99.7% (1021 / 1024 solved)Discrete LSS, N = 128 99.6% (1020 / 1024 solved)Discrete LSS, N = 136 98.8% (1012 / 1024 solved)Discrete LSS, N = 144 98.7% (1011 / 1024 solved)Discrete LSS, N = 152 98.6% (1010 / 1024 solved)Discrete LSS, N = 160 99.0% (1014 / 1024 solved)Discrete LSS, N = 168 97.9% (1003 / 1024 solved)Discrete LSS, N = 176 97.7% (1000 / 1024 solved)Discrete LSS, N = 184 98.5% (1009 / 1024 solved)Discrete LSS, N = 192 98.0% (1004 / 1024 solved)Discrete LSS, N = 200 98.4% (1008 / 1024 solved)Discrete LSS, N = 208 98.4% (1008 / 1024 solved)Discrete LSS, N = 216 97.8% (1001 / 1024 solved)Discrete LSS, N = 224 97.3% (996 / 1024 solved)Discrete LSS, N = 232 97.5% (998 / 1024 solved)Discrete LSS, N = 240 97.2% (995 / 1024 solved)Discrete LSS, N = 248 96.5% (988 / 1024 solved)Discrete LSS, N = 256 96.8% (991 / 1024 solved)Discrete LSS + EC, N = 8 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 16 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 24 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 32 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 40 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 48 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 56 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 64 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 72 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 80 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 88 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 96 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 104 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 112 99.9% (1023 / 1024 solved)Discrete LSS + EC, N = 120 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 128 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 136 99.9% (1023 / 1024 solved)Discrete LSS + EC, N = 144 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 152 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 160 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 168 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 176 99.9% (1023 / 1024 solved)Discrete LSS + EC, N = 184 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 192 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 200 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 208 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 216 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 224 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 232 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 240 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 248 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 256 100.0% (1024 / 1024 solved)Discrete LSS + ECDiscrete LSSSelf-Scheduled LSSContinuous LSSChain-of-ThoughtFeedforward E2ERecurrent E2E
0%20%40%60%80%100%Solve rate8326496128160192224256Graph sizeTrainingrangeFeedforward E2E, N = 8 100.0% (1024 / 1024 solved)Feedforward E2E, N = 16 84.1% (861 / 1024 solved)Feedforward E2E, N = 24 45.8% (469 / 1024 solved)Feedforward E2E, N = 32 14.6% (149 / 1024 solved)Feedforward E2E, N = 40 3.0% (31 / 1024 solved)Feedforward E2E, N = 48 0.4% (4 / 1024 solved)Feedforward E2E, N = 56 0.0% (0 / 1024 solved)Feedforward E2E, N = 64 0.0% (0 / 1024 solved)Feedforward E2E, N = 72 0.0% (0 / 1024 solved)Feedforward E2E, N = 80 0.0% (0 / 1024 solved)Feedforward E2E, N = 88 0.0% (0 / 1024 solved)Feedforward E2E, N = 96 0.0% (0 / 1024 solved)Feedforward E2E, N = 104 0.0% (0 / 1024 solved)Feedforward E2E, N = 112 0.0% (0 / 1024 solved)Feedforward E2E, N = 120 0.0% (0 / 1024 solved)Feedforward E2E, N = 128 0.0% (0 / 1024 solved)Feedforward E2E, N = 136 0.0% (0 / 1024 solved)Feedforward E2E, N = 144 0.0% (0 / 1024 solved)Feedforward E2E, N = 152 0.0% (0 / 1024 solved)Feedforward E2E, N = 160 0.0% (0 / 1024 solved)Feedforward E2E, N = 168 0.0% (0 / 1024 solved)Feedforward E2E, N = 176 0.0% (0 / 1024 solved)Feedforward E2E, N = 184 0.0% (0 / 1024 solved)Feedforward E2E, N = 192 0.0% (0 / 1024 solved)Feedforward E2E, N = 200 0.0% (0 / 1024 solved)Feedforward E2E, N = 208 0.0% (0 / 1024 solved)Feedforward E2E, N = 216 0.0% (0 / 1024 solved)Feedforward E2E, N = 224 0.0% (0 / 1024 solved)Feedforward E2E, N = 232 0.0% (0 / 1024 solved)Feedforward E2E, N = 240 0.0% (0 / 1024 solved)Feedforward E2E, N = 248 0.0% (0 / 1024 solved)Feedforward E2E, N = 256 0.0% (0 / 1024 solved)Recurrent E2E, N = 8 100.0% (1024 / 1024 solved)Recurrent E2E, N = 16 88.2% (903 / 1024 solved)Recurrent E2E, N = 24 52.7% (540 / 1024 solved)Recurrent E2E, N = 32 19.9% (204 / 1024 solved)Recurrent E2E, N = 40 5.8% (59 / 1024 solved)Recurrent E2E, N = 48 0.6% (6 / 1024 solved)Recurrent E2E, N = 56 0.0% (0 / 1024 solved)Recurrent E2E, N = 64 0.0% (0 / 1024 solved)Recurrent E2E, N = 72 0.0% (0 / 1024 solved)Recurrent E2E, N = 80 0.0% (0 / 1024 solved)Recurrent E2E, N = 88 0.0% (0 / 1024 solved)Recurrent E2E, N = 96 0.0% (0 / 1024 solved)Recurrent E2E, N = 104 0.0% (0 / 1024 solved)Recurrent E2E, N = 112 0.0% (0 / 1024 solved)Recurrent E2E, N = 120 0.0% (0 / 1024 solved)Recurrent E2E, N = 128 0.0% (0 / 1024 solved)Recurrent E2E, N = 136 0.0% (0 / 1024 solved)Recurrent E2E, N = 144 0.0% (0 / 1024 solved)Recurrent E2E, N = 152 0.0% (0 / 1024 solved)Recurrent E2E, N = 160 0.0% (0 / 1024 solved)Recurrent E2E, N = 168 0.0% (0 / 1024 solved)Recurrent E2E, N = 176 0.0% (0 / 1024 solved)Recurrent E2E, N = 184 0.0% (0 / 1024 solved)Recurrent E2E, N = 192 0.0% (0 / 1024 solved)Recurrent E2E, N = 200 0.0% (0 / 1024 solved)Recurrent E2E, N = 208 0.0% (0 / 1024 solved)Recurrent E2E, N = 216 0.0% (0 / 1024 solved)Recurrent E2E, N = 224 0.0% (0 / 1024 solved)Recurrent E2E, N = 232 0.0% (0 / 1024 solved)Recurrent E2E, N = 240 0.0% (0 / 1024 solved)Recurrent E2E, N = 248 0.0% (0 / 1024 solved)Recurrent E2E, N = 256 0.0% (0 / 1024 solved)Chain-of-Thought, N = 8 100.0% (1024 / 1024 solved)Chain-of-Thought, N = 16 100.0% (1024 / 1024 solved)Chain-of-Thought, N = 24 100.0% (1024 / 1024 solved)Chain-of-Thought, N = 32 100.0% (1024 / 1024 solved)Chain-of-Thought, N = 40 99.9% (1023 / 1024 solved)Chain-of-Thought, N = 48 99.5% (1019 / 1024 solved)Chain-of-Thought, N = 56 83.4% (854 / 1024 solved)Chain-of-Thought, N = 64 18.5% (189 / 1024 solved)Chain-of-Thought, N = 72 0.2% (2 / 1024 solved)Chain-of-Thought, N = 80 0.0% (0 / 1024 solved)Chain-of-Thought, N = 88 0.0% (0 / 1024 solved)Continuous LSS, N = 8 100.0% (1024 / 1024 solved)Continuous LSS, N = 16 99.8% (1022 / 1024 solved)Continuous LSS, N = 24 99.4% (1018 / 1024 solved)Continuous LSS, N = 32 98.4% (1008 / 1024 solved)Continuous LSS, N = 40 98.0% (1004 / 1024 solved)Continuous LSS, N = 48 95.7% (980 / 1024 solved)Continuous LSS, N = 56 93.1% (953 / 1024 solved)Continuous LSS, N = 64 89.1% (912 / 1024 solved)Continuous LSS, N = 72 88.1% (902 / 1024 solved)Continuous LSS, N = 80 84.2% (862 / 1024 solved)Continuous LSS, N = 88 79.0% (809 / 1024 solved)Continuous LSS, N = 96 73.4% (752 / 1024 solved)Continuous LSS, N = 104 68.9% (706 / 1024 solved)Continuous LSS, N = 112 62.7% (642 / 1024 solved)Continuous LSS, N = 120 59.4% (608 / 1024 solved)Continuous LSS, N = 128 54.9% (562 / 1024 solved)Continuous LSS, N = 136 50.1% (513 / 1024 solved)Continuous LSS, N = 144 43.8% (449 / 1024 solved)Continuous LSS, N = 152 41.4% (424 / 1024 solved)Continuous LSS, N = 160 34.7% (355 / 1024 solved)Continuous LSS, N = 168 33.5% (343 / 1024 solved)Continuous LSS, N = 176 29.2% (299 / 1024 solved)Continuous LSS, N = 184 25.1% (257 / 1024 solved)Continuous LSS, N = 192 22.9% (235 / 1024 solved)Continuous LSS, N = 200 21.6% (221 / 1024 solved)Continuous LSS, N = 208 18.0% (184 / 1024 solved)Continuous LSS, N = 216 15.5% (159 / 1024 solved)Continuous LSS, N = 224 13.2% (135 / 1024 solved)Continuous LSS, N = 232 12.7% (130 / 1024 solved)Continuous LSS, N = 240 9.7% (99 / 1024 solved)Continuous LSS, N = 248 9.0% (92 / 1024 solved)Continuous LSS, N = 256 7.8% (80 / 1024 solved)Self-Scheduled LSS, N = 8 99.3% (1017 / 1024 solved)Self-Scheduled LSS, N = 16 99.2% (1016 / 1024 solved)Self-Scheduled LSS, N = 24 99.0% (1014 / 1024 solved)Self-Scheduled LSS, N = 32 98.5% (1009 / 1024 solved)Self-Scheduled LSS, N = 40 98.2% (1006 / 1024 solved)Self-Scheduled LSS, N = 48 97.2% (995 / 1024 solved)Self-Scheduled LSS, N = 56 96.7% (990 / 1024 solved)Self-Scheduled LSS, N = 64 96.7% (990 / 1024 solved)Self-Scheduled LSS, N = 72 95.3% (976 / 1024 solved)Self-Scheduled LSS, N = 80 94.8% (971 / 1024 solved)Self-Scheduled LSS, N = 88 93.8% (961 / 1024 solved)Self-Scheduled LSS, N = 96 93.8% (960 / 1024 solved)Self-Scheduled LSS, N = 104 92.4% (946 / 1024 solved)Self-Scheduled LSS, N = 112 93.2% (954 / 1024 solved)Self-Scheduled LSS, N = 120 89.3% (914 / 1024 solved)Self-Scheduled LSS, N = 128 89.4% (915 / 1024 solved)Self-Scheduled LSS, N = 136 89.6% (917 / 1024 solved)Self-Scheduled LSS, N = 144 88.4% (905 / 1024 solved)Self-Scheduled LSS, N = 152 88.2% (903 / 1024 solved)Self-Scheduled LSS, N = 160 85.4% (874 / 1024 solved)Self-Scheduled LSS, N = 168 86.0% (881 / 1024 solved)Self-Scheduled LSS, N = 176 82.8% (848 / 1024 solved)Self-Scheduled LSS, N = 184 84.3% (863 / 1024 solved)Self-Scheduled LSS, N = 192 83.2% (852 / 1024 solved)Self-Scheduled LSS, N = 200 81.7% (837 / 1024 solved)Self-Scheduled LSS, N = 208 80.6% (825 / 1024 solved)Self-Scheduled LSS, N = 216 77.7% (796 / 1024 solved)Self-Scheduled LSS, N = 224 78.3% (802 / 1024 solved)Self-Scheduled LSS, N = 232 76.3% (781 / 1024 solved)Self-Scheduled LSS, N = 240 75.4% (772 / 1024 solved)Self-Scheduled LSS, N = 248 72.9% (747 / 1024 solved)Self-Scheduled LSS, N = 256 71.6% (733 / 1024 solved)Discrete LSS, N = 8 100.0% (1024 / 1024 solved)Discrete LSS, N = 16 100.0% (1024 / 1024 solved)Discrete LSS, N = 24 100.0% (1024 / 1024 solved)Discrete LSS, N = 32 100.0% (1024 / 1024 solved)Discrete LSS, N = 40 100.0% (1024 / 1024 solved)Discrete LSS, N = 48 100.0% (1024 / 1024 solved)Discrete LSS, N = 56 99.9% (1023 / 1024 solved)Discrete LSS, N = 64 99.8% (1022 / 1024 solved)Discrete LSS, N = 72 99.6% (1020 / 1024 solved)Discrete LSS, N = 80 99.4% (1018 / 1024 solved)Discrete LSS, N = 88 99.5% (1019 / 1024 solved)Discrete LSS, N = 96 99.5% (1019 / 1024 solved)Discrete LSS, N = 104 99.9% (1023 / 1024 solved)Discrete LSS, N = 112 99.1% (1015 / 1024 solved)Discrete LSS, N = 120 99.7% (1021 / 1024 solved)Discrete LSS, N = 128 99.6% (1020 / 1024 solved)Discrete LSS, N = 136 98.8% (1012 / 1024 solved)Discrete LSS, N = 144 98.7% (1011 / 1024 solved)Discrete LSS, N = 152 98.6% (1010 / 1024 solved)Discrete LSS, N = 160 99.0% (1014 / 1024 solved)Discrete LSS, N = 168 97.9% (1003 / 1024 solved)Discrete LSS, N = 176 97.7% (1000 / 1024 solved)Discrete LSS, N = 184 98.5% (1009 / 1024 solved)Discrete LSS, N = 192 98.0% (1004 / 1024 solved)Discrete LSS, N = 200 98.4% (1008 / 1024 solved)Discrete LSS, N = 208 98.4% (1008 / 1024 solved)Discrete LSS, N = 216 97.8% (1001 / 1024 solved)Discrete LSS, N = 224 97.3% (996 / 1024 solved)Discrete LSS, N = 232 97.5% (998 / 1024 solved)Discrete LSS, N = 240 97.2% (995 / 1024 solved)Discrete LSS, N = 248 96.5% (988 / 1024 solved)Discrete LSS, N = 256 96.8% (991 / 1024 solved)Discrete LSS + EC, N = 8 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 16 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 24 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 32 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 40 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 48 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 56 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 64 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 72 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 80 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 88 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 96 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 104 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 112 99.9% (1023 / 1024 solved)Discrete LSS + EC, N = 120 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 128 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 136 99.9% (1023 / 1024 solved)Discrete LSS + EC, N = 144 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 152 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 160 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 168 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 176 99.9% (1023 / 1024 solved)Discrete LSS + EC, N = 184 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 192 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 200 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 208 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 216 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 224 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 232 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 240 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 248 100.0% (1024 / 1024 solved)Discrete LSS + EC, N = 256 100.0% (1024 / 1024 solved)Discrete LSS + ECDiscrete LSSSelf-Scheduled LSSContinuous LSSChain-of-ThoughtFeedforward E2ERecurrent E2E
Generalization from N ≤ 32 to N = 256, best of five seeds.

Takeaways

Together, these mechanisms support scalable and robust iterative computation in latent space, enabling the model to scale its effective computational depth in proportion to input complexity. Unlike token-level chain-of-thought, which relies on explicit reasoning traces, latent recurrence reasons internally and avoids autoregressive token-generation constraints. The paper also includes a mechanistic interpretability analysis, which reveals how recurrence, a depth-supervised computation schedule, and discretization enable this generalization, what computational structure the model learns, and why this structure generalizes robustly.

Related
PaperThis page

Unlocking OOD Generalization via Latent Recurrence

transformersarchitecturesinductive biasesgeneralizationreasoning

Four architectural mechanisms that let Transformers learn algorithms that scale, on circuits several times larger than those seen in training.

Cite
@article{altabaa2025unlocking,
  title={Unlocking Out-of-Distribution Generalization in Transformers via Recursive Latent Space Reasoning},
  author={Awni Altabaa and Siyu Chen and John Lafferty and Zhuoran Yang},
  year={2025},
  journal={arXiv preprint arXiv:2510.14095},
  eprint={2510.14095},
  archivePrefix={arXiv},
  primaryClass={cs.LG},
  url={https://arxiv.org/abs/2510.14095},
}