Introduction
Recent advances in visual generative models have sparked growing interest in generative visual reasoning, where models plan and reason directly in image space [59 , 32 , 60 ] . This paradigm is natural for spatial planning, combinatorial optimization, and structured rendering [29 , 17 ] . Intuitively, flow matching [42 , 43 ] is well suited to this setting: it turns noise into an image through K K K evaluations of a velocity model, providing K K K sequential rounds for reasoning to unfold. He et al. [29 ] put this intuition into practice, solving visual reasoning tasks via flow-matching image generation.
However, in this work we show that this apparent reasoning depth is an illusion. Through circuit complexity analysis, we find that the expressive power of vanilla flow matching (VANILLAFM) does not grow with the number of sampling steps K K K . The intuition lies in how flow matching generates images: the sampling process discretizes an ordinary differential equation (ODE), making only a small incremental update of scale O ( 1 / K ) O(1/K) O ( 1/ K ) to its state at each step. Because the full trajectory is governed by this continuous ODE, we show that it can be simulated by an alternative ODE solver in a constant number of steps, regardless of how large K K K is. Consequently, running VANILLAFM with a constant-depth backbone leaves its expressive power collapsed to constant reasoning depth (§ 3.1 ).
To overcome this barrier, we uncover a previously unrecognized role of self-conditioning [12 ] . In flow matching with self-conditioning (SELFCONDFM), the model still simulates the ODE, but its input is augmented with a prediction of its own sampling trajectory’s endpoint, i.e., an estimate of the final image (§ 3.2 ). This endpoint prediction acts as an internal scratchpad on which the model records and refines intermediate partial solutions. Unlike the continuous state, which changes only by O ( 1 / K ) O(1/K) O ( 1/ K ) , this scratchpad can change abruptly between steps. Therefore, the resulting trajectory can no longer be simulated by an ODE solver in a constant number of steps. This prevents the collapse of expressive power, enabling deep sequential reasoning (§ 3.3 ).
We establish this advantage of self-conditioning both theoretically and empirically. Theoretically, we prove that self-conditioning can lift the expressive power of flow matching from constant-depth circuits to space-bounded Turing machines (§ 3 ). Empirically, controlled experiments on diverse synthetic tasks demonstrate that self-conditioning substantially improves the performance of flow matching (Figure 1 ), and its advantage also extends to broader visual-reasoning tasks (§ 4 ). Our contributions are as follows:
Figure 1. Controlled experiments on three synthetic tasks: line tracing, long multiplication, and long text rendering (§ 4.2 ). The top row shows an example input and target output for each task, and the bottom row plots performance against training FLOPs. Across all three tasks, self-conditioning improves the performance of flow matching by large margins.
Self-conditioning as an internal scratchpad. We reveal a previously unrecognized role of self-conditioning in generative reasoning: rather than serving merely as an empirical regularizer, its endpoint prediction provides an internal scratchpad that carries rich information, enabling deep sequential computation across sampling steps.
Circuit complexity separation. We formalize this mechanism through circuit complexity analysis. We prove that as long as the model outputs satisfy certain mild regularity conditions, VANILLAFM with an A C 0 \mathrm{AC}^{0} AC 0 or T C 0 \mathrm{TC}^{0} TC 0 backbone collapses to constantly many sequential model evaluations, deciding only languages in the backbone’s circuit complexity class regardless of the number of sampling steps (§ 3.1 ). In contrast, SELFCONDFM enables an A C 0 \mathrm{AC}^{0} AC 0 model to simulate space-bounded Turing machines, deciding P \mathrm{P} P /poly with polynomial steps and P S P A C E \mathrm{PSPACE} PSPACE /poly with at most exponential steps (§ 3.3 ). These results extend to more general settings (§ 3.4 ).
Empirical validation. We support these theoretical results through controlled experiments on three synthetic tasks with known circuit complexity: N C 1 \mathrm{NC}^{1} NC 1 -complete line tracing, and T C 0 \mathrm{TC}^{0} TC 0 -complete long multiplication and long text rendering (§ 4.2 ). Under matched training FLOPs, SELFCONDFM outperforms VANILLAFM by large margins (Figure 1 ). Moreover, in agreement with our theory, SELFCONDFM keeps improving with more sampling steps, whereas VANILLAFM saturates early (Figure 3 ). Self-conditioning also brings consistent improvements on five broader visual-reasoning tasks from He et al. [29 ] (§ 4.3 ).
Figure 3. SELFCONDFM’s performance scales strongly with NFE, while that of VANILLAFM saturates early.
Preliminaries
We first review flow matching and circuit complexity (§ 2.1 ), then formalize the modeling conventions and regularity conditions underlying our theoretical analysis (§ 2.2 ).
Background
Flow matching. Flow matching [42 , 43 ] is a generative modeling framework. Given a data distribution p d a t a p_{\mathrm{data}} p data and a prior p p r i o r p_{\mathrm{prior}} p prior , we define the probability path p t p_t p t as the distribution of x ~ t : = t x d a t a + ( 1 − t ) ϵ \tilde{x}_t := t x_{\mathrm{data}} + (1-t)\epsilon x ~ t := t x data + ( 1 − t ) ϵ for independent random vectors x d a t a ∼ p d a t a x_{\mathrm{data}} \sim p_{\mathrm{data}} x data ∼ p data and ϵ ∼ p p r i o r \epsilon\sim p_{\mathrm{prior}} ϵ ∼ p prior . The velocity field that generates this path is given by v ( x , t ) : = E ( x d a t a , ϵ ) ∼ p ( ⋅ ∣ x ~ t = x ) [ x d a t a − ϵ ] v(x,t) := \mathbb{E}_{(x_{\mathrm{data}},\epsilon)\sim p(\cdot\mid\tilde{x}_t=x)}[x_{\mathrm{data}}-\epsilon] v ( x , t ) := E ( x data , ϵ ) ∼ p ( ⋅ ∣ x ~ t = x ) [ x data − ϵ ] . Flow matching aims to find a parameterized field u θ ( x , t ) u_\theta(x,t) u θ ( x , t ) to approximate v ( x , t ) v(x,t) v ( x , t ) , so that the solution of the ODE d x d t = u θ ( x , t ) \frac{dx}{dt}=u_\theta(x,t) d t d x = u θ ( x , t ) with x ∣ t = 0 ∼ p p r i o r x|_{t=0}\sim p_{\mathrm{prior}} x ∣ t = 0 ∼ p prior follows the marginals p t p_t p t for t ∈ [ 0 , 1 ] t\in[0,1] t ∈ [ 0 , 1 ] .
Flow-matching models are trained by minimizing the conditional flow-matching loss J C F M : = E t ∼ U [ 0 , 1 ] , ϵ ∼ p p r i o r , x d a t a ∼ p d a t a ∥ u θ ( x ~ t , t ) − ( x d a t a − ϵ ) ∥ 2 2 J_{\mathrm{CFM}} := \mathbb{E}_{t\sim U[0,1],\epsilon\sim p_{\mathrm{prior}},x_{\mathrm{data}}\sim p_{\mathrm{data}}}\lVert u_\theta(\tilde{x}_t,t)-(x_{\mathrm{data}}-\epsilon)\rVert_2^2 J CFM := E t ∼ U [ 0 , 1 ] , ϵ ∼ p prior , x data ∼ p data ∥ u θ ( x ~ t , t ) − ( x data − ϵ ) ∥ 2 2 . Lipman et al. [42 ] prove that minimizing J C F M J_{\mathrm{CFM}} J CFM is equivalent to minimizing E t , ϵ , x d a t a ∥ u θ ( x ~ t , t ) − v ( x ~ t , t ) ∥ 2 2 \mathbb{E}_{t,\epsilon,x_{\mathrm{data}}}\lVert u_\theta(\tilde{x}_t,t)-v(\tilde{x}_t,t)\rVert_2^2 E t , ϵ , x data ∥ u θ ( x ~ t , t ) − v ( x ~ t , t ) ∥ 2 2 , so the trained model regresses onto the target field v v v . At inference time, a sample is generated by solving the ODE with a numerical scheme such as Euler’s method [25 , 43 , 19 ] .
For conditional generation, such as text-to-image and image editing, the model is conditioned on context c t x \mathrm{ctx} ctx , with p d a t a p_{\mathrm{data}} p data now a joint distribution over pairs ( c t x , x d a t a ) (\mathrm{ctx},x_{\mathrm{data}}) ( ctx , x data ) . This amounts to learning a velocity field u θ ( x , t ; c t x ) u_\theta(x,t;\mathrm{ctx}) u θ ( x , t ; ctx ) minimizing J c o n d : = E t , ϵ , ( c t x , x d a t a ) ∥ u θ ( x ~ t , t ; c t x ) − ( x d a t a − ϵ ) ∥ 2 2 J_{\mathrm{cond}} := \mathbb{E}_{t,\epsilon,(\mathrm{ctx},x_{\mathrm{data}})}\lVert u_\theta(\tilde{x}_t,t;\mathrm{ctx})-(x_{\mathrm{data}}-\epsilon)\rVert_2^2 J cond := E t , ϵ , ( ctx , x data ) ∥ u θ ( x ~ t , t ; ctx ) − ( x data − ϵ ) ∥ 2 2 .
Circuit complexity. We measure the expressive power of a model by the complexity of the languages it can decide. A language is a subset L ⊆ { 0 , 1 } ∗ \mathcal{L}\subseteq\{0,1\}^* L ⊆ { 0 , 1 } ∗ , and to decide L \mathcal{L} L is to determine whether a given input w ∈ { 0 , 1 } m w\in\{0,1\}^m w ∈ { 0 , 1 } m belongs to L \mathcal{L} L . We abstract the model as a circuit family ( C m ) m ≥ 1 (C_m)_{m\geq1} ( C m ) m ≥ 1 , where each C m C_m C m is a Boolean circuit that handles inputs of length m m m [4 ] . The size of a circuit is the number of gates and its depth is the length of the longest input-to-output path. Depth measures sequential computation, whereas size measures total work.
For k ≥ 0 k\geq0 k ≥ 0 , N C k \mathrm{NC}^k NC k , A C k \mathrm{AC}^k AC k , and T C k \mathrm{TC}^k TC k denote the non-uniform classes of languages decided by polynomial-size, depth-O ( log k m ) O(\log^k m) O ( log k m ) circuit families with bounded-fan-in Boolean, unbounded-fan-in Boolean, and unbounded-fan-in Boolean plus MAJORITY gates, respectively. We call circuits of unbounded-fan-in AND, OR, NOT, and MAJORITY gates majority circuits . The class N C : = ⋃ k ≥ 0 N C k \mathrm{NC}:=\bigcup_{k\geq0}\mathrm{NC}^k NC := ⋃ k ≥ 0 NC k comprises the efficiently parallelizable problems. The advice classes P/poly and PSPACE/poly consist of languages decided by polynomial-time and polynomial-space Turing machines, respectively, with polynomial-length advice depending only on the input length. Standard relations among these classes, such as N C ⊆ P / p o l y ⊆ P S P A C E / p o l y \mathrm{NC}\subseteq\mathrm{P/poly}\subseteq\mathrm{PSPACE/poly} NC ⊆ P/poly ⊆ PSPACE/poly , are collected in Appendix § 9 .§ 1 .
These classes bound the power of common neural network architectures: a constant-depth log-precision transformer without chain-of-thought (CoT) lies in T C 0 \mathrm{TC}^0 TC 0 [48 , 46 , 15 ] , and variants such as unique hard-attention transformers [27 ] and constant-precision transformers [41 ] lie in A C 0 \mathrm{AC}^0 AC 0 instead. Surpassing these bounds requires more layers or, as with CoT, additional sequential calls [41 ] . This motivates studying whether flow matching, which sequentially invokes such a network many times, extends what the model can decide.
Theoretical Setup and Notation
To formally analyze the expressive power of flow matching, we establish our theoretical setup below, adapting the flow-matching framework into a concrete computational model.
Modeling flow matching. We consider flow matching under finite-precision arithmetic with b b b fractional bits. The representable numbers form F b : = { 2 − b k : k ∈ Z } F_b := \{2^{-b}k:k\in\mathbb{Z}\} F b := { 2 − b k : k ∈ Z } . All arithmetic operations are evaluated over the reals and then rounded coordinate-wise via round b ( x ) : = 2 − b ⌊ 2 b x + 1 / 2 ⌋ \operatorname{round}_b(x):=2^{-b}\lfloor2^b x+1/2\rfloor round b ( x ) := 2 − b ⌊ 2 b x + 1/2 ⌋ .
A model u u u is a map acting on binary encodings of arbitrary length. It receives an encoded triple ( x , t , c t x ) ∈ F b n × F b × F b ∗ (x,t,\mathrm{ctx})\in F_b^n\times F_b\times F_b^* ( x , t , ctx ) ∈ F b n × F b × F b ∗ , where n n n , b b b , and the length of c t x \mathrm{ctx} ctx are non-negative integers read from the encoding, and outputs the velocity u ( x , t ; c t x ) ∈ F b n u(x,t;\mathrm{ctx}) \in\mathbb{F}_b^n u ( x , t ; ctx ) ∈ F b n . On an input problem w ∈ { 0 , 1 } m w \in\{0,1\}^m w ∈ { 0 , 1 } m , vanilla flow matching V A N I L L A F M ( w ; u , K ) \mathrm{VANILLAFM}(w;u,K) VANILLAFM ( w ; u , K ) sets c t x = w \mathrm{ctx}=w ctx = w and runs the Euler method for K K K steps, starting from x ~ 0 ∼ p p r i o r \tilde{x}_0 \sim p_{\mathrm{prior}} x ~ 0 ∼ p prior , where p p r i o r p_{\mathrm{prior}} p prior is an arbitrary prior distribution whose support we additionally restrict to [ − 1 , 1 ] n [-1,1]^n [ − 1 , 1 ] n (Algorithm 1).
Model regularity and acceptance. A model u u u is B B B -bounded if ∥ u ( x , t ; c t x ) ∥ ∞ ≤ B \|u(x,t;\mathrm{ctx})\|_\infty\le B ∥ u ( x , t ; ctx ) ∥ ∞ ≤ B for all x ∈ F b n x \in\mathbb{F}_b^n x ∈ F b n , t ∈ [ 0 , 1 ] ∩ F b t \in[0,1]\cap\mathbb{F}_b t ∈ [ 0 , 1 ] ∩ F b , and c t x ∈ F b ∗ \mathrm{ctx} \in\mathbb{F}_b^{*} ctx ∈ F b ∗ , and L L L -Lipschitz continuous if ∥ u ( x , t ; c t x ) − u ( x ′ , t ; c t x ′ ) ∥ ∞ ≤ L max { ∥ x − x ′ ∥ ∞ , ∥ c t x − c t x ′ ∥ ∞ } \|u(x,t;\mathrm{ctx})-u(x',t;\mathrm{ctx}')\|_\infty\le L\max\{\|x-x'\|_\infty,\|\mathrm{ctx}-\mathrm{ctx}'\|_\infty\} ∥ u ( x , t ; ctx ) − u ( x ′ , t ; ctx ′ ) ∥ ∞ ≤ L max { ∥ x − x ′ ∥ ∞ , ∥ ctx − ctx ′ ∥ ∞ } for all x , x ′ ∈ F b n x,x' \in\mathbb{F}_b^n x , x ′ ∈ F b n , t ∈ [ 0 , 1 ] ∩ F b t \in[0,1]\cap\mathbb{F}_b t ∈ [ 0 , 1 ] ∩ F b , and equal-length c t x , c t x ′ ∈ F b ∗ \mathrm{ctx},\mathrm{ctx}' \in\mathbb{F}_b^{*} ctx , ctx ′ ∈ F b ∗ . The Lipschitz condition is joint in ( x , c t x ) (x,\mathrm{ctx}) ( x , ctx ) and uniform over t t t . For simplicity we measure Lipschitzness in the ℓ ∞ \ell_\infty ℓ ∞ norm, but the analysis carries over to any ℓ p \ell_p ℓ p norm; see §3.4.
Given an inference algorithm A \mathcal{A} A and a constant c > 0 c>0 c > 0 independent of m m m , we say that u u u accepts a language L \mathcal{L} L with margin c c c under A \mathcal{A} A if, for every m m m and w ∈ { 0 , 1 } m w \in\{0,1\}^m w ∈ { 0 , 1 } m , the output x K = A ( w ; u , K ) x_K=\mathcal{A}(w;u,K) x K = A ( w ; u , K ) satisfies, with probability 1 over the randomness in A \mathcal{A} A , ( x K ) j ≥ c (x_K)_j \ge c ( x K ) j ≥ c for all coordinates j j j when w ∈ L w \in\mathcal{L} w ∈ L and ( x K ) j ≤ − c (x_K)_j \le-c ( x K ) j ≤ − c for all j j j when w ∉ L w \notin\mathcal{L} w ∈ / L . Acceptance with a margin represents a robust decision, in which every output coordinate is separated from the threshold 0 by at least c c c . For asymptotic analysis, the precision b b b , state dimension n n n , and step count K K K may grow with the problem size m m m .
Self-Conditioning Increases Expressive Power
In this section, we first show that, under the mild regularity conditions below, vanilla flow-matching inference is confined to constant-depth circuit classes (§3.1), which restricts the problems it can solve. We then consider self-conditioning (§3.2), a simple mechanism that allows the same models to attain substantially greater expressive power (§3.3).
Vanilla Flow Matching Is Confined to Constant Depth
Although VANILLAFM makes K K K sequential model evaluations, as long as the model outputs satisfy certain mild regularity conditions, this sequential depth is an illusion : the same decision can be reached in O ( L ) O(L) O ( L ) sequential rounds of parallel evaluations of the model, regardless of how large K K K is. When L L L is a constant, these are constantly many rounds, so the decided language stays within the model’s own complexity class. Below we view K K K as a function of the problem size m m m , and state the theorem under the setup of §2.2.
Theorem 1 (Upper bounds on the expressiveness of vanilla flow matching). Let k ≥ 0 k \ge0 k ≥ 0 be a constant integer, D ∈ { N C k + 1 , A C k , T C k } \mathrm{D} \in\{\mathrm{NC}^{k+1},\mathrm{AC}^{k},\mathrm{TC}^{k}\} D ∈ { NC k + 1 , AC k , TC k } be a circuit complexity class, u u u be a model that can be computed by circuits in D \mathrm{D} D , and L \mathcal{L} L be any language that can be accepted by u u u with margin 1 under VANILLAFM. Assume that for some constants B > 0 B>0 B > 0 and L ≥ 1 L \ge1 L ≥ 1 independent of m m m , the model u u u is B B B -bounded and L L L -Lipschitz continuous. Then as long as the state dimension satisfies n = poly ( m ) n=\operatorname{poly}(m) n = poly ( m ) , and the number of fractional bits satisfies
( 1 + Ω ( 1 ) ) log 2 K ( m ) ≤ b ( m ) ≤ O ( log m ) , (1) (1+\Omega(1))\log_2 K(m) \le b(m) \le O(\log m), \tag*{(1)} ( 1 + Ω ( 1 )) log 2 K ( m ) ≤ b ( m ) ≤ O ( log m ) , (1) we have L ∈ D \mathcal{L}\in\mathrm{D} L ∈ D .
See Appendix A.2.4 for the proof. The case k = 0 k=0 k = 0 recovers the canonical constant-depth classes: under vanilla flow matching, log-precision softmax-attention transformers in T C 0 \mathrm{TC}^{0} TC 0 [48 , 46 , 15 ] remain in T C 0 \mathrm{TC}^{0} TC 0 , and the unique hard-attention and constant-precision variants in A C 0 \mathrm{AC}^{0} AC 0 [27 , 41 ] remain in A C 0 \mathrm{AC}^{0} AC 0 . Thus, ODE iteration alone adds no expressive power in this setting.
The core technique behind the proof is a parallel Picard iteration [25 ] . The ODE under which VANILLAFM samples can amplify an initial error by a factor of e L e^L e L . A naive simulation that reruns the Euler method with fewer steps to reproduce the full K K K -step trajectory therefore takes e O ( L ) e^{O(L)} e O ( L ) steps to reach constant accuracy. We instead iteratively update all K K K positions in parallel using the previous iterate, making the propagated error decay at a factorial rate across rounds up to an additive floor, so that O ( L ) O(L) O ( L ) rounds suffice. This yields the following lemma.
Lemma 1. Under the same setup as Theorem 1, assume that u u u is B B B -bounded for a constant B > 0 B>0 B > 0 and L ( m ) L(m) L ( m ) -Lipschitz continuous with L ( m ) ≥ 1 L(m)\ge1 L ( m ) ≥ 1 . Then there exist a constant c 0 = c 0 ( B ) > 0 c_0=c_0(B)>0 c 0 = c 0 ( B ) > 0 ,
Algorithm 1 Vanilla Flow Matching
1: function VANILLAFM($w; u, K$)
2: $t_i \leftarrow \operatorname{round}_b(i/K)$ for $i = 0, \ldots, K$
3: Sample $\tilde{x}_0 \sim p_{\mathrm{prior}}$; $x_0 \leftarrow \operatorname{round}_b(\tilde{x}_0)$
4:
5: for $i = 0, \ldots, K - 1$ do
6: $v_i \leftarrow u(x_i, t_i; w)$
7: $x_{i+1} \leftarrow x_i + (t_{i+1} - t_i) \cdot v_i$
8:
9: end for
10: return $x_K$
11: end function
Algorithm 2 Self-Conditioning Flow Matching
1: function SELFCONDFM($w; u, K$)
2: $t_i \leftarrow \operatorname{round}_b(i/K)$ for $i = 0, \ldots, K$
3: Sample $\tilde{x}_0 \sim p_{\mathrm{prior}}$; $x_0 \leftarrow \operatorname{round}_b(\tilde{x}_0)$
4: $z_0 \leftarrow \mathbf{0}$
5: for $i = 0, \ldots, K - 1$ do
6: $v_i \leftarrow u(x_i, t_i; \operatorname{concat}(w, z_i))$
7: $x_{i+1} \leftarrow x_i + (t_{i+1} - t_i) \cdot v_i$
8: $z_{i+1} \leftarrow x_i + (1 - t_i) \cdot v_i$
9: end for
10: return $x_K$
11: end function
independent of m m m , and an inference algorithm that runs for O ( L ( m ) ) O(L(m)) O ( L ( m )) iterations, making at most K ( m ) K(m) K ( m ) parallel calls to u u u per iteration, such that as long as the number of fractional bits satisfies
b ( m ) ≥ log 2 K ( m ) + ( log 2 e ) L ( m ) + c 0 for every m , (2) b(m) \ge\log_2 K(m) + (\log_2 e)L(m) + c_0 \qquad\text{for every }m, \tag*{(2)} b ( m ) ≥ log 2 K ( m ) + ( log 2 e ) L ( m ) + c 0 for every m , (2)
u u u accepts L \mathcal{L} L with margin 1 / 2 1/2 1/2 under that algorithm.
See Appendix § 9 .§ 2.2 for the proof. For constant L L L , these are constantly many rounds, and the arithmetic accompanying the model calls is shallow enough to be absorbed into the model’s own circuit class, yielding Theorem 1. The O ( L ) O(L) O ( L ) bound also lets us extend the analysis to a growing L L L (§ 3.4 ).
Self-Conditioning
The expressivity bottleneck in Theorem 1 stems from how information flows along the continuous ODE: consecutive steps in VANILLAFM transfer information solely through the state x i x_i x i , which changes only by a small increment scaled by a step size of O ( 1 / K ) O(1/K) O ( 1/ K ) : x i + 1 = x i + ( t i + 1 − t i ) v i x_{i+1} = x_i + (t_{i+1} - t_i)v_i x i + 1 = x i + ( t i + 1 − t i ) v i . This small ODE update is what allows the Picard iteration in Lemma 1 to compress all K K K sampling steps into O ( L ) O(L) O ( L ) iterations. One potential way to overcome this bottleneck is to make a larger update per step, for example, by introducing an extra input component that can change abruptly between sampling steps.
We find that a simple mechanism achieves this: self-conditioning (Chen et al., [12 ] ), originally proposed for discrete diffusion models and later adapted to other settings ([56 , 54 , 24 ] ). As stated in Algorithm 2, self-conditioning feeds the model an additional endpoint prediction z i ∈ F b n z_i \in\mathbb{F}_b^n z i ∈ F b n which is a linear approximation of x d a t a x_{\mathrm{data}} x data , obtained by extrapolating along the previous velocity:
z i : = x i − 1 + ( 1 − t i − 1 ) v i − 1 for i ≥ 1 , with z 0 = 0 n . z_i := x_{i-1} + (1 - t_{i-1})v_{i-1} \text{ for } i \ge1, \text{ with } z_0 = \mathbf{0}^n. z i := x i − 1 + ( 1 − t i − 1 ) v i − 1 for i ≥ 1 , with z 0 = 0 n .
For training, we use a two-pass heuristic inspired by prior work (Chen et al., [12 ] ). Given ( w , x d a t a ) ∼ p d a t a (w, x_{\mathrm{data}}) \sim p_{\mathrm{data}} ( w , x data ) ∼ p data , t ∼ U [ 0 , 1 ] t \sim\mathcal{U}[0,1] t ∼ U [ 0 , 1 ] , ϵ ∼ p p r i o r \epsilon\sim p_{\mathrm{prior}} ϵ ∼ p prior , and x ~ t = t x d a t a + ( 1 − t ) ϵ \tilde{x}_t = tx_{\mathrm{data}} + (1-t)\epsilon x ~ t = t x data + ( 1 − t ) ϵ , let
v ( 1 ) : = u θ ( x ~ t , t ; concat ( w , 0 n ) ) , v ( 2 ) : = u θ ( x ~ t , t ; concat ( w , sg [ x ~ t + ( 1 − t ) v ( 1 ) ] ) ) . v^{(1)} := u_\theta(\tilde{x}_t, t; \operatorname{concat}(w, \mathbf{0}^n)), \qquad v^{(2)} := u_\theta(\tilde{x}_t, t; \operatorname{concat}(w, \operatorname{sg}[\tilde{x}_t + (1-t)v^{(1)}])). v ( 1 ) := u θ ( x ~ t , t ; concat ( w , 0 n )) , v ( 2 ) := u θ ( x ~ t , t ; concat ( w , sg [ x ~ t + ( 1 − t ) v ( 1 ) ])) .
where sg [ ⋅ ] \operatorname{sg}[\cdot] sg [ ⋅ ] stops the gradient. The first pass imitates the initial sampling step, at which z 0 = 0 n z_0 = \mathbf{0}^n z 0 = 0 n , and the second imitates later steps. Both passes are weighted equally via the following objective:
J S C : = 1 2 E t , ϵ , ( w , x d a t a ) [ ∥ v ( 1 ) − ( x d a t a − ϵ ) ∥ 2 2 + ∥ v ( 2 ) − ( x d a t a − ϵ ) ∥ 2 2 ] . \mathcal{J}_{\mathrm{SC}} := \frac{1}{2}\mathbb{E}_{t,\epsilon,(w,x_{\mathrm{data}})}\left[\left\|v^{(1)} - (x_{\mathrm{data}} - \epsilon)\right\|_2^2 + \left\|v^{(2)} - (x_{\mathrm{data}} - \epsilon)\right\|_2^2\right]. J SC := 2 1 E t , ϵ , ( w , x data ) [ v ( 1 ) − ( x data − ϵ ) 2 2 + v ( 2 ) − ( x data − ϵ ) 2 2 ] .
Consequently, by training on predictions that closely recover z i z_i z i , the model learns to leverage the actual z i z_i z i generated in the preceding sampling step, requiring only one extra forward pass during training. Figure 2 provides an overview of the mechanism.
Figure 2. Overview of self-conditioning. Each prediction z i + 1 z_{i+1} z i + 1 is obtained by extrapolating the state x i x_i x i along its velocity v i v_i v i to t = 1 t=1 t = 1 .
Self-conditioning in practice. Self-conditioning is particularly natural for visual-space reasoning: the fed-back prediction z i z_i z i approximates the clean sample x d a t a x_{\mathrm{data}} x data and is therefore near the target data manifold in image space. Modern image generation models already accept images as conditions [9 , 67 ] , so it is reasonable to expect knowledge from image-conditioned pretraining to transfer to self-conditioning, even though that pretraining involves no self-conditioning. The initialization z 0 = 0 n z_0 = 0^n z 0 = 0 n is a placeholder for cleaner theoretical analysis. In actual implementation, for better efficiency, it is omitted both in the first training pass v ( 1 ) = u θ ( x ~ t , t ; w ) v^{(1)} = u_\theta(\tilde{x}_t,t;w) v ( 1 ) = u θ ( x ~ t , t ; w ) and at the first sampling step, without affecting empirical performance.
Self-Conditioning Reaches PSPACE/poly
We now formally show that self-conditioning expands the expressiveness of flow matching. Since the extra input z i + 1 z_{i+1} z i + 1 is a fresh prediction rather than an O ( 1 / K ) O(1/K) O ( 1/ K ) increment on x i x_i x i , it is unconstrained by the step size and can change abruptly between sampling steps. Thus, the convergence behind Lemma 1 is lost, and the constant-depth barrier disappears altogether: constant-depth models with self-conditioning can decide P / p o l y \mathrm{P}/\mathrm{poly} P / poly in polynomially many steps and P S P A C E / p o l y \mathrm{PSPACE}/\mathrm{poly} PSPACE / poly in at most exponentially many steps.
Theorem 2 (Lower bounds on the expressiveness of flow matching with self-conditioning). For any language L \mathcal{L} L in P S P A C E / p o l y \mathrm{PSPACE}/\mathrm{poly} PSPACE / poly , there exists a model u u u that accepts L \mathcal{L} L with margin 1 1 1 under S E L F C O N D F M \mathrm{SELFCONDFM} SELFCONDFM and satisfies the following conditions: (a) u u u can be computed by A C 0 \mathrm{AC}^0 AC 0 circuits; (b) u u u is 4 4 4 -bounded and 8 8 8 -Lipschitz continuous; (c) b = O ( log m ) b = O(\log m) b = O ( log m ) , n = poly ( m ) n = \operatorname{poly}(m) n = poly ( m ) , K ≤ 2 poly ( m ) K \le2^{\operatorname{poly}(m)} K ≤ 2 poly ( m ) . If moreover L ∈ P / p o l y \mathcal{L} \in\mathrm{P}/\mathrm{poly} L ∈ P / poly , then the same result holds with (1) satisfied.
The proof makes the sampler simulate a Turing machine with advice. The prediction z i z_i z i holds the machine’s tape and state, and each model call advances the machine by one step, so K K K calls run the machine for Ω ( K ) \Omega(K) Ω ( K ) steps. See Appendix § 9 .§ 3.2 for the construction.
In the P / p o l y \mathrm{P}/\mathrm{poly} P / poly case, all the regularity hypotheses of Theorem 1 are retained, so the two theorems concern the same model class and the gap comes from the inference algorithm alone. For D ∈ { A C 0 , T C 0 } \mathrm{D} \in\{\mathrm{AC}^0,\mathrm{TC}^0\} D ∈ { AC 0 , TC 0 } , the two samplers therefore separate across the barrier P / p o l y ∖ D \mathrm{P}/\mathrm{poly} \setminus\mathrm{D} P / poly ∖ D : given any language L ∈ P / p o l y ∖ D \mathcal{L} \in\mathrm{P}/\mathrm{poly} \setminus\mathrm{D} L ∈ P / poly ∖ D , Theorem 2 supplies an A C 0 \mathrm{AC}^0 AC 0 model accepting it under S E L F C O N D F M \mathrm{SELFCONDFM} SELFCONDFM , whereas Theorem 1 leaves no D \mathrm{D} D model satisfying its hypotheses capable of accepting it under V A N I L L A F M \mathrm{VANILLAFM} VANILLAFM . For D = A C 0 \mathrm{D} = \mathrm{AC}^0 D = AC 0 , the separation always holds since A C 0 ⊊ T C 0 \mathrm{AC}^0 \subsetneq\mathrm{TC}^0 AC 0 ⊊ TC 0 [22 ] ; for D = T C 0 \mathrm{D} = \mathrm{TC}^0 D = TC 0 , it holds under the conjecture T C 0 ⊊ N C 1 \mathrm{TC}^0 \subsetneq\mathrm{NC}^1 TC 0 ⊊ NC 1 [62 ] , which implies that T C 0 ⊊ P / p o l y \mathrm{TC}^0 \subsetneq\mathrm{P}/\mathrm{poly} TC 0 ⊊ P / poly .
Extensions
Beyond the main results above, the analysis extends to more general settings. Lemma 1 directly implies an N C \mathrm{NC} NC upper bound for V A N I L L A F M \mathrm{VANILLAFM} VANILLAFM when the Lipschitz constant L L L grows as L ( m ) = poly ( log m ) L(m) = \operatorname{poly}(\log m) L ( m ) = poly ( log m ) , or T C k \mathrm{TC}^k TC k upper bounds when further L = O ( log k m ) L = O(\log^k m) L = O ( log k m ) for any constant integer k ≥ 0 k \ge0 k ≥ 0 (Appendix § 10 .§ 1 ). Restricting u u u to be Lipschitz continuous under ℓ p \ell_p ℓ p norms rather than ℓ ∞ \ell_\infty ℓ ∞ norms preserves both Theorem 1 and Theorem 2 (Appendix § 10 .§ 2 ). Replacing the Euler method with any fixed explicit Runge–Kutta method [25 ] whose nodes lie in [ 0 , 1 ] [0,1] [ 0 , 1 ] , such as Heun’s method [35 ] , leaves the asymptotic results for V A N I L L A F M \mathrm{VANILLAFM} VANILLAFM unchanged (Appendix § 10 .§ 3 ).
On the other hand, the O ( L ( m ) ) O(L(m)) O ( L ( m )) bound of Lemma 1 is tight with respect to circuit depth: any polynomial-size majority circuit of depth d d d can be simulated under V A N I L L A F M \mathrm{VANILLAFM} VANILLAFM in O ( d ) O(d) O ( d ) sequential rounds by an O ( d ) O(d) O ( d ) -Lipschitz continuous model u u u computed by T C 0 \mathrm{TC}^0 TC 0 circuits. The bound of Lemma 1 therefore cannot be improved to o ( L ( m ) ) o(L(m)) o ( L ( m )) rounds of the same form unless the depth hierarchy for polynomial-size majority circuits collapses (Appendix § 10 .§ 4 ).
Experiments
The analysis in §3 establishes an expressivity separation under the stated assumptions: S E L F C O N D F M \mathrm{SELFCONDFM} SELFCONDFM can decide languages beyond the reach of V A N I L L A F M \mathrm{VANILLAFM} VANILLAFM . Whether models trained on finite data realize this expressive advantage remains an empirical question. Therefore, we conduct controlled experiments to empirically validate the expressivity separation (§4.2). We further extend the evaluation to the five structured visual-reasoning tasks used by He et al. [29 ] through controlled comparisons and larger-scale experiments (§ 4.3 ). Finally, we provide supporting analyses that assess the applicability of our theory to trained models and characterize the inference behavior of VANILLAFM and SELFCONDFM (§ 4.4 ).
Experimental Setup
Within each task, VANILLAFM and SELFCONDFM share the same backbone architecture, training dataset, optimizer, and noise schedule. The only difference is that SELFCONDFM passes the endpoint prediction from one backbone model evaluation to the next as an additional condition (§ 3.2 ). During training, SELFCONDFM makes two forward passes per example instead of one, costing extra compute, so we match the two methods on cumulative training FLOPs. Appendix D.1 provides the complete configurations and FLOPs accounting.
Since both VANILLAFM and SELFCONDFM make one backbone call per sampling step, we compare them by default at the same number of function evaluations (NFE), which directly measures sequential computation and equals the step count K K K in Algorithms 1 and 2. Unless otherwise stated, we use 50 NFEs; the NFE-scaling study in § 4.2 varies the number of evaluations.
Empirical Validation of the Expressivity Separation
To empirically validate the expressivity separation, we first compare the two methods on three tasks with natural step-by-step solutions: line tracing , long multiplication , and long text rendering (Figure 1 ). Each task, formally defined and analyzed in Appendix C, has circuit complexity matching the separation barrier identified in § 3.1 for either A C 0 \mathrm{AC}^{0} AC 0 or T C 0 \mathrm{TC}^{0} TC 0 backbones (the latter case assumes T C 0 ≠ N C 1 \mathrm{TC}^{0} \ne\mathrm{NC}^{1} TC 0 = NC 1 ). Consequently, we expect these tasks to lie beyond the expressive power of vanilla flow matching with the corresponding backbone.
Tasks. We denote the problem scale for each task by m m m . Line tracing (N C 1 \mathrm{NC}^{1} NC 1 -complete) requires coloring five long polylines that go through m m m permutation stages; long multiplication (T C 0 \mathrm{TC}^{0} TC 0 -complete) entails completing a step-by-step long multiplication worksheet to compute the product of two integers, each with at most m m m digits; and long text rendering (T C 0 \mathrm{TC}^{0} TC 0 -complete) requires rendering some paragraphs containing a total of m m m words onto a fixed-width canvas. We compare the methods on finite-scale synthetic datasets. For line tracing, we report the mean longest correct prefix (LCP), which is the average number of initial stages through which all five polylines remain correctly colored; for the other tasks, we report instance-level accuracy. See Appendix D.2 for more details.
Backbone architectures. All three tasks use FLUX.2-based architectures with their pretrained VAE kept frozen for image encoding and decoding [8 ] . For line tracing, we train a model from scratch; for the other two tasks, we fine-tune FLUX.2-klein-base-4B to leverage its prior knowledge of character recognition and generation.
Results. Figure 1 plots performance against training FLOPs. On line tracing, both methods are evaluated at 100 NFEs. SELFCONDFM reaches the maximum LCP of 50 at 1.10 × 10 18 1.10 \times10^{18} 1.10 × 1 0 18 training FLOPs, while VANILLAFM plateaus near 8. On long multiplication, SELFCONDFM exceeds 90% accuracy within half the budget, a level VANILLAFM never reaches over the evaluated compute range. On long text rendering, SELFCONDFM’s accuracy rises with training compute, while VANILLAFM’s stays near zero for most of training. Self-conditioning thus converges faster and performs better on all three tasks , consistent with our theoretical separation. See Appendix D.2.1 for multi-seed evaluation and Appendix D.2.2 for generated examples.
NFE scaling. We further examine how the two methods use additional inference steps. Our theory in § 3 suggests a contrasting behavior: under its assumptions, VANILLAFM is confined to constant reasoning depth, whereas SELFCONDFM can realize sequential reasoning depth that grows with the number of sampling steps. We test whether this predicted difference emerges on the line tracing task by varying the NFE.
We select two checkpoints with matched training FLOPs, and evaluate both at different NFEs. Figure 3 shows that both methods begin with a mean LCP of 0 at NFE = 1, but diverge as NFE increases. SELFCONDFM reaches 49.84 at NFE = 10, whereas VANILLAFM reaches 7.66 at NFE = 6 and remains below 8.0 through NFE = 50. The extra steps thus yield deeper reasoning for SELFCONDFM, confirming that self-conditioning lets the model make better use of more sampling steps. Full details and inference-FLOP-aligned comparisons are provided in Appendix § 12 .§ 3 .
Evaluation on Structured Visual-Reasoning Tasks
We next investigate whether the gains observed in § 4.2 extend to the five structured visual-reasoning tasks of He et al. [29 ] : large-scale visual spatial planning (VSP-Super), Maze, the traveling salesperson problem (TSP), Sudoku, and Jigsaw. See Appendix § 12 .§ 4 for detailed setup and illustrations.
Controlled experiments. Following the setup in § 4.1 , we train VANILLAFM and SELFCONDFM as FLUX.2-klein-base-4B LoRA adapters on the same data for each task, and evaluate them at matched training FLOPs and NFE.
As reported in Table 1 , SELFCONDFM improves over VANILLAFM on every task, raising the average accuracy from 65.9% to 76.7%. Larger gains appear on TSP (+15.7%) and Sudoku (+19.5%), while notable improvements are also observed on the other tasks. Thus self-conditioning extends its advantage from our validation tasks to the task suite of He et al. [29 ] . Appendix § 12 .§ 4.2 shows some generated examples.
Table 1: Controlled experiments on the DiffThinker tasks (accuracy, %). Under matched training FLOPs and NFE, SELFCONDFM outperforms VANILLAFM on every task.
Table 1.
Large-scale comparisons. To evaluate the method at a larger scale, we fine-tune SELFCONDFM as a LoRA adapter on the 20B-parameter Qwen-Image-Edit-2511 backbone (Qwen Team, 2025) following the setup of Dai et al. [17 ] , and compare it with the published baselines. Jigsaw is reported separately in Appendix § 12 .§ 4.1 , because EndoCoT (Dai et al., [17 ] ) does not evaluate it.
As shown in Table 2 , task-specific SELFCONDFM adapters achieve 90.0% average accuracy, outperforming the purely visual-generative DiffThinker baseline (75.8%). EndoCoT (88.3%) additionally guides image generation using latent CoT in a multimodal language model, so we include it as a reference rather than a directly comparable baseline. A single adapter trained jointly on the four tasks reaches 90.2%, matching the per-task adapters and exceeding the unified DiffThinker (66.1%) and EndoCoT (76.6%) results by large margins.
Table 2: Large-scale comparison on the DiffThinker tasks (accuracy, %). Each column header is a difficulty level, following the evaluation of Dai et al. [17 ] , from which the baseline numbers are taken. The best results are in bold and the second best are underlined. For unified training, each method uses a single adapter trained jointly on data from all four tasks.
Table 2.
Additional Empirical Analyses
Finally, we provide some empirical analyses to illustrate how the trained models behave during inference (detailed in Appendix § 12 .§ 5 ):
Lipschitzness. We estimate the Lipschitz constant of a VANILLAFM model trained on mixed-length line tracing instances. The estimate levels off at a roughly constant value of 400 for m ≥ 30 m \ge30 m ≥ 30 , consistent with the bounded-Lipschitz regime assumed in § 3.1 (Appendix § 12 .5.1).
Attention allocation. The endpoint prediction z i z_i z i in SELFCONDFM receives a nontrivial share of attention throughout the generation, with a larger share early on when x i x_i x i is still noisy. This indicates that the model indeed uses z i z_i z i to guide its generation (Appendix § 12 .5.2).
Parallel and revisable reasoning. Reasoning with flow matching has some intrinsic advantages, and SELFCONDFM preserves them well. The model can form multiple local results in parallel within one trajectory and correct a wrong mid-trajectory generation in place (Appendix § 12 .5.3).
Related Work
Generative visual reasoning. Multimodal large language models (MLLMs) typically treat images as static inputs and externalize reasoning through textual CoT. The emerging thinking with images paradigm instead turns vision into an intermediate workspace that can be repeatedly inspected or modified (Su et al., [59 ] ). Early approaches manipulate images through tool calls (Su et al., [58 ] ; 2026; Lai et al., [38 ] ), while other approaches internalize visual intermediates within the model, in the form of generated images, latent visual states, or learned visual representations (Xu et al., 2026; Yang et al., [71 ] ; Zhang et al., [72 ] ; Qin et al., [50 ] ; Wang et al., [63 ] ; Gu et al., [23 ] ; Li et al., 2026; Cheng et al., [14 ] ). These intermediates give the model a richer workspace for reasoning than text alone.
Video generation offers another medium for reasoning, representing evolving intermediate states as a sequence of frames (Wiedemer et al., [66 ] ; Tong et al., [60 ] ). Recent works further suggest that video diffusion models (Ho et al., [31 ] ; Xing et al., [68 ] ) reason across denoising steps: they explore candidate solutions, correct earlier mistakes, and commit early to high-level plans (Wang et al., [64 ] ; Newman et al., [49 ] ).
Recent work moves reasoning into image generation itself: DiffThinker uses direct image-to-image generation (He et al., [29 ] ), while EndoCoT bridges latent states in an MLLM’s CoT to image generation (Dai et al., [17 ] ). However, the computational structure of generative visual reasoning remains underexplored. Liu [44 ] establishes a T C 0 \mathrm{TC}^{0} TC 0 upper bound for optimal denoising diffusion probabilistic models, but requires the model to match the score function exactly, an assumption that rarely holds for practical trained models.
Self-conditioning. Self-conditioning feeds a model’s endpoint prediction back into a subsequent denoising step. It was introduced by Chen et al. [12 ] for diffusion over discrete data, and has since been adapted to continuous diffusion language modeling, image and video generation, and molecular flow matching (Strudel et al., [56 ] ; Jabri et al., [34 ] ; Gupta et al., [24 ] ; Stärk et al., [54 ] ). Prior work primarily studies generation quality and efficiency empirically; we instead treat self-conditioning as maintaining a computational state and analyze its expressive power.
Computational Expressiveness. The expressive power of transformers [61 ] has been studied extensively through circuit complexity, formal languages, and logic [55 ] . Depending on the attention mechanism and numerical precision, constant-depth transformers are upper-bounded by A C 0 \mathrm{AC}^{0} AC 0 or T C 0 \mathrm{TC}^{0} TC 0 [27 , 48 , 46 , 15 ] , and such circuit bounds extend to modern components such as rotary positional embeddings [11 ] . Chiang et al. [16 ] further tighten both the upper and lower bounds through a logical characterization.
Repeated model calls can lift computation beyond these single-evaluation bounds. With chain-of-thought [65 ] , a constant-depth transformer writes its intermediate results into the autoregressive context and can thereby solve inherently serial problems [41 , 20 , 47 ] . Amiri et al. [3 ] complement this with lower bounds on the number of chain-of-thought steps that hard-attention transformers need for various algorithmic problems. Beyond autoregressive generation, Feng et al. [21 ] establish theoretical bounds for masked diffusion language models, proving that while constant sampling steps suffice for distribution matching, sequential reasoning requires sampling steps that scale with sequence length.
Conclusion and Discussion
This work reveals a previously unrecognized role of self-conditioning in generative reasoning. We show that vanilla flow matching cannot deepen sequential reasoning through additional sampling steps. Self-conditioning breaks this bottleneck by passing endpoint predictions across steps, which lets additional sampling steps translate into reasoning depth. Experiments across diverse visual-reasoning tasks confirm this separation: self-conditioning achieves better performance and consistently benefits from more sampling steps.
These theoretical guarantees, however, rely on certain regularity assumptions. In particular, the upper bound in Theorem 1 requires a fairly strong Lipschitz restriction. Moreover, the Lipschitz estimates in § 4.4 are relatively large and provide empirical rather than certified bounds (Appendix § 12 .5.1). Since the dependence on the Lipschitz constant is tight up to constant factors (§ 3.4 ), future work may explore alternative forms of regularity conditions.
Although we focus on image-space visual reasoning, our theoretical analysis does not depend on the data modality. It therefore applies wherever flow matching serves as the sampling backbone, including video generation [37 , 33 ] , continuous diffusion language modeling [13 ] , and visuomotor policy learning [7 ] . Whether self-conditioning delivers similar empirical gains remains an open question. Nevertheless, this perspective may inform future sampler design in settings where iterative generation is expected to reason.
AI Disclosure
For this work, we used generative AI tools to (i) generate synthetic datasets for the tasks in § 4.2 ; (ii) provide insights into reducing the number of sequential rounds from e O ( L ) e^{O(L)} e O ( L ) to O ( L ) O(L) O ( L ) by replacing the Euler method with Picard iterations in § 3.1 ; (iii) assist in writing the proofs; and (iv) implement the training codebase. We did not use generative AI tools to develop the theoretical models or conceptual frameworks, formulate mathematical claims, design or provide feedback on research methodology or experiments, support qualitative or thematic data analysis, or interpret results. The tasks of proposing or refining hypotheses, translating text, and cleaning or reformatting datasets were not applicable to this work. Additionally, we used generative AI tools to create and refine figures, to assist in drafting and editing the paper at the paragraph level to improve readability, to identify relevant literature, and to format references.
We have reviewed all AI-assisted work. All AI-assisted proof writing was reviewed by at least two authors other than the original writers. All AI-assisted language editing was reviewed by at least one author other than those who originally drafted the corresponding text. The core experimental codebase and synthetic datasets were reviewed by at least one author. All figures, relevant literature, and the final reference formatting were verified by at least one author. We take full responsibility for the final content of this work, including all text, claims, and artifacts produced with the aid of generative AI.
Reproducibility Statement
For the theoretical results, § 2.2 specifies the theoretical setup, and § 3 states the assumptions of each theorem. Appendices § 9 and § 10 give complete proofs of the main theorems and their extensions, and Appendix § 11 formally defines the three synthetic tasks in § 4.2 and proves their circuit-complexity classifications. For the experiments, Appendix § 12 .§ 1 describes the backbones, the implementation of self-conditioning, and the training-FLOP accounting. Appendix § 12 .§ 2 details the data generation, training hyperparameters, and evaluation protocol for each synthetic task, Appendix § 12 .§ 2.1 reports results over multiple seeds, and Appendix § 12 .§ 3 elaborates the selection of checkpoints and the evaluation for our NFE-scaling study. Appendix § 12 .§ 4 describes the data preparation, evaluators, and training configurations for the structured visual-reasoning tasks in § 4.3 , which follow Dai et al. [17 ] and He et al. [29 ] .
Proofs of Main Expressivity Theorems
This appendix proves the two main theoretical results from §3: Theorem 1 and Theorem 2. Building on the theoretical setup in §2.2, Appendix A.1 first fixes the notation and the encoding in which circuits read and write elements of F b F_b F b , and collects the preliminary facts. Appendix A.2 then proves Theorem 1 with the help of Lemma 1, and Appendix A.3 proves Theorem 2. The extension results of §3.4 are proved separately in Appendix B.
Conventions and Preliminary Facts
Throughout this appendix, m m m denotes the problem size and D ∈ { N C k + 1 , A C k , T C k } \mathrm{D} \in\{\mathrm{NC}^{k+1}, \mathrm{AC}^{k}, \mathrm{TC}^{k}\} D ∈ { NC k + 1 , AC k , TC k } denotes a circuit complexity class for a constant integer k ≥ 0 k \ge0 k ≥ 0 ; we abbreviate b = b ( m ) b=b(m) b = b ( m ) , n = n ( m ) n=n(m) n = n ( m ) , K = K ( m ) K=K(m) K = K ( m ) , and δ : = 2 − b \delta:= 2^{-b} δ := 2 − b . All circuit families are non-uniform.
Relations among complexity classes. It is known that N C k ⊆ A C k ⊆ T C k ⊆ N C k + 1 \mathrm{NC}^{k} \subseteq\mathrm{AC}^{k} \subseteq\mathrm{TC}^{k} \subseteq\mathrm{NC}^{k+1} NC k ⊆ AC k ⊆ TC k ⊆ NC k + 1 for all k ≥ 0 k \ge0 k ≥ 0 [4 ] . Consequently, N C = ⋃ k A C k = ⋃ k T C k \mathrm{NC} = \bigcup_k \mathrm{AC}^{k} = \bigcup_k \mathrm{TC}^{k} NC = ⋃ k AC k = ⋃ k TC k . Furthermore, A C 0 ⊊ T C 0 \mathrm{AC}^{0} \subsetneq\mathrm{TC}^{0} AC 0 ⊊ TC 0 because P A R I T Y ∈ T C 0 ∖ A C 0 \mathrm{PARITY} \in\mathrm{TC}^{0} \setminus\mathrm{AC}^{0} PARITY ∈ TC 0 ∖ AC 0 [22 , 28 ] , whereas T C 0 ⊊ N C 1 \mathrm{TC}^{0} \subsetneq\mathrm{NC}^{1} TC 0 ⊊ NC 1 is widely conjectured but open [62 ] . By definition, P ⊆ P / p o l y \mathrm{P} \subseteq\mathrm{P/poly} P ⊆ P/poly and P S P A C E ⊆ P S P A C E / p o l y \mathrm{PSPACE} \subseteq\mathrm{PSPACE/poly} PSPACE ⊆ PSPACE/poly . Moreover, the class P / p o l y \mathrm{P/poly} P/poly is exactly the class of languages decidable by polynomial-size families of Boolean circuits [4 ] , so N C ⊆ P / p o l y ⊆ P S P A C E / p o l y \mathrm{NC} \subseteq\mathrm{P/poly} \subseteq\mathrm{PSPACE/poly} NC ⊆ P/poly ⊆ PSPACE/poly . Both inclusions are widely conjectured to be strict [4 ] .
Encoding of scalars. Fix a binary encoding of the scalars of F b F_b F b in which a scalar of magnitude at most 2 ℓ 2^{\ell} 2 ℓ occupies O ( b + ℓ ) O(b+\ell) O ( b + ℓ ) bits. Every scalar in the runs of this appendix has magnitude at most poly ( m ) \operatorname{poly}(m) poly ( m ) , i.e., ℓ = O ( log m ) \ell=O(\log m) ℓ = O ( log m ) , and all circuit constructions have b = poly ( m ) b=\operatorname{poly}(m) b = poly ( m ) . Their encodings thus have poly ( m ) \operatorname{poly}(m) poly ( m ) bits. When b b b is additionally constrained to O ( log m ) O(\log m) O ( log m ) , the encodings have O ( log m ) O(\log m) O ( log m ) bits.
Circuits for models. We say that a model u u u is computed by D \mathrm{D} D circuits if, under the encoding above, its restriction to inputs of each total encoded length is computed by a D \mathrm{D} D circuit of size polynomial in that length. The Boolean input w w w needs no convention of its own, since { 0 , 1 } ⊆ F b \{0,1\} \subseteq F_b { 0 , 1 } ⊆ F b .
Finite-precision arithmetic. The grid F b = { k 2 − b : k ∈ Z } F_b = \{k2^{-b} : k \in\mathbb{Z}\} F b = { k 2 − b : k ∈ Z } is closed under addition, under subtraction, and under multiplication by an integer, so these operations need no rounding. Iterated sums are independent of the association order. For every x ∈ R x \in\mathbb{R} x ∈ R we have ∣ round b ( x ) − x ∣ ≤ δ / 2 \lvert\operatorname{round}_b(x)-x\rvert\le\delta/2 ∣ round b ( x ) − x ∣ ≤ δ /2 , and round b \operatorname{round}_b round b is nondecreasing and fixes F b F_b F b (i.e., round b ( x ) = x \operatorname{round}_b(x)=x round b ( x ) = x for all x ∈ F b x \in F_b x ∈ F b ).
Time grid. Both samplers (Algorithms 1 and 2) use discrete time steps t i = round b ( s i ) t_i=\operatorname{round}_b(s_i) t i = round b ( s i ) with s i : = i / K s_i:=i/K s i := i / K ; write h i : = t i + 1 − t i h_i:=t_{i+1}-t_i h i := t i + 1 − t i . Since round b \operatorname{round}_b round b is nondecreasing and fixes 0 and 1, we have
t 0 = 0 , t K = 1 , h i ≥ 0 , ∑ i = 0 K − 1 h i = 1 , t_0=0,\qquad t_K=1,\qquad h_i\ge0,\qquad\sum_{i=0}^{K-1}h_i=1, t 0 = 0 , t K = 1 , h i ≥ 0 , i = 0 ∑ K − 1 h i = 1 ,
and ∣ t i − s i ∣ ≤ δ / 2 \lvert t_i-s_i\rvert\le\delta/2 ∣ t i − s i ∣ ≤ δ /2 gives ∣ h i − 1 / K ∣ ≤ δ \lvert h_i-1/K\rvert\le\delta ∣ h i − 1/ K ∣ ≤ δ .
Hardwiring the initialization. In both samplers the initial state x 0 = round b ( x ~ 0 ) x_0=\operatorname{round}_b(\widetilde{x}_0) x 0 = round b ( x 0 ) ranges over the finite set ( F b ∩ [ − 1 , 1 ] ) n (F_b\cap[-1,1])^n ( F b ∩ [ − 1 , 1 ] ) n , since p p r i o r p_{\mathrm{prior}} p prior is supported on [ − 1 , 1 ] n [-1,1]^n [ − 1 , 1 ] n , and the rest of the run is deterministic given x 0 x_0 x 0 . If a model accepts L \mathcal{L} L with margin c c c under a fixed sampler, the acceptance criterion holds for every x 0 x_0 x 0 occurring with positive probability. Since p p r i o r p_{\mathrm{prior}} p prior does not depend on w w w , fixing one such value x ^ 0 = x ^ 0 ( m ) \widehat{x}_0=\widehat{x}_0(m) x 0 = x 0 ( m ) for each m m m turns the sampler into a deterministic algorithm with the same guarantee. We do this whenever a sampler is regarded as a circuit family.
The table bound. A function f f f of few bits is shallow, however complicated it is: writing each output bit of an arbitrary f : { 0 , 1 } j → { 0 , 1 } j ′ f:\{0,1\}^{j}\to\{0,1\}^{j'} f : { 0 , 1 } j → { 0 , 1 } j ′ as a disjunctive normal form over the j j j input literals gives an unbounded-fan-in circuit of depth two and size O ( j ′ 2 j ) O(j'2^j) O ( j ′ 2 j ) , hence of size poly ( m ) \operatorname{poly}(m) poly ( m ) once j = O ( log m ) j=O(\log m) j = O ( log m ) and j ′ = poly ( m ) j'=\operatorname{poly}(m) j ′ = poly ( m ) . We call this the table bound ; it exploits no structure of f f f , only how many bits f f f reads and writes. In the proofs below, we frequently invoke it for maps on constantly many scalars, each of O ( log m ) O(\log m) O ( log m ) bits.
Expressiveness Upper Bound for VanillaFM
The K K K Euler steps of VanillaFM are sequential, so a circuit that follows them has depth growing with K K K . We replace them by a Picard iteration [25 ] that updates all K K K positions at once, and whose propagated error decays factorially across iteration rounds, up to an additive error floor (Appendix § 9 .§ 2.1 ). Therefore, O ( L ) O(L) O ( L ) rounds already approximate the sampler’s output to within a constant error; this proves Lemma 1 in Appendix § 9 .§ 2.2 . Aside from the K K K parallel model calls, each round computes normalized prefix sums of the velocities, which Appendix § 9 .2.3 approximates in A C 0 \mathrm{AC}^{0} AC 0 up to a constant error, small enough for acceptance with margin (see § 2.2 ). Appendix § 9 .2.4 substitutes these approximate sums into the Picard iteration to prove Theorem 1.
The Error Recurrence
Appendices A.2.2 and A.2.4 both compare an approximate trajectory with the exact one through the same error recurrence, so we bound it here once and for all. The error accumulates over multiple steps. At each step, the error at each position is bounded by a fixed linear transformation of the sum of the errors at all preceding positions in the previous step, plus an additive error. Consequently, the initial error decays factorially across steps, while the additive errors accumulate to a magnitude of order e L e^{L} e L .
Lemma 2. Let K ∈ N + K \in\mathbb{N}^{+} K ∈ N + be a positive integer, B > 0 B > 0 B > 0 , L ≥ 1 L \ge1 L ≥ 1 , and α , β ≥ 0 \alpha, \beta\ge0 α , β ≥ 0 be real numbers, and let C : = ⌈ e L + 4 B ⌉ C := \lceil eL + 4B \rceil C := ⌈ e L + 4 B ⌉ . Recall that s i : = i / K s_i := i/K s i := i / K (Appendix § 9 .§ 1 ). Let ( e i ( r ) ) 0 ≤ i ≤ K , 0 ≤ r ≤ C (e_i^{(r)})_{0 \le i \le K, 0 \le r \le C} ( e i ( r ) ) 0 ≤ i ≤ K , 0 ≤ r ≤ C be nonnegative reals such that, for all i i i and all r < C r < C r < C ,
e i ( 0 ) ≤ B s i + α , (3) e_i^{(0)} \le B s_i + \alpha, \tag*{(3)} e i ( 0 ) ≤ B s i + α , (3) e i ( r + 1 ) ≤ L K ∑ j = 0 i − 1 e j ( r ) + β . (4) e_i^{(r+1)} \le\frac{L}{K} \sum_{j=0}^{i-1} e_j^{(r)} + \beta. \tag*{(4)} e i ( r + 1 ) ≤ K L j = 0 ∑ i − 1 e j ( r ) + β . (4) Then for all 0 ≤ i ≤ K 0 \le i \le K 0 ≤ i ≤ K and 0 ≤ r ≤ C 0 \le r \le C 0 ≤ r ≤ C ,
e i ( r ) ≤ B L r s i r + 1 ( r + 1 ) ! + α L r s i r r ! + β ∑ q = 0 r − 1 L q s i q q ! , (5) e_i^{(r)} \le\frac{B L^r s_i^{r+1}}{(r+1)!} + \frac{\alpha L^r s_i^r}{r!} + \beta\sum_{q=0}^{r-1} \frac{L^q s_i^q}{q!}, \tag*{(5)} e i ( r ) ≤ ( r + 1 )! B L r s i r + 1 + r ! α L r s i r + β q = 0 ∑ r − 1 q ! L q s i q , (5) where 0 0 : = 1 0^0 := 1 0 0 := 1 and the sum is read as empty when r = 0 r = 0 r = 0 . In particular, e K ( C ) ≤ 1 4 + α + β e L e_K^{(C)} \le\frac{1}{4} + \alpha+ \beta e^L e K ( C ) ≤ 4 1 + α + β e L .
Proof. We prove (5) by induction on r r r . For r = 0 r = 0 r = 0 the right-hand side is B s i + α B s_i + \alpha B s i + α , so (5) is (3). Assume that (5) holds for r r r and all i i i . Since the function ϑ ↦ ϑ q \vartheta\mapsto\vartheta^q ϑ ↦ ϑ q is nondecreasing on [ 0 , ∞ ) [0,\infty) [ 0 , ∞ ) and s j + 1 − s j = 1 / K s_{j+1} - s_j = 1/K s j + 1 − s j = 1/ K , every integer q ≥ 0 q \ge0 q ≥ 0 satisfies the Riemann bound
1 K ∑ j = 0 i − 1 s j q = 1 K ∑ j = 0 i − 1 ( j / K ) q ≤ ∫ 0 s i ϑ q d ϑ = s i q + 1 q + 1 . (6) \frac{1}{K} \sum_{j=0}^{i-1} s_j^q = \frac{1}{K} \sum_{j=0}^{i-1} (j/K)^q \le\int_0^{s_i} \vartheta^q \, \mathrm{d}\vartheta= \frac{s_i^{q+1}}{q+1}. \tag*{(6)} K 1 j = 0 ∑ i − 1 s j q = K 1 j = 0 ∑ i − 1 ( j / K ) q ≤ ∫ 0 s i ϑ q d ϑ = q + 1 s i q + 1 . (6) Summing (5) over j < i j < i j < i and applying (6) termwise gives
L K ∑ j = 0 i − 1 e j ( r ) ≤ 1 K ∑ j = 0 i − 1 ( B L r + 1 s j r + 1 ( r + 1 ) ! + α L r + 1 s j r r ! + β ∑ q = 0 r − 1 L q + 1 s j q + 1 q ! ) ≤ B L r + 1 s i r + 2 ( r + 1 ) ! ( r + 2 ) + α L r + 1 s i r + 1 r ! ( r + 1 ) + β ∑ q = 0 r − 1 L q + 1 s i q + 1 q ! ( q + 1 ) = B L r + 1 s i r + 2 ( r + 2 ) ! + α L r + 1 s i r + 1 ( r + 1 ) ! + β ∑ q = 1 r L q s i q q ! . \begin{aligned}
\frac{L}{K} \sum_{j=0}^{i-1} e_j^{(r)}
&\le\frac{1}{K} \sum_{j=0}^{i-1} \left( \frac{B L^{r+1} s_j^{r+1}}{(r+1)!} + \frac{\alpha L^{r+1} s_j^r}{r!} + \beta\sum_{q=0}^{r-1} \frac{L^{q+1} s_j^{q+1}}{q!} \right) \\
&\le\frac{B L^{r+1} s_i^{r+2}}{(r+1)!(r+2)} + \frac{\alpha L^{r+1} s_i^{r+1}}{r!(r+1)} + \beta\sum_{q=0}^{r-1} \frac{L^{q+1} s_i^{q+1}}{q!(q+1)} \\
&= \frac{B L^{r+1} s_i^{r+2}}{(r+2)!} + \frac{\alpha L^{r+1} s_i^{r+1}}{(r+1)!} + \beta\sum_{q=1}^{r} \frac{L^q s_i^q}{q!}.
\end{aligned} K L j = 0 ∑ i − 1 e j ( r ) ≤ K 1 j = 0 ∑ i − 1 ( ( r + 1 )! B L r + 1 s j r + 1 + r ! α L r + 1 s j r + β q = 0 ∑ r − 1 q ! L q + 1 s j q + 1 ) ≤ ( r + 1 )! ( r + 2 ) B L r + 1 s i r + 2 + r ! ( r + 1 ) α L r + 1 s i r + 1 + β q = 0 ∑ r − 1 q ! ( q + 1 ) L q + 1 s i q + 1 = ( r + 2 )! B L r + 1 s i r + 2 + ( r + 1 )! α L r + 1 s i r + 1 + β q = 1 ∑ r q ! L q s i q . By (4), adding β = β L 0 s i 0 / 0 ! \beta= \beta L^0 s_i^0/0! β = β L 0 s i 0 /0 ! to this bound yields (5) for r + 1 r+1 r + 1 .
For the last claim, put i = K i = K i = K and r = C r = C r = C in (5), so that s K = 1 s_K = 1 s K = 1 . Stirling’s inequality C ! ≥ ( C / e ) C C! \ge(C/e)^C C ! ≥ ( C / e ) C together with C ≥ e L C \ge eL C ≥ e L gives L C / C ! ≤ ( e L / C ) C ≤ 1 L^C/C! \le(eL/C)^C \le1 L C / C ! ≤ ( e L / C ) C ≤ 1 , whence α L C / C ! ≤ α \alpha L^C/C! \le\alpha α L C / C ! ≤ α and
B L C ( C + 1 ) ! = B C + 1 ⋅ L C C ! ≤ B 4 B + 1 ≤ 1 4 . \frac{B L^C}{(C+1)!} = \frac{B}{C+1} \cdot\frac{L^C}{C!} \le\frac{B}{4B+1} \le\frac{1}{4}. ( C + 1 )! B L C = C + 1 B ⋅ C ! L C ≤ 4 B + 1 B ≤ 4 1 .
The remaining sum satisfies ∑ q < C L q / q ! ≤ ∑ q ≥ 0 L q / q ! = e L \sum_{q<C} L^{q}/q! \le\sum_{q\ge0} L^{q}/q! = e^{L} ∑ q < C L q / q ! ≤ ∑ q ≥ 0 L q / q ! = e L , and adding the three terms yields
e K ( C ) ≤ B L C ( C + 1 ) ! + α L C C ! + β ∑ q = 0 C − 1 L q q ! ≤ 1 4 + α + β e L , e_{K}^{(C)} \le\frac{BL^{C}}{(C+1)!}+\frac{\alpha L^{C}}{C!}+\beta\sum_{q=0}^{C-1}\frac{L^{q}}{q!}\le\frac{1}{4}+\alpha+\beta e^{L}, e K ( C ) ≤ ( C + 1 )! B L C + C ! α L C + β q = 0 ∑ C − 1 q ! L q ≤ 4 1 + α + β e L ,
which completes the proof.
Proof of Lemma 1
Up to rounding, the K K K Euler updates of Algorithm 1 state that the trajectory ( x i ) i = 0 K (x_i)_{i=0}^{K} ( x i ) i = 0 K solves the fixed-point system x i = x 0 + ∑ j < i h j u ( x j , t j ; w ) x_i=x_0+\sum_{j<i}h_j u(x_j,t_j;w) x i = x 0 + ∑ j < i h j u ( x j , t j ; w ) , with h j : = t j + 1 − t j h_j:=t_{j+1}-t_j h j := t j + 1 − t j as in Appendix § 9 .§ 1 . Algorithm 3 solves this fixed-point system by a Picard iteration (Hairer et al., [25 ] ): iteration r r r recomputes all positions y 0 ( r + 1 ) , … , y K ( r + 1 ) y_0^{(r+1)},\ldots,y_K^{(r+1)} y 0 ( r + 1 ) , … , y K ( r + 1 ) in parallel from the previous iterate ( y i ( r ) ) i = 0 K (y_i^{(r)})_{i=0}^{K} ( y i ( r ) ) i = 0 K , replacing the rounded step sizes h j h_j h j by the uniform nominal step 1 / K 1/K 1/ K , implemented by dividing each prefix sum S i ( r ) S_i^{(r)} S i ( r ) by K K K (line 8 of Algorithm 3). We show that C = O ( L ) C=O(L) C = O ( L ) iterations bring its endpoint y K ( C ) y_K^{(C)} y K ( C ) within 1 2 \frac{1}{2} 2 1 of x K x_K x K , thereby proving Lemma 1.
Algorithm 3 Parallel Picard Inference
1: function PARALLELPICARD(w; u, K, C)
2: t_i ← round_b(i/K) for i = 0, . . . , K
3: Sample \tilde{x}_0 ∼ p_prior; x_0 ← round_b(\tilde{x}_0)
4: y_i^(0) ← x_0 for i = 0, . . . , K
5: for r = 0, . . . , C − 1 do
6: in parallel for j = 0, . . . , K − 1: v_j^(r) ← u(y_j^(r), t_j; w)
7: S_i^(r) ← ∑_{j=0}^{i−1} v_j^(r) for i = 0, . . . , K
8: in parallel for i = 0, . . . , K: y_i^(r+1) ← round_b(x_0 + S_i^(r)/K)
9: end for
10: return y_K^(C)
11: end function
Proof of Lemma 1. Fix m m m and w ∈ { 0 , 1 } m w\in\{0,1\}^{m} w ∈ { 0 , 1 } m , and write L = L ( m ) L=L(m) L = L ( m ) . Let c 0 = c 0 ( B ) > 0 c_0=c_0(B)>0 c 0 = c 0 ( B ) > 0 be a constant to be chosen at the end of the proof, and take the inference algorithm to be PARALLELPICARD( w ; u , K , C ) (w;u,K,C) ( w ; u , K , C ) with
C : = ⌈ e L + 4 B ⌉ . C:=\lceil eL+4B\rceil. C := ⌈ e L + 4 B ⌉ .
Both VANILLAFM and PARALLELPICARD draw x ~ 0 \tilde{x}_0 x ~ 0 from p p r i o r p_{\mathrm{prior}} p prior and round it, so we may couple the two runs by giving them the same x 0 x_0 x 0 . The estimates below hold for every realization of x 0 x_0 x 0 , which is the only random quantity in either run, and therefore hold with probability 1.
The two trajectories. Let ( x i ) i = 0 K (x_i)_{i=0}^{K} ( x i ) i = 0 K be the VANILLAFM trajectory and v j : = u ( x j , t j ; w ) v_j:=u(x_j,t_j;w) v j := u ( x j , t j ; w ) . In line 7 of Algorithm 1, the subtraction t i + 1 − t i t_{i+1}-t_i t i + 1 − t i and the addition are exact in F b F_b F b (Appendix § 9 .§ 1 ). Only the product needs rounding, so x i + 1 = x i + round b ( h i v i ) x_{i+1}=x_i+\operatorname{round}_b(h_i v_i) x i + 1 = x i + round b ( h i v i ) , and each step contributes a rounding residual round b ( h i v i ) − h i v i \operatorname{round}_b(h_i v_i)-h_i v_i round b ( h i v i ) − h i v i of size at most δ / 2 \delta/2 δ /2 . Summing these residuals into ρ i : = ∑ j < i ( round b ( h j v j ) − h j v j ) \rho_i:=\sum_{j<i}(\operatorname{round}_b(h_jv_j)-h_jv_j) ρ i := ∑ j < i ( round b ( h j v j ) − h j v j ) gives
x i = x 0 + ∑ j = 0 i − 1 h j v j + ρ i ( ∥ ρ i ∥ ∞ ≤ i δ 2 ≤ K δ 2 ) . (7) x_i=x_0+\sum_{j=0}^{i-1}h_jv_j+\rho_i \qquad\left(\lVert\rho_i\rVert_{\infty}\le\frac{i\delta}{2}\le\frac{K\delta}{2}\right). \tag*{(7)} x i = x 0 + j = 0 ∑ i − 1 h j v j + ρ i ( ∥ ρ i ∥ ∞ ≤ 2 i δ ≤ 2 K δ ) . (7)
Likewise the prefix sum S i ( r ) S_i^{(r)} S i ( r ) in line 7 of Algorithm 3 is a sum of elements of F b F_b F b and hence exact, and x 0 ∈ F b x_0\in F_b x 0 ∈ F b , so line 8 rounds only once. Writing ρ i ( r ) \rho_i^{(r)} ρ i ( r ) for this rounding residual, line 8 gives
y i ( r + 1 ) = x 0 + 1 K ∑ j = 0 i − 1 v j ( r ) + ρ i ( r ) ( ∥ ρ i ( r ) ∥ ∞ ≤ δ 2 ) . (8) y_i^{(r+1)}=x_0+\frac{1}{K}\sum_{j=0}^{i-1}v_j^{(r)}+\rho_i^{(r)} \qquad\left(\lVert\rho_i^{(r)}\rVert_{\infty}\le\frac{\delta}{2}\right). \tag*{(8)} y i ( r + 1 ) = x 0 + K 1 j = 0 ∑ i − 1 v j ( r ) + ρ i ( r ) ( ∥ ρ i ( r ) ∥ ∞ ≤ 2 δ ) . (8)
We bound the difference between (7) and (8) in two steps: we first verify the hypotheses (3) and (4) of Lemma 2 for it, and then apply the lemma. The two expressions differ in three respects, which the first step tracks: the weights 1 / K 1/K 1/ K against h j h_j h j , the velocities v j ( r ) v_j^{(r)} v j ( r ) against v j v_j v j , and the rounding residuals ρ i \rho_i ρ i and ρ i ( r ) \rho_i^{(r)} ρ i ( r ) .
Verifying the conditions of Lemma 2. Put e i ( r ) : = ∥ y i ( r ) − x i ∥ ∞ e_i^{(r)} := \lVert y_i^{(r)} - x_i\rVert_\infty e i ( r ) := ∥ y i ( r ) − x i ∥ ∞ , and set α : = 1 2 ( B + 1 ) K δ \alpha:= \frac{1}{2}(B+1)K\delta α := 2 1 ( B + 1 ) K δ and β : = ( B + 1 ) K δ \beta:= (B+1)K\delta β := ( B + 1 ) K δ . For r = 0 r=0 r = 0 , using h j ≥ 0 h_j \ge0 h j ≥ 0 , ∑ j < i h j = t i \sum_{j<i}h_j=t_i ∑ j < i h j = t i , t i ≤ s i + δ / 2 t_i \le s_i+\delta/2 t i ≤ s i + δ /2 (Appendix A.1), and the B B B -boundedness ∥ v j ∥ ∞ ≤ B \lVert v_j\rVert_\infty\le B ∥ v j ∥ ∞ ≤ B of u u u , we have
e i ( 0 ) = ∥ x 0 − x i ∥ ∞ ≤ B t i + K δ 2 ≤ B s i + ( B + K ) δ 2 ≤ B s i + α , e_i^{(0)} = \lVert x_0-x_i\rVert_\infty\le Bt_i+\frac{K\delta}{2} \le Bs_i+\frac{(B+K)\delta}{2} \le Bs_i+\alpha, e i ( 0 ) = ∥ x 0 − x i ∥ ∞ ≤ B t i + 2 K δ ≤ B s i + 2 ( B + K ) δ ≤ B s i + α ,
where the last step uses B + K ≤ ( B + 1 ) K B+K\le(B+1)K B + K ≤ ( B + 1 ) K for K ≥ 1 K\ge1 K ≥ 1 . This is (3) in Lemma 2. For 0 ≤ r < C 0\le r<C 0 ≤ r < C , subtract (7) from (8):
y i ( r + 1 ) − x i = 1 K ∑ j = 0 i − 1 ( v j ( r ) − v j ) + ∑ j = 0 i − 1 ( 1 K − h j ) v j + ρ i ( r ) − ρ i . y_i^{(r+1)}-x_i=\frac{1}{K}\sum_{j=0}^{i-1}(v_j^{(r)}-v_j)+\sum_{j=0}^{i-1}\left(\frac{1}{K}-h_j\right)v_j+\rho_i^{(r)}-\rho_i. y i ( r + 1 ) − x i = K 1 j = 0 ∑ i − 1 ( v j ( r ) − v j ) + j = 0 ∑ i − 1 ( K 1 − h j ) v j + ρ i ( r ) − ρ i .
The two velocities in the first sum are evaluated at the same time t j t_j t j and the same condition w w w : v j ( r ) = u ( y j ( r ) , t j ; w ) v_j^{(r)}=u(y_j^{(r)},t_j;w) v j ( r ) = u ( y j ( r ) , t j ; w ) and v j = u ( x j , t j ; w ) v_j=u(x_j,t_j;w) v j = u ( x j , t j ; w ) . Therefore, L L L -Lipschitz continuity of u u u gives ∥ v j ( r ) − v j ∥ ∞ ≤ L e j ( r ) \lVert v_j^{(r)}-v_j\rVert_\infty\le Le_j^{(r)} ∥ v j ( r ) − v j ∥ ∞ ≤ L e j ( r ) . By B B B -boundedness and ∣ h j − 1 / K ∣ ≤ δ \lvert h_j-1/K\rvert\le\delta ∣ h j − 1/ K ∣ ≤ δ (Appendix A.1), the second sum is bounded by B ∑ j < K ∣ 1 / K − h j ∣ ≤ B K δ B\sum_{j<K}\lvert1/K-h_j\rvert\le BK\delta B ∑ j < K ∣ 1/ K − h j ∣ ≤ B K δ . By the residual bounds in (7) and (8), the last two terms are bounded by ( K + 1 ) δ / 2 ≤ K δ (K+1)\delta/2\le K\delta ( K + 1 ) δ /2 ≤ K δ . Thus,
e i ( r + 1 ) ≤ L K ∑ j = 0 i − 1 e j ( r ) + B K δ + K δ = L K ∑ j = 0 i − 1 e j ( r ) + β , e_i^{(r+1)}\le\frac{L}{K}\sum_{j=0}^{i-1}e_j^{(r)}+BK\delta+K\delta=\frac{L}{K}\sum_{j=0}^{i-1}e_j^{(r)}+\beta, e i ( r + 1 ) ≤ K L j = 0 ∑ i − 1 e j ( r ) + B K δ + K δ = K L j = 0 ∑ i − 1 e j ( r ) + β ,
which is (4) in Lemma 2.
Applying Lemma 2. With (3) and (4) verified, Lemma 2, applied with the parameters B B B , L L L , α \alpha α , β \beta β above and the same C = ⌈ e L + 4 B ⌉ C=\lceil eL+4B\rceil C = ⌈ e L + 4 B ⌉ , yields e K ( C ) ≤ 1 4 + α + β e L e_K^{(C)}\le\frac{1}{4}+\alpha+\beta e^L e K ( C ) ≤ 4 1 + α + β e L . Since δ = 2 − b \delta=2^{-b} δ = 2 − b , the precision hypothesis (2) is equivalent to K δ ≤ 2 − c 0 e − L K\delta\le2^{-c_0}e^{-L} K δ ≤ 2 − c 0 e − L , so, using e − L ≤ 1 e^{-L}\le1 e − L ≤ 1 ,
α + β e L ≤ ( B + 1 ) 2 − c 0 2 + ( B + 1 ) 2 − c 0 = 3 2 ( B + 1 ) 2 − c 0 . \alpha+\beta e^L\le\frac{(B+1)2^{-c_0}}{2}+(B+1)2^{-c_0}=\frac{3}{2}(B+1)2^{-c_0}. α + β e L ≤ 2 ( B + 1 ) 2 − c 0 + ( B + 1 ) 2 − c 0 = 2 3 ( B + 1 ) 2 − c 0 .
Choose c 0 = c 0 ( B ) c_0=c_0(B) c 0 = c 0 ( B ) so that 3 2 ( B + 1 ) 2 − c 0 ≤ 1 4 \frac{3}{2}(B+1)2^{-c_0}\le\frac{1}{4} 2 3 ( B + 1 ) 2 − c 0 ≤ 4 1 ; then ∥ y K ( C ) − x K ∥ ∞ = e K ( C ) ≤ 1 2 \lVert y_K^{(C)}-x_K\rVert_\infty=e_K^{(C)}\le\frac{1}{2} ∥ y K ( C ) − x K ∥ ∞ = e K ( C ) ≤ 2 1 .
Since u u u accepts L \mathcal{L} L with margin 1 under VANILLAFM, every coordinate of x K x_K x K is at least 1 when w ∈ L w\in\mathcal{L} w ∈ L and at most − 1 -1 − 1 otherwise, so every coordinate of the returned value y K ( C ) y_K^{(C)} y K ( C ) is at least 1 2 \frac{1}{2} 2 1 in the first case and at most − 1 2 -\frac{1}{2} − 2 1 in the second. Thus u u u accepts L \mathcal{L} L with margin 1 2 \frac{1}{2} 2 1 under Algorithm 3, which runs for C = O ( L ) C=O(L) C = O ( L ) iterations because L ≥ 1 L\ge1 L ≥ 1 and B B B is a constant, and makes K K K parallel calls to u u u in each iteration.
Aside from the model calls in line 6, one iteration of Algorithm 3 performs only the prefix sums of line 7 and the normalization of line 8. When K = poly ( m ) K=\operatorname{poly}(m) K = poly ( m ) and b = poly ( m ) b=\operatorname{poly}(m) b = poly ( m ) , the prefix sums are iterated additions of polynomially many numbers of poly ( m ) \operatorname{poly}(m) poly ( m ) bits each, while each normalization uses addition and division by the hardwired K K K , and T C 0 \mathrm{TC}^{0} TC 0 circuits compute all these operations exactly [62 , 30 ] . For constant L L L , Lemma 1 together with this observation essentially gives the T C 0 \mathrm{TC}^{0} TC 0 part of Theorem 1 (Appendix A.2.4 gives the complete proof for every D D D ). The same iteration gives the growing-L L L extension in §3.4, i.e., Corollary 1.
Picard iterations have also been used to accelerate diffusion sampling [53 ] , with a worst-case guarantee of as many iterations as sampling steps and fewer iterations observed empirically. We instead use Picard iteration as a proof device for expressivity: Lemma 1 shows that the K K K sequential steps of VANILLAFM collapse into O ( L ) O(L) O ( L ) parallel rounds regardless of K K K , which caps the sequential depth that VANILLAFM can exploit.
As a side remark, this collapse relies on approximating the endpoint only to constant accuracy, which suffices for acceptance with margin. When exponentially small additive error is required, even a Lipschitz continuous ODE can be hard to solve: Kawamura [36 ] constructs an ODE with a polynomial-time computable, Lipschitz continuous right-hand side whose solution is PSPACE-complete, with the answer encoded in the solution at precision 2 − poly ( m ) 2^{-\operatorname{poly}(m)} 2 − poly ( m ) .
Approximate Normalized Prefix Sums in AC0
The exact prefix sums in line 7 of Algorithm 3, however, lie beyond AC0 ^0 0 : the low-order bit of a sum is the parity of the summands’ low-order bits [22 , 28 ] . To obtain the AC0 ^0 0 part of Theorem 1, we approximate the sums, which suffices because the Picard iteration needs each normalized prefix sum only to within a constant additive error, which merely enlarges β \beta β in (4) . Quantizing the summands to constantly many levels makes each normalized prefix sum an affine function of a count of ones , and AC0 ^0 0 approximates such a count to within any constant fraction of the string length [2 ] . Formally, we have the following lemma.
Lemma 3. Let M ≥ 1 M \ge1 M ≥ 1 and ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) be constant reals. Let N = N ( m ) ≤ poly ( m ) N=N(m) \le\operatorname{poly}(m) N = N ( m ) ≤ poly ( m ) be a positive integer, and let the number of fractional bits b = b ( m ) = O ( log m ) b=b(m)=O(\log m) b = b ( m ) = O ( log m ) satisfy 2 − b ≤ ϵ 2^{-b} \le\epsilon 2 − b ≤ ϵ . There is a family of AC0 ^0 0 circuits of size poly ( m ) \operatorname{poly}(m) poly ( m ) that maps any input g 0 , … , g N − 1 ∈ F b ∩ [ − M , M ] g_0,\ldots,g_{N-1} \in\mathbb{F}_b \cap[-M,M] g 0 , … , g N − 1 ∈ F b ∩ [ − M , M ] to outputs A 0 , … , A N ∈ F b A_0,\ldots,A_N \in\mathbb{F}_b A 0 , … , A N ∈ F b with
∣ A i − 1 N ∑ j = 0 i − 1 g j ∣ ≤ ϵ for all 0 ≤ i ≤ N . \left| A_i-\frac{1}{N}\sum_{j=0}^{i-1}g_j\right|\le\epsilon\qquad\text{for all }0\le i\le N. A i − N 1 j = 0 ∑ i − 1 g j ≤ ϵ for all 0 ≤ i ≤ N .
Proof. Fix a constant R : = ⌈ 8 M / ϵ ⌉ R:=\lceil8M/\epsilon\rceil R := ⌈ 8 M / ϵ ⌉ . For each j j j , let k j ∈ { 0 , … , R } k_j\in\{0,\ldots,R\} k j ∈ { 0 , … , R } be the integer nearest to ( g j + M ) R / ( 2 M ) (g_j+M)R/(2M) ( g j + M ) R / ( 2 M ) and put g ^ j : = 2 M R k j − M \hat{g}_j:=\frac{2M}{R}k_j-M g ^ j := R 2 M k j − M , so that ∣ g ^ j − g j ∣ ≤ M / R ≤ ϵ / 8 |\hat{g}_j-g_j|\le M/R\le\epsilon/8 ∣ g ^ j − g j ∣ ≤ M / R ≤ ϵ /8 . Write χ j ∈ { 0 , 1 } R \chi_j\in\{0,1\}^R χ j ∈ { 0 , 1 } R for the unary encoding of k j k_j k j . Since g j ∈ F b ∩ [ − M , M ] g_j\in\mathbb{F}_b\cap[-M,M] g j ∈ F b ∩ [ − M , M ] occupies O ( log m ) O(\log m) O ( log m ) bits, the table bound (as in Appendix § 9 .§ 1 ) maps g j g_j g j to χ j \chi_j χ j at depth two. For each i i i , the string χ 0 ⋯ χ i − 1 0 ( N − i ) R \chi_0\cdots\chi_{i-1}0^{(N-i)R} χ 0 ⋯ χ i − 1 0 ( N − i ) R has length N R NR N R and exactly S i : = ∑ j < i k j S_i:=\sum_{j<i}k_j S i := ∑ j < i k j ones. AC0 ^0 0 circuits can count these ones up to any constant fraction γ > 0 \gamma>0 γ > 0 of the length, i.e., output S ^ i \hat{S}_i S ^ i with ∣ S ^ i − S i ∣ ≤ γ N R |\hat{S}_i-S_i|\le\gamma NR ∣ S ^ i − S i ∣ ≤ γ N R [2 ] . Taking γ : = ϵ / ( 16 M ) \gamma:=\epsilon/(16M) γ := ϵ / ( 16 M ) gives 2 M N R ∣ S ^ i − S i ∣ ≤ ϵ / 8 \frac{2M}{NR}|\hat{S}_i-S_i|\le\epsilon/8 N R 2 M ∣ S ^ i − S i ∣ ≤ ϵ /8 . As 1 N ∑ j < i g ^ j = 2 M N R S i − i M N \frac{1}{N}\sum_{j<i}\hat{g}_j=\frac{2M}{NR}S_i-\frac{iM}{N} N 1 ∑ j < i g ^ j = N R 2 M S i − N i M , set
A i : = round b ( 2 M N R S ^ i − i M N ) . A_i:=\operatorname{round}_b\left(\frac{2M}{NR}\hat{S}_i-\frac{iM}{N}\right). A i := round b ( N R 2 M S ^ i − N i M ) .
Here i i i and N N N are hardwired and S ^ i \hat{S}_i S ^ i occupies O ( log m ) O(\log m) O ( log m ) bits, so the table bound maps S ^ i \hat{S}_i S ^ i to A i A_i A i at depth two as well. Composing these three stages, each of constant depth and size poly ( m ) \operatorname{poly}(m) poly ( m ) , gives the claimed AC0 ^0 0 family. It remains to bound the error of A i A_i A i . Inserting the intermediate quantities 2 M N R S ^ i − i M N \frac{2M}{NR}\hat{S}_i-\frac{iM}{N} N R 2 M S ^ i − N i M and 1 N ∑ j < i g ^ j \frac{1}{N}\sum_{j<i}\hat{g}_j N 1 ∑ j < i g ^ j and applying the triangle inequality,
∣ A i − 1 N ∑ j < i g j ∣ ≤ ∣ A i − ( 2 M N R S ^ i − i M N ) ∣ + 2 M N R ∣ S ^ i − S i ∣ + 1 N ∑ j < i ∣ g ^ j − g j ∣ \left|A_i-\frac{1}{N}\sum_{j<i}g_j\right|
\le\left|A_i-\left(\frac{2M}{NR}\hat{S}_i-\frac{iM}{N}\right)\right|
+\frac{2M}{NR}|\hat{S}_i-S_i|
+\frac{1}{N}\sum_{j<i}|\hat{g}_j-g_j| A i − N 1 j < i ∑ g j ≤ A i − ( N R 2 M S ^ i − N i M ) + N R 2 M ∣ S ^ i − S i ∣ + N 1 j < i ∑ ∣ g ^ j − g j ∣
≤ 2 − b − 1 + ϵ 8 + ϵ 8 ≤ ϵ 2 + ϵ 4 ≤ ϵ , \le2^{-b-1}+\frac{\epsilon}{8}+\frac{\epsilon}{8}
\le\frac{\epsilon}{2}+\frac{\epsilon}{4}\le\epsilon, ≤ 2 − b − 1 + 8 ϵ + 8 ϵ ≤ 2 ϵ + 4 ϵ ≤ ϵ ,
the three terms being the rounding, counting, and quantization errors, and the second inequality using 2 − b ≤ ϵ 2^{-b}\le\epsilon 2 − b ≤ ϵ .
:::
Proof of Theorem 1
To place the VanillaFM sampler in D, we split on the number of steps: a bounded K K K is handled by unrolling the K K K Euler steps directly, and otherwise we substitute the approximate prefix sums of Lemma 3 into the Picard iteration of Lemma 1 (Algorithm 3). The substitution perturbs the error recurrence (4) by one constant per round, small enough for the endpoint to stay within a constant acceptance margin, and it keeps the circuit at constant depth over the model calls.
Proof of Theorem 1. By (1) there is a constant c > 0 c>0 c > 0 such that b ≥ ( 1 + c ) log 2 K b\ge(1+c)\log_2 K b ≥ ( 1 + c ) log 2 K for all but finitely many m m m . Let c 1 = c 1 ( B ) > 0 c_1=c_1(B)>0 c 1 = c 1 ( B ) > 0 satisfy
( 3 B 2 + 1 ) 2 − c 1 ≤ 1 8 . (9) \left(\frac{3B}{2}+1\right)2^{-c_1}\le\frac{1}{8}. \tag*{(9)} ( 2 3 B + 1 ) 2 − c 1 ≤ 8 1 . (9)
and split the proof into the two cases b < log 2 K + ( log 2 e ) L + c 1 b < \log_{2} K + (\log_{2} e)L + c_{1} b < log 2 K + ( log 2 e ) L + c 1 and b ≥ log 2 K + ( log 2 e ) L + c 1 b \ge\log_{2} K + (\log_{2} e)L + c_{1} b ≥ log 2 K + ( log 2 e ) L + c 1 . Since the circuit families are non-uniform, each m m m may use the construction of its own case.
Small K K K . Suppose first that b < log 2 K + ( log 2 e ) L + c 1 b < \log_{2} K + (\log_{2} e)L + c_{1} b < log 2 K + ( log 2 e ) L + c 1 . Then K K K is bounded: only finitely many such m m m have b < ( 1 + c ) log 2 K b < (1+c)\log_{2} K b < ( 1 + c ) log 2 K by (1), and every other one satisfies ( 1 + c ) log 2 K ≤ b < log 2 K + ( log 2 e ) L + c 1 (1+c)\log_{2} K \le b < \log_{2} K + (\log_{2} e)L + c_{1} ( 1 + c ) log 2 K ≤ b < log 2 K + ( log 2 e ) L + c 1 , and hence K < 2 ( ( log 2 e ) L + c 1 ) / c K < 2^{((\log_{2} e)L+c_{1})/c} K < 2 (( l o g 2 e ) L + c 1 ) / c , a constant.
We then reproduce the sampler directly. Fix m m m and a hardwired initialization x ^ 0 \hat{x}_{0} x ^ 0 as in Appendix A.1. The circuit runs the K K K Euler steps of Algorithm 1 from x 0 : = x ^ 0 x_{0} := \hat{x}_{0} x 0 := x ^ 0 with the time grid hardwired: step i i i evaluates v i : = u ( x i , t i ; w ) v_{i} := u(x_{i},t_{i};w) v i := u ( x i , t i ; w ) with one copy of u u u and then sets x i + 1 : = x i + round b ( h i v i ) x_{i+1} := x_{i}+\operatorname{round}_{b}(h_{i}v_{i}) x i + 1 := x i + round b ( h i v i ) coordinate-wise, where h i : = t i + 1 − t i h_{i} := t_{i+1}-t_{i} h i := t i + 1 − t i . This reproduces the VANILLAFM trajectory exactly, so its endpoint has every coordinate at least 1 1 1 when w ∈ L w \in\mathcal{L} w ∈ L and at most − 1 -1 − 1 otherwise, and the sign of the first coordinate decides L \mathcal{L} L .
The circuit lies in D. Each of the constantly many steps makes one call to the D circuit u u u . Each coordinate-wise update is a map on constantly many scalars of O ( log m ) O(\log m) O ( log m ) bits, since b = O ( log m ) b=O(\log m) b = O ( log m ) and, with K K K bounded in this case, every state and velocity has magnitude bounded by a constant. The table bound places this map in A C 0 ⊆ D \mathrm{AC}^{0}\subseteq\mathrm{D} AC 0 ⊆ D (Appendix A.1). Composing constantly many D circuits keeps the result in D, so L ∈ D \mathcal{L}\in\mathrm{D} L ∈ D in this case.
Large K K K . Otherwise b ≥ log 2 K + ( log 2 e ) L + c 1 b \ge\log_{2} K+(\log_{2} e)L+c_{1} b ≥ log 2 K + ( log 2 e ) L + c 1 . We construct the circuit by running Algorithm 3 with its exact prefix sums replaced by the approximate ones of Lemma 3, and then show that it decides L \mathcal{L} L and lies in D. Set M : = max { B , 1 } M:=\max\{B,1\} M := max { B , 1 } and η : = 1 8 e − L \eta:=\frac{1}{8}e^{-L} η := 8 1 e − L , and use the same C = ⌈ e L + 4 B ⌉ C=\lceil eL+4B\rceil C = ⌈ e L + 4 B ⌉ as in Appendix A.2.2. This lower bound on b b b is equivalent to K δ ≤ 2 − c 1 e − L K\delta\le2^{-c_{1}}e^{-L} K δ ≤ 2 − c 1 e − L , which with (9) gives δ ≤ K δ ≤ η \delta\le K\delta\le\eta δ ≤ K δ ≤ η and, by (1), K ≤ 2 b = poly ( m ) K\le2^{b}=\operatorname{poly}(m) K ≤ 2 b = poly ( m ) .
The circuit. Fix m m m and a hardwired initialization x ^ 0 \hat{x}_{0} x ^ 0 as in Appendix A.1, and let Φ m \Phi_{m} Φ m be the circuit of Lemma 3 for N : = K N:=K N := K , M M M , and ε : = η \varepsilon:=\eta ε := η , whose hypotheses hold by the previous paragraph and (1). On input w w w , the circuit runs C C C rounds of Algorithm 3 from y i ( 0 ) : = x ^ 0 y_{i}^{(0)}:=\hat{x}_{0} y i ( 0 ) := x ^ 0 , with the time grid hardwired and lines 7 and 8 replaced by y i ( r + 1 ) : = x ^ 0 + A i ( r ) y_{i}^{(r+1)}:=\hat{x}_{0}+A_{i}^{(r)} y i ( r + 1 ) := x ^ 0 + A i ( r ) . Here A 0 ( r ) , … , A K ( r ) A_{0}^{(r)},\ldots,A_{K}^{(r)} A 0 ( r ) , … , A K ( r ) are the outputs of Φ m \Phi_{m} Φ m applied coordinate-wise to the velocities v j ( r ) : = u ( y j ( r ) , t j ; w ) v_{j}^{(r)}:=u(y_{j}^{(r)},t_{j};w) v j ( r ) := u ( y j ( r ) , t j ; w ) , j = 0 , … , K − 1 j=0,\ldots,K-1 j = 0 , … , K − 1 . Each A i ( r ) A_{i}^{(r)} A i ( r ) therefore approximates the normalized prefix sum 1 K ∑ j < i v j ( r ) \frac{1}{K}\sum_{j<i}v_{j}^{(r)} K 1 ∑ j < i v j ( r ) . B B B -boundedness puts the velocities in F b ∩ [ − M , M ] F_{b}\cap[-M,M] F b ∩ [ − M , M ] as Lemma 3 requires. Their normalized prefix sums also lie in [ − M , M ] [-M,M] [ − M , M ] , so every scalar here has constant magnitude and hence O ( log m ) O(\log m) O ( log m ) bits, as the table bound requires.
Correctness. We show that the circuit decides L \mathcal{L} L by the sign of ( y K ( C ) ) 1 (y_{K}^{(C)})_{1} ( y K ( C ) ) 1 . Compare with the VANILLAFM run from x 0 = x ^ 0 x_{0}=\hat{x}_{0} x 0 = x ^ 0 , with v j v_{j} v j and ρ i \rho_{i} ρ i as in (7), and put e i ( r ) : = ∥ y i ( r ) − x i ∥ ∞ e_{i}^{(r)}:=\lVert y_{i}^{(r)}-x_{i}\rVert_{\infty} e i ( r ) := ∥ y i ( r ) − x i ∥ ∞ . Since x ^ 0 , A i ( r ) ∈ F b \hat{x}_{0},A_{i}^{(r)}\in F_{b} x ^ 0 , A i ( r ) ∈ F b , the new update involves no rounding, so subtracting (7) from y i ( r + 1 ) = x ^ 0 + A i ( r ) y_{i}^{(r+1)}=\hat{x}_{0}+A_{i}^{(r)} y i ( r + 1 ) = x ^ 0 + A i ( r ) gives
y i ( r + 1 ) − x i = ( A i ( r ) − 1 K ∑ j < i v j ( r ) ) + 1 K ∑ j < i ( v j ( r ) − v j ) + ∑ j < i ( 1 K − h j ) v j − ρ i . y_{i}^{(r+1)}-x_{i}=\left(A_{i}^{(r)}-\frac{1}{K}\sum_{j<i}v_{j}^{(r)}\right)+\frac{1}{K}\sum_{j<i}(v_{j}^{(r)}-v_{j})+\sum_{j<i}\left(\frac{1}{K}-h_{j}\right)v_{j}-\rho_{i}. y i ( r + 1 ) − x i = ( A i ( r ) − K 1 j < i ∑ v j ( r ) ) + K 1 j < i ∑ ( v j ( r ) − v j ) + j < i ∑ ( K 1 − h j ) v j − ρ i .
The first term is bounded by η \eta η by Lemma 3; the remaining three terms are bounded by L K ∑ j < i e j ( r ) \frac{L}{K}\sum_{j<i}e_{j}^{(r)} K L ∑ j < i e j ( r ) , B K δ BK\delta B K δ , and K δ / 2 K\delta/2 K δ /2 exactly as in Appendix A.2.2, with ρ i ( r ) \rho_{i}^{(r)} ρ i ( r ) absent. Thus (3) holds with the same α : = 1 2 ( B + 1 ) K δ \alpha:=\frac{1}{2}(B+1)K\delta α := 2 1 ( B + 1 ) K δ and (4) with β : = η + ( B + 1 2 ) K δ \beta:=\eta+(B+\frac{1}{2})K\delta β := η + ( B + 2 1 ) K δ , and Lemma 2 gives
e K ( C ) ≤ 1 4 + α + β e L = 1 4 + η e L + ( B + 1 2 + ( B + 1 2 ) e L ) K δ ≤ 1 4 + 1 8 + ( 3 B 2 + 1 ) 2 − c 1 ≤ 1 2 , e_{K}^{(C)}\le\frac{1}{4}+\alpha+\beta e^{L}=\frac{1}{4}+\eta e^{L}+\left(\frac{B+1}{2}+\left(B+\frac{1}{2}\right)e^{L}\right)K\delta\le\frac{1}{4}+\frac{1}{8}+\left(\frac{3B}{2}+1\right)2^{-c_{1}}\le\frac{1}{2}, e K ( C ) ≤ 4 1 + α + β e L = 4 1 + η e L + ( 2 B + 1 + ( B + 2 1 ) e L ) K δ ≤ 4 1 + 8 1 + ( 2 3 B + 1 ) 2 − c 1 ≤ 2 1 ,
using η e L = 1 8 \eta e^{L}=\frac{1}{8} η e L = 8 1 , then K δ e L ≤ 2 − c 1 K\delta e^{L}\le2^{-c_{1}} K δ e L ≤ 2 − c 1 and K δ ≤ 2 − c 1 K\delta\le2^{-c_{1}} K δ ≤ 2 − c 1 , and finally (9). As in Appendix A.2.2, acceptance with margin 1 1 1 or − 1 -1 − 1 implies that at the positive-probability initialization x ^ 0 \hat{x}_{0} x ^ 0 (Appendix A.1) now gives ( y K ( C ) ) 1 ≥ 1 2 (y_{K}^{(C)})_{1}\ge\frac{1}{2} ( y K ( C ) ) 1 ≥ 2 1 if w ∈ L w\in\mathcal{L} w ∈ L and ( y K ( C ) ) 1 ≤ − 1 2 (y_{K}^{(C)})_{1}\le-\frac{1}{2} ( y K ( C ) ) 1 ≤ − 2 1 otherwise.
Size and depth. The run consists of C C C rounds, each consisting of K K K parallel calls to u u u surrounded by A C 0 \mathrm{AC}^{0} AC 0 circuits of size poly ( m ) \operatorname{poly}(m) poly ( m ) , namely n n n copies of Φ m \Phi_{m} Φ m , one per state coordinate, and, by the table bound, the addition of x ^ 0 \hat{x}_{0} x ^ 0 . Since C = O ( 1 ) C=O(1) C = O ( 1 ) and K , n K,n K , n are poly ( m ) \operatorname{poly}(m) poly ( m ) , the whole circuit has poly(m m m ) and depth O ( 1 ) O(1) O ( 1 ) over the copies of u u u . The surrounding arithmetic lies in A C 0 ⊆ D \mathrm{AC}^{0} \subseteq\mathcal{D} AC 0 ⊆ D , and composing these C C C layers of parallel copies of the D \mathcal{D} D circuit u u u keeps the result in D \mathcal{D} D . Since the sign test ( y K ( C ) ) 1 ≥ 0 (y_{K}^{(C)})_{1} \ge0 ( y K ( C ) ) 1 ≥ 0 reads only the O ( log m ) O(\log m) O ( log m ) bits of one scalar, the table bound computes it in A C 0 \mathrm{AC}^{0} AC 0 , correctly outputting 1 { w ∈ L } \mathbf{1}\{w \in\mathcal{L}\} 1 { w ∈ L } . Hence L ∈ D \mathcal{L} \in\mathcal{D} L ∈ D .
Expressiveness Lower Bound for SelfCondFM
We now prove Theorem 2 by making SelfCondFM simulate a Turing machine, using the endpoint prediction z i z_i z i as the Turing machine’s tape. Appendix A.3.1 puts a space-bounded Turing machine with advice into a form in which the new value of each cell is determined by that cell and its two neighbors. Appendix A.3.2 then builds a model that applies this rewrite rule to z i z_i z i coordinate-wise, so that each output coordinate reads constantly many inputs and the model stays in A C 0 \mathrm{AC}^{0} AC 0 . Since the extrapolation z i + 1 = x i + ( 1 − t i ) v i z_{i+1}=x_i+(1-t_i)v_i z i + 1 = x i + ( 1 − t i ) v i (line 8 of Algorithm 2) carries the current velocity with sufficient magnitude while t i t_i t i is small, the tape can advance one machine step per sampling step, and taking K K K large enough lets the simulated Turing machine halt. The tape then freezes on the verdict, which keeps the velocity constant and decides the sign of x K x_K x K .
Local Simulation of Space-Bounded Machines
To prepare the machine for the coordinate-wise simulation of Appendix A.3.2, we flatten it into a cellular automaton: the initial tape is the input followed by one hardwired string carrying the advice, and the machine fills the tape with one of two verdict symbols before halting.
Lemma 4. Let L \mathcal{L} L be any language in P S P A C E / p o l y \mathrm{PSPACE}/\mathrm{poly} PSPACE / poly . There exist an alphabet Σ ⊇ { 0 , 1 } \Sigma\supseteq\{0,1\} Σ ⊇ { 0 , 1 } of constant size containing two symbols a c c \mathrm{acc} acc and r e j \mathrm{rej} rej , a boundary symbol # ∉ Σ \# \notin\Sigma # ∈ / Σ , a local rule φ : ( Σ ∪ { # } ) 3 → Σ \varphi:(\Sigma\cup\{\#\})^{3} \to\Sigma φ : ( Σ ∪ { # } ) 3 → Σ , a tape length P ( m ) = poly ( m ) P(m)=\operatorname{poly}(m) P ( m ) = poly ( m ) , a horizon H ( m ) ≤ 2 poly ( m ) H(m) \le2^{\operatorname{poly}(m)} H ( m ) ≤ 2 poly ( m ) , and strings a ^ m ∈ Σ P ( m ) − m \hat{a}_m \in\Sigma^{P(m)-m} a ^ m ∈ Σ P ( m ) − m , such that the following holds for every w ∈ { 0 , 1 } m w \in\{0,1\}^{m} w ∈ { 0 , 1 } m . The sequence
c ( 1 ) : = concat ( w , a ^ m ) , c p ( i + 1 ) : = φ ( c p − 1 ( i ) , c p ( i ) , c p + 1 ( i ) ) ( 1 ≤ p ≤ P ( m ) ) , c^{(1)} := \operatorname{concat}(w,\hat{a}_m), \qquad c_p^{(i+1)} := \varphi\left(c_{p-1}^{(i)},c_p^{(i)},c_{p+1}^{(i)}\right) \quad(1 \le p \le P(m)), c ( 1 ) := concat ( w , a ^ m ) , c p ( i + 1 ) := φ ( c p − 1 ( i ) , c p ( i ) , c p + 1 ( i ) ) ( 1 ≤ p ≤ P ( m )) , with the convention that c 0 ( i ) = c P ( m ) + 1 ( i ) = # c_0^{(i)}=c_{P(m)+1}^{(i)}=\# c 0 ( i ) = c P ( m ) + 1 ( i ) = # , satisfies c ( i ) = a c c P ( m ) c^{(i)}=\mathrm{acc}^{P(m)} c ( i ) = acc P ( m ) for all i ≥ H ( m ) i \ge H(m) i ≥ H ( m ) if w ∈ L w \in\mathcal{L} w ∈ L , and c ( i ) = r e j P ( m ) c^{(i)}=\mathrm{rej}^{P(m)} c ( i ) = rej P ( m ) otherwise. If moreover L ∈ P / p o l y \mathcal{L} \in\mathrm{P}/\mathrm{poly} L ∈ P / poly , then H ( m ) = poly ( m ) H(m)=\operatorname{poly}(m) H ( m ) = poly ( m ) .
Proof. Take a deterministic Turing machine M \mathcal{M} M that decides w ∈ L w \in\mathcal{L} w ∈ L on the cells 1 , … , P ( m ) 1,\ldots,P(m) 1 , … , P ( m ) , for some P ( m ) = poly ( m ) P(m)=\operatorname{poly}(m) P ( m ) = poly ( m ) , from the tape initialization concat ( w , ⋄ , a m ) \operatorname{concat}(w,\diamond,a_m) concat ( w , ⋄ , a m ) , with ⋄ \diamond ⋄ a separator and a m a_m a m an advice string of length P ( m ) − m − 1 P(m)-m-1 P ( m ) − m − 1 . Being deterministic and halting, M \mathcal{M} M never repeats one of its at most 2 O ( P ( m ) ) 2^{O(P(m))} 2 O ( P ( m )) configurations, so it halts within T ( m ) ≤ 2 poly ( m ) T(m) \le2^{\operatorname{poly}(m)} T ( m ) ≤ 2 poly ( m ) steps, and within T ( m ) ≤ poly ( m ) T(m) \le\operatorname{poly}(m) T ( m ) ≤ poly ( m ) steps in the P / p o l y \mathrm{P}/\mathrm{poly} P / poly case, where M \mathcal{M} M can be taken polynomial-time. We may assume that M \mathcal{M} M starts in an initial state q 0 q_0 q 0 with its head on the separator and, before halting, overwrites every cell with a c c \mathrm{acc} acc or r e j \mathrm{rej} rej according to the verdict.
Fold the head and its state into the alphabet: Σ : = Γ ∪ ( Q × Γ ) \Sigma:= \Gamma\cup(Q \times\Gamma) Σ := Γ ∪ ( Q × Γ ) , where Γ ⊇ { 0 , 1 , ⋄ , a c c , r e j } \Gamma\supseteq\{0,1,\diamond,\mathrm{acc},\mathrm{rej}\} Γ ⊇ { 0 , 1 , ⋄ , acc , rej } is the tape alphabet and Q Q Q the state set. The whole run of M \mathcal{M} M is then local: each cell’s next content is determined by itself and its two neighboring cells. We encode this one-step update by the rule φ \varphi φ , with # \# # read as an end-marker and a halting head dissolving into its verdict. Since a cell changes only when the head acts on it, the headless all-acc and all-rej configurations are fixed points. Taking a ^ m : = concat ( ( q 0 , ⋄ ) , a m ) \hat{a}_m:=\operatorname{concat}((q_0,\diamond),a_m) a ^ m := concat (( q 0 , ⋄ ) , a m ) makes c ( 1 ) c^{(1)} c ( 1 ) the initial configuration, so c ( i ) c^{(i)} c ( i ) is the configuration after i − 1 i-1 i − 1 steps. A halting head thus appears by c ( T ( m ) + 1 ) c^{(T(m)+1)} c ( T ( m ) + 1 ) and dissolves one step later, leaving the tape filled with the verdict, a fixed point. Hence H ( m ) : = T ( m ) + 2 H(m):=T(m)+2 H ( m ) := T ( m ) + 2 works.
Proof of Theorem 2
To make the sampler simulate the machine of Lemma 4, we store the binary encoding of c ( i ) c^{(i)} c ( i ) in the prediction z i z_i z i , one bit per coordinate, and take K = 16 H K=16H K = 16 H . The simulation then runs at times t i ≤ 1 8 t_i \le\frac{1}{8} t i ≤ 8 1 , where the extrapolation z i + 1 = x i + ( 1 − t i ) v i z_{i+1}=x_i+(1-t_i)v_i z i + 1 = x i + ( 1 − t i ) v i delivers the velocity with sufficient magnitude, so z i + 1 z_{i+1} z i + 1 decodes exactly to the next configuration computed by the model. Once the tape freezes on the verdict, the velocity stays pinned at ± 4 \pm4 ± 4 , ensuring that every coordinate of x K x_K x K clears the acceptance margin with the sign of the verdict.
Proof of Theorem 2. Let Σ \Sigma Σ , φ \varphi φ , P = P ( m ) P = P(m) P = P ( m ) , H = H ( m ) H = H(m) H = H ( m ) , and a ^ m \hat{a}_m a ^ m be as in Lemma 4. Put κ : = ⌈ log 2 ∣ Σ ∣ ⌉ \kappa:= \lceil\log_2 |\Sigma| \rceil κ := ⌈ log 2 ∣Σ∣ ⌉ and fix an injection enc : Σ → { 0 , 1 } κ \operatorname{enc} : \Sigma\to\{0,1\}^{\kappa} enc : Σ → { 0 , 1 } κ with enc ( acc ) = 1 κ \operatorname{enc}(\operatorname{acc}) = 1^{\kappa} enc ( acc ) = 1 κ and enc ( rej ) = 0 κ \operatorname{enc}(\operatorname{rej}) = 0^{\kappa} enc ( rej ) = 0 κ , calling enc ( σ ) \operatorname{enc}(\sigma) enc ( σ ) the codeword of σ \sigma σ . Extend enc \operatorname{enc} enc to configurations c ∈ Σ P c \in\Sigma^P c ∈ Σ P cell by cell, enc ( c ) : = concat ( enc ( c 1 ) , … , enc ( c P ) ) \operatorname{enc}(c) := \operatorname{concat}(\operatorname{enc}(c_1),\ldots,\operatorname{enc}(c_P)) enc ( c ) := concat ( enc ( c 1 ) , … , enc ( c P )) , and set
n : = κ P , K : = 16 H . n := \kappa P,\qquad K := 16H. n := κ P , K := 16 H .
The codeword of cell p p p thus occupies the block of coordinates κ ( p − 1 ) + 1 , … , κ p \kappa(p-1)+1,\ldots,\kappa p κ ( p − 1 ) + 1 , … , κ p , so, with p : = ⌈ j / κ ⌉ p := \lceil j/\kappa\rceil p := ⌈ j / κ ⌉ , coordinate j j j carries bit q : = j − κ ( p − 1 ) q := j-\kappa(p-1) q := j − κ ( p − 1 ) of the codeword of cell p p p . Let N p : = { p − 1 , p , p + 1 } ∩ { 1 , … , P } N_p := \{p-1,p,p+1\}\cap\{1,\ldots,P\} N p := { p − 1 , p , p + 1 } ∩ { 1 , … , P } and let J j : = ⋃ r ∈ N p { κ ( r − 1 ) + 1 , … , κ r } J_j := \bigcup_{r\in N_p}\{\kappa(r-1)+1,\ldots,\kappa r\} J j := ⋃ r ∈ N p { κ ( r − 1 ) + 1 , … , κ r } collect the blocks of cell p p p and of its neighbors on the tape, and let I j : = { p } I_j := \{p\} I j := { p } if p ≤ m p\le m p ≤ m , I j : = ∅ I_j := \varnothing I j := ∅ otherwise. The precision b = b ( m ) b=b(m) b = b ( m ) is fixed at the end of the proof. Everything below holds for any choice with b ≥ 3 b\ge3 b ≥ 3 and b = O ( log m ) b=O(\log m) b = O ( log m ) . The next three paragraphs construct u u u and verify conditions (a) and (b) of Theorem 2, the paragraph The run proves acceptance, and the paragraph Parameters fixes b b b to meet condition (c).
Encoding a bit. A coordinate of the prediction z i z_i z i encodes one bit of a configuration, or the placeholder ⊥ \perp ⊥ when not yet initialized, via the encoding set E E E and the decoding map dec \operatorname{dec} dec given by
E : = { 0 } ∪ { ζ ∈ F b : 2 ≤ ∣ ζ ∣ ≤ 5 } , E := \{0\}\cup\{\zeta\in\mathbb{F}_b:2\le|\zeta|\le5\}, E := { 0 } ∪ { ζ ∈ F b : 2 ≤ ∣ ζ ∣ ≤ 5 } ,
dec ( ζ ) : = { ⊥ ζ = 0 , 1 ζ ≥ 2 , 0 ζ ≤ − 2. \operatorname{dec}(\zeta):=
\begin{cases}
\perp& \zeta=0,\\
1 & \zeta\ge2,\\
0 & \zeta\le-2.
\end{cases} dec ( ζ ) := ⎩ ⎨ ⎧ ⊥ 1 0 ζ = 0 , ζ ≥ 2 , ζ ≤ − 2.
The three bands { 0 } \{0\} { 0 } , E ∩ [ 2 , 5 ] E\cap[2,5] E ∩ [ 2 , 5 ] , and E ∩ [ − 5 , − 2 ] E\cap[-5,-2] E ∩ [ − 5 , − 2 ] are deliberately wide and pairwise at distance at least 2. Therefore, the encoding can tolerate the sampler’s perturbation, while an 8-Lipschitz model can still tell the bands apart.
The local maps. Define τ j : { 0 , 1 } I j × { 0 , 1 , ⊥ } J j → { 0 , 1 } \tau_j:\{0,1\}^{I_j}\times\{0,1,\perp\}^{J_j}\to\{0,1\} τ j : { 0 , 1 } I j × { 0 , 1 , ⊥ } J j → { 0 , 1 } by
τ j ( ω , ψ ) : = { bit q of enc ( ω p ) ψ = ⊥ J j and p ≤ m , bit q of enc ( a ^ m ) p − m ψ = ⊥ J j and p > m , bit q of enc ( φ ( σ p − 1 , σ p , σ p + 1 ) ) ψ = ( enc ( σ r ) ) r ∈ N p , 0 otherwise . \tau_j(\omega,\psi):=\begin{cases}\text{bit }q\text{ of }\operatorname{enc}(\omega_p) & \psi=\perp^{J_j}\text{ and }p\le m,\\\text{bit }q\text{ of }\operatorname{enc}(\hat{a}_m)_{p-m} & \psi=\perp^{J_j}\text{ and }p>m,\\\text{bit }q\text{ of }\operatorname{enc}(\varphi(\sigma_{p-1},\sigma_p,\sigma_{p+1})) & \psi=(\operatorname{enc}(\sigma_r))_{r\in N_p},\\0 & \text{otherwise}.\end{cases} τ j ( ω , ψ ) := ⎩ ⎨ ⎧ bit q of enc ( ω p ) bit q of enc ( a ^ m ) p − m bit q of enc ( φ ( σ p − 1 , σ p , σ p + 1 )) 0 ψ = ⊥ J j and p ≤ m , ψ = ⊥ J j and p > m , ψ = ( enc ( σ r ) ) r ∈ N p , otherwise .
with the convention σ 0 = σ P + 1 = # \sigma_0=\sigma_{P+1}=\# σ 0 = σ P + 1 = # at the tape ends. The first two cases initialize the tape and the third advances the machine by one step, so that with c ˉ ( 0 ) : = ⊥ n \bar{c}^{(0)}:=\perp^n c ˉ ( 0 ) := ⊥ n and c ˉ ( i ) : = enc ( c ( i ) ) \bar{c}^{(i)}:=\operatorname{enc}(c^{(i)}) c ˉ ( i ) := enc ( c ( i ) ) for i ≥ 1 i\ge1 i ≥ 1 ,
c ˉ j ( i + 1 ) = τ j ( ω I j , c ˉ J j ( i ) ) for all j and all i ≥ 0. (10) \bar{c}^{(i+1)}_j=\tau_j(\omega_{I_j},\bar{c}^{(i)}_{J_j})\qquad\text{for all }j\text{ and all }i\ge0. \tag*{(10)} c ˉ j ( i + 1 ) = τ j ( ω I j , c ˉ J j ( i ) ) for all j and all i ≥ 0. (10)
The model. Write D j : = { 0 , 1 } I j × E J j D_j:=\{0,1\}^{I_j}\times E^{J_j} D j := { 0 , 1 } I j × E J j , a finite nonempty subset of F b I j × F b J j \mathbb{F}_b^{I_j}\times\mathbb{F}_b^{J_j} F b I j × F b J j , and define f j : D j → { − 4 , 4 } f_j:D_j\to\{-4,4\} f j : D j → { − 4 , 4 } by
f j ( ω , ψ ) : = { + 4 τ j ( ω , dec ( ψ ) ) = 1 , − 4 τ j ( ω , dec ( ψ ) ) = 0 , f_j(\omega,\psi):=
\begin{cases}
+4 & \tau_j(\omega,\operatorname{dec}(\psi))=1,\\
-4 & \tau_j(\omega,\operatorname{dec}(\psi))=0,
\end{cases} f j ( ω , ψ ) := { + 4 − 4 τ j ( ω , dec ( ψ )) = 1 , τ j ( ω , dec ( ψ )) = 0 ,
where dec \operatorname{dec} dec is applied coordinate-wise to ψ \psi ψ . Then f j f_j f j is 8-Lipschitz on D j D_j D j in the maximum norm: if two points have different values, they differ in a Boolean coordinate or lie in different bands at some E E E coordinate, so they differ by at least 1 in that coordinate, while the values differ by 8.
Extend f j f_j f j to all of F b I j × F b J j \mathbb{F}_b^{I_j}\times\mathbb{F}_b^{J_j} F b I j × F b J j by a clipped McShane extension [45 ] ,
f ˉ j ( ω , ψ ) : = max { − 4 , min { 4 , min ( ω ′ , ψ ′ ) ∈ D j ( f j ( ω ′ , ψ ′ ) + 8 max { ∥ ω − ω ′ ∥ ∞ , ∥ ψ − ψ ′ ∥ ∞ } ) } } . \bar{f}_j(\omega,\psi):=\max\left\{-4,\min\left\{4,\min_{(\omega',\psi')\in D_j}\left(f_j(\omega',\psi')+8\max\left\{\|\omega-\omega'\|_\infty,\|\psi-\psi'\|_\infty\right\}\right)\right\}\right\}. f ˉ j ( ω , ψ ) := max { − 4 , min { 4 , ( ω ′ , ψ ′ ) ∈ D j min ( f j ( ω ′ , ψ ′ ) + 8 max { ∥ ω − ω ′ ∥ ∞ , ∥ ψ − ψ ′ ∥ ∞ } ) } } .
Then f ˉ j \bar{f}_j f ˉ j is 8-Lipschitz and 4-bounded, and agrees with f j f_j f j on D j D_j D j . It needs no rounding, because F b \mathbb{F}_b F b is closed under the arithmetic involved.
For every m m m , define the restriction of the single model u u u with b = b ( m ) b=b(m) b = b ( m ) , n = n ( m ) n=n(m) n = n ( m ) , and ∣ ctx ∣ = m + n |\operatorname{ctx}|=m+n ∣ ctx ∣ = m + n by
( u ( x , t ; ctx ) ) j : = f ˉ j ( ctx I j , ( ctx m + k ) k ∈ J j ) , j = 1 , … , n , \left(u(x,t;\operatorname{ctx})\right)_j:=\bar{f}_j\left(\operatorname{ctx}_{I_j},(\operatorname{ctx}_{m+k})_{k\in J_j}\right),\qquad j=1,\ldots,n, ( u ( x , t ; ctx ) ) j := f ˉ j ( ctx I j , ( ctx m + k ) k ∈ J j ) , j = 1 , … , n ,
@page 25/55 starts_mid=0 ends_mid=1 and set u ( x , t ; ctx ) : = 0 n u(x,t;\operatorname{ctx}) := \mathbf{0}^{n} u ( x , t ; ctx ) := 0 n on all other encoded inputs. Since each output coordinate is f ˉ j \bar{f}_j f ˉ j of a fixed subtuple of the condition, the model is 4-bounded and 8-Lipschitz continuous in the sense of § 2.2 . Each f ˉ j \bar{f}_j f ˉ j reads ∣ I j ∣ + ∣ J j ∣ = O ( 1 ) |I_j|+|J_j|=O(1) ∣ I j ∣ + ∣ J j ∣ = O ( 1 ) scalars, and an A C 0 \mathrm{AC}^{0} AC 0 circuit first clips them to [ − 8 , 8 ] [-8,8] [ − 8 , 8 ] . This leaves f ˉ j \bar{f}_j f ˉ j unchanged, since D j ⊆ [ − 5 , 5 ] I j ∪ J j D_j\subseteq[-5,5]^{I_j\cup J_j} D j ⊆ [ − 5 , 5 ] I j ∪ J j and a scalar of magnitude at least 8 forces f ˉ j = 4 \bar{f}_j=4 f ˉ j = 4 . The clipped scalars have O ( log m ) O(\log m) O ( log m ) bits, so the table bound (Appendix A.1) computes f ˉ j \bar{f}_j f ˉ j at depth two and size poly ( m ) \operatorname{poly}(m) poly ( m ) . Hence u u u is computed by A C 0 \mathrm{AC}^{0} AC 0 circuits, and conditions (a) and (b) of Theorem 2 hold.
The run. We now prove that u u u accepts L L L with margin 1 under SELFCONDFM. Fix w ∈ { 0 , 1 } m w\in\{0,1\}^{m} w ∈ { 0 , 1 } m and run SELFCONDFM( w ; u , K ) (w;u,K) ( w ; u , K ) . The estimates below hold for every realization of x 0 x_0 x 0 , which is the only randomness in the run, and therefore hold with probability 1. By line 6 of Algorithm 2, its condition at step i i i is concat ( w , z i ) \operatorname{concat}(w,z_i) concat ( w , z i ) , of length exactly m + n m+n m + n , so ( v i ) j = f ˉ j ( w I j , ( z i ) J j ) (v_i)_j=\bar{f}_j(w_{I_j},(z_i)_{J_j}) ( v i ) j = f ˉ j ( w I j , ( z i ) J j ) . The run splits at step H H H . For the first phase, when 0 ≤ i ≤ H 0\leq i\leq H 0 ≤ i ≤ H , one sampling step advances the tape by one machine step, so that z i z_i z i decodes to c ˉ ( i ) = enc ( c ( i ) ) \bar{c}^{(i)}=\operatorname{enc}(c^{(i)}) c ˉ ( i ) = enc ( c ( i ) ) . For the second phase, from H H H on, Lemma 4 freezes the tape on the verdict, the velocity stays pinned at ± 4 \pm4 ± 4 , and x K x_K x K inherits this sign. We prove these two claims in turn.
For the first phase, we show that z i z_i z i decodes to c ˉ ( i ) \bar{c}^{(i)} c ˉ ( i ) for every 0 ≤ i ≤ H 0\leq i\leq H 0 ≤ i ≤ H . This phase runs at small times: since b ≥ 3 b\geq3 b ≥ 3 , we have δ / 2 ≤ 2 − 4 \delta/2\leq2^{-4} δ /2 ≤ 2 − 4 , so t i ≤ i / K + 2 − 4 t_i\leq i/K+2^{-4} t i ≤ i / K + 2 − 4 , and K = 16 H K=16H K = 16 H gives
t i ≤ 1 16 + 1 16 = 1 8 for all 0 ≤ i ≤ H . (11) t_i\leq\frac{1}{16}+\frac{1}{16}=\frac{1}{8}\qquad\text{for all }0\leq i\leq H. \tag*{(11)} t i ≤ 16 1 + 16 1 = 8 1 for all 0 ≤ i ≤ H . (11)
We prove by induction on i i i the stronger claim that for every 0 ≤ i ≤ H 0\leq i\leq H 0 ≤ i ≤ H : (a) ( z i ) j ∈ E (z_i)_j\in E ( z i ) j ∈ E with dec ( ( z i ) j ) = c ˉ j ( i ) \operatorname{dec}((z_i)_j)=\bar{c}^{(i)}_j dec (( z i ) j ) = c ˉ j ( i ) for all j j j ; (b) ∥ x i ∥ ∞ ≤ 1 + 4 t i \lVert x_i\rVert_\infty\leq1+4t_i ∥ x i ∥ ∞ ≤ 1 + 4 t i ; and (c) all arithmetic up to step i i i is exact. All three hold at i = 0 i=0 i = 0 . Given them at some i < H i<H i < H , claim (a) puts the argument of f ˉ j \bar{f}_j f ˉ j in D j D_j D j , where f ˉ j \bar{f}_j f ˉ j agrees with f j f_j f j , so that ( v i ) j (v_i)_j ( v i ) j is + 4 +4 + 4 if c ˉ j ( i + 1 ) = 1 \bar{c}^{(i+1)}_j=1 c ˉ j ( i + 1 ) = 1 and − 4 -4 − 4 otherwise, by (10) . As F b F_b F b is closed under multiplication by integers, both updates in lines 7 and 8 of Algorithm 2 are exact, giving (c) and ∥ x i + 1 ∥ ∞ ≤ ∥ x i ∥ ∞ + 4 ( t i + 1 − t i ) ≤ 1 + 4 t i + 1 \lVert x_{i+1}\rVert_\infty\leq\lVert x_i\rVert_\infty+4(t_{i+1}-t_i)\leq1+4t_{i+1} ∥ x i + 1 ∥ ∞ ≤ ∥ x i ∥ ∞ + 4 ( t i + 1 − t i ) ≤ 1 + 4 t i + 1 , which is (b). For (a), if c ˉ j ( i + 1 ) = 1 \bar{c}^{(i+1)}_j=1 c ˉ j ( i + 1 ) = 1 then ( z i + 1 ) j = ( x i ) j + 4 ( 1 − t i ) (z_{i+1})_j=(x_i)_j+4(1-t_i) ( z i + 1 ) j = ( x i ) j + 4 ( 1 − t i ) lies in [ 3 − 8 t i , 5 ] ⊆ [ 2 , 5 ] [3-8t_i,5]\subseteq[2,5] [ 3 − 8 t i , 5 ] ⊆ [ 2 , 5 ] by (b) and (11) , and symmetrically in [ − 5 , − 2 ] [-5,-2] [ − 5 , − 2 ] if c ˉ j ( i + 1 ) = 0 \bar{c}^{(i+1)}_j=0 c ˉ j ( i + 1 ) = 0 . This completes the induction, so z H z_H z H decodes to c ˉ ( H ) \bar{c}^{(H)} c ˉ ( H ) , the encoded verdict tape.
For the second phase, we show that the velocity stays at ± 4 \pm4 ± 4 from step H H H on, so that every coordinate of x K x_K x K has the sign of the verdict and magnitude at least 1. The first-phase bound on z i + 1 z_{i+1} z i + 1 relied on t i ≤ 1 / 8 t_i\leq1/8 t i ≤ 1/8 , which fails as t i t_i t i approaches 1, so we use instead that the tape is frozen. Suppose that w ∈ L w\in L w ∈ L . Then Lemma 4 and enc ( acc ) = 1 K \operatorname{enc}(\operatorname{acc})=\mathbf{1}^{K} enc ( acc ) = 1 K give c ˉ ( i ) = 1 n \bar{c}^{(i)}=\mathbf{1}^{n} c ˉ ( i ) = 1 n for all i ≥ H i\geq H i ≥ H . We show by induction on H ≤ i ≤ K H\leq i\leq K H ≤ i ≤ K that (a′ ' ′ ) ( z i ) j ∈ E ∩ [ 2 , 5 ] (z_i)_j\in E\cap[2,5] ( z i ) j ∈ E ∩ [ 2 , 5 ] for all j j j , and (b′ ' ′ ) x i = x H + 4 ( t i − t H ) 1 n x_i=x_H+4(t_i-t_H)\mathbf{1}^{n} x i = x H + 4 ( t i − t H ) 1 n exactly. At i = H i=H i = H , (a′ ' ′ ) is (a) with c ˉ ( H ) = 1 n \bar{c}^{(H)}=\mathbf{1}^{n} c ˉ ( H ) = 1 n , and (b′ ' ′ ) is trivial. Given them at some i < K i<K i < K , (a′ ' ′ ) puts the argument of f ˉ j \bar{f}_j f ˉ j in D j D_j D j with dec ( ( z i ) J j ) = 1 J j = c ˉ J j ( i ) \operatorname{dec}((z_i)_{J_j})=\mathbf{1}^{J_j}=\bar{c}^{(i)}_{J_j} dec (( z i ) J j ) = 1 J j = c ˉ J j ( i ) , so (10) and c ˉ ( i + 1 ) = 1 n \bar{c}^{(i+1)}=\mathbf{1}^{n} c ˉ ( i + 1 ) = 1 n give ( v i ) j = + 4 (v_i)_j=+4 ( v i ) j = + 4 for every j j j . Line 7 of Algorithm 2 then gives (b′ ' ′ ) at i + 1 i+1 i + 1 , and in line 8 the two t i t_i t i terms cancel:
( z i + 1 ) j = ( x i + 1 ) j + 4 ( 1 − t i ) = ( x H ) j + 4 ( 1 − t H ) ∈ [ 3 − 8 t H , 5 ] ⊆ [ 2 , 5 ] (z_{i+1})_j=(x_{i+1})_j+4(1-t_i)=(x_H)_j+4(1-t_H)\in[3-8t_H,5]\subseteq[2,5] ( z i + 1 ) j = ( x i + 1 ) j + 4 ( 1 − t i ) = ( x H ) j + 4 ( 1 − t H ) ∈ [ 3 − 8 t H , 5 ] ⊆ [ 2 , 5 ]
by (b) and (11) at i = H i=H i = H , which is (a′ ' ′ ) at i + 1 i+1 i + 1 . Thus z i z_i z i stops moving and the velocity stays at + 4 +4 + 4 until the end. Taking i = K i=K i = K in (b′ ' ′ ) and using t K = 1 t_K=1 t K = 1 gives ( x K ) j = ( x H ) j + 4 ( 1 − t H ) ≥ 2 ≥ 1 (x_K)_j=(x_H)_j+4(1-t_H)\geq2\geq1 ( x K ) j = ( x H ) j + 4 ( 1 − t H ) ≥ 2 ≥ 1 for every j j j . Symmetrically, if w ∉ L w\notin L w ∈ / L , then c ˉ ( i ) = 0 n \bar{c}^{(i)}=\mathbf{0}^{n} c ˉ ( i ) = 0 n for i ≥ H i\geq H i ≥ H , the velocity stays at − 4 -4 − 4 , and ( x K ) j ≤ − 1 (x_K)_j\leq-1 ( x K ) j ≤ − 1 . Hence u u u accepts L L L with margin 1 under SELFCONDFM.
Parameters. Finally, we fix b b b and read off the two cases of Theorem 2. For L ∈ P S P A C E / poly L\in\mathrm{PSPACE}/\operatorname{poly} L ∈ PSPACE / poly , Lemma 4 gives n ( m ) = κ P ( m ) = poly ( m ) n(m)=\kappa P(m)=\operatorname{poly}(m) n ( m ) = κ P ( m ) = poly ( m ) and K ( m ) = 16 H ( m ) ≤ 2 poly ( m ) K(m)=16H(m)\leq2^{\operatorname{poly}(m)} K ( m ) = 16 H ( m ) ≤ 2 poly ( m ) , and b ( m ) : = 3 = O ( log m ) b(m):=3=O(\log m) b ( m ) := 3 = O ( log m ) meets the sole requirement b ≥ 3 b\geq3 b ≥ 3 made above. If moreover L ∈ P / poly L\in\mathrm{P}/\operatorname{poly} L ∈ P / poly , the same lemma gives H ( m ) = poly ( m ) H(m)=\operatorname{poly}(m) H ( m ) = poly ( m ) and hence K ( m ) = poly ( m ) K(m)=\operatorname{poly}(m) K ( m ) = poly ( m ) , while b b b must in addition satisfy the bound (1) on its fractional bits. The choice
b ( m ) : = max { 3 , ⌈ 2 log 2 K ( m ) ⌉ } b(m):=\max\{3,\lceil2\log_{2}K(m)\rceil\} b ( m ) := max { 3 , ⌈ 2 log 2 K ( m )⌉}
satisfies b ( m ) ≥ 2 log 2 K ( m ) b(m)\geq2\log_{2}K(m) b ( m ) ≥ 2 log 2 K ( m ) , and hence (1). Since K ( m ) K(m) K ( m ) is now polynomial, this b ( m ) b(m) b ( m ) is O ( log m ) O(\log m) O ( log m ) , and the construction remains valid. In both cases condition (c) holds, which completes the proof.
Proofs of Theoretical Extensions
This appendix proves the extension results presented in §3.4. Appendix B.1 establishes Corollary 1, the circuit analogue of Lemma 1 for a growing Lipschitz constant L L L . Appendix B.2 extends the analyses from ℓ ∞ \ell_\infty ℓ ∞ to ℓ p \ell_p ℓ p Lipschitz continuity for any fixed p ∈ [ 1 , ∞ ] p \in[1,\infty] p ∈ [ 1 , ∞ ] . Appendix B.3 extends the upper bounds for VANILLAFM from the Euler method to fixed explicit Runge–Kutta samplers. Finally, Appendix B.4 encodes majority circuits into VANILLAFM, demonstrating that the O ( L ) O(L) O ( L ) rounds of Lemma 1 match circuit depth and cannot be improved without collapsing the majority-circuit depth hierarchy.
The Growing Lipschitz Constant
The proof of Lemma 1 bounds the number of Picard rounds by O ( L ) O(L) O ( L ) without using the constancy of L L L , so the lemma already allows a growing L ( m ) L(m) L ( m ) . Since the exact prefix sums of each round are computable in T C 0 \mathrm{TC}^{0} TC 0 when K = poly ( m ) K=\operatorname{poly}(m) K = poly ( m ) and b = poly ( m ) b=\operatorname{poly}(m) b = poly ( m ) , the whole run then becomes a majority circuit of depth O ( L ) O(L) O ( L ) instead of O ( 1 ) O(1) O ( 1 ) .
Corollary 1. Let u u u be a model that can be computed by circuits in T C 0 \mathrm{TC}^{0} TC 0 , and L \mathcal{L} L be any language that can be accepted by u u u with margin 1 1 1 under VANILLAFM. Assume that u u u is B B B -bounded for a constant B > 0 B>0 B > 0 and L ( m ) L(m) L ( m ) -Lipschitz continuous for some L ( m ) ≥ 1 L(m)\ge1 L ( m ) ≥ 1 that may grow with m m m . Then there exists a constant c 0 = c 0 ( B ) > 0 c_0=c_0(B)>0 c 0 = c 0 ( B ) > 0 , independent of m m m , such that as long as the state dimension and the number of steps satisfy n = poly ( m ) n=\operatorname{poly}(m) n = poly ( m ) and K = poly ( m ) K=\operatorname{poly}(m) K = poly ( m ) , and the number of fractional bits satisfies
log 2 K ( m ) + ( log 2 e ) L ( m ) + c 0 ≤ b ( m ) ≤ poly ( m ) for every m , (12) \log_2 K(m) + (\log_2 e)L(m) + c_0 \le b(m) \le\operatorname{poly}(m) \qquad\text{for every }m, \tag*{(12)} log 2 K ( m ) + ( log 2 e ) L ( m ) + c 0 ≤ b ( m ) ≤ poly ( m ) for every m , (12) L \mathcal{L} L can be decided by majority circuits of size poly ( m ) \operatorname{poly}(m) poly ( m ) and depth O ( L ( m ) ) O(L(m)) O ( L ( m )) . In particular, L ∈ T C k \mathcal{L}\in\mathrm{TC}^{k} L ∈ TC k if L ( m ) = O ( log k m ) L(m)=O(\log^{k}m) L ( m ) = O ( log k m ) for a constant integer k ≥ 0 k\ge0 k ≥ 0 , and L ∈ N C \mathcal{L}\in\mathrm{NC} L ∈ NC if L ( m ) = poly ( log m ) L(m)=\operatorname{poly}(\log m) L ( m ) = poly ( log m ) .
Proof. We turn the algorithm of Lemma 1 into a majority circuit. The lower bound in (12) is exactly the hypothesis (2) of Lemma 1, with c 0 = c 0 ( B ) c_0=c_0(B) c 0 = c 0 ( B ) the constant of that lemma. Hence the lemma’s algorithm, namely Algorithm 3 with C : = ⌈ e L + 4 B ⌉ C:=\lceil eL+4B\rceil C := ⌈ e L + 4 B ⌉ rounds, run from a hardwired initialization x ^ 0 \hat{x}_0 x ^ 0 (Appendix A.1), accepts L \mathcal{L} L with margin 1 2 \frac{1}{2} 2 1 : every coordinate of its output y K ( C ) y_K^{(C)} y K ( C ) is at least 1 2 \frac{1}{2} 2 1 when w ∈ L w\in\mathcal{L} w ∈ L and at most − 1 2 -\frac{1}{2} − 2 1 otherwise.
As noted after the proof of Lemma 1, one round of that algorithm consists of K K K parallel calls to u u u followed by prefix sums and normalizations, which T C 0 \mathrm{TC}^{0} TC 0 computes exactly since K K K and b b b are poly ( m ) \operatorname{poly}(m) poly ( m ) [62 , 30 ] . Since u u u is itself computed by T C 0 \mathrm{TC}^{0} TC 0 circuits, composing the C C C rounds with the indicator 1 { ( y K ( C ) ) 1 ≥ 0 } \mathbf{1}\{(y_K^{(C)})_1\ge0\} 1 {( y K ( C ) ) 1 ≥ 0 } yields a majority circuit deciding L \mathcal{L} L . Its depth is O ( C ) = O ( L ( m ) ) O(C)=O(L(m)) O ( C ) = O ( L ( m )) , and its size is poly ( m ) \operatorname{poly}(m) poly ( m ) because each round has size polynomial in m m m and the precision hypothesis (12) bounds ( log 2 e ) L ( m ) (\log_2 e)L(m) ( log 2 e ) L ( m ) by b ( m ) = poly ( m ) b(m)=\operatorname{poly}(m) b ( m ) = poly ( m ) , so that C = poly ( m ) C=\operatorname{poly}(m) C = poly ( m ) .
If L ( m ) = O ( log k m ) L(m)=O(\log^{k}m) L ( m ) = O ( log k m ) , the depth is O ( log k m ) O(\log^{k}m) O ( log k m ) and L ∈ T C k \mathcal{L}\in\mathrm{TC}^{k} L ∈ TC k by definition. If L ( m ) = poly ( log m ) L(m)=\operatorname{poly}(\log m) L ( m ) = poly ( log m ) , then L ( m ) = O ( log k m ) L(m)=O(\log^{k}m) L ( m ) = O ( log k m ) for some constant k k k , so L ∈ T C k ⊆ N C \mathcal{L}\in\mathrm{TC}^{k}\subseteq\mathrm{NC} L ∈ TC k ⊆ NC (Appendix A.1). □ \square □
lp Lipschitz Condition
We now extend Theorems 1 and 2 to the ℓ p \ell_p ℓ p norm for a fixed p ∈ [ 1 , ∞ ] p\in[1,\infty] p ∈ [ 1 , ∞ ] . We say that u u u is L L L -Lipschitz in ℓ p \ell_p ℓ p if
∥ u ( x , t ; c t x ) − u ( x ′ , t ; c t x ′ ) ∥ p ≤ L max { ∥ x − x ′ ∥ p , ∥ c t x − c t x ′ ∥ p } \left\|u(x,t;\mathrm{ctx})-u(x',t;\mathrm{ctx}')\right\|_p \le L\max\left\{\left\|x-x'\right\|_p,\left\|\mathrm{ctx}-\mathrm{ctx}'\right\|_p\right\} ∥ u ( x , t ; ctx ) − u ( x ′ , t ; ctx ′ ) ∥ p ≤ L max { ∥ x − x ′ ∥ p , ∥ ctx − ctx ′ ∥ p }
for all x , x ′ ∈ F b n x,x'\in F_b^n x , x ′ ∈ F b n , equal-length c t x , c t x ′ ∈ F b p \mathrm{ctx},\mathrm{ctx}'\in F_b^p ctx , ctx ′ ∈ F b p , and t ∈ [ 0 , 1 ] ∩ F b t\in[0,1]\cap F_b t ∈ [ 0 , 1 ] ∩ F b .
Proposition 1 (Upper bound under ℓ p \ell_p ℓ p ). Theorem 1 remains true if its ℓ ∞ \ell_\infty ℓ ∞ Lipschitz hypothesis is replaced by an ℓ p \ell_p ℓ p Lipschitz hypothesis for any fixed p ∈ [ 1 , ∞ ] p\in[1,\infty] p ∈ [ 1 , ∞ ] .
Proof. The small-K K K case of Appendix A.2.4 re-runs the sampler exactly and is independent of the Lipschitz norm, so it carries over unchanged. For the large-K K K case, we follow the proof of Theorem 1 in Appendix A.2.4, measuring every error in the normalized norm ϵ i ( r ) : = n − 1 / p ∥ y i ( r ) ∥ p \epsilon_i^{(r)}:=n^{-1/p}\|y_i^{(r)}\|_p ϵ i ( r ) := n − 1/ p ∥ y i ( r ) ∥ p and x i ∥ p x_i\|_p x i ∥ p , with n − 1 / ∞ : = 1 n^{-1/\infty}:=1 n − 1/∞ := 1 . Two observations carry the argument over. Boundedness gives $|v_j|_p\le n 1 / p B n^{1/p}B n 1/ p B , and a perturbation bounded by ε \varepsilon ε in every coordinate changes the normalized norm by at most ε \varepsilon ε , both because ∥ ⋅ ∥ p ≤ n 1 / p ∥ ⋅ ∥ ∞ \lVert\cdot\rVert_p \le n^{1/p}\lVert\cdot\rVert_\infty ∥ ⋅ ∥ p ≤ n 1/ p ∥ ⋅ ∥ ∞ . The ℓ p \ell_p ℓ p Lipschitz hypothesis gives ∥ v j ( r ) − v j ∥ p ≤ L ∥ y j ( r ) − x j ∥ p \lVert v_j^{(r)}-v_j\rVert_p \le L\lVert y_j^{(r)}-x_j\rVert_p ∥ v j ( r ) − v j ∥ p ≤ L ∥ y j ( r ) − x j ∥ p , since the two velocities share t j t_j t j and w w w .
We run the construction of Appendix § 9 .2.4 with η : = 1 16 e − L \eta:= \frac{1}{16}e^{-L} η := 16 1 e − L in place of 1 8 e − L \frac{1}{8}e^{-L} 8 1 e − L , choosing the constant c 1 = c 1 ( B ) c_1=c_1(B) c 1 = c 1 ( B ) of (9) large enough that ( 3 B 2 + 1 ) 2 − c 1 ≤ 1 16 \left(\frac{3B}{2}+1\right)2^{-c_1}\le\frac{1}{16} ( 2 3 B + 1 ) 2 − c 1 ≤ 16 1 and 2 − c 1 ≤ 1 16 2^{-c_1}\le\frac{1}{16} 2 − c 1 ≤ 16 1 . In the large-K K K case we have b ≥ log 2 K + ( log 2 e ) L + c 1 b\ge\log_2 K+(\log_2 e)L+c_1 b ≥ log 2 K + ( log 2 e ) L + c 1 , which is equivalent to K δ ≤ 2 − c 1 e − L K\delta\le2^{-c_1}e^{-L} K δ ≤ 2 − c 1 e − L and thus gives δ ≤ K δ ≤ η \delta\le K\delta\le\eta δ ≤ K δ ≤ η , so Lemma 3 applies with ε : = η \varepsilon:=\eta ε := η exactly as there, and every other parameter is unchanged.
The error analysis of Appendix § 9 .2.4 then carries over: with s i : = i / K s_i:=i/K s i := i / K and the same α : = B + 1 2 K δ \alpha:=\frac{B+1}{2}K\delta α := 2 B + 1 K δ and β : = η + ( B + 1 2 ) K δ \beta:=\eta+(B+\frac{1}{2})K\delta β := η + ( B + 2 1 ) K δ as there,
e i ( 0 ) ≤ B s i + α , e i ( r + 1 ) ≤ L K ∑ j = 0 i − 1 e j ( r ) + β . e_i^{(0)}\le Bs_i+\alpha,\qquad e_i^{(r+1)}\le\frac{L}{K}\sum_{j=0}^{i-1}e_j^{(r)}+\beta. e i ( 0 ) ≤ B s i + α , e i ( r + 1 ) ≤ K L j = 0 ∑ i − 1 e j ( r ) + β .
Indeed, the four terms of the decomposition of Appendix § 9 .2.4 are bounded exactly as there: the prefix-sum error contributes η \eta η , the velocity differences L K ∑ j < i e j ( r ) \frac{L}{K}\sum_{j<i}e_j^{(r)} K L ∑ j < i e j ( r ) by the second observation, the weight mismatch at most B K δ BK\delta B K δ by the first, and the rounding residuals K δ / 2 K\delta/2 K δ /2 since n − 1 / p ∥ ⋅ ∥ p ≤ ∥ ⋅ ∥ ∞ n^{-1/p}\lVert\cdot\rVert_p\le\lVert\cdot\rVert_\infty n − 1/ p ∥ ⋅ ∥ p ≤ ∥ ⋅ ∥ ∞ , and similarly for the initial bound.
Lemma 2 with C : = ⌈ e L + 4 B ⌉ C:=\lceil eL+4B\rceil C := ⌈ e L + 4 B ⌉ gives e K ( C ) ≤ 1 4 + α + β e L e_K^{(C)}\le\frac{1}{4}+\alpha+\beta e^L e K ( C ) ≤ 4 1 + α + β e L , and as in Appendix § 9 .2.4 the precision hypothesis bounds α + β e L ≤ ( 3 B 2 + 1 ) 2 − c 1 + η e L ≤ 1 16 + 1 16 = 1 8 \alpha+\beta e^L\le\left(\frac{3B}{2}+1\right)2^{-c_1}+\eta e^L\le\frac{1}{16}+\frac{1}{16}=\frac{1}{8} α + β e L ≤ ( 2 3 B + 1 ) 2 − c 1 + η e L ≤ 16 1 + 16 1 = 8 1 , so that e K ( C ) ≤ 3 8 e_K^{(C)}\le\frac{3}{8} e K ( C ) ≤ 8 3 .
It remains to read off the decision, for which a single coordinate no longer suffices. If w ∈ L w\in\mathcal{L} w ∈ L , every coordinate of x K x_K x K is at least 1 1 1 , so a coordinate j j j with ( y K ( C ) ) j < 0 (y_K^{(C)})_j<0 ( y K ( C ) ) j < 0 satisfies ∣ ( y K ( C ) ) j − ( x K ) j ∣ ≥ 1 \lvert(y_K^{(C)})_j-(x_K)_j\rvert\ge1 ∣( y K ( C ) ) j − ( x K ) j ∣ ≥ 1 . Such coordinates form at most a fraction ξ \xi ξ of the n n n coordinates, where ξ ≤ e K ( C ) \xi\le e_K^{(C)} ξ ≤ e K ( C ) if p < ∞ p<\infty p < ∞ , since their contribution alone gives n − 1 ∥ y K ( C ) − x K ∥ p p ≥ ξ n^{-1}\lVert y_K^{(C)}-x_K\rVert_p^p\ge\xi n − 1 ∥ y K ( C ) − x K ∥ p p ≥ ξ , and ξ = 0 \xi=0 ξ = 0 if p = ∞ p=\infty p = ∞ . In either case ξ ≤ 3 8 \xi\le\frac{3}{8} ξ ≤ 8 3 , because e K ( C ) ≤ 3 8 < 1 e_K^{(C)}\le\frac{3}{8}<1 e K ( C ) ≤ 8 3 < 1 and p ≥ 1 p\ge1 p ≥ 1 .
At least 5 8 \frac{5}{8} 8 5 of the coordinates of y K ( C ) y_K^{(C)} y K ( C ) are therefore positive, and symmetrically at least 5 8 \frac{5}{8} 8 5 are negative if w ∉ L w\notin\mathcal{L} w ∈ / L . The table bound computes the sign of each coordinate, and approximate counting in A C 0 \mathrm{AC}^0 AC 0 ([2 ] ), applied to these signs, estimates the fraction of positive coordinates to within 1 16 \frac{1}{16} 16 1 . The estimate is thus at least 5 8 − 1 16 > 1 2 \frac{5}{8}-\frac{1}{16}>\frac{1}{2} 8 5 − 16 1 > 2 1 if w ∈ L w\in\mathcal{L} w ∈ L and at most 3 8 + 1 16 < 1 2 \frac{3}{8}+\frac{1}{16}<\frac{1}{2} 8 3 + 16 1 < 2 1 if w ∉ L w\notin\mathcal{L} w ∈ / L , so comparing it with 1 2 \frac{1}{2} 2 1 decides L \mathcal{L} L . This count replaces the single-coordinate comparison at the end of Appendix § 9 .2.4 and lies in A C 0 ⊆ D \mathrm{AC}^0\subseteq D AC 0 ⊆ D for all three choices of D D D . Hence L ∈ D \mathcal{L}\in D L ∈ D .
Proposition 2 (Lower bound under ℓ p \ell_p ℓ p ). For every fixed p ∈ [ 1 , ∞ ] p\in[1,\infty] p ∈ [ 1 , ∞ ] , Theorem 2 remains true with the Lipschitz requirement in condition (b) replaced by L ′ L' L ′ -Lipschitz continuity in ℓ p \ell_p ℓ p , for some constant L ′ L' L ′ depending only on L L L . In the P / p o l y P/\mathrm{poly} P / poly case its precision can be chosen to further satisfy (1).
Proof. We reuse the model u u u of Appendix § 9 .§ 3.2 as it stands: each coordinate of its condition is read by constantly many of the windows ( I j , J j ) (I_j,J_j) ( I j , J j ) , and this bounded overlap already makes u u u Lipschitz continuous in every ℓ p \ell_p ℓ p norm. All other conditions of Theorem 2, and acceptance with margin 1 1 1 , are unaffected, since the model and the run are unchanged.
To compute the constant, write Δ c t x : = c t x − c t x ′ \Delta\mathrm{ctx}:=\mathrm{ctx}-\mathrm{ctx}' Δ ctx := ctx − ctx ′ for the difference of two equal-length conditions and split it into its input part Δ w \Delta w Δ w and its endpoint-prediction part Δ z \Delta z Δ z . Since u u u ignores x x x and each f ˉ j \bar f_j f ˉ j is 8 8 8 -Lipschitz in the ℓ ∞ \ell_\infty ℓ ∞ norm of its window, each output coordinate changes by at most 8 8 8 times the largest change inside its window. Raising to the p p p -th power, bounding that maximum by a sum, and summing over j j j give, for 1 ≤ p < ∞ 1\le p<\infty 1 ≤ p < ∞ ,
∥ u ( x , t ; c t x ) − u ( x , t ; c t x ′ ) ∥ p p ≤ 8 p ∑ j = 1 n ( ∑ k ∈ I j ∣ Δ w k ∣ p + ∑ k ∈ J j ∣ Δ z k ∣ p ) . \lVert u(x,t;\mathrm{ctx})-u(x,t;\mathrm{ctx}')\rVert_p^p\le8^p\sum_{j=1}^{n}\left(\sum_{k\in I_j}|\Delta w_k|^p+\sum_{k\in J_j}|\Delta z_k|^p\right). ∥ u ( x , t ; ctx ) − u ( x , t ; ctx ′ ) ∥ p p ≤ 8 p j = 1 ∑ n k ∈ I j ∑ ∣Δ w k ∣ p + k ∈ J j ∑ ∣Δ z k ∣ p .
In this double sum, each input coordinate appears in I j I_j I j for the κ \kappa κ coordinates j j j of its block, and each endpoint-prediction coordinate appears in J j J_j J j for at most $3\kappa$ coordinates j j j , those of its own block and of the two neighboring blocks. The double sum is therefore at most $\kappa\lVert\Delta w\rVert_p^p+3\kappa\lVert\Delta z\rVert_p^p\le 3 κ ∥ Δ c t x ∥ p 3\kappa\lVert\Delta_{\mathrm{ctx}}\rVert_p 3 κ ∥ Δ ctx ∥ p , where the last step uses ∥ Δ c t x ∥ p p = ∥ Δ w ∥ p p + ∥ Δ z ∥ p p \lVert\Delta_{\mathrm{ctx}}\rVert_p^p=\lVert\Delta w\rVert_p^p+\lVert\Delta z\rVert_p^p ∥ Δ ctx ∥ p p = ∥ Δ w ∥ p p + ∥ Δ z ∥ p p , so u u u is 8 ( 3 κ ) 1 / p 8(3\kappa)^{1/p} 8 ( 3 κ ) 1/ p -Lipschitz in ℓ p \ell_p ℓ p . The same argument with the maximum kept in place of the sum handles p = ∞ p=\infty p = ∞ , recovering the constant 8 8 8 of Theorem 2. As 8 ( 3 κ ) 1 / p ≤ 24 κ 8(3\kappa)^{1/p}\le24\kappa 8 ( 3 κ ) 1/ p ≤ 24 κ for every p ∈ [ 1 , ∞ ] p\in[1,\infty] p ∈ [ 1 , ∞ ] , we may take L ′ : = 24 κ L' := 24\kappa L ′ := 24 κ , which depends only on the alphabet of Lemma 4 and hence only on L \mathcal{L} L .
In the P/poly case, the parameter choice of Appendix A.3.2 sets b ( m ) : = max { 3 , ⌈ 2 log 2 K ( m ) ⌉ } b(m):=\max\{3,\lceil2\log_2 K(m)\rceil\} b ( m ) := max { 3 , ⌈ 2 log 2 K ( m )⌉} , which does not depend on the Lipschitz constant and therefore still satisfies (1).
Runge–Kutta Samplers
The upper bounds above are stated for vanilla flow matching with the Euler method. We extend them to any fixed explicit Runge–Kutta method. Let R R R be such a method with q ∈ N + q\in\mathbb{N}^+ q ∈ N + stages per step, whose tableau is specified by nodes ω ~ ℓ ∈ [ 0 , 1 ] \widetilde{\omega}_\ell\in[0,1] ω ℓ ∈ [ 0 , 1 ] , weights λ ~ ℓ ∈ R \widetilde{\lambda}_\ell\in\mathbb{R} λ ℓ ∈ R , and coefficients a ~ ℓ , k ∈ R \widetilde{a}_{\ell,k}\in\mathbb{R} a ℓ , k ∈ R for 1 ≤ k < ℓ ≤ q 1\le k<\ell\le q 1 ≤ k < ℓ ≤ q [25 ] . Algorithm 4 gives the resulting sampler, RKFM, using the rounded tableau entries ω ℓ : = round b ( ω ~ ℓ ) \omega_\ell:=\operatorname{round}_b(\widetilde{\omega}_\ell) ω ℓ := round b ( ω ℓ ) , λ ℓ : = round b ( λ ~ ℓ ) \lambda_\ell:=\operatorname{round}_b(\widetilde{\lambda}_\ell) λ ℓ := round b ( λ ℓ ) , and a ℓ , k : = round b ( a ~ ℓ , k ) a_{\ell,k}:=\operatorname{round}_b(\widetilde{a}_{\ell,k}) a ℓ , k := round b ( a ℓ , k ) . The Euler method is the special case q = 1 q=1 q = 1 , while Heun’s method, another common flow-matching sampler [35 , 39 ] , has q = 2 q=2 q = 2 .
As in Algorithm 3, we simulate RKFM by a parallel Picard iteration for R R R . The analysis of Appendices A.2.2 and A.2.4 then carries over with L L L scaled by a constant depending only on the tableau, at the cost of q K qK q K parallel model calls per round.
Algorithm 4 Runge–Kutta Flow Matching
Fixed: an explicit Runge–Kutta method R R R with constant stage count q ∈ N + q\in\mathbb{N}^+ q ∈ N + and rounded tableau entries ω ℓ ∈ F b \omega_\ell\in F_b ω ℓ ∈ F b , λ ℓ ∈ F b \lambda_\ell\in F_b λ ℓ ∈ F b , and a ℓ , k ∈ F b a_{\ell,k}\in F_b a ℓ , k ∈ F b
1: function RKFM( w ; u , K ) (w;u,K) ( w ; u , K ) 2: t i ← round b ( i / K ) t_i\leftarrow\operatorname{round}_b(i/K) t i ← round b ( i / K ) for i = 0 , … , K i=0,\ldots,K i = 0 , … , K 3: t i , ℓ ← round b ( t i + ω ℓ h i ) t_{i,\ell}\leftarrow\operatorname{round}_b(t_i+\omega_\ell h_i) t i , ℓ ← round b ( t i + ω ℓ h i ) for i = 0 , … , K − 1 i=0,\ldots,K-1 i = 0 , … , K − 1 ; ℓ = 1 , … , q \ell=1,\ldots,q ℓ = 1 , … , q 4: Sample x ~ 0 ∼ p p r i o r \widetilde{x}_0\sim p_{\mathrm{prior}} x 0 ∼ p prior ; x 0 ← round b ( x ~ 0 ) x_0\leftarrow\operatorname{round}_b(\widetilde{x}_0) x 0 ← round b ( x 0 ) 5: for i = 0 , … , K − 1 i=0,\ldots,K-1 i = 0 , … , K − 1 do 6: for ℓ = 1 , … , q \ell=1,\ldots,q ℓ = 1 , … , q do 7: Y i , ℓ ← round b ( x i + h i ∑ k < ℓ a ℓ , k v i , k ) Y_{i,\ell}\leftarrow\operatorname{round}_b\left(x_i+h_i\sum_{k<\ell}a_{\ell,k}v_{i,k}\right) Y i , ℓ ← round b ( x i + h i ∑ k < ℓ a ℓ , k v i , k ) 8: v i , ℓ ← u ( Y i , ℓ , t i , ℓ ; w ) v_{i,\ell}\leftarrow u(Y_{i,\ell},t_{i,\ell};w) v i , ℓ ← u ( Y i , ℓ , t i , ℓ ; w ) 9: end for 10: x i + 1 ← round b ( x i + h i ∑ ℓ = 1 q λ ℓ v i , ℓ ) x_{i+1}\leftarrow\operatorname{round}_b\left(x_i+h_i\sum_{\ell=1}^q\lambda_\ell v_{i,\ell}\right) x i + 1 ← round b ( x i + h i ∑ ℓ = 1 q λ ℓ v i , ℓ ) 11: end for 12: return x K x_K x K 13: end function
Proposition 3 (Runge–Kutta samplers). Let q q q be a constant integer and R R R be any fixed explicit Runge–Kutta method with q q q stages, whose nodes lie in [ 0 , 1 ] [0,1] [ 0 , 1 ] . There is a constant γ R ≥ 1 \gamma_R\ge1 γ R ≥ 1 , depending only on R R R , such that the following hold with VANILLAFM replaced by RKFM:
b ( m ) ≥ log 2 K ( m ) + γ R ( log 2 e ) L ( m ) + c 0 for every m , (13) b(m)\ge\log_2 K(m)+\gamma_R(\log_2 e)L(m)+c_0 \qquad\text{for every }m, \tag*{(13)} b ( m ) ≥ log 2 K ( m ) + γ R ( log 2 e ) L ( m ) + c 0 for every m , (13) where the constant c 0 = c 0 ( B , R ) c_0=c_0(B,R) c 0 = c 0 ( B , R ) now also depends on R R R , and the bound K ( m ) K(m) K ( m ) on the parallel calls per round is replaced by q K ( m ) qK(m) q K ( m ) .
Proof. We simulate the Runge–Kutta sampler of Algorithm 4 by the parallel Picard iteration of Algorithm 5, following the same strategy as the Euler case: write the RKFM trajectory as a fixed-point system, solve it by Algorithm 5, and bound the error with Lemma 2. The only new feature is that each step has q q q stages, so the system has q K qK q K positions instead of K K K . Each stage depends on earlier stages in the same step as well as on all stages of previous steps.
The fixed-point system. Fix w w w and couple the two algorithms through a common initial x 0 x_0 x 0 . Let Y i , ℓ ∗ Y^*_{i,\ell} Y i , ℓ ∗ and x i ∗ x^*_i x i ∗ denote the true stages and states of Algorithm 4, and write v i , ℓ ∗ : = u ( Y i , ℓ ∗ , t i , ℓ ; w ) v^*_{i,\ell}:=u(Y^*_{i,\ell},t_{i,\ell};w) v i , ℓ ∗ := u ( Y i , ℓ ∗ , t i , ℓ ; w ) . Since
Algorithm 5 Parallel Runge–Kutta Picard Inference
Fixed: an explicit Runge–Kutta method R with constant stage count q ∈ N + q \in\mathbb{N}^{+} q ∈ N + and rounded tableau entries ω ℓ ∈ F b \omega_{\ell} \in F_b ω ℓ ∈ F b , λ ℓ ∈ F b \lambda_{\ell} \in F_b λ ℓ ∈ F b , and a ℓ , k ∈ F b a_{\ell,k} \in F_b a ℓ , k ∈ F b
function PARALLELRK(w ; u , K , C w; u, K, C w ; u , K , C )
t i ← round b ( i / K ) t_i \leftarrow\operatorname{round}_b(i/K) t i ← round b ( i / K ) for i = 0 , … , K i = 0, \ldots, K i = 0 , … , K
t i , ℓ ← round b ( t i + ω ℓ h i ) t_{i,\ell} \leftarrow\operatorname{round}_b(t_i + \omega_{\ell}h_i) t i , ℓ ← round b ( t i + ω ℓ h i ) for i = 0 , … , K − 1 i = 0, \ldots, K-1 i = 0 , … , K − 1 , ℓ = 1 , … , q \ell= 1, \ldots, q ℓ = 1 , … , q
Sample x ~ 0 ∼ p p r i o r \tilde{x}_0 \sim p_{\mathrm{prior}} x ~ 0 ∼ p prior ; x 0 ← round b ( x ~ 0 ) x_0 \leftarrow\operatorname{round}_b(\tilde{x}_0) x 0 ← round b ( x ~ 0 )
Y i , ℓ ( 0 ) ← x 0 Y_{i,\ell}^{(0)} \leftarrow x_0 Y i , ℓ ( 0 ) ← x 0 for all i , ℓ i,\ell i , ℓ ; X ( 0 ) ← x 0 X^{(0)} \leftarrow x_0 X ( 0 ) ← x 0
for r = 0 , … , C − 1 r = 0, \ldots, C-1 r = 0 , … , C − 1 do
in parallel for all i , ℓ i,\ell i , ℓ : v i , ℓ ( r ) ← u ( Y i , ℓ ( r ) , t i , ℓ ; w ) v_{i,\ell}^{(r)} \leftarrow u(Y_{i,\ell}^{(r)}, t_{i,\ell}; w) v i , ℓ ( r ) ← u ( Y i , ℓ ( r ) , t i , ℓ ; w )
S i ( r ) ← ∑ j = 0 i − 1 ∑ k = 1 q round b ( λ k v j , k ( r ) ) S_i^{(r)} \leftarrow\sum_{j=0}^{i-1}\sum_{k=1}^{q}\operatorname{round}_b(\lambda_kv_{j,k}^{(r)}) S i ( r ) ← ∑ j = 0 i − 1 ∑ k = 1 q round b ( λ k v j , k ( r ) ) for i = 0 , … , K i = 0, \ldots, K i = 0 , … , K
T i , ℓ ( r ) ← ∑ k = 1 ℓ − 1 round b ( a ℓ , k v i , k ( r ) ) T_{i,\ell}^{(r)} \leftarrow\sum_{k=1}^{\ell-1}\operatorname{round}_b(a_{\ell,k}v_{i,k}^{(r)}) T i , ℓ ( r ) ← ∑ k = 1 ℓ − 1 round b ( a ℓ , k v i , k ( r ) ) for all i , ℓ i,\ell i , ℓ
in parallel for all i , ℓ i,\ell i , ℓ : Y i , ℓ ( r + 1 ) ← round b ( x 0 + ( S i ( r ) + T i , ℓ ( r ) ) / K ) Y_{i,\ell}^{(r+1)} \leftarrow\operatorname{round}_b\left(x_0 + (S_i^{(r)} + T_{i,\ell}^{(r)})/K\right) Y i , ℓ ( r + 1 ) ← round b ( x 0 + ( S i ( r ) + T i , ℓ ( r ) ) / K )
X ( r + 1 ) ← round b ( x 0 + S K ( r ) / K ) X^{(r+1)} \leftarrow\operatorname{round}_b(x_0 + S_K^{(r)}/K) X ( r + 1 ) ← round b ( x 0 + S K ( r ) / K )
end for
return X ( C ) X^{(C)} X ( C )
end function
ω ℓ ∈ [ 0 , 1 ] \omega_{\ell} \in[0,1] ω ℓ ∈ [ 0 , 1 ] and round b \operatorname{round}_b round b is nondecreasing and fixes F b F_b F b , every stage time satisfies t i , ℓ ∈ [ t i , t i + 1 ] ⊆ [ 0 , 1 ] t_{i,\ell} \in[t_i,t_{i+1}] \subseteq[0,1] t i , ℓ ∈ [ t i , t i + 1 ] ⊆ [ 0 , 1 ] , so the boundedness and Lipschitz hypotheses apply at every stage. Each round b \operatorname{round}_b round b displayed in Algorithms 4 and 5 evaluates its argument over the reals and rounds the result once. Unrolling the rounded updates gives the fixed-point equations
Y i , ℓ ∗ = x 0 + ∑ j < i h j ∑ k = 1 q λ k v j , k ∗ + h i ∑ k < ℓ a ℓ , k v i , k ∗ + ρ i , ℓ , ∥ ρ i , ℓ ∥ ∞ ≤ K δ 2 , (14) Y_{i,\ell}^{*} = x_0 + \sum_{j<i}h_j\sum_{k=1}^{q}\lambda_kv_{j,k}^{*} + h_i\sum_{k<\ell}a_{\ell,k}v_{i,k}^{*} + \rho_{i,\ell}, \qquad\lVert\rho_{i,\ell}\rVert_{\infty} \le\frac{K\delta}{2}, \tag*{(14)} Y i , ℓ ∗ = x 0 + j < i ∑ h j k = 1 ∑ q λ k v j , k ∗ + h i k < ℓ ∑ a ℓ , k v i , k ∗ + ρ i , ℓ , ∥ ρ i , ℓ ∥ ∞ ≤ 2 K δ , (14)
and
x K ∗ = x 0 + ∑ j = 0 K − 1 h j ∑ k = 1 q λ k v j , k ∗ + ρ K , ∥ ρ K ∥ ∞ ≤ K δ 2 . (15) x_K^{*} = x_0 + \sum_{j=0}^{K-1}h_j\sum_{k=1}^{q}\lambda_kv_{j,k}^{*} + \rho_K, \qquad\lVert\rho_K\rVert_{\infty} \le\frac{K\delta}{2}. \tag*{(15)} x K ∗ = x 0 + j = 0 ∑ K − 1 h j k = 1 ∑ q λ k v j , k ∗ + ρ K , ∥ ρ K ∥ ∞ ≤ 2 K δ . (15)
We now index all positions in dependency order. Put index 0 0 0 for x 0 x_0 x 0 , index ν = q i + ℓ \nu= qi+\ell ν = q i + ℓ for stage Y i , ℓ ∗ Y_{i,\ell}^{*} Y i , ℓ ∗ with 0 ≤ i ≤ K − 1 0 \le i \le K-1 0 ≤ i ≤ K − 1 and 1 ≤ ℓ ≤ q 1 \le\ell\le q 1 ≤ ℓ ≤ q , and index M : = q K + 1 M := qK+1 M := q K + 1 for the endpoint x K ∗ x_K^{*} x K ∗ . For each ν ≥ 1 \nu\ge1 ν ≥ 1 , write y ν ∗ y_{\nu}^{*} y ν ∗ for the corresponding quantity (the stage Y i , ℓ ∗ Y_{i,\ell}^{*} Y i , ℓ ∗ when ν = q i + ℓ \nu= qi+\ell ν = q i + ℓ , and the endpoint x K ∗ x_K^{*} x K ∗ when ν = M \nu= M ν = M ), and for 1 ≤ ν ≤ q K 1 \le\nu\le qK 1 ≤ ν ≤ q K write v ν ∗ v_{\nu}^{*} v ν ∗ for the corresponding stage velocity v i , ℓ ∗ v_{i,\ell}^{*} v i , ℓ ∗ . Then the fixed-point equations for all positions can be written uniformly as
y ν ∗ = x 0 + ∑ 1 ≤ ν ′ < ν Λ ν , ν ′ v ν ′ ∗ + ρ ν , ∥ ρ ν ∥ ∞ ≤ K δ 2 , y_{\nu}^{*} = x_0 + \sum_{1\le\nu'<\nu}\Lambda_{\nu,\nu'}v_{\nu'}^{*} + \rho_{\nu}, \qquad\lVert\rho_{\nu}\rVert_{\infty} \le\frac{K\delta}{2}, y ν ∗ = x 0 + 1 ≤ ν ′ < ν ∑ Λ ν , ν ′ v ν ′ ∗ + ρ ν , ∥ ρ ν ∥ ∞ ≤ 2 K δ ,
where, by (14) and (15), each coefficient Λ ν , ν ′ \Lambda_{\nu,\nu'} Λ ν , ν ′ is either 0 0 0 , some h j λ k h_j\lambda_k h j λ k , or some h i a ℓ , k h_i a_{\ell,k} h i a ℓ , k . Put μ : = 3 max ℓ , k { 1 , ∣ λ ~ ℓ ∣ , ∣ a ~ ℓ , k ∣ } \mu:= 3\max_{\ell,k}\{1, |\tilde{\lambda}_{\ell}|, |\tilde{a}_{\ell,k}|\} μ := 3 max ℓ , k { 1 , ∣ λ ~ ℓ ∣ , ∣ a ~ ℓ , k ∣ } , a constant depending only on the tableau, so that every rounded tableau entry has magnitude at most μ / 2 \mu/2 μ /2 . The precision condition (13) gives δ ≤ 1 / K \delta\le1/K δ ≤ 1/ K , so h j ≤ 2 / K h_j \le2/K h j ≤ 2/ K , and hence every coefficient satisfies
∣ Λ ν , ν ′ ∣ ≤ μ K . |\Lambda_{\nu,\nu'}| \le\frac{\mu}{K}. ∣ Λ ν , ν ′ ∣ ≤ K μ .
Error analysis. For each position ν \nu ν , define e ν ( r ) e_{\nu}^{(r)} e ν ( r ) as follows: if ν = q i + ℓ \nu= qi+\ell ν = q i + ℓ is a stage, then e ν ( r ) : = ∥ Y i , ℓ ( r ) − Y i , ℓ ∗ ∥ ∞ e_{\nu}^{(r)} := \lVert Y_{i,\ell}^{(r)} - Y_{i,\ell}^{*}\rVert_{\infty} e ν ( r ) := ∥ Y i , ℓ ( r ) − Y i , ℓ ∗ ∥ ∞ ; if ν = M \nu= M ν = M is the endpoint, then e M ( r ) : = ∥ X ( r ) − x K ∗ ∥ ∞ e_M^{(r)} := \lVert X^{(r)} - x_K^{*}\rVert_{\infty} e M ( r ) := ∥ X ( r ) − x K ∗ ∥ ∞ ; and e 0 ( r ) : = 0 e_0^{(r)} := 0 e 0 ( r ) := 0 , since both runs share x 0 x_0 x 0 . Put s ν : = ν / M s_{\nu} := \nu/M s ν := ν / M , γ R : = 2 q μ \gamma_R := 2q\mu γ R := 2 q μ , B R : = 2 q μ B B_R := 2q\mu B B R := 2 q μ B , and A R : = q ( μ B + 1 ) + 1 A_R := q(\mu B + 1) + 1 A R := q ( μ B + 1 ) + 1 , constants depending only on B B B and R R R . Since the iteration starts every position at x 0 x_0 x 0 , bounding the at most ν \nu ν velocities in the uniform equation by B B B gives
e ν ( 0 ) = ∥ x 0 − y ν ∗ ∥ ∞ ≤ ∑ 1 ≤ ν ′ < ν ∣ Λ ν , ν ′ ∣ ∥ v ν ′ ∗ ∥ ∞ + ∥ ρ ν ∥ ∞ ≤ ν ⋅ μ B K + K δ 2 ≤ B R s ν + A R K δ , e_{\nu}^{(0)} = \lVert x_0-y_{\nu}^{*}\rVert_{\infty} \le\sum_{1\le\nu'<\nu}|\Lambda_{\nu,\nu'}|\lVert v_{\nu'}^{*}\rVert_{\infty}+\lVert\rho_{\nu}\rVert_{\infty} \le\nu\cdot\frac{\mu B}{K}+\frac{K\delta}{2}\le B_Rs_{\nu}+A_RK\delta, e ν ( 0 ) = ∥ x 0 − y ν ∗ ∥ ∞ ≤ 1 ≤ ν ′ < ν ∑ ∣ Λ ν , ν ′ ∣ ∥ v ν ′ ∗ ∥ ∞ + ∥ ρ ν ∥ ∞ ≤ ν ⋅ K μ B + 2 K δ ≤ B R s ν + A R K δ ,
the last step because ν / K = s ν M / K ≤ 2 q s ν \nu/K = s_\nu M/K \le2qs_\nu ν / K = s ν M / K ≤ 2 q s ν .
For the inductive step, write y ν ( r ) y_\nu^{(r)} y ν ( r ) and v ν ( r ) v_\nu^{(r)} v ν ( r ) for the iterate and velocity of Algorithm 5 at position ν \nu ν , in the indexing above, and let Λ ν , ν ′ ∘ \Lambda^\circ_{\nu,\nu'} Λ ν , ν ′ ∘ be the nominal coefficients, obtained from Λ ν , ν ′ \Lambda_{\nu,\nu'} Λ ν , ν ′ by replacing the step h j h_j h j or h i h_i h i with 1 / K 1/K 1/ K . Each rounded tableau entry has magnitude at most μ / 2 \mu/2 μ /2 , so ∣ Λ ν , ν ′ ∘ ∣ ≤ μ / ( 2 K ) |\Lambda^\circ_{\nu,\nu'}| \le\mu/(2K) ∣ Λ ν , ν ′ ∘ ∣ ≤ μ / ( 2 K ) , and ∣ 1 / K − h j ∣ ≤ δ |1/K-h_j| \le\delta ∣1/ K − h j ∣ ≤ δ bounds the mismatch by ∣ Λ ν , ν ′ ∘ − Λ ν , ν ′ ∣ ≤ μ δ / 2 |\Lambda^\circ_{\nu,\nu'}-\Lambda_{\nu,\nu'}| \le\mu\delta/2 ∣ Λ ν , ν ′ ∘ − Λ ν , ν ′ ∣ ≤ μ δ /2 . Expanding the update of Algorithm 5 in the same indexing,
y ν ( r + 1 ) = x 0 + ∑ 1 ≤ ν ′ < ν Λ ν , ν ′ ∘ v ν ′ ( r ) + ρ ν ( r ) , ∥ ρ ν ( r ) ∥ ∞ ≤ ( 2 q + 1 ) δ 2 . y_\nu^{(r+1)} = x_0 + \sum_{1\le\nu'<\nu} \Lambda^\circ_{\nu,\nu'}v_{\nu'}^{(r)}+\rho_\nu^{(r)}, \qquad\|\rho_\nu^{(r)}\|_\infty\le\frac{(2q+1)\delta}{2}. y ν ( r + 1 ) = x 0 + 1 ≤ ν ′ < ν ∑ Λ ν , ν ′ ∘ v ν ′ ( r ) + ρ ν ( r ) , ∥ ρ ν ( r ) ∥ ∞ ≤ 2 ( 2 q + 1 ) δ .
where ρ ν ( r ) \rho_\nu^{(r)} ρ ν ( r ) collects the roundings of the at most q K qK q K products in S i ( r ) S_i^{(r)} S i ( r ) and the at most q q q products in T i , ℓ ( r ) T_{i,\ell}^{(r)} T i , ℓ ( r ) , each of size at most δ / 2 \delta/2 δ /2 and divided by K K K , together with the outer rounding. Subtracting the uniform equation from this expansion and taking norms,
e ν ( r + 1 ) ≤ ∑ 1 ≤ ν ′ < ν ∣ Λ ν , ν ′ ∘ ∣ ∥ v ν ′ ( r ) − v ν ′ ∗ ∥ ∞ + ∑ 1 ≤ ν ′ < ν ∣ Λ ν , ν ′ ∘ − Λ ν , ν ′ ∣ ∥ v ν ′ ∗ ∥ ∞ + ∥ ρ ν ( r ) ∥ ∞ + ∥ ρ ν ∥ ∞ . e_\nu^{(r+1)} \le\sum_{1\le\nu'<\nu} |\Lambda^\circ_{\nu,\nu'}|\|v_{\nu'}^{(r)}-v_{\nu'}^*\|_\infty+ \sum_{1\le\nu'<\nu}|\Lambda^\circ_{\nu,\nu'}-\Lambda_{\nu,\nu'}|\|v_{\nu'}^*\|_\infty+\|\rho_\nu^{(r)}\|_\infty+\|\rho_\nu\|_\infty. e ν ( r + 1 ) ≤ 1 ≤ ν ′ < ν ∑ ∣ Λ ν , ν ′ ∘ ∣∥ v ν ′ ( r ) − v ν ′ ∗ ∥ ∞ + 1 ≤ ν ′ < ν ∑ ∣ Λ ν , ν ′ ∘ − Λ ν , ν ′ ∣∥ v ν ′ ∗ ∥ ∞ + ∥ ρ ν ( r ) ∥ ∞ + ∥ ρ ν ∥ ∞ .
In the first sum, the two velocities at position ν ′ \nu' ν ′ share the stage time and the condition, so Lipschitz continuity gives ∥ v ν ′ ( r ) − v ν ′ ∗ ∥ ∞ ≤ L e ν ′ ( r ) \|v_{\nu'}^{(r)}-v_{\nu'}^*\|_\infty\le Le_{\nu'}^{(r)} ∥ v ν ′ ( r ) − v ν ′ ∗ ∥ ∞ ≤ L e ν ′ ( r ) , and ∣ Λ ν , ν ′ ∘ ∣ ≤ μ / ( 2 K ) ≤ γ R / M |\Lambda^\circ_{\nu,\nu'}| \le\mu/(2K) \le\gamma_R/M ∣ Λ ν , ν ′ ∘ ∣ ≤ μ / ( 2 K ) ≤ γ R / M because M ≤ 2 q K M\le2qK M ≤ 2 q K . The second sum has fewer than M ≤ 2 q K M\le2qK M ≤ 2 q K terms, each at most μ δ 2 B \frac{\mu\delta}{2}B 2 μ δ B , so it is at most q μ B K δ q\mu BK\delta q μ B K δ . The two residuals add at most ( 2 q + 1 ) δ / 2 + K δ / 2 ≤ ( q + 1 ) K δ (2q+1)\delta/2+K\delta/2\le(q+1)K\delta ( 2 q + 1 ) δ /2 + K δ /2 ≤ ( q + 1 ) K δ . Hence, by the choice of A R A_R A R ,
e ν ( r + 1 ) ≤ γ R L M ∑ ν ′ < ν e ν ′ ( r ) + A R K δ . e_\nu^{(r+1)} \le\frac{\gamma_RL}{M}\sum_{\nu'<\nu}e_{\nu'}^{(r)}+A_RK\delta. e ν ( r + 1 ) ≤ M γ R L ν ′ < ν ∑ e ν ′ ( r ) + A R K δ .
This is exactly the recurrence of Lemma 2, with its parameters set to M M M , B R B_R B R , γ R L \gamma_RL γ R L , α = A R K δ \alpha=A_RK\delta α = A R K δ , and β = A R K δ \beta=A_RK\delta β = A R K δ . Applying that lemma with C : = ⌈ e γ R L + 4 B R ⌉ C:=\lceil e^{\gamma_RL}+4B_R\rceil C := ⌈ e γ R L + 4 B R ⌉ gives
e M ( C ) ≤ 1 4 + A R K δ ( 1 + e γ R L ) . e_M^{(C)}\le\frac{1}{4}+A_RK\delta(1+e^{\gamma_RL}). e M ( C ) ≤ 4 1 + A R K δ ( 1 + e γ R L ) .
The precision condition (13) implies K δ ≤ 2 − c 0 e − γ R L K\delta\le2^{-c_0}e^{-\gamma_RL} K δ ≤ 2 − c 0 e − γ R L . Choosing c 0 = c 0 ( B , R ) c_0=c_0(B,R) c 0 = c 0 ( B , R ) with 2 A R 2 − c 0 ≤ 1 4 2A_R2^{-c_0}\le\frac14 2 A R 2 − c 0 ≤ 4 1 makes e M ( C ) ≤ 1 2 e_M^{(C)}\le\frac12 e M ( C ) ≤ 2 1 . Thus u u u accepts L L L with margin 1 2 \frac12 2 1 under Algorithm 5 whenever it accepts L L L with margin 1 2 \frac12 2 1 under RKFM, and the algorithm runs for C = O ( L ) C=O(L) C = O ( L ) rounds with q K qK q K parallel model calls per round. This proves the first item.
Expressiveness upper bounds. For the analogue of Theorem 1, where b = O ( log m ) b=O(\log m) b = O ( log m ) , we split as in Appendix § 9 .2.4, now at b ≥ log 2 K + γ R ( log 2 e ) L + c 1 b\ge\log_2K+\gamma_R(\log_2e)L+c_1 b ≥ log 2 K + γ R ( log 2 e ) L + c 1 . The small-K K K case again re-runs the sampler directly, now making q q q stage calls per step, and lies in D by the same argument as in Appendix § 9 .2.4. In the large-K K K case, we replace the normalized prefix sums by the approximate ones of Lemma 3, applied with N : = q K N:=qK N := q K and accuracy ε : = η / q \varepsilon:=\eta/q ε := η / q to the rounded products round b ( λ k v j , k ( r ) ) \operatorname{round}_b(\lambda_kv_{j,k}^{(r)}) round b ( λ k v j , k ( r ) ) , which are bounded by a constant, and rescaled by the integer q q q , as in Appendix § 9 .2.4. All remaining updates depend on only O ( 1 ) O(1) O ( 1 ) scalars of O ( log m ) O(\log m) O ( log m ) bits. With the time grid and stage times hardwired, they can be computed exactly by the table bound. The approximation adds η \eta η to the additive constant of the recurrence, so Lemma 2, now with β = A R K δ + η \beta=A_RK\delta+\eta β = A R K δ + η , gives
e M ( C ) ≤ 1 4 + A R K δ + ( A R K δ + η ) e γ R L . e_M^{(C)}\le\frac14+A_RK\delta+(A_RK\delta+\eta)e^{\gamma_RL}. e M ( C ) ≤ 4 1 + A R K δ + ( A R K δ + η ) e γ R L .
Taking η : = 1 8 e − γ R L \eta:=\frac18e^{-\gamma_RL} η := 8 1 e − γ R L and choosing c 1 = c 1 ( B , R ) c_1=c_1(B,R) c 1 = c 1 ( B , R ) with 2 A R 2 − c 1 ≤ 1 8 2A_R2^{-c_1}\le\frac18 2 A R 2 − c 1 ≤ 8 1 gives e M ( C ) ≤ 1 2 e_M^{(C)}\le\frac12 e M ( C ) ≤ 2 1 . Since A R ≥ q A_R\ge q A R ≥ q , this choice also gives δ ≤ K δ ≤ 2 − c 1 e − γ R L ≤ η / q \delta\le K\delta\le2^{-c_1}e^{-\gamma_RL}\le\eta/q δ ≤ K δ ≤ 2 − c 1 e − γ R L ≤ η / q , as Lemma 3 requires. The size and depth argument of Appendix § 9 .2.4 then places L \mathcal{L} L in D, which proves the third item.
For the analogue of Corollary 1, where b = poly ( m ) b=\operatorname{poly}(m) b = poly ( m ) , arithmetic with the hardwired rounded tableau entries and the exact prefix sums lies in TC0 ^0 0 [62 , 30 ] , so the depth is O ( L ) O(L) O ( L ) as in Corollary 1. This proves the second item and hence the proposition. ∞ӘА
Matching the Circuit Depth
Corollary 1 shows that any run of VANILLAFM can be compressed into O ( L ) O(L) O ( L ) sequential rounds. Here we show that these rounds match circuit depth up to constant factors: given any polynomial-size target majority circuit of depth d d d , VANILLAFM can simulate it using a model with Lipschitz constant O ( d ) O(d) O ( d ) , while each model evaluation can be computed by a constant-depth circuit. The construction proceeds in three phases, determined by the current time t t t : resetting the sampler state, evaluating one layer of the target circuit per sampling step, and finally amplifying the resulting verdict to satisfy the acceptance margin.
Proposition 4 (Encoding majority circuits into VANILLAFM). Let { d ( m ) } m = 1 ∞ \{d(m)\}_{m=1}^{\infty} { d ( m ) } m = 1 ∞ be a sequence of positive integers, and L \mathcal{L} L be a language decided by polynomial-size majority circuits of depth d ( m ) d(m) d ( m ) . Then there are K ( m ) = Θ ( d ( m ) ) K(m) = \Theta(d(m)) K ( m ) = Θ ( d ( m )) , n ( m ) = poly ( m ) n(m) = \operatorname{poly}(m) n ( m ) = poly ( m ) , and b ( m ) = poly ( m ) b(m) = \operatorname{poly}(m) b ( m ) = poly ( m ) satisfying (2) with B = 8 B = 8 B = 8 and L ( m ) : = 8 K ( m ) L(m) := 8K(m) L ( m ) := 8 K ( m ) , and a model u u u , computed by T C 0 \mathrm{TC}^{0} TC 0 circuits, such that u u u is 8-bounded and 8 K ( m ) 8K(m) 8 K ( m ) -Lipschitz continuous and accepts L \mathcal{L} L with margin 1 under VANILLAFM.
Proof. Every gate of the circuit is a threshold gate with weights in { − 1 , 1 } \{-1,1\} { − 1 , 1 } and an integer threshold. An AND, OR, or MAJORITY gate of fan-in r r r has unit weights and threshold r r r , 1 1 1 , or ⌈ r / 2 ⌉ \lceil r/2\rceil ⌈ r /2 ⌉ , respectively, and a NOT gate has weight − 1 -1 − 1 and threshold 0.
We construct the model u u u explicitly. Recode Boolean values by 0 ↦ − 1 0 \mapsto-1 0 ↦ − 1 and 1 ↦ 1 1 \mapsto1 1 ↦ 1 . A gate keeps its ± 1 \pm1 ± 1 weights q 1 , … , q r q_1,\ldots,q_r q 1 , … , q r , and its threshold θ o l d \theta_{\mathrm{old}} θ old becomes the integer θ : = 2 θ o l d − ∑ j = 1 r q j \theta:= 2\theta_{\mathrm{old}}-\sum_{j=1}^{r}q_j θ := 2 θ old − ∑ j = 1 r q j . Index the state coordinates by the gates, let n n n be the number of gates, and write ∗ \ast ∗ for the output gate. The run stores the output of each gate γ \gamma γ in the state coordinate x γ x_\gamma x γ . The layer of a gate γ \gamma γ is its depth ℓ ( γ ) ∈ { 1 , … , d } \ell(\gamma)\in\{1,\ldots,d\} ℓ ( γ ) ∈ { 1 , … , d } . Every gate reads only primary inputs and gates of earlier layers.
Let K K K be the least power of two with K ≥ 8 ( d + 1 ) K\ge8(d+1) K ≥ 8 ( d + 1 ) , so that d + 1 ≤ K / 8 d+1\le K/8 d + 1 ≤ K /8 and K ≤ 16 ( d + 1 ) K\le16(d+1) K ≤ 16 ( d + 1 ) . We will choose b ≥ log 2 K b\ge\log_2 K b ≥ log 2 K at the end of the proof. Since K K K is a power of two and round b \operatorname{round}_b round b fixes F b F_b F b , the time grid is exact: t i = i / K t_i=i/K t i = i / K and h i = 1 / K h_i=1/K h i = 1/ K .
Encodings and gate extensions. Write clip ( y ; c ) : = max { − c , min { c , y } } \operatorname{clip}(y;c):=\max\{-c,\min\{c,y\}\} clip ( y ; c ) := max { − c , min { c , y }} for the truncation of a scalar y y y to [ − c , c ] [-c,c] [ − c , c ] . Gate outputs are stored at scale 1 / K 1/K 1/ K : one Euler step with velocity ± 1 \pm1 ± 1 writes exactly ± 1 / K \pm1/K ± 1/ K into a coordinate. A state coordinate x γ x_\gamma x γ is therefore decoded by clip ( K x γ ; 1 ) \operatorname{clip}(Kx_\gamma;1) clip ( K x γ ; 1 ) , which maps the stored encodings ± 1 / K \pm1/K ± 1/ K to ± 1 \pm1 ± 1 . An input bit w j ∈ { 0 , 1 } w_j\in\{0,1\} w j ∈ { 0 , 1 } is decoded by clip ( 2 w j − 1 ; 1 ) \operatorname{clip}(2w_j-1;1) clip ( 2 w j − 1 ; 1 ) , which maps 0 to − 1 -1 − 1 and 1 to 1.
Consider a gate with weights q 1 , … , q r ∈ { − 1 , 1 } q_1,\ldots,q_r\in\{-1,1\} q 1 , … , q r ∈ { − 1 , 1 } and integer threshold θ \theta θ , and set k : = ⌈ ( θ + r ) / 2 ⌉ k:=\lceil(\theta+r)/2\rceil k := ⌈( θ + r ) /2 ⌉ . On a vertex a ∈ { − 1 , 1 } r a\in\{-1,1\}^r a ∈ { − 1 , 1 } r , the gate fires if and only if ∑ j q j a j = 2 ∣ { j : q j a j = 1 } ∣ − r \sum_j q_j a_j=2|\{j:q_ja_j=1\}|-r ∑ j q j a j = 2∣ { j : q j a j = 1 } ∣ − r reaches θ \theta θ , that is, if and only if at least k k k of the ± 1 \pm1 ± 1 values q j a j q_ja_j q j a j equal 1. The recoded gate value is therefore the k k k -th largest of the q j a j q_ja_j q j a j when 1 ≤ k ≤ r 1\le k\le r 1 ≤ k ≤ r , and a constant otherwise. Accordingly, extend the gate to [ − 1 , 1 ] r [-1,1]^r [ − 1 , 1 ] r by letting g ^ ( y ) \hat{g}(y) g ^ ( y ) be the k k k -th largest of q 1 y 1 , … , q r y r q_1y_1,\ldots,q_ry_r q 1 y 1 , … , q r y r , with g ^ ≡ 1 \hat{g}\equiv1 g ^ ≡ 1 if k ≤ 0 k\le0 k ≤ 0 and g ^ ≡ − 1 \hat{g}\equiv-1 g ^ ≡ − 1 if k > r k>r k > r . Then g ^ \hat{g} g ^ equals the recoded gate value on the vertices, and every value of g ^ \hat{g} g ^ is one of the q j y j q_jy_j q j y j or ± 1 \pm1 ± 1 , so g ^ \hat{g} g ^ maps F b r F_b^r F b r into F b F_b F b and the model needs no rounding.
The model. Let G γ ( w , x ) G_\gamma(w,x) G γ ( w , x ) denote g ^ \hat{g} g ^ of gate γ \gamma γ applied to its decoded inputs. We define u u u coordinatewise by
( u ( x , t ; w ) ) γ : = { − clip ( K x γ ; 8 ) t = i / K with 0 ≤ i < K / 4 , G γ ( w , x ) t = ( K / 4 + ℓ ( γ ) − 1 ) / K , 8 clip ( K x ∗ ; 1 ) t = i / K with K / 4 + d ≤ i < K , 0 otherwise, (16) (u(x,t;w))_\gamma:=
\begin{cases}
-\operatorname{clip}(Kx_\gamma;8) & t=i/K\text{ with }0\le i<K/4,\\
G_\gamma(w,x) & t=(K/4+\ell(\gamma)-1)/K,\\
8\operatorname{clip}(Kx_\ast;1) & t=i/K\text{ with }K/4+d\le i<K,\\
0 & \text{otherwise,}
\end{cases} \tag*{(16)} ( u ( x , t ; w ) ) γ := ⎩ ⎨ ⎧ − clip ( K x γ ; 8 ) G γ ( w , x ) 8 clip ( K x ∗ ; 1 ) 0 t = i / K with 0 ≤ i < K /4 , t = ( K /4 + ℓ ( γ ) − 1 ) / K , t = i / K with K /4 + d ≤ i < K , otherwise, (16)
on valid inputs with parameters ( n ( m ) , b ( m ) , m ) (n(m),b(m),m) ( n ( m ) , b ( m ) , m ) , and u ( x , t ; w ) : = 0 n u(x,t;w):=0^n u ( x , t ; w ) := 0 n on all other encoded inputs.
The run. We now show that u u u accepts L \mathcal{L} L with margin 1 under VANILLAFM. In the first phase, one step maps x γ x_\gamma x γ to 0 if ∣ x γ ∣ ≤ 8 / K |x_\gamma|\le8/K ∣ x γ ∣ ≤ 8/ K and otherwise moves it toward 0 by 8 / K 8/K 8/ K , so from ∥ x 0 ∥ ∞ ≤ 1 \|x_0\|_\infty\le1 ∥ x 0 ∥ ∞ ≤ 1 the state reaches 0 within K / 8 + 1 ≤ K / 4 K/8+1\le K/4 K /8 + 1 ≤ K /4 steps and stays there. The second phase evaluates one circuit layer per step. A coordinate has zero velocity at every second-phase step except its own layer step, so a value once written persists. By construction, step K / 4 + ℓ − 1 K/4+\ell-1 K /4 + ℓ − 1 writes the value of every layer-ℓ \ell ℓ gate, encoded as ± 1 / K \pm1/K ± 1/ K , into its coordinate.
The third phase amplifies the verdict: after step K / 4 + d − 1 K/4+d-1 K /4 + d − 1 every gate value is written, so the decoded output clip ( K x ∗ ; 1 ) \operatorname{clip}(Kx_*;1) clip ( K x ∗ ; 1 ) is the verdict ± 1 \pm1 ± 1 . The shared velocity 8 clip ( K x ∗ ; 1 ) 8\operatorname{clip}(Kx_*;1) 8 clip ( K x ∗ ; 1 ) stays pinned at ± 8 \pm8 ± 8 for the K − K / 4 − d ≥ 5 8 K K-K/4-d\ge\frac{5}{8}K K − K /4 − d ≥ 8 5 K remaining steps. Every final coordinate is then at least 8 ⋅ 5 8 − 1 K ≥ 1 8\cdot\frac{5}{8}-\frac{1}{K}\ge1 8 ⋅ 8 5 − K 1 ≥ 1 on acceptance and at most − 1 -1 − 1 on rejection, so u u u accepts L \mathcal{L} L with margin 1.
The run is exact: every velocity lies in { 0 , ± 1 , ± 8 } \{0,\pm1,\pm8\} { 0 , ± 1 , ± 8 } or equals − K x γ -Kx_\gamma − K x γ , so every Euler increment is 0 0 0 , ± 1 / K \pm1/K ± 1/ K , ± 8 / K \pm8/K ± 8/ K , or − x γ -x_\gamma − x γ , all in F b F_b F b .
Lipschitz constant and circuit complexity. We first check that g ^ \hat{g} g ^ is 1-Lipschitz. Suppose that ∥ y − y ′ ∥ ∞ ≤ ε \lVert y-y'\rVert_\infty\le\varepsilon ∥ y − y ′ ∥ ∞ ≤ ε , so that q j y j ′ ≤ q j y j + ε q_jy'_j\le q_jy_j+\varepsilon q j y j ′ ≤ q j y j + ε for every j j j . The k k k -th largest is nondecreasing in every coordinate and grows by exactly ε \varepsilon ε when every coordinate grows by ε \varepsilon ε . Hence g ^ ( y ′ ) ≤ g ^ ( y ) + ε \hat{g}(y')\le\hat{g}(y)+\varepsilon g ^ ( y ′ ) ≤ g ^ ( y ) + ε , and exchanging y y y and y ′ y' y ′ gives the reverse bound.
The model is 8-bounded. For fixed t t t , the velocity is K K K -Lipschitz in the reset phase and 8 K 8K 8 K -Lipschitz in the amplification phase, as clip \operatorname{clip} clip is 1-Lipschitz. In the layer phase, the velocity is K K K -Lipschitz: the state decoder clip ( K x γ ; 1 ) \operatorname{clip}(Kx_\gamma;1) clip ( K x γ ; 1 ) is K K K -Lipschitz, the input decoder clip ( 2 w j − 1 ; 1 ) \operatorname{clip}(2w_j-1;1) clip ( 2 w j − 1 ; 1 ) is 2-Lipschitz, and g ^ \hat{g} g ^ is 1-Lipschitz. Since the Lipschitz condition of § 2.2 constrains each t t t separately, u u u is 8 K 8K 8 K -Lipschitz continuous.
It remains to check that u u u is computed by T C 0 \mathrm{TC}^{0} TC 0 circuits. Every scalar involved occupies polynomially many bits in the input length. Comparisons, additions, and multiplexing lie in A C 0 \mathrm{AC}^{0} AC 0 [62 ] , and multiplication by K K K is a bit shift, as K K K is a power of two.
The only nontrivial computation is g ^ \hat{g} g ^ , the k k k -th largest of the r r r scalars q j y j q_jy_j q j y j . This value is the largest candidate c ∈ { q 1 y 1 , … , q r y r } c\in\{q_1y_1,\ldots,q_ry_r\} c ∈ { q 1 y 1 , … , q r y r } with ∣ { j : q j y j ≥ c } ∣ ≥ k \lvert\{j:q_jy_j\ge c\}\rvert\ge k ∣{ j : q j y j ≥ c }∣ ≥ k . The circuit compares all pairs of the scalars in parallel, tests each candidate by one threshold gate over its r r r comparison bits, and selects the largest passing candidate by multiplexing. These blocks have constant depth and polynomial size, so u u u is computed by T C 0 \mathrm{TC}^{0} TC 0 circuits.
Parameters. Finally, we fix the parameters. The quantities n ( m ) n(m) n ( m ) and K ( m ) ≤ 16 ( d ( m ) + 1 ) K(m)\le16(d(m)+1) K ( m ) ≤ 16 ( d ( m ) + 1 ) are poly ( m ) \operatorname{poly}(m) poly ( m ) , and
b ( m ) : = ⌈ log 2 K ( m ) + 8 ( log 2 e ) K ( m ) + c 0 ( 8 ) ⌉ = poly ( m ) b(m):=\left\lceil\log_2 K(m)+8(\log_2 e)K(m)+c_0(8)\right\rceil=\operatorname{poly}(m) b ( m ) := ⌈ log 2 K ( m ) + 8 ( log 2 e ) K ( m ) + c 0 ( 8 ) ⌉ = poly ( m )
satisfies b ≥ log 2 K b\ge\log_2 K b ≥ log 2 K and (2) with B = 8 B=8 B = 8 and L ( m ) = 8 K ( m ) L(m)=8K(m) L ( m ) = 8 K ( m ) .
Remark. Proposition 4 and Corollary 1 show that the O ( L ) O(L) O ( L ) rounds of Lemma 1 cannot be improved in general without collapsing the depth hierarchy of majority circuits. Suppose that some inference algorithm simulates VANNILLAFFM in f ( L ) = o ( L ) f(L)=o(L) f ( L ) = o ( L ) rounds, each consisting of polynomially many parallel calls to u u u and T C 0 \mathrm{TC}^{0} TC 0 arithmetic. The model of Proposition 4 has L ( m ) = Θ ( d ( m ) ) L(m)=\Theta(d(m)) L ( m ) = Θ ( d ( m )) and is computed by majority circuits of constant depth, so polynomial-size majority circuits of depth d ( m ) d(m) d ( m ) would collapse to polynomial-size majority circuits of depth O ( f ( L ( m ) ) ) = o ( d ( m ) ) O(f(L(m)))=o(d(m)) O ( f ( L ( m ))) = o ( d ( m )) , which is unlikely. For example, the depth hierarchy of majority circuits within T C 0 \mathrm{TC}^{0} TC 0 would collapse to a constant depth, whereas it is widely conjectured to be infinite [26 ] .
Formalization and Circuit Complexity of the Tasks in §4.2
This appendix formalizes the three synthetic tasks introduced in §4.2 and establishes the circuit-complexity claims used there. Specifically, we show that line tracing is N C 1 \mathrm{NC}^{1} NC 1 -complete, while long multiplication and long text rendering are T C 0 \mathrm{TC}^{0} TC 0 -complete, matching the separation barriers between VanillaFM and SelfCondFM in §3.1 for T C 0 \mathrm{TC}^{0} TC 0 and A C 0 \mathrm{AC}^{0} AC 0 backbones, respectively. As in Appendix A.1, all circuit classes considered below are non-uniform.
Task Descriptions
We first describe the three task families before giving their formal definitions and complexity analyses. The tasks are illustrated in Figure 1 .
Line tracing. The input is an image containing five black polylines that traverse m m m permutation stages from left to right, with one polyline starting in each of the five rows. At stage k k k , a permutation g k ∈ A 5 g_k \in A_5 g k ∈ A 5 reroutes the polyline entering row i i i to row g k ( i ) g_k(i) g k ( i ) , where A 5 A_5 A 5 denotes the group of even permutations on five elements. The target is a colored version of the input in which each polyline is assigned a fixed color determined by its starting row. Whenever two polylines cross within a stage, we resolve occlusion by rendering the polyline entering the stage from the higher row on top.
Long multiplication. The input is an image containing a multiplication problem of two positive integers A A A and B B B , each with at most m m m digits and no leading zeros. The two integers are rendered with their digits aligned by column and their least significant digits in the rightmost column. The target is a complete step-by-step long-multiplication worksheet: writing B = ∑ i B i 10 i B = \sum_i B_i10^i B = ∑ i B i 1 0 i , it displays the shifted partial products A B i 10 i AB_i10^i A B i 1 0 i , the digitwise carries, their vertical summation, and the final product A B AB A B . The worksheet follows a digit-aligned grid layout, with each digit rendered in a separate cell and carry digits placed at the upper left of the corresponding cells. Additional line segments indicate the summation of the partial products.
Long text rendering. The input is a text passage of m m m words sampled from the TinyStories [18 ] dataset, given to the model as a text condition. The target is a monospaced rendering of the passage on a canvas of fixed usable width W W W . The first word begins at the left margin; each subsequent word is placed on the current line if it fits after a single interword space, and otherwise starts a new line. At each paragraph break, one line is left blank, and the next paragraph begins at the left margin.
Preliminaries for the Complexity Analysis
Next, we formalize these three image-space tasks and establish their circuit complexities through their underlying symbolic functions.
Completeness for functions. Each of the three tasks produces a long output rather than a single bit, so we phrase completeness through the output bits. For a function f f f whose output has polynomial length, put
Bit ( f ) : = { ( x , j ) : the j -th bit of f ( x ) is 1 } . \operatorname{Bit}(f) := \{(x,j) : \text{the } j\text{-th bit of } f(x) \text{ is 1}\}. Bit ( f ) := {( x , j ) : the j -th bit of f ( x ) is 1 } .
As in Theorem 1, we write D D D for a circuit class. We call f f f D D D -complete when Bit ( f ) ∈ D \operatorname{Bit}(f) \in D Bit ( f ) ∈ D and every language in D D D is decided by A C 0 \mathrm{AC}^{0} AC 0 circuits with oracle gates for Bit ( f ) \operatorname{Bit}(f) Bit ( f ) , that is, when f f f is complete for D D D under A C 0 \mathrm{AC}^{0} AC 0 Turing reductions. The three propositions below use this notion with D = N C 1 D = \mathrm{NC}^{1} D = NC 1 for line tracing and D = T C 0 D = \mathrm{TC}^{0} D = TC 0 for the other two tasks.
Symbolic and image-space tasks. Line tracing and long multiplication map images to images, whereas long text rendering maps a word sequence with paragraph boundaries to an image. We call these three image-output mappings image-space tasks , distinguishing them from their underlying symbolic functions. For each task, we establish the circuit complexity of its symbolic function, then give bidirectional A C 0 \mathrm{AC}^{0} AC 0 Turing reductions between that function and the corresponding image-space task.
Asymptotic interpretation. The propositions below concern asymptotic task families as m m m grows. In practice, our experiments in §4.2 instantiate these families over a finite range of problem sizes m m m and report a single score for each task. A line-tracing instance with m = 50 m = 50 m = 50 contains every shorter prefix length as a subproblem. Long multiplication draws operands of five to seven digits, and long text rendering draws passages of varying word count m m m . Circuit complexity is a property of the family, so the propositions describe the computation that the tasks demand as m m m grows.
Line Tracing
A line-tracing instance, as illustrated in the left column of Figure 1 , can be viewed as a sequence ( g 1 , … , g m ) ∈ A 5 m (g_1,\ldots,g_m) \in A_5^m ( g 1 , … , g m ) ∈ A 5 m , where A 5 A_5 A 5 denotes the alternating group on five elements. Here g k g_k g k reroutes the polyline entering row i i i of stage k k k to row g k ( i ) g_k(i) g k ( i ) . With e e e the identity of A 5 A_5 A 5 , set
π 0 = e , π k = g k ∘ π k − 1 ( 1 ≤ k ≤ m ) , \pi_0 = e,\qquad\pi_k = g_k \circ\pi_{k-1}\quad(1 \leq k \leq m), π 0 = e , π k = g k ∘ π k − 1 ( 1 ≤ k ≤ m ) ,
so that the polyline starting in row i i i occupies row π k ( i ) \pi_k(i) π k ( i ) after k k k stages. Each polyline keeps the color c i c_i c i of its starting row i i i , so row j j j carries the color c π k − 1 ( j ) c_{\pi_k^{-1}(j)} c π k − 1 ( j ) after k k k stages. The colored target is exactly the sequence of prefix permutations Trace A 5 ( g 1 , … , g m ) : = ( π 0 , … , π m ) \operatorname{Trace}_{A_5}(g_1,\ldots,g_m) := (\pi_0,\ldots,\pi_m) Trace A 5 ( g 1 , … , g m ) := ( π 0 , … , π m ) .
Proposition 5 (Line tracing). The line-tracing task, mapping a black-and-white input image to its colored target, is N C 1 \mathrm{NC}^1 NC 1 -complete under A C 0 \mathrm{AC}^0 AC 0 Turing reductions.
Proof. We first consider the symbolic function Trace A 5 \operatorname{Trace}_{A_5} Trace A 5 . Since A 5 A_5 A 5 is fixed, multiplying two encoded permutations is a constant-size lookup, so a balanced tree computes any π k \pi_k π k with depth O ( log m ) O(\log m) O ( log m ) . Computing all m m m prefix products independently still uses only polynomial size, so the output-bit relation of Trace A 5 \operatorname{Trace}_{A_5} Trace A 5 is in N C 1 \mathrm{NC}^1 NC 1 .
To establish N C 1 \mathrm{NC}^1 NC 1 -hardness, we use Barrington’s result that the word problem for every fixed non-solvable group is N C 1 \mathrm{NC}^1 NC 1 -complete under A C 0 \mathrm{AC}^0 AC 0 reductions [5 ] . Since A 5 A_5 A 5 is non-solvable, that result applies to the word problem of deciding whether g m ∘ ⋯ ∘ g 1 = e g_m \circ\cdots\circ g_1 = e g m ∘ ⋯ ∘ g 1 = e . An encoded group element occupies a constant number of bits, so a constant number of oracle queries returns the final component π m \pi_m π m of the trace, and an A C 0 \mathrm{AC}^0 AC 0 test compares it with e e e . Hence Trace A 5 \operatorname{Trace}_{A_5} Trace A 5 is N C 1 \mathrm{NC}^1 NC 1 -complete.
Parallel local lookups decode ( g k ) k = 1 m (g_k)_{k=1}^m ( g k ) k = 1 m from the black-and-white stage templates and ( π k ) k = 0 m (\pi_k)_{k=0}^m ( π k ) k = 0 m from the colored target, and conversely render both sequences as images. These conversions lie in A C 0 \mathrm{AC}^0 AC 0 , so the classification transfers to the line-tracing task. □
Long Multiplication
We write LMul ( A , B ) \operatorname{LMul}(A,B) LMul ( A , B ) for the complete decimal worksheet of two positive integers A A A and B B B , shown in the middle column of Figure 1 . For B = ∑ i B i 10 i B = \sum_i B_i 10^i B = ∑ i B i 1 0 i , put P i = A B i 10 i P_i = AB_i10^i P i = A B i 1 0 i and S i = ∑ j = 0 i P j S_i = \sum_{j=0}^i P_j S i = ∑ j = 0 i P j . The worksheet contains the shifted partial products P i P_i P i , the successive partial sums S i S_i S i for i ≥ 1 i \geq1 i ≥ 1 , the digitwise carries used in these multiplications and additions, and the final product A B AB A B , all in decimal.
Proposition 6 (Long multiplication). The long-multiplication task, mapping an operand image to its rendered worksheet, is T C 0 \mathrm{TC}^0 TC 0 -complete under A C 0 \mathrm{AC}^0 AC 0 Turing reductions.
Proof. We first analyze the symbolic worksheet function LMul \operatorname{LMul} LMul . To show that LMul ∈ T C 0 \operatorname{LMul} \in\mathrm{TC}^0 LMul ∈ TC 0 , recall that fixed-base conversion, iterated addition, multiplication, division, and remainder are computable by constant-depth threshold circuits [10 , 30 ] . These operations compute every P i P_i P i , every S i S_i S i , and every decimal output digit in parallel, and each displayed carry is obtained from the corresponding fixed-base quotient and remainder. The number of worksheet entries and the length of each entry are polynomial in the input length, so the complete worksheet is in T C 0 \mathrm{TC}^0 TC 0 .
We now prove T C 0 \mathrm{TC}^0 TC 0 -hardness. For x = ( x 0 , … , x N − 1 ) ∈ { 0 , 1 } N x = (x_0,\ldots,x_{N-1}) \in\{0,1\}^N x = ( x 0 , … , x N − 1 ) ∈ { 0 , 1 } N , the exact-counting function is
Count N ( x ) : = ∑ i = 0 N − 1 x i , \operatorname{Count}_N(x) := \sum_{i=0}^{N-1} x_i, Count N ( x ) := i = 0 ∑ N − 1 x i ,
with its output written in binary. This function is T C 0 \mathrm{TC}^{0} TC 0 -complete under A C 0 \mathrm{AC}^{0} AC 0 Turing reductions [10 ] . To establish T C 0 \mathrm{TC}^{0} TC 0 -hardness, it therefore suffices to reduce C o u n t N \mathrm{Count}_{N} Count N to L M u l \mathrm{LMul} LMul .
Given x x x , we set
d = ⌈ log 10 ( N + 2 ) ⌉ , Q = 10 d , d = \lceil\log_{10}(N+2) \rceil,\qquad Q = 10^{d}, d = ⌈ log 10 ( N + 2 )⌉ , Q = 1 0 d ,
and define the positive decimal integers A A A and B B B by
A = 1 + ∑ i = 0 N − 1 x i Q i + 1 , B = ∑ j = 0 N − 1 Q j . A = 1 + \sum_{i=0}^{N-1} x_i Q^{i+1},\qquad B = \sum_{j=0}^{N-1} Q^j. A = 1 + i = 0 ∑ N − 1 x i Q i + 1 , B = j = 0 ∑ N − 1 Q j .
Their decimal encodings consist of d d d -digit blocks and are produced by an A C 0 \mathrm{AC}^{0} AC 0 circuit, since every output digit is either a constant or an input bit x i x_i x i . When A B AB A B is written in base Q Q Q , every coefficient is at most N + 1 < Q N+1<Q N + 1 < Q , so no carry crosses a d d d -digit block, and the coefficient of Q N Q^N Q N is exactly C o u n t N ( x ) \mathrm{Count}_{N}(x) Count N ( x ) .
The final row of the worksheet contains A B AB A B , from which an A C 0 \mathrm{AC}^{0} AC 0 readout extracts this block. Its d = O ( log N ) d=O(\log N) d = O ( log N ) decimal digits have an O ( log N ) O(\log N) O ( log N ) -bit encoding. A non-uniform lookup on these bits has 2 O ( log N ) = N O ( 1 ) 2^{O(\log N)}=N^{O(1)} 2 O ( l o g N ) = N O ( 1 ) entries and converts the block to binary in A C 0 \mathrm{AC}^{0} AC 0 . Thus C o u n t N \mathrm{Count}_{N} Count N , and hence every language in T C 0 \mathrm{TC}^{0} TC 0 , reduces to L M u l \mathrm{LMul} LMul .
The fixed digit glyphs and worksheet grid similarly allow parallel local lookups to decode ( A , B ) (A,B) ( A , B ) from the operand image and L M u l ( A , B ) \mathrm{LMul}(A,B) LMul ( A , B ) from the worksheet image, and conversely to render both as images. These conversions lie in A C 0 \mathrm{AC}^{0} AC 0 , so the same classification holds for the long-multiplication task.
Long Text Rendering
As illustrated in the right column of Figure 1 , long text rendering uses a fixed monospaced raster font over a finite alphabet Σ \Sigma Σ with ∣ Σ ∣ ≥ 2 |\Sigma|\ge2 ∣Σ∣ ≥ 2 . We call the font nontrivial if its glyph-raster map is not constant, that is, if some two characters render differently. We normalize horizontal distances to character cells, so the width budget is an integer W ≥ 3 W\ge3 W ≥ 3 .
An input consists of a sequence ( ( s i , p i ) ) i = 1 m ((s_i,p_i))_{i=1}^{m} (( s i , p i ) ) i = 1 m where s i ∈ Σ + s_i\in\Sigma^{+} s i ∈ Σ + is the i i i -th word and p i ∈ { 0 , 1 } p_i\in\{0,1\} p i ∈ { 0 , 1 } is a paragraph-boundary indicator. By convention, p 1 = 1 p_1=1 p 1 = 1 . For i > 1 i>1 i > 1 , p i = 1 p_i=1 p i = 1 means that s i s_i s i begins a new paragraph after one blank line, whereas p i = 0 p_i=0 p i = 0 means that it continues the current paragraph.
The words s i s_i s i determine the glyph content, while the auxiliary wrapping function below determines their positions. Let a i : = ∣ s i ∣ ∈ { 1 , … , W } a_i:=|s_i|\in\{1,\ldots,W\} a i := ∣ s i ∣ ∈ { 1 , … , W } be the length of word i i i . We define three auxiliary variables for each word: ℓ i \ell_i ℓ i is its line index, starting from 1; ζ i \zeta_i ζ i is its horizontal starting position, starting from 0; and r i r_i r i is the occupied width of the line after placing s i s_i s i , equivalently the exclusive right boundary of s i s_i s i .
With ( ℓ 1 , ζ 1 , r 1 ) : = ( 1 , 0 , a 1 ) (\ell_1,\zeta_1,r_1):=(1,0,a_1) ( ℓ 1 , ζ 1 , r 1 ) := ( 1 , 0 , a 1 ) , we define, for i > 1 i>1 i > 1 ,
( ℓ i , ζ i , r i ) = { ( ℓ i − 1 + 2 , 0 , a i ) , p i = 1 , ( ℓ i − 1 , r i − 1 + 1 , r i − 1 + 1 + a i ) , p i = 0 and r i − 1 + 1 + a i ≤ W , ( ℓ i − 1 + 1 , 0 , a i ) , p i = 0 and r i − 1 + 1 + a i > W . (\ell_i,\zeta_i,r_i)=
\begin{cases}
(\ell_{i-1}+2,0,a_i), & p_i=1,\\
(\ell_{i-1},r_{i-1}+1,r_{i-1}+1+a_i), & p_i=0\ \text{and}\ r_{i-1}+1+a_i\le W,\\
(\ell_{i-1}+1,0,a_i), & p_i=0\ \text{and}\ r_{i-1}+1+a_i>W.
\end{cases} ( ℓ i , ζ i , r i ) = ⎩ ⎨ ⎧ ( ℓ i − 1 + 2 , 0 , a i ) , ( ℓ i − 1 , r i − 1 + 1 , r i − 1 + 1 + a i ) , ( ℓ i − 1 + 1 , 0 , a i ) , p i = 1 , p i = 0 and r i − 1 + 1 + a i ≤ W , p i = 0 and r i − 1 + 1 + a i > W .
and denote the sequence ( ( ℓ i , ζ i ) ) i = 1 m ((\ell_i,\zeta_i))_{i=1}^{m} (( ℓ i , ζ i ) ) i = 1 m by Wrap W ( ( a i , p i ) i = 1 m ) \operatorname{Wrap}_{W}((a_i,p_i)_{i=1}^{m}) Wrap W (( a i , p i ) i = 1 m ) . The three cases are the greedy rule stated in the task descriptions above, where a word joins the current line whenever it fits with a single interword space.
The long text rendering task is the function Render W \operatorname{Render}_{W} Render W . On input ( ( s i , p i ) ) i = 1 m ((s_i,p_i))_{i=1}^{m} (( s i , p i ) ) i = 1 m , it returns the full-height rasterization of these words under the rule above. Its output has W W W character cells per line and 2 m 2m 2 m line slots, with unused slots left white. The largest line index is 2 m − 1 2m-1 2 m − 1 , so the canvas accommodates every input and has a fixed output length given m m m .
Proposition 7 (Long text rendering). For every fixed W ≥ 3 W\ge3 W ≥ 3 and fixed nontrivial monospaced raster font over an alphabet Σ \Sigma Σ with ∣ Σ ∣ ≥ 2 |\Sigma|\ge2 ∣Σ∣ ≥ 2 , the function Render W \operatorname{Render}_{W} Render W is T C 0 \mathrm{TC}^{0} TC 0 -complete under A C 0 \mathrm{AC}^{0} AC 0 Turing reductions.
Proof. We first classify the auxiliary wrapping function. To show that W r a p W ∈ T C 0 \mathrm{Wrap}_W \in\mathrm{TC}^{0} Wrap W ∈ TC 0 , we track the occupied width with a finite automaton. For each input pair ( a , p ) (a,p) ( a , p ) , its transition on the state set { 1 , … , W } \{1,\ldots,W\} { 1 , … , W } is
τ a , p ( r ) = { a , p = 1 , r + 1 + a , p = 0 and r + 1 + a ≤ W , a , p = 0 and r + 1 + a > W . \tau_{a,p}(r)=
\begin{cases}
a, & p=1,\\
r+1+a, & p=0\text{ and }r+1+a\le W,\\
a, & p=0\text{ and }r+1+a>W.
\end{cases} τ a , p ( r ) = ⎩ ⎨ ⎧ a , r + 1 + a , a , p = 1 , p = 0 and r + 1 + a ≤ W , p = 0 and r + 1 + a > W .
and we let M W M_W M W be the transition monoid generated under composition by { τ a , p : 1 ≤ a ≤ W , p ∈ { 0 , 1 } } \{\tau_{a,p}:1\le a\le W,\ p\in\{0,1\}\} { τ a , p : 1 ≤ a ≤ W , p ∈ { 0 , 1 }} .
For any initial state r 0 r_0 r 0 , reading the first i i i input pairs yields
r i = ( τ a i , p i ∘ ⋯ ∘ τ a 1 , p 1 ) ( r 0 ) . r_i=(\tau_{a_i,p_i}\circ\cdots\circ\tau_{a_1,p_1})(r_0). r i = ( τ a i , p i ∘ ⋯ ∘ τ a 1 , p 1 ) ( r 0 ) .
We arrange the states in cyclic order. For p = 0 p=0 p = 0 , the list τ a , 0 ( 1 ) , … , τ a , 0 ( W ) \tau_{a,0}(1),\ldots,\tau_{a,0}(W) τ a , 0 ( 1 ) , … , τ a , 0 ( W ) advances in that order, wraps around at most once, and may repeat a a a ; for p = 1 p=1 p = 1 , the transition is constant. Both are orientation-preserving transformations of the cycle, and such transformations are closed under composition.
Every subgroup G G G of M W M_W M W is cyclic. To see this, let e e e be the identity of G G G and S = e ( { 1 , … , W } ) S=e(\{1,\ldots,W\}) S = e ({ 1 , … , W }) . Although e e e need not fix every state, it fixes every element of S S S . Since g = g ∘ e g=g\circ e g = g ∘ e , each g ∈ G g\in G g ∈ G is determined by its restriction to S S S , where it acts as a cyclic-order-preserving permutation. Restriction to S S S therefore embeds G G G into the rotation group of S S S . Since this rotation group is cyclic, so is G G G . In particular, every subgroup of M W M_W M W is solvable.
By the characterization of regular languages recognized by finite monoids with solvable subgroups ([6 ] ), every state predicate of this automaton lies in A C C 0 ⊆ T C 0 \mathrm{ACC}^{0}\subseteq\mathrm{TC}^{0} ACC 0 ⊆ TC 0 . Applying these state-predicate circuits to every prefix gives a one-hot encoding of every r i r_i r i , still with constant depth and polynomial size. The first word needs no special treatment: since p 1 = 1 p_1=1 p 1 = 1 , the map τ a 1 , 1 \tau_{a_1,1} τ a 1 , 1 is constant with value a 1 a_1 a 1 , so applying it to any initial state returns r 1 = a 1 r_1=a_1 r 1 = a 1 .
For each i ≥ 2 i\ge2 i ≥ 2 , the automatic-wrap indicator χ i \chi_i χ i and the total line increment Δ i \Delta_i Δ i are
χ i : = ( 1 − p i ) 1 { r i − 1 + 1 + a i > W } , Δ i : = χ i + 2 p i . \chi_i:=(1-p_i)\mathbf{1}\{r_{i-1}+1+a_i>W\},\qquad\Delta_i:=\chi_i+2p_i. χ i := ( 1 − p i ) 1 { r i − 1 + 1 + a i > W } , Δ i := χ i + 2 p i .
and computing them requires only a constant-size lookup once r i − 1 r_{i-1} r i − 1 , a i a_i a i , and p i p_i p i are known. Threshold circuits compute all prefix sums
ℓ i = 1 + ∑ j = 2 i Δ j \ell_i=1+\sum_{j=2}^{i}\Delta_j ℓ i = 1 + j = 2 ∑ i Δ j
in constant depth, and the starting position is ζ i = 0 \zeta_i=0 ζ i = 0 when χ i + p i > 0 \chi_i+p_i>0 χ i + p i > 0 and ζ i = r i − 1 + 1 \zeta_i=r_{i-1}+1 ζ i = r i − 1 + 1 otherwise. Thus the entire wrapping function is in T C 0 \mathrm{TC}^{0} TC 0 .
To establish T C 0 \mathrm{TC}^{0} TC 0 -hardness, we use the single-paragraph subfamily, setting p 1 = 1 p_1=1 p 1 = 1 and p i = 0 p_i=0 p i = 0 for every i > 1 i>1 i > 1 , and reduce MAJORITY to a single query of W r a p W \mathrm{Wrap}_W Wrap W . Given x ∈ { 0 , 1 } N x\in\{0,1\}^{N} x ∈ { 0 , 1 } N , we begin with a sentinel word of width W W W , so that the first line is full, and encode each input bit x i x_i x i by the two-word gadget γ ( x i ) \gamma(x_i) γ ( x i ) given by
γ ( 0 ) : = ( 1 , W − 2 ) , γ ( 1 ) : = ( W , W ) . \gamma(0):=(1,W-2),\qquad\gamma(1):=(W,W). γ ( 0 ) := ( 1 , W − 2 ) , γ ( 1 ) := ( W , W ) .
The gadgets γ ( x 0 ) , … , γ ( x N − 1 ) \gamma(x_0),\ldots,\gamma(x_{N-1}) γ ( x 0 ) , … , γ ( x N − 1 ) are appended after the sentinel.
Whenever a gadget begins, the current line is full. The 0 0 0 -gadget starts one new line and fills it exactly, because 1 + 1 + ( W − 2 ) = W 1+1+(W-2)=W 1 + 1 + ( W − 2 ) = W , while the 1 1 1 -gadget starts two new lines, each filled by one width-W W W word. Both gadgets therefore end with a full line, contributing one and two line breaks respectively, so the final word has line index
1 + N + ∑ i = 0 N − 1 x i . 1+N+\sum_{i=0}^{N-1}x_i. 1 + N + i = 0 ∑ N − 1 x i .
The width sequence is an A C 0 \mathrm{AC}^{0} AC 0 encoding of the input bits, and an A C 0 \mathrm{AC}^{0} AC 0 comparison of the returned line index with a hardwired threshold decides MAJORITY. Since MAJORITY generates T C 0 \mathrm{TC}^{0} TC 0 under A C 0 \mathrm{AC}^{0} AC 0 Turing reductions (Chandra et al. [10 ] ), the wrapping function is T C 0 \mathrm{TC}^{0} TC 0 -hard.
We now transfer this classification to the rendered image. To compute Render W \operatorname{Render}_{W} Render W with an oracle for Wrap W \operatorname{Wrap}_{W} Wrap W , first obtain each a i = ∣ s i ∣ a_i = |s_i| a i = ∣ s i ∣ by a constant-size lookup and query the word positions ( ℓ i , ζ i ) (\ell_i,\zeta_i) ( ℓ i , ζ i ) . Each output pixel is then a fixed glyph lookup on the characters of s i s_i s i , followed by an OR over the words, all in A C 0 \mathrm{AC}^{0} AC 0 . Since Wrap W ∈ T C 0 \operatorname{Wrap}_{W} \in\mathrm{TC}^{0} Wrap W ∈ TC 0 , this reduction places Render W \operatorname{Render}_{W} Render W in T C 0 \mathrm{TC}^{0} TC 0 .
For the reverse reduction, nontriviality provides two characters u , v ∈ Σ u,v \in\Sigma u , v ∈ Σ whose glyph rasters differ at a fixed pixel. For each word index i ∈ { 1 , … , m } i \in\{1,\ldots,m\} i ∈ { 1 , … , m } , form two rendering inputs with the same paragraph indicators. Both inputs represent word j j j by u a j u^{a_j} u a j for every j ∈ { 1 , … , m } j \in\{1,\ldots,m\} j ∈ { 1 , … , m } . In the second input, replace the first u u u of the i i i -th word by v v v .
The two inputs have identical layouts because the font is monospaced. Comparing their bitmaps at that pixel offset in every character cell gives a one-hot encoding of the starting cell ( ℓ i , ζ i ) (\ell_i,\zeta_i) ( ℓ i , ζ i ) . An A C 0 \mathrm{AC}^{0} AC 0 circuit converts this encoding to binary. All O ( m ) O(m) O ( m ) pairs are queried in parallel with polynomially many oracle gates. This gives an A C 0 \mathrm{AC}^{0} AC 0 Turing reduction from Wrap W \operatorname{Wrap}_{W} Wrap W to Render W \operatorname{Render}_{W} Render W . Since Wrap W \operatorname{Wrap}_{W} Wrap W is T C 0 \mathrm{TC}^{0} TC 0 -hard, Render W \operatorname{Render}_{W} Render W is T C 0 \mathrm{TC}^{0} TC 0 -hard as well.
Experimental Details
Overall Setup
Backbones. For line tracing, we train a multimodal diffusion transformer (MMDiT) with 9M parameters from random initialization, following the FLUX.2 architecture [8 ] . It has three joint-attention blocks and three single-stream blocks, each with four attention heads and head dimension 64. Other runs fine-tune pretrained backbones with LoRA adapters (rank and alpha 32, no dropout). Long multiplication, long text rendering, and the controlled comparison of § 4.3 use FLUX.2-klein-base-4B [8 ] . The large-scale comparison in § 4.3 instead uses Qwen-Image-Edit-2511 (Qwen Team, 2025).
Implementation of self-conditioning. All backbones encode images into VAE latents and pack each 2 × 2 2 \times2 2 × 2 latent patch into one image token. In the second training pass and at each sampling step after the first, SELFCONDFM concatenates the tokens of the endpoint prediction with the tokens of the noisy target and of any conditioning image before the transformer blocks. The FLUX.2 backbones append the tokens of the endpoint prediction with a distinct positional encoding offset, and Qwen-Image-Edit places them after the tokens of the target image. No attention mask separates these blocks of tokens. Both placements follow the backbones’ own design for image-conditioned generation. Thus self-conditioning changes the input sequence but not the transformer architecture.
Training FLOPs. We match training compute by cumulative FLOPs, the total number of floating-point operations a run performs. We estimate it as the training FLOPs per micro-batch, averaged over 100 micro-batches, multiplied by the number of micro-batches processed across all devices. Each measurement covers the complete training computation, including VAE encoding, the second SELFCONDFM training pass, and the longer self-conditioned token sequence, so the extra cost of self-conditioning is fully counted. The plotted budgets in Figure 1 are 4.50 × 10 18 4.50 \times10^{18} 4.50 × 1 0 18 FLOPs for line tracing, 2.32 × 10 19 2.32 \times10^{19} 2.32 × 1 0 19 for long multiplication, and 4.70 × 10 19 4.70 \times10^{19} 4.70 × 1 0 19 for long text rendering.
Setup and Evaluation for the Tasks in §4.2
Shared configuration. All training runs are conducted on four NVIDIA A100 80GB GPUs, using AdamW, bfloat16 precision, and a constant learning rate schedule with 1,000 warmup steps. Within each task, the two methods share the data, optimizer, noise schedule, and evaluation procedure. The SELFCONDFM runs use the two-pass training scheme of § 3.2 .
Line tracing. The training set contains 10 6 10^{6} 1 0 6 random instances with m = 50 m = 50 m = 50 . We train with a global batch size of 32 and a learning rate of 2 × 10 − 3 2 \times10^{-3} 2 × 1 0 − 3 . After FLOP alignment, the plotted curves end at step 60k for VANILLAFM and step 53k for SELFCONDFM.
We evaluate checkpoints on a held-out set of 20 instances using 100 NFE. The evaluator samples interior locations on the five expected segments of each stage and requires their local average RGB values to match the ground-truth rendering within a fixed tolerance. Our evaluation metric is the longest correct prefix (LCP), defined for each instance as the length of the longest prefix of stages for which all five segments match.
Long multiplication. The training set contains 2 × 10 5 2 \times10^{5} 2 × 1 0 5 problems with operands of five to seven digits, where the number of digits of each operand is drawn independently and uniformly from { 5 , 6 , 7 } \{5,6,7\} { 5 , 6 , 7 } . Each operand is then sampled uniformly at random from the integers with the chosen number of digits, so it contains no leading zeros. We use a global batch size of 8 and a learning rate of 10 − 4 10^{-4} 1 0 − 4 , training SELFCONDFM for five epochs and VANILLAFM for 15 epochs to cover a comparable FLOP range.
We evaluate checkpoints on a test split of 100 instances drawn from the same distribution as the training set, using 50 NFE. We use Qwen3.8-Flash (Qwen Team, 2026) as the judge, prompting it to compare the generated and reference worksheets. A sample counts as correct only when the two worksheets agree throughout, from the final product to every intermediate row. The full judge prompt is given in Figure 4 .
Figure 4. Judge prompt for evaluating long multiplication.
You are evaluating a visual reasoning model on a column-multiplication task. You will see a problem setup image (the two numbers to multiply, written in column form), the correct solution image (the fully worked-out column multiplication with the correct final product), and the model’s predicted solution image.
Decide whether the predicted solution is correct: it must correspond to the same problem setup as the correct solution, the final product it shows must equal the correct product, and the intermediate steps, including the carries, must match the correct solution as well. If the predicted solution is blank, truncated, or unreadable, answer ‘[NO]‘. Provide a brief explanation, then answer ‘[YES]‘ if the predicted solution is correct and ‘[NO]‘ if it is not.
Long text rendering. The training set contains 3 × 10 5 3 \times10^{5} 3 × 1 0 5 text samples as conditions, with their 384 × 384 384 \times384 384 × 384 monospaced renderings as targets. The corpus is drawn from the TinyStories dataset [18 ] . During preprocessing, we truncate each text to the longest prefix that fits on the canvas. We use a global batch size of 16 and a learning rate of 10 − 4 10^{-4} 1 0 − 4 , training VANILLAFM for 12 epochs and SELFCONDFM for four epochs.
We evaluate 100 held-out instances using 50 NFE, parsing the text from the reference and generated images with Qwen3.8-Flash (Qwen Team, 2026), prompted to preserve all line breaks and whitespace. The rate of perfect rendering is the fraction of instances whose two parsed texts match exactly.
Beyond exact matching, we also compute the character error rate (CER) between the two parsed texts (Figure 5 ), defined as C E R = d L e v ( r , r ^ ) / ∣ r ∣ \mathrm{CER} = d_{\mathrm{Lev}}(r,\hat{r})/|r| CER = d Lev ( r , r ^ ) /∣ r ∣ , where r r r and r ^ \hat{r} r ^ are the parsed text of the reference and generated images, respectively. The Levenshtein distance d L e v ( r , r ^ ) d_{\mathrm{Lev}}(r,\hat{r}) d Lev ( r , r ^ ) is the minimum number of character edits required to transform r r r into r ^ \hat{r} r ^ , where each edit inserts, deletes, or substitutes one character and has unit cost. SELFCONDFM ends at CER 0.005, while VANILLAFM plateaus between 0.03 and 0.1 and stands at 0.046 at the matched budget of 4.70 × 10 19 4.70 \times10^{19} 4.70 × 1 0 19 FLOPs.
Figure 5. Character error rate (CER) of parsed text from the long text rendering evaluation, against cumulative training FLOPs. SELFCONDFM keeps improving throughout training, whereas VANILLAFM plateaus nearly an order of magnitude above the final SELFCONDFM value.
Multi-Seed Evaluation
We further train VANILLAFM and SELFCONDFM with 3 different seeds (i.e., 2 seeds in addition to the one used in Figure 1 ) on line tracing and long multiplication. We evaluate line tracing on the same held-out set of 20 instances as the single-seed evaluation at 100 NFE, and long multiplication on the same held-out set of 100 instances as its single-seed evaluation at 50 NFE. Due to limited computational resources, we train long multiplication with a smaller compute budget and do not run multi-seed experiments for long text rendering.
Figure 6 and Figure 7 show the mean evaluation curve of each method against training FLOPs, with a band of one standard deviation around the mean. For line tracing, at the checkpoints with matched training FLOPs (SELFCONDFM@53k vs. VANILLAFM@60k), SELFCONDFM saturates at a mean LCP of 50.0 ± 0.0 50.0 \pm0.0 50.0 ± 0.0 , while VANILLAFM reaches only 5.6 ± 2.7 5.6 \pm2.7 5.6 ± 2.7 . For long multiplication, at its smaller matched budget (SELFCONDFM@50k vs. VANILLAFM@125k), SELFCONDFM attains ( 90.0 ± 5.3 ) % (90.0 \pm5.3)\% ( 90.0 ± 5.3 ) % accuracy while VANILLAFM reaches ( 35.0 ± 8.9 ) % (35.0 \pm8.9)\% ( 35.0 ± 8.9 ) % . These multi-seed results thus confirm that SELFCONDFM outperforms VANILLAFM on line tracing and long multiplication, consistent with the single-seed evaluations in Figure 1 .
Figure 6. Training curves of line tracing with 3 different seeds, plotting mean LCP on the held-out set of 20 instances at 100 NFE against training FLOPs. For each method, the curve shows the mean over the 3 runs, and the shaded band shows the mean ± one standard deviation. SELFCONDFM saturates at 50.0 ± 0.0, while VANILLAFM reaches 5.6 ± 2.7 at the matched budget.
Figure 7. Training curves of long multiplication with 3 different seeds, plotting the mean accuracy on the held-out set under 50 NFE against training FLOPs. As in Figure 6 , each curve and its shaded band show the mean and the mean ± one standard deviation over the 3 runs. VANILLAFM reaches (35.0 ± 8.9)% while SELFCONDFM is higher at (90.0 ± 5.3)% under the fixed budget.
Generated Examples
Figure 8 to Figure 10 present selected held-out examples on which VANILLAFM fails while SELFCONDFM succeeds, with annotations highlighting the errors made by VANILLAFM. They are generated by the checkpoints at the final evaluation point of Figure 1 , namely VANILLAFM@60k and SELFCONDFM@53k for line tracing, VANILLAFM@312.5k and SELFCONDFM@125k for long multiplication, and VANILLAFM@190k and SELFCONDFM@74k for long text rendering.
Figure 8. Examples on line tracing. For visualization, each trajectory is truncated shortly after the first error of VANILLAFM; the full trajectory contains 50 stages. VANILLAFM first fails at stages 8 and 14 in (a) and (b), respectively, by incorrectly switching colors at line crossings. Black boxes mark the errors. In contrast, SELFCONDFM preserves each line’s color throughout all 50 stages in both examples (LCP = 50).
Figure 10. Examples on long text rendering. VANILLAFM produces text errors as well as line-break and whitespace errors, yielding CERs of 0.0106 and 0.0410 in (a) and (b), respectively. Red boxes highlight text errors, and blue dashed boxes indicate line-break and whitespace errors. In contrast, SELFCONDFM renders both passages correctly with zero CER.
Figure 9. Examples on long multiplication. VANILLAFM makes accumulation errors in both cases, resulting in incorrect final answers, with the erroneous digits highlighted in red boxes. In contrast, SELFCONDFM produces the correct product for both examples.
NFE Scaling
For Figure 3 , we evaluate the checkpoints of Appendix § 12 .§ 2 for line tracing at matched training FLOPs, VANILLAFM@60k and SELFCONDFM@53k, on 200 held-out instances with m = 50 m = 50 m = 50 . The NFE grid covers every integer from 1 to 50, and the two methods share the same initial noise for each instance at every NFE. The LCP is computed with the evaluator described in Appendix § 12 .§ 2 .
Beyond the comparison at matched NFE in Figure 3 , we also plot the mean LCP against cumulative inference FLOPs in Figure 11 .
Figure 11. Mean LCP in the NFE scaling comparison of Figure 3, plotted against cumulative inference FLOPs. Both methods have zero mean LCP at NFE = 1. SELFCONDFM reaches 49.84 at 8.29 × 10 11 8.29 \times10^{11} 8.29 × 1 0 11 FLOPs. VANILLAFM reaches 7.66 at 2.74 × 10 11 2.74 \times10^{11} 2.74 × 1 0 11 FLOPs, ending below 8.0 up to 2.28 × 10 12 2.28 \times10^{12} 2.28 × 1 0 12 FLOPs (which corresponds to NFE = 50).
Setup and Results for Structured Visual-Reasoning Tasks
Datasets and evaluators. We prepare the training data with the pipeline of Dai et al. [17 ] for VSP-Super, Maze, TSP, and Sudoku, and with that of He et al. [29 ] for Jigsaw. The evaluation data and protocol for all five tasks follow He et al. [29 ] .
Controlled experiments. In the controlled experiments of § 4.3 , for each of VSP-Super, Maze, TSP, Sudoku, and Jigsaw, we train separate FLUX.2-klein-base-4B LoRA adapters under the shared configuration of the tasks in § 4.2 , with a global batch size of 16 and a learning rate of 10 − 4 10^{-4} 1 0 − 4 . Checkpoints are compared at matched cumulative training FLOPs, at which SELFCONDFM has been trained for 16k steps, and all results use 50 NFE.
Large-scale comparisons. Following the setup of Dai et al. [17 ] , we train two kinds of SELFCONDFM models. For task-specific training, we train one Qwen-Image-Edit-2511 LoRA adapter per task. For unified training, a single adapter is trained on the union of the VSP-Super, Maze, TSP, and Sudoku data. All adapters are trained for five epochs to ensure convergence.
Jigsaw Results
Since EndoCoT (Dai et al. [17 ] ) does not evaluate Jigsaw, we compare our large-scale result on Jigsaw with the baselines reported by He et al. [29 ] . Our SELFCONDFM adapter attains the best average accuracy, 96.0% versus 92.3% for DiffThinker, with the largest gain at the hardest level; see Table 3 .
Table 3. Jigsaw accuracy (%) at difficulty levels 2 to 4. “Avg.” is the unweighted mean over the three levels. The best results are in bold and the second best are underlined.
Generated Examples
To illustrate the qualitative differences between VANILLAFM and SELFCONDFM on the five structured visual-reasoning tasks, we select two held-out instances per task from the controlled comparison in Table 1 on which VANILLAFM fails while SELFCONDFM succeeds. The examples are shown in Figure 12 to Figure 16 , with annotations highlighting the errors made by VANILLAFM.
Figure 12. VSP-Super examples on 16 × 16 and 32 × 32 grids. The VANILLAFM routes contain disconnected segments. In contrast, the SELFCONDFM routes correctly connect the endpoints.
Figure 16. Jigsaw examples on 2 × 2 and 3 × 3 tile grids. VANILLAFM fails in both examples: it swaps the two bottom tiles of (a), giving the order 3, 2 instead of 2, 3, and swaps the first two tiles in the top row of (b), giving 1, 7 instead of 7, 1. SELFCONDFM matches the reference permutation in both examples. Tile identifiers are part of the original images.
Figure 13. Maze examples on 8 × 8 8 \times8 8 × 8 and 16 × 16 16 \times16 16 × 16 grids. In (a), VANILLAFM leaves separate path fragments; in (b), its route stops before reaching the blue endpoint. In contrast, SELFCONDFM completes both routes.
Figure 14. TSP examples with 12 and 15 cities. VANILLAFM fails to find the optimal tour in both cases, yielding excess tour lengths of +0.45 and +0.67, respectively. In contrast, SELFCONDFM produces the optimal solution for both instances.
Figure 15. Sudoku examples with 35 and 45 given digits. VANILLAFM produces incorrect solutions with explicit Sudoku constraint violations: row 3 in (a) contains two 2s, while row 5 in (b) contains two 1s. The red boxes highlight these errors. In contrast, SELFCONDFM correctly solves both puzzles.
Additional Empirical Analyses
Empirical Lipschitz Estimation
Theorem 1 assumes that the model u u u has a bounded Lipschitz constant. To empirically support this assumption, we estimate the Lipschitz constant, in the joint ℓ ∞ \ell_\infty ℓ ∞ norm on ( x , c t x ) (x,\mathrm{ctx}) ( x , ctx ) used in § 2.2 , of a VANILLAFM model for line tracing. The checkpoint is separately trained on approximately 3 × 10 5 3 \times10^{5} 3 × 1 0 5 examples of mixed lengths, using about 2 × 10 17 2 \times10^{17} 2 × 1 0 17 training FLOPs.
For a state x i x_i x i visited at time t i t_i t i , we use projected gradient ascent to maximize
∥ u ( x i + Δ x , t i ; c t x + Δ c t x ) − u ( x i , t i ; c t x ) ∥ ∞ max { ∥ Δ x ∥ ∞ , ∥ Δ c t x ∥ ∞ } \frac{\lVert u(x_i+\Delta x,t_i;\mathrm{ctx}+\Delta\mathrm{ctx})-u(x_i,t_i;\mathrm{ctx})\rVert_\infty}{\max\{\lVert\Delta x\rVert_\infty,\lVert\Delta\mathrm{ctx}\rVert_\infty\}} max {∥ Δ x ∥ ∞ , ∥ Δ ctx ∥ ∞ } ∥ u ( x i + Δ x , t i ; ctx + Δ ctx ) − u ( x i , t i ; ctx ) ∥ ∞
We jointly perturb the noisy state and the condition latent with radii 0.003, 0.01, 0.03, 0.1, and 0.3, and cover every state of an inference trajectory with 50 steps. For each problem length m = 1 , … , 50 m = 1,\ldots,50 m = 1 , … , 50 , we estimate L L L on 30 held-out trajectories and report the maximum estimate over all tested states, radii, and trajectories.
As shown in Figure 17 , the maximum Lipschitz estimate at each problem length rises for small m m m and levels off around 400 for m ≥ 30 m \ge30 m ≥ 30 , with an overall maximum of 580. The largest observed velocity norm is below 10. The estimates thus show no continued growth with m m m over the tested range.
Figure 17. Maximum joint ℓ ∞ \ell_\infty ℓ ∞ empirical Lipschitz estimate among 30 held-out trajectories at each problem length.
Remark. These estimates are not certified upper bounds. Nevertheless, estimating Lipschitz constants via adversarial search is common practice [70 , 1 ] , and the absence of continued growth in the estimated L L L with m m m still provides empirical support for the regime of bounded Lipschitz constants assumed in § 3.1 .
Attention Allocation
We measure how the first joint-attention layer of the SELFCONDFM checkpoint for line tracing allocates attention from queries at the x i x_i x i token positions to the keys from three input sources at sampling step i i i : the noisy state x i x_i x i , the conditioning image w w w , and the endpoint prediction z i z_i z i . The experiment uses 50 test instances with m = 50 m = 50 m = 50 and 50 NFE. At every step after the first, we normalize the attention mass over the three sources and average it over heads and instances.
As shown in Figure 18 , the attention share of the endpoint prediction stays between 20.0% and 31.3% and declines nearly monotonically along the sampling trajectory. Thus the model relies on z i z_i z i throughout sampling and uses it most heavily at early steps, where the noisy state is less informative.
Figure 18. Normalized attention mass of the first layer to each input source. Endpoint prediction maintains a nontrivial share throughout the trajectory, declining nearly monotonically from 31.3% to 20.0%, thus peaking at early steps, where noise dominates.
Parallel and Revisable Reasoning
By inspecting the sampling trajectories of the checkpoints for long multiplication, we observe two properties of visual generative reasoning with flow matching that SELFCONDFM preserves: parallel local computation and in-place error correction, which are usually not possible in autoregressive reasoning. The following paragraphs provide empirical evidence for each.
Parallel local computation. For each generated worksheet, we score every shifted partial product A B i 10 i AB_i10^i A B i 1 0 i against the reference, repeating the evaluation over every integer NFE from 1 to 50. As shown in Figure 19 , the accuracy of partial products for both methods stays above 98% at every NFE, even at N F E = 1 \mathrm{NFE}=1 NFE = 1 . This shows that even a single model evaluation can produce multiple correct local results simultaneously within the same worksheet. By contrast, common autoregressive reasoning methods, such as CoT, generate reasoning steps sequentially and do not produce multiple local results in parallel.
Figure 19. Parallel local computation. Accuracy of partial products on long multiplication at every NFE from 1 to 50: both methods keep nearly all partial products correct within a single generated worksheet.
In-place error correction. For pairs of problems (w w w , w ′ w' w ′ ) with different answers, we sample with 50 NFE, conditioning on w w w for the first k k k steps and swapping to w ′ w' w ′ for the rest. We repeat this for every k k k from 1 to 50, and judge each output against the reference worksheet of w ′ w' w ′ .
As shown in Figure 20 , SELFCONDFM keeps the accuracy of matching w ′ w' w ′ around 90% whenever the swap falls in the first half of the trajectory, and the accuracy falls to zero only once k k k exceeds 35. VANILLAFM also corrects early swaps in place, but its accuracy is only 65% at k = 1 k = 1 k = 1 and decays to zero by k = 32 k = 32 k = 32 .
Figure 20. In-place error correction on long multiplication. The condition changes from w w w to w ′ w' w ′ after step k k k , and the curves show the accuracy of matching w ′ w' w ′ as k k k varies: the output of SELFCONDFM is redirected in place to the new problem when the swap falls in the first half of the trajectory, whereas VANILLAFM follows the new problem only partially.
Both methods therefore revise a wrong generation in place in the middle of the trajectory, with SELFCONDFM performing particularly well in the first half of the trajectory. Autoregressive reasoning, in contrast, retains the reasoning steps once they are generated and cannot correct them in place.