betaFeedback

WorksComputer Science

The Surprising Expressivity of a Single Neuron with Autoregressive Chain-of-Thought

Abstract

The success of autoregressive language models trained with Chain-of-Thought~(CoT) supervision raises a fundamental question: How simple can a next-token predictor be while still enabling the efficient simulation of general computation through its autoregressively generated CoT? Surprisingly, we show that a single neuron suffices. For a broad family of activations, including threshold and ReLU, a single autoregressive neuron can simulate any feedforward circuit with the same activation. Specifically, a size-ss circuit on nn inputs can be simulated by a neuron of dimension O(ns+s2)O(ns+s^2) using O(s2)O(s^2) generation steps, with both bounds independent of circuit depth and tight under natural assumptions. For threshold activations, this improves upon the simulation of Joshi et al. (COLT 2025), whose bounds scale exponentially with circuit depth. Consequently, autoregressive threshold neurons can simulate polynomial-time Turing machines, while remaining efficiently learnable from CoT supervision. Our main expressivity result relies on a novel connection to Sidon sets from additive combinatorics. As an experimental illustration, we efficiently train a single autoregressive ReLU neuron to mimic a neural network teacher with nontrivial test accuracy on CIFAR-10.

Introduction

Autoregressive (AR) generation has emerged as one of the most successful paradigms in modern machine learning and underlies contemporary large language models (LLMs). At each generation step, the same parameterized next-token predictor is applied to the current context. This parameter sharing makes the model time-invariant, while repeated application allows a fixed predictor to perform computations of varying length. On multi-step reasoning tasks, the generated sequence can be viewed as a Chain-of-Thought (CoT) that guides the LLM toward the correct final answer [Wei+22b; Koj+22]. From a theoretical perspective, this raises a basic expressivity question:

Question 1 (Expressivity). How simple can a class of next-token predictors be while still enabling efficient autoregressive simulation of general computation,1 such as that performed by Turing machines or deep neural networks?

Chains of thought are relevant not only at inference time but also during training. Pretraining corpora often contain worked solutions, mathematical derivations, and other step-by-step explanations. During post-training, and particularly during supervised fine-tuning (SFT), reasoning traces are explicitly incorporated. These traces may consist of human-written step-by-step solutions or synthetic reasoning generated by a more capable teacher model. Thus, reasoning trajectories constitute a natural form of supervision: each trajectory provides a sequence of prefix-next-token examples that are used to learn a single next-token predictor. This raises the following learnability question:

Question 2 (Learnability). Can repeated application of a simple predictor simulate general computation, while remaining efficiently learnable from CoT supervision?

Expressivity limits cannot be overcome by better supervision, while expressivity alone says little about whether the model can be learned efficiently from data.

Prior work and the gap addressed by this work. In practice, the most widely used class of next-token predictor is that of transformers [30]. Consequently, a growing line of work has established strong expressivity results for transformers augmented with AR chain-of-thought generation [24, 27, 4]. These results, however, do not identify the simplest next-token operations that suffice to simulate general computation. Moreover, we focus on classes that admit provable polynomial-time learning guarantees for the next-token prediction problem.

Malach [26] argued that much of the power of autoregressive models comes from CoT computation rather than the specific architecture. He supported this empirically on simple benchmarks and theoretically for AR linear-threshold models,2 with one significant caveat: his construction allows a different linear-threshold predictor (neuron) for each generation step. This departs from practical autoregressive architectures and makes the simulation straightforward by allowing parameters to be assigned separately to each step.

Joshi et al. [19] subsequently formalized the time-invariant setting, in which a single predictor is reused across all generation steps, emphasizing its naturality and the statistical benefits of parameter sharing. These benefits include sample-complexity bounds independent of the generation length [15, 23]. However, parameter sharing complicates even basic expressivity questions. Indeed, the construction of Joshi et al. [19] for simulating threshold circuits with an AR linear-threshold predictor incurs an exponential dependence on circuit depth, requiring both dimension and generation length O(sizedepth)O(\mathrm{size}^{\mathrm{depth}}). They explicitly leave open whether their simulation can be made more efficient. More broadly, it remains open whether a simple class of next-token predictors can efficiently simulate general computation while admitting efficient learning guarantees in the time-invariant setting.

Our results. We answer both the Expressivity and Learnability questions in discrete and real-valued settings: repeated application of a single neuron suffices. Our main result applies to a broad family of activations and is stated in terms of σ\sigma-circuits, or equivalently, feedforward neural networks with activation σ\sigma:

Theorem 1 (Informal version of Theorems 2 and 3). *Under mild assumptions on the activation σ\sigma (satisfied by threshold, ReLU, GELU, and sigmoid, among others), any size-ss σ\sigma-circuit on inputs of dimension nn can be simulated by autoregressively applying a single fixed neuron x↦σ(⟨w,x⟩)x \mapsto\sigma(\langle w,x\rangle),3 with w∈Rdw \in\mathbb{R}^{d}. The dimension of the AR neuron is d=O(ns+s2)d = O(ns+s^{2}) and the number of generation steps is T=O(s2)T = O(s^{2}), both completely independent of the circuit depth.*

Our simulation leads to significant expressivity and learning guarantees. We complement these guarantees by studying the optimality of the simulation bounds and providing an experimental illustration. We present these contributions in the following order:

  • Expressivity (§ 3). For threshold activations, our simulation improves on Joshi et al. [19] by replacing their exponential dependence on circuit depth with depth-independent polynomial bounds. It implies that a single time-invariant AR neuron can simulate any Turing machine, with neuron dimension and generation length polynomial in the machine’s running time and input length (Corollary 1). Our result also captures real-valued computation for a broad class of nonlinear activations: a single shared neuron can efficiently simulate any size-ss feedforward network with the same activation on [0,1]n[0,1]^n (Theorem 3).

  • Learnability (§ 4). Combining our simulation with known learning guarantees for AR linear thresholds shows that a single autoregressive threshold neuron can be efficiently learned from complete CoT trajectories to predict the outputs of any polynomial-time Turing machine (Corollary 2). For ReLU, combining our simulation with known generalization bounds for neural networks yields analogous learning guarantees for feedforward ReLU networks (Corollary 3). Another implication of our result is that, in the absence of CoT, learning from final answers alone is hard, assuming only the existence of one-way functions. Prior work established such hardness under stronger cryptographic assumptions [19, 18].

  • Optimality of the simulation bounds (§ 5). The dimension bound d=O(ns+s2)d = O(ns + s^2) matches the worst-case number of circuit weights. For generation length, we prove a matching worst-case lower bound of T=Ω(s2)T = \Omega(s^2) (Theorem 4) under a natural structural assumption shared by our construction and prior simulations.

  • Experiments (§ 6). We use a CNN teacher with nontrivial test accuracy on CIFAR-10 [22] and train a single shared autoregressive ReLU neuron on its activation traces, without access to the teacher’s weights. The learned AR neuron agrees with the teacher’s predictions on approximately 99%99\% of test examples.

The proof of Theorem 1 is based on a novel connection between autoregressive circuit simulation and Sidon sets from additive combinatorics. Using the classical construction of Erdos and Turán [8], we position the circuit weights according to a Sidon set within the parameter vector of a single neuron. This careful placement prevents weights from colliding during the autoregressive process, despite parameter sharing. The resulting collision-free encoding is the key new ingredient, yielding a depth-independent simulation.

Preliminaries

Notation. We use boldface letters for vectors and write [n]:={1,2,…,n}[n] := \{1, 2, \ldots, n\}. For a vector v∈Rmv \in\mathbb{R}^{m} and i∈[m]i \in[m], we write v[i]v[i] for its ii-th coordinate and v[−i]:=v[m−i+1]v[-i] := v[m-i+1] for its ii-th coordinate from the right. For real numbers a,ba,b, let a∨b:=max⁡{a,b}a \lor b := \max\{a,b\} and a∧b:=min⁡{a,b}a \land b := \min\{a,b\}. We use standard asymptotic notation, with Θ(⋅)\Theta(\cdot), Ω(⋅)\Omega(\cdot), and O(⋅)O(\cdot) having universal implicit constants, and Θ~(⋅)\widetilde{\Theta}(\cdot), Ω~(⋅)\widetilde{\Omega}(\cdot), and O~(⋅)\widetilde{O}(\cdot) additionally suppress factors that are polylogarithmic in the problem parameters. We write 1[P]\mathbb{1}[P] for the indicator of a predicate PP.

Next, we define the autoregressive single-neuron model, the circuits it simulates, and the learning setting with complete CoT supervision.

Time-invariant Autoregressive Generation. Let Σ\Sigma be a token alphabet and let F⊆ΣΣ∗\mathcal{F} \subseteq\Sigma^{\Sigma^*} be a class of next-token predictors, called the base class. We use Σ={0,1}\Sigma= \{0,1\} for Boolean computation and Σ=R\Sigma= \mathbb{R} for real-valued computation. For an input x∈Σnx \in\Sigma^n, starting from the initial context x(0)=xx^{(0)} = x, autoregressive generation repeatedly applies the same predictor f∈Ff \in\mathcal{F} and appends its output to the context. We write fe2e−t(x)f^{\mathrm{e2e}-t}(x) for the output token generated at the tt-th autoregressive step:

fe2e−t(x)=f(x(t−1)),x(t)=(x(t−1),fe2e−t(x)).f^{\mathrm{e2e}-t}(x) = f\left(x^{(t-1)}\right), \qquad x^{(t)} = \left(x^{(t-1)}, f^{\mathrm{e2e}-t}(x)\right).

We denote the resulting chain of thought by fCoT−T(x)=(fe2e−1(x),…,fe2e−T(x))∈ΣTf^{\mathrm{CoT}-T}(x) = \left(f^{\mathrm{e2e}-1}(x), \ldots, f^{\mathrm{e2e}-T}(x)\right) \in\Sigma^T, consisting of the TT generated tokens. Reusing the same predictor at every step makes the model time-invariant.

Single-neuron predictors. Our base class consists of single neurons with a fixed activation σ:R→Σ\sigma: \mathbb{R} \to\Sigma, where Σ⊆R\Sigma\subseteq\mathbb{R}. For x∈Σnx \in\Sigma^n and w∈Rdw \in\mathbb{R}^d, we use the right-aligned inner product ⟨w,x⟩:=∑i=1d∧nw[−i]x[−i]\langle w, x\rangle:= \sum_{i=1}^{d\wedge n} w[-i]x[-i], equivalently padding the shorter vector with zeros on the left. This convention aligns each new CoT value with the shared parameter vector. For b∈Rb \in\mathbb{R}, define the next-token predictor fw,b,σ:Σ∗→Σf_{w,b,\sigma} : \Sigma^* \to\Sigma by fw,b,σ(x):=σ(⟨w,x⟩+b)f_{w,b,\sigma}(x) := \sigma(\langle w,x\rangle+ b). The resulting dimension-dd base class is

Fd,lin,σ:={fw,b,σ:w∈Rd, b∈R}.\mathcal{F}_{d,\mathrm{lin},\sigma} := \left\{f_{w,b,\sigma} : w \in\mathbb{R}^d,\ b \in\mathbb{R}\right\}.

Thus, Fd,lin,σ\mathcal{F}_{d,\mathrm{lin},\sigma} is a class of single neurons with activation σ\sigma, or equivalently generalized linear models with link function σ\sigma. When b=0b = 0, we write fw,σ:=fw,0,σf_{w,\sigma} := f_{w,0,\sigma}. When σ\sigma is clear from context, we omit it from the notation and write Fd,lin\mathcal{F}_{d,\mathrm{lin}}, fw,bf_{w,b}, and fwf_w.

Efficient Learning with CoT. We study learning these AR predictors from complete CoT supervision [19]. Let Fd\mathcal{F}_d be a base class of next-token predictors, where dd measures predictor size. Given target generator f⋆∈Fdf_\star\in\mathcal{F}_d, each training example reveals the input xx and the entire trajectory f⋆CoT−T(x)f_\star^{\mathrm{CoT}-T}(x). The learner is evaluated on the final output f⋆e2e−T(x)f_\star^{\mathrm{e2e}-T}(x).4 Here, we define CoT learnability in the Boolean setting Σ={0,1}\Sigma= \{0,1\}. Learning setting for real-valued models are given in Section D.1.

Definition 1 (Realizable CoT learnability). We say that Fde2e−T\mathcal{F}_d^{\mathrm{e2e}-T} is CoT-learnable over {0,1}n\{0,1\}^n with generation length TT and sample complexity m(ε,δ)m(\varepsilon,\delta) if there is a learning rule AA such that the following holds. For every distribution D\mathcal{D} over {0,1}n\{0,1\}^n, target generator f⋆∈Fdf_\star\in\mathcal{F}_d, and ε,δ∈(0,1)\varepsilon,\delta\in(0,1), let

SCoT=((x1,f⋆CoT−T(x1)),…,(xm,f⋆CoT−T(xm))),x1,…,xm∼i.i.d.D,S_{\mathrm{CoT}} = \left(\left(x_1,f_\star^{\mathrm{CoT}-T}(x_1)\right),\ldots,\left(x_m,f_\star^{\mathrm{CoT}-T}(x_m)\right)\right), \qquad x_1,\ldots,x_m \mathrel{\overset{\mathrm{i.i.d.}}{\sim}} \mathcal{D},

where m=m(ε,δ)m = m(\varepsilon,\delta). Then, with probability at least 1−δ1-\delta over the sample and the randomness of AA, the predictor h=A(SCoT):{0,1}n→{0,1}h = A(S_{\mathrm{CoT}}) : \{0,1\}^n \to\{0,1\} satisfies

Pr⁡x∼D[h(x)≠f⋆e2e−T(x)]≤ε.\Pr_{x\sim\mathcal{D}}\left[h(x) \ne f_\star^{\mathrm{e2e}-T}(x)\right] \le\varepsilon.

The Computational Aspect. We call Fde2e−T\mathcal{F}_d^{\mathrm{e2e}-T} efficiently CoT-learnable if there exists a learning rule AA satisfying Definition 1 whose sample complexity and running time are polynomial in n,d,T,1/εn,d,T,1/\varepsilon, and log⁡(1/δ)\log(1/\delta).

σ\sigma-circuits. We next define the circuits that serve as simulation targets. A size-ss, depth-LL σ\sigma-circuit C:Σn→ΣC : \Sigma^n \to\Sigma is a weighted directed acyclic graph G=(V,E)G = (V, E) with input nodes Vin={vin,1,…,vin,n}V_{\mathrm{in}} = \{v_{\mathrm{in},1}, \ldots, v_{\mathrm{in},n}\} at depth 0 and non-input nodes {v1,…,vs}\{v_1, \ldots, v_s\}. The non-input nodes are partitioned into layers V(1),…,V(L−1),{vs}V^{(1)}, \ldots, V^{(L-1)}, \{v_s\}, where V(ℓ)V^{(\ell)} contains the hidden nodes at depth ℓ\ell and vsv_s is the output node at depth LL. Edges point from smaller to larger depth, with weights w:E→Rw : E \to\mathbb{R}.

For input x=(x1,…,xn)∈Σnx = (x_1, \ldots, x_n) \in\Sigma^n, each node v∈Vv \in V has a value val⁡(v)∈Σ\operatorname{val}(v) \in\Sigma. Input nodes have values val⁡(vin,k)=xk\operatorname{val}(v_{\mathrm{in},k}) = x_k, and each non-input node viv_i has a bias θi∈R\theta_i \in\mathbb{R} and computes

val⁡(vi)=σ(θi+∑(u,vi)∈Ew(u,vi)val⁡(u)).\operatorname{val}(v_i) = \sigma\left(\theta_i + \sum_{(u,v_i)\in E} w(u,v_i)\operatorname{val}(u)\right).

The output is C(x)=val⁡(vs)C(x) = \operatorname{val}(v_s), and we write Ci:Σn→ΣC_i : \Sigma^n \to\Sigma for the function Ci(x):=val⁡(vi)C_i(x) := \operatorname{val}(v_i) computed at node viv_i. The circuit’s size is its number of non-input nodes, ∣V∖Vin∣=s|V \setminus V_{\mathrm{in}}| = s. We call the circuit layered if every edge connects consecutive layers.

For threshold activation σ(z)=1{z≥0}\sigma(z) = \mathbf{1}\{z \ge0\} and Σ={0,1}\Sigma= \{0, 1\}, these are threshold circuits [2]. For real-valued activations, these circuits are feedforward neural networks with activation σ\sigma, including MLPs and CNNs with or without skip connections. In this setting, we also consider inputs restricted to [0,1]n[0, 1]^n, while retaining node and output values in R\mathbb{R}.

Expressivity of Autoregressive Single Neuron

In this section, we present our main result: for a broad class of activations σ\sigma, a single autoregressive neuron can simulate a σ\sigma-circuit using the same activation. For size-ss circuits on nn inputs, our simulations use dimension d=O(ns+s2)d = O(ns + s^2) and generation length T=O(s2)T = O(s^2), after applying an input feature map that depends only on nn and ss (see Remark 1). We begin in § 3.1 with the discrete token space Σ={0,1}\Sigma= \{0, 1\} and threshold activations, showing how to simulate boolean threshold circuits and Turing machines. In § 3.2, we consider general activations with real-valued computations, showing that a single neuron can simulate general feed-forward neural networks with the same activation. Finally, § 3.3 outlines how Sidon sets enable efficient serialization of circuit computations.

Autoregressive Linear Thresholds Simulate Boolean Threshold Circuits

We begin with the threshold activation σ(z)=1{z≥0}\sigma(z) = \mathbf{1}\{z \ge0\}, which yields the autoregressive linear-threshold class studied in prior work [19, 18, 1, 15, 6]. This is arguably the simplest autoregressive model over the binary token space Σ={0,1}\Sigma= \{0, 1\}: taking the logits to be the linear scores (⟨w,x⟩+b)/2(\langle w, x\rangle+ b)/2 and −(⟨w,x⟩+b)/2-(\langle w, x\rangle+ b)/2 for the two tokens 1 and 0, respectively, yields a logistic next-token distribution after applying Softmax. Then, greedy decoding is exactly the linear threshold rule 1{⟨w,x⟩+b≥0}\mathbf{1}\{\langle w, x\rangle+ b \ge0\}. Below is our main expressivity result, stated for the binary token space Σ={0,1}\Sigma= \{0, 1\}:

Theorem 2. Consider σ(z)=1{z≥0}\sigma(z) = \mathbf{1}\{z \ge0\}, and the class Fd,lin,σ\mathcal{F}_{d,\mathrm{lin},\sigma} over the token space Σ={0,1}\Sigma= \{0, 1\}. For every input size nn and circuit size ss, there is a map ϕn,s:{0,1}n→{0,1}n′\phi_{n,s} : \{0, 1\}^n \to\{0, 1\}^{n'} for n′=O(ns+s2)n' = O(ns + s^2), with the following property. Every size-ss Boolean threshold circuit C:{0,1}n→{0,1}C : \{0, 1\}^n \to\{0, 1\} can be simulated by a single autoregressive linear threshold neuron fw,σf_{w,\sigma} with w∈Rdw \in\mathbb{R}^d, where d=O(ns+s2)d = O(ns + s^2), in T=O(s2)T = O(s^2) generation steps:

fw,σe2e-T(ϕn,s(x))=C(x)for every x∈{0,1}n.f_{w,\sigma}^{\mathrm{e2e}\text{-}T}\left(\phi_{n,s}(x)\right) = C(x) \qquad\text{for every } x \in\{0, 1\}^n.

Moreover, ϕn,s\phi_{n,s} depends only on nn and ss and is computable in time polynomial in nn and ss.

Remark 1 (A common feature map). For any fixed input size nn and circuit-size bound ss, the map ϕn,s\phi_{n,s} applies simultaneously to all threshold circuits of size at most ss; only the parameter vector ww depends on the circuit CC. Indeed, smaller circuits can be padded to size ss by inserting dummy gates that output zero before the output gate, without changing the computed function. Such feature maps also appear in prior simulation results for specific autoregressive neurons [19, 18, 7].

Combining Theorem 2 with the standard simulation of polynomial-time Turing machines by polynomial-size threshold circuits [28, 2], yields the following universality result:

Corollary 1 (Turing machine simulation). Let τ(n)=poly⁡(n)\tau(n) = \operatorname{poly}(n) be a running-time bound. There exists a family of poly⁡(n)\operatorname{poly}(n)-time computable feature maps ϕn:{0,1}n→{0,1}n′\phi_n : \{0,1\}^{n} \to\{0,1\}^{n'}, where n′=O~(nτ(n)+τ(n)2)n' = \widetilde{O}(n\tau(n) + \tau(n)^2), such that the following holds. For every deterministic Turing machine MM running in time at most τ(n)\tau(n) and every sufficiently large nn,5 there exists a linear threshold fwf_w with w∈Rdw \in\mathbb{R}^{d} such that

fwe2e-T(ϕ(x))=M(x)for every x∈{0,1}n,f_w^{\mathrm{e2e\text{-}T}}(\phi(x)) = M(x) \qquad\text{for every } x \in\{0,1\}^{n},

where d=O~(nτ(n)+τ(n)2)d = \widetilde{O}(n\tau(n) + \tau(n)^2) and T=O~(τ(n)2)T = \widetilde{O}(\tau(n)^2).

:::

Moreover, Theorem 2 replaces the bounds d,T=O(sLn)d,T = O(s^L n) of Joshi et al. [19 Lemma 4.5], where LL is the circuit depth, with d=O(ns+s2)d = O(ns + s^2) and T=O(s2)T = O(s^2). This removes the exponential dependence on circuit depth, enabling efficient simulation of polynomial-time Turing machines.

Neural Networks can be simulated by a Single Autoregressive Neuron

More broadly, our expressivity result is not specific to threshold activations: it applies to a broad class of standard nonlinear activations. Here we take Σ=R\Sigma= \mathbb{R}. In this case, σ\sigma-circuits correspond to standard feedforward neural networks. To state the results formally, we first specify the assumptions on the activation σ\sigma.

Assumption 1. There exists cσ∈Rc_\sigma\in\mathbb{R} such that σ(z)=0\sigma(z) = 0 for every z≤cσz \le c_\sigma (the zero-region condition). Moreover, σ\sigma is bounded on every bounded interval.

The zero-region condition is satisfied by activations such as threshold and ReLU. Many other common activations, including sigmoid, GELU, and SiLU, do not become exactly zero below any finite threshold, but instead converge to zero as their input tends to −∞-\infty. For such activations, we obtain an approximate version of our expressivity result. In particular, the zero-region condition in Assumption 1 can be replaced by a decay to zero at −∞-\infty, together with a mild regularity condition.

Assumption 2. The activation σ:R→R\sigma: \mathbb{R} \to\mathbb{R} is locally Lipschitz (Definition 5) and satisfies lim⁡z→−∞σ(z)=0\lim_{z \to-\infty} \sigma(z) = 0.

Below, we state our exact and approximate expressivity result, under Assumptions 1 and 2 respectively, for simulating general feed-forward neural networks with the same activation and over a bounded domain.

Theorem 3. For every input dimension nn and circuit size ss, there exist a feature map ϕn,s:[0,1]n→[0,1]n′\phi_{n,s} : [0,1]^n \to[0,1]^{n'} and integers d,Td,T, with n′,d=O(ns+s2)n',d = O(ns + s^2) and T=O(s2)T = O(s^2), such that the following holds for every size-ss σ\sigma-circuit C:[0,1]n→RC : [0,1]^n \to\mathbb{R}:

  1. Exact simulation. If σ\sigma satisfies Assumption 1, there exists w∈Rd\mathbf{w} \in\mathbb{R}^{d} such that

fw,σe2e−T(ϕn,s(x))=C(x)for every x∈[0,1]n.f^{\mathrm{e2e}-T}_{\mathbf{w},\sigma}\left(\phi_{n,s}(\mathbf{x})\right)=C(\mathbf{x}) \qquad\text{for every }\mathbf{x}\in[0,1]^{n}.
  1. Approximate simulation. If σ\sigma satisfies Assumption 2, then for every ε>0\varepsilon>0, there exists w∈Rd\mathbf{w}\in\mathbb{R}^{d} such that

∣fw,σe2e−T(ϕn,s(x))−C(x)∣≤εfor every x∈[0,1]n.\left|f^{\mathrm{e2e}-T}_{\mathbf{w},\sigma}\left(\phi_{n,s}(\mathbf{x})\right)-C(\mathbf{x})\right|\leq\varepsilon\qquad\text{for every }\mathbf{x}\in[0,1]^{n}.

Moreover, ϕn,s\phi_{n,s} depends only on nn and ss and is computable in time polynomial in nn and ss.6

Our exact simulations also preserve the circuit’s intermediate gate values in the generated trajectory, as formalized by the following property.

Property 1 (CoT preservation). The exact simulation in Theorem 3 can be chosen so that there exist designated steps 1≤t1<⋯<ts=T1\leq t_{1}<\cdots<t_{s}=T, depending only on n,sn,s, such that

fw,σe2e−t(ϕn,s(x))={Ci(x),if t=ti for some i∈[s],0,otherwise,for every x∈[0,1]n and t∈[T].f^{\mathrm{e2e}-t}_{\mathbf{w},\sigma}\left(\phi_{n,s}(\mathbf{x})\right)= \begin{cases} C_i(\mathbf{x}), & \text{if }t=t_i\text{ for some }i\in[s],\\ 0, & \text{otherwise}, \end{cases} \qquad\text{for every }\mathbf{x}\in[0,1]^{n}\text{ and }t\in[T].

The designated steps are computable in time polynomial in n,sn,s. The same property holds for the Boolean simulation in Theorem 2, with inputs restricted to {0,1}n\{0,1\}^{n}.

Proof technique: serialization via Sidon sets

The main technical contribution is a new simulation approach: we serialize the circuit computation into an autoregressive sequence and use an additive-combinatorial structure to prevent different circuit weights from colliding within a single shared parameter vector.

Each non-input circuit node viv_i, for i∈[s]i\in[s], is assigned a generation step ti∈[T]t_i\in[T], at which the value Ci(x)C_i(\mathbf{x}) is produced, i.e. fw,σe2e−ti(ϕn,s(x))=Ci(x)f^{\mathrm{e2e}-t_i}_{\mathbf{w},\sigma}\left(\phi_{n,s}(\mathbf{x})\right)=C_i(\mathbf{x}). At any later step tjt_j, where j>ij>i, this value is the (tj−ti)(t_j-t_i)-th most recent value in the autoregressive context and is therefore aligned with the coordinate w[−(tj−ti)]\mathbf{w}[-(t_j-t_i)], where w\mathbf{w} is the shared parameter vector. To simulate a circuit edge (vi,vj)∈E(v_i,v_j)\in E with weight w(vi,vj)w(v_i,v_j), we therefore set w[−(tj−ti)]=w(vi,vj)\mathbf{w}[-(t_j-t_i)]=w(v_i,v_j), so that Ci(x)C_i(\mathbf{x}) contributes w(vi,vj)Ci(x)w(v_i,v_j)C_i(\mathbf{x}) to the preactivation at step tjt_j, matching the corresponding term in the definition of a σ\sigma-circuit.

The difficulty is that each coordinate of w\mathbf{w} is reused at every generation step. Consequently, if tj−ti=tℓ−tkt_j-t_i=t_\ell-t_k, for two distinct pairs (i,j)(i,j) and (k,ℓ)(k,\ell), then two potentially different circuit weights would have to be encoded by the same coordinate of w\mathbf{w}. Similarly, aligning input-to-gate weights requires distinct sums ti+tq′t_i+t'_q, where tq′t'_q denotes the initial position assigned to the corresponding input value, counted from the right. Sidon sets provide the required collision-free assignment. Formally, a set S⊆NS\subseteq\mathbb{N} is a Sidon set if

a+b=c+d⟹{a,b}={c,d}for all a,b,c,d∈S.a+b=c+d \quad\Longrightarrow\quad\{a,b\}=\{c,d\}\qquad\text{for all }a,b,c,d\in S.

Equivalently, its positive pairwise differences are also distinct (Observation 3). Using the classical construction of Erdős and Turán [8], we obtain such a set of size ss whose largest element is O(s2)O(s^{2}). The precise formulation we use is stated and proved in Claim 1. Then we use this set to choose the generation steps t1,…,tst_1,\ldots,t_s and tt to construct the feature map ϕn,s\phi_{n,s}. The formal proof completes this picture by verifying that the values generated at undesignated time steps do not interfere with the simulation. The main novelty lies in viewing the proof through this collision-free serialization framework.

Implications for Learning

Efficient Learning with CoT. We have shown that a single AR neuron can efficiently simulate general computations such as Turing machines and feedforward neural networks. The CoT in our simulations is the neuron’s complete autoregressive trajectory: the intermediate tokens perform the simulated computation (by Property 1), and the final token is the output of the simulated machine or network. Suppose that these complete trajectories are provided during training. For a fixed activation σ\sigma, each trajectory generated by a target neuron f⋆∈Fd,lin,σf_{\star} \in\mathcal{F}_{d,\mathrm{lin},\sigma} provides labeled prefix–next-token examples for the same shared predictor. Consequently, it suffices to find a neuron in Fd,lin,σ\mathcal{F}_{d,\mathrm{lin},\sigma} that predicts the labeled next token for each prefix exactly or approximately. For some activation functions, such a neuron can be found efficiently. Combined with an appropriate generalization bound, this computational guarantee yields efficient learnability from CoT supervision (Definition 1).

For the threshold activation, linear programming can efficiently find parameters consistent with all observed prefix–next-token pairs. Combining Corollary 1 with known generalization bounds for autoregressive linear thresholds (e.g. Corollary 5) yields the following:

Corollary 2. Let MM be a polynomial-time Turing machine, and let D\mathcal{D} be any distribution over {0,1}n\{0,1\}^{n}. Given a sufficiently large polynomial number of complete CoT trajectories of length T=poly⁡(n)T = \operatorname{poly}(n) encoding the computations of MM on i.i.d. inputs drawn from D\mathcal{D}, one can efficiently train a single linear-threshold neuron fwf_{w} to predict M(x)M(x) with high probability over a fresh x∼Dx \sim\mathcal{D}.

Similarly, a single AR ReLU neuron can simulate an entire, potentially large and deep, feedforward ReLU network (Theorem 3). With complete activation supervision, fitting this shared neuron reduces to linear programming as well.7 Combined with generalization bounds for ReLU Neural Networks [3] yields the following:

Corollary 3 (Informal version of Corollary 6 and remark 3). For any distribution over [0,1]n[0,1]^{n}, complete activation supervision from a size-ss ReLU network CC suffices to train a single autoregressive ReLU neuron to predict 1[C(x)>0]\mathbb{1}[C(x) > 0] (or approximate C(x)C(x) under a suitable bounded regression loss) with high probability on a fresh input. The neuron’s dimension, generation length, sample complexity, and training time are polynomial in the relevant parameters.

In both cases, gradient-based methods offer an alternative to linear programming for fitting the observed prefix–next-token pairs. Penalizing squared violations of the linear feasibility constraints yields a convex, smooth loss whose minimum value is zero (under realizability); for ReLU, this gives the per-example loss in Equation (4) used in our experiments. Gradient descent with a suitable step size can therefore make this loss arbitrarily small.

Hardness of E2E Learning. We return to linear-threshold models with Σ={0,1}\Sigma= \{0,1\} and consider learning without access to the intermediate trajectory. Under End-to-End (E2E) supervision, a training example reveals only the input xx and the final output f⋆e2e-T(x)f_{\star}^{\mathrm{e2e}\text{-}T}(x) of a target generator f⋆∈Fd,linf_{\star} \in\mathcal{F}_{d,\mathrm{lin}}. The learner is evaluated on the same final output, but, unlike under CoT supervision, all intermediate values remain latent during training. Formal definitions are given in Section A.1.

Joshi et al. [19] showed that E2E learning of autoregressive linear thresholds is computationally hard under a hardness assumption on learning constant-depth threshold circuits. Their reduction simulates a size-ss, depth-LL threshold circuit using dimension and generation length of order sLs^{L}. Thus, the reduction has polynomial overhead only for constant LL, which limits the computational assumptions from which it can derive hardness.

Our simulation removes this limitation. Every polynomial-time computation is simulated with polynomial dimension and generation length. Combining this simulation with the existence of one-way functions yields E2E hardness under one of the most common cryptographic assumptions.

Corollary 4 (Informal version of Corollary 7). If one-way functions exist, then no polynomial-time algorithm learns autoregressive linear-threshold with E2E supervision.

Indeed, the existence of one-way functions can be viewed as a minimal assumption for computational cryptography, already sufficient for fundamental primitives such as pseudorandom generators, pseudorandom functions, private-key encryption and digital signatures [10].

Optimality of the simulation bounds on TT and dd

In this section, we discuss the optimality of the bounds of the generation length TT and dimension dd in Theorem 3. We show that the bounds are tight up to constant factors, under some reasonable assumptions on the construction. Joshi et al. [18] showed simulation of depth-2 threshold circuit with T=O(s)T = O(s) and d=O(ns)d = O(ns). This motivates the question of whether we can improve the bounds when the circuit has additional structure, such as bounded depth or width. We show that even then, we cannot expect to improve those bounds in some cases.

Dimension d. Since the simulation should be able to represent every circuit, it is reasonable to expect that all the weights of the circuit should be encoded in the autoregressive model, that is in the parameter vector ww.8 A size-ss circuit has at most nsns edges from input nodes and at most (s2)\binom{s}{2} edges between non-input nodes. Therefore, the bound of d=O(ns+s2)d = O(ns + s^{2}) matches the number of circuit weights in the worst case. Even for constant depth circuits, the number of edges between non-input nodes can be Θ(s2)\Theta(s^{2}). Indeed, a depth-3 circuit can have two consecutive layers of Θ(s)\Theta(s) non-input nodes with all edges between them, and hence Θ(s2)\Theta(s^{2}) internal edges.

Generation length T. We next show that a quadratic generation length is necessary under a natural restriction on how the model simulates the circuit: Each non-input node value Ci(x)C_i(x) must be generated at a designated step (as in Property 1), and for every edge between non-input nodes, the model must use the generated value of the source node directly when computing the target node, with a coefficient equal to the edge weight. We formalize this restriction below.

Definition 2 (Direct edge alignment). Fix Σ=R\Sigma= \mathbb{R} and an activation σ:R→R\sigma: \mathbb{R} \to\mathbb{R}. Consider a simulation scheme that simulates every σ\sigma-circuit CC by an autoregressive neuron fw,σf_{w,\sigma} using any feature map ϕ\phi. The scheme is directly edge-aligned if, for every circuit with non-input nodes v1,…,vsv_1,\ldots,v_s, there are designated steps 1≤t1<⋯<ts≤T1 \le t_1 < \cdots< t_s \le T such that:

  1. fw,σ2e−ti(ϕ(x))=Ci(x)f_{w,\sigma}^{2e-t_i}(\phi(x)) = C_i(x) for every i∈[s]i \in[s] and x∈[0,1]nx \in[0,1]^n.

  1. For every edge (vj,vi)(v_j,v_i) between non-input nodes, the value generated at step tjt_j, namely Cj(x)C_j(x), is used at step tit_i with coefficient w(vj,vi)w(v_j,v_i).9{}^{9}

For threshold circuits on Boolean inputs, the same definition applies with Σ={0,1}\Sigma= \{0,1\} and x∈{0,1}nx \in\{0,1\}^{n}. The construction in the proof of Theorem 3 is directly edge-aligned, as well as all the previous constructions [26, 19, 18]. Direct edge alignment is a natural restriction, since it allows the autoregressive model to simulate the circuit in a straightforward manner. Under this restriction, the quadratic dependence on the circuit depth is necessary, even for width-1 circuits:

Theorem 4. For every L≥1L \ge1, any directly edge-aligned simulation (Definition 2) for arbitrary σ\sigma-circuits has generation length T=Ω(L2)T = \Omega(L^2) on depth-LL circuits, even when restricted to width-1 circuits.

In the worst case, a circuit with ss nodes may have depth proportional to ss, leading to a generation length of T=Ω(s2)T = \Omega(s^2). This holds even for sparse circuits whose non-input nodes form a single directed path.

Experiments

We test whether a single shared neuron trained efficiently from complete activation traces generalizes on a nontrivial vision task. We first train a four-hidden-layer ReLU CNN teacher CC on CIFAR-10 [22], obtaining nontrivial test accuracy. Given an image xx, we record its intermediate activations C1(x),C2(x),…C_1(x), C_2(x), \ldots and ten class logits. We serialize these values using the construction in Theorem 3 with the affine-output extension in Remark 2: the student uses shared weights ww, ReLU at hidden and undesignated steps, and identity activation at ten designated output steps. For efficiency, we represent the AR neuron (i.e., ww) using a sparse implementation which enables very efficient training and inference. We independently initialize the trainable parameters underlying ww and optimize them using Adam. Importantly, the student is trained only on activation traces and has no access to the teacher’s weights. Training the AR neuron on 4,000 teacher activation trajectories takes roughly 5 minutes on an NVIDIA L40S GPU.

At inference time, we classify images by evaluating the AR neuron only at designated steps. The obtained test accuracy on CIFAR-10 is almost identical to the teacher’s; Table 1 summarizes the results. This experiment illustrates the mechanism behind the theory: complete CoT traces transform a general computation into supervised examples, enabling efficient training of a single neuron. See Section F for further details.

ModelSupervisionTest accuracyTeacher agreement
CNN teacher45,000 images72.150%—
AR student4,000 traces72.106±0.054%72.106 \pm0.054\%99.484±0.070%99.484 \pm0.070\%

Table 1. CIFAR-10 test results. Student results show mean ±\pm standard deviation.

Conclusion and Future Directions

We show that, perhaps surprisingly, a single autoregressive neuron can efficiently simulate feedforward circuits, with bounds independent of circuit depth. For the threshold activation, this yields efficient simulation of any polynomial-time Turing machine together with efficient learning from complete CoT supervision. For ReLU, our construction enables the efficient training of a single autoregressive neuron to simulate a large, nontrivial neural networks, as demonstrated by our CIFAR-10 experiment. Together, these results show that a simple next-token predictor can express complex computation, while learning tractability can depend critically on exposing high-quality intermediate computation. Our results suggest that the quality of chain-of-thought supervision should be understood relative to the next-token architecture: intermediate steps should expose computations that the predictor can represent and learn. Our construction demonstrates an extreme case of this principle, where appropriately structured computational traces enable a single autoregressive neuron to efficiently learn to simulate complex computations. This suggests a tradeoff between the structure of intermediate supervision and the architectural complexity required of the next-token predictor. Although traces in existing text corpora are difficult to control, teacher-generated traces offer an opportunity to shape this supervision. This connects our results to the success of reasoning distillation, in which relatively simple students acquire reasoning capabilities through supervision from more complex teachers [16, 13]. While our results do not establish parameter compression, they provide an idealized theoretical basis for this practice: exposing suitable intermediate computations can make a complex task learnable by a much simpler next-token predictor. This perspective motivates jointly designing teacher-generated traces and the student’s architecture.

Several theoretical questions remain open for the current architecture. Motivated by § 5, can simulations without direct edge alignment improve the worst-case s2s^{2} terms in generation length? Can structured or sparse circuits instead admit non-trivial bounds which are governed by their edge count alone? Beyond the current architecture, is there a natural and simple extension of the autoregressive neuron that achieves the optimal linear generation length T=Θ(s)T = \Theta(s) while preserving time invariance and the CoT-preserving property? Could a stronger but still simple architecture achieve T=o(s)T = o(s)? Such an improvement would necessarily move beyond gate-by-gate generation.

Acknowledgments

NJ is supported by the Apple AI/ML PhD fellowship. GV is supported by the Israel Science Foundation (grant No. 2574/25), by a research grant from Mortimer Zuckerman (the Zuckerman STEM Leadership Program), and by research grants from the Center for New Scientists at the Weizmann Institute of Science, and the Shimon and Golde Picker – Weizmann Annual Grant.

AI use statement

The core theoretical insights behind our results, including the proof technique described in § 3.3, as well as the initial versions of the proofs, were developed entirely by the authors without assistance from AI tools. We used OpenAI models to edit the wording and presentation of the paper, including the presentation of proofs, identify relevant literature, and assist with writing code for the experiments. The authors reviewed the AI-assisted edits, verified the cited references, and tested the experimental code. We take responsibility for the final content of this work.

Technical Preliminary

First, we present the main definitions used in the simulation results. Sidon sets and Golomb rulers provide the combinatorial structure for scheduling circuit gates in the autoregressive simulations, while local Lipschitz continuity is used to control errors in the approximate simulation. We then recall the E2E and CoT learning settings (Section A.1).

Definition 3 (Sidon set). A finite set S⊂NS \subset\mathbb{N} is called a Sidon set if whenever a+b=c+da+b=c+d with a,b,c,d∈Sa,b,c,d \in S, then {a,b}={c,d}\{a,b\}=\{c,d\}. Equivalently,

∣{a+b:a,b∈S, a≤b}∣=(∣S∣+12).\left|\{a+b:a,b\in S,\ a\le b\}\right|=\binom{|S|+1}{2}.

Definition 4 (Golomb ruler). A finite set G⊂NG \subset\mathbb{N} is called a Golomb ruler if all pairwise differences are distinct, that is, if gb−ga=gd−gcg_b-g_a=g_d-g_c with ga,gb,gc,gd∈Gg_a,g_b,g_c,g_d \in G, ga<gbg_a<g_b, gc<gdg_c<g_d, then {ga,gb}={gc,gd}\{g_a,g_b\}=\{g_c,g_d\}. Equivalently,

∣{gb−ga:ga,gb∈G, ga<gb}∣=(∣G∣2).\left|\{g_b-g_a:g_a,g_b\in G,\ g_a<g_b\}\right|=\binom{|G|}{2}.

A function σ:R→R\sigma:\mathbb{R}\to\mathbb{R} is locally Lipschitz if around every point in its domain, it behaves like a Lipschitz function.

Definition 5 (Locally Lipschitz function). A function σ:R→R\sigma:\mathbb{R}\to\mathbb{R} is locally Lipschitz if, for every z∈Rz\in\mathbb{R}, there exist δ>0\delta>0 and L<∞L<\infty such that ∣σ(u)−σ(v)∣≤L∣u−v∣|\sigma(u)-\sigma(v)|\le L|u-v| for all u,v∈(z−δ,z+δ)u,v\in(z-\delta,z+\delta).

Supervised Learning with CoT.

We recall the learning framework of Joshi et al. [19]. Fix Σ={0,1}\Sigma=\{0,1\}, an input length nn, a generation length TT, and a base class Fd⊆ΣΣ∗\mathcal{F}_d\subseteq\Sigma^{\Sigma^*}. For a distribution D\mathcal{D} over {0,1}n\{0,1\}^n and a target generator f⋆∈Fdf_\star\in\mathcal{F}_d, both learning settings aim to predict the final output f⋆e2e-T(x)f_\star^{\mathrm{e2e}\text{-}T}(x). They differ only in the information available during training. An E2E example is (x,f⋆e2e-T(x))(x,f_\star^{\mathrm{e2e}\text{-}T}(x)), whereas a CoT example is (x,f⋆CoT-T(x))(x,f_\star^{\mathrm{CoT}\text{-}T}(x)). Thus, CoT supervision reveals all intermediate outputs, while E2E supervision treats them as latent variables.

Definition 6 (Realizable E2E learnability). We say that Fde2e-T\mathcal{F}_d^{\mathrm{e2e}\text{-}T} is E2E-learnable over {0,1}n\{0,1\}^n with generation length TT and sample complexity m(ε,δ)m(\varepsilon,\delta) if there is a learning rule AA such that the following holds. For every distribution D\mathcal{D} over {0,1}n\{0,1\}^n, target generator f⋆∈Fdf_\star\in\mathcal{F}_d, and ε,δ∈(0,1)\varepsilon,\delta\in(0,1), let

SE2E=((x1,f⋆e2e-T(x1)),…,(xm,f⋆e2e-T(xm))),x1,…,xm∼i.i.d.D,S_{\mathrm{E2E}}=\bigl((x_1,f_\star^{\mathrm{e2e}\text{-}T}(x_1)),\ldots,(x_m,f_\star^{\mathrm{e2e}\text{-}T}(x_m))\bigr),\qquad x_1,\ldots,x_m\mathrel{\overset{\mathrm{i.i.d.}}{\sim}}\mathcal{D},

where m=m(ε,δ)m=m(\varepsilon,\delta). Then, with probability at least 1−δ1-\delta over the sample and the randomness of AA, the predictor h=A(SE2E):{0,1}n→{0,1}h=A(S_{\mathrm{E2E}}):\{0,1\}^n\to\{0,1\} satisfies

Pr⁡x∼D[h(x)≠f⋆e2e-T(x)]≤ε.\Pr_{x\sim\mathcal{D}}\left[h(x)\ne f_\star^{\mathrm{e2e}\text{-}T}(x)\right]\le\varepsilon.

A CoT learner (Definition 1) receives examples (xi,f⋆CoT-T(xi))(x_i,f_\star^{\mathrm{CoT}\text{-}T}(x_i)) but is evaluated on the same final output.

We allow both learners to be improper.

The Computational Aspect. We call a learner efficient if its sample complexity and running time are polynomial in n,d,T,1/εn,d,T,1/\varepsilon, and log⁡(1/δ)\log(1/\delta).

The main benefit of CoT supervision is computational. Let v=VCdim⁡(Fd)v = \operatorname{VCdim}(\mathcal{F}_d) denote the VC dimension of the base class. Joshi et al. [19] showed that the CONSISTENT rule learns the autoregressive model under CoT supervision with sample complexity

mCoT(ε,δ)=O(vlog⁡2Tlog⁡(2/ε)+log⁡(1/δ)ε).m_{\mathrm{CoT}}(\varepsilon, \delta) = O\left(\frac{v \log2T \log(2/\varepsilon) + \log(1/\delta)}{\varepsilon}\right).

Linear Threshold. For σ(z)=1[z≥0]\sigma(z) = \mathbb{1}[z \ge0] and Fd=Fd,lin\mathcal{F}_d = \mathcal{F}_{d,\mathrm{lin}}, the predictors are linear thresholds on binary contexts with real weights and biases. Their VC dimension is v=d+1v = d + 1, so this bound is nearly linear in the number of parameters and depends only logarithmically on the generation length.10 Moreover, the CONSISTENT rule is computationally efficient in this setting: the observed CoT trajectories provide TT labeled prefix–next-token examples, and a linear threshold consistent with all these examples can be found by linear programming in polynomial time.

Consequently, Corollary 3.7 and Corollary 4.3 of Joshi et al. [19] give the following result.

Corollary 5. Autoregressive linear-threshold models (i.e. Fd,line2e−T\mathcal{F}^{\mathrm{e2e-T}}_{d,\mathrm{lin}}) are efficiently learnable with CoT supervision (Definition 1).

Related Work

This section discusses additional related work and provides further details on the studies discussed in the main text.

Chain-of-Thought (CoT) was initially introduced as a prompting approach that encourage a series of intermediate reasoning steps before producing the final answer [Wei+22b; Koj+22]. Subsequent work demonstrated that supervising the correctness of these intermediate reasoning steps can further improve reasoning performance, highlighting the benefits of training with CoT supervision [25, 16 Zel+22]. More recently, reinforcement learning (RL) techniques applied in LLM training have encouraged these models to generate more and more tokens during inference, which can be interpreted as a form of CoT reasoning [17, 13]. The Chain-of-Thought supervision we analyze in this work is closely related to the practice of supervised fine-tuning [Bro+20; Wei+22a; Gra+24] of LLMs.

Expressivity with CoT. Since Transformers [30] are the dominant architecture underlying LLMs, growing attention has been devoted to characterizing their expressivity [WCM22], particularly when augmented with CoT [27, 4, 9]. For example, Merrill and Sabharwal [27] showed that the number of autoregressive steps acts as a computational resource for Transformers and, in particular, that polynomially many steps suffice to recognize every language in P. Our results establish an analogous phenomenon for autoregressive linear-threshold models in the nonuniform setting: additional steps enable more complex computations, and polynomially many steps allow even a single linear-threshold neuron to capture P/poly, the nonuniform analogue of P.

Malach [26] showed that time-dependent AR linear-threshold models can simulate threshold circuits, and hence Turing-machine computations, using a number of autoregressive steps polynomial in the circuit size. In related work, Joshi et al. [19] established an analogous result for time-invariant AR linear-threshold models, albeit with exponentially many autoregressive steps. More recently, Joshi et al. [18] showed that these models can efficiently simulate depth-2 threshold circuits and used this simulation to establish hardness results for learning from CoT traces generated by multiple distinct generators.

Expressivity

Both main-text simulation theorems (Theorems 2 and 3) follow from a common construction for σ\sigma-circuits. We first give the exact construction under Assumption 1, proving the exact part of Theorem 3 together with CoT preservation, efficient construction of the feature map and designated steps, and preservation of binary inputs (Proposition 1). Restricting this construction to threshold activation and Boolean inputs also proves Theorem 2. We then establish the approximate part of Theorem 3 by controlling the errors introduced when undesignated steps produce small nonzero values (see Theorem 5).

Exact simulation

We first state the additional properties of the exact simulation, then prove them jointly with the exact part of Theorem 3.

Proposition 1 (Additional properties of the exact simulation). Under Assumption 1, the exact simulation in Theorem 3 can be chosen to satisfy the following properties.

  1. CoT preservation. There exist designated steps 1≤t1<⋯<ts=T1 \le t_1 < \cdots< t_s = T, depending only on n,sn,s, such that, for every size-ss σ\sigma-circuit CC, the simulating neuron satisfies

fw,σe2e−t(ϕn,s(x))={Ci(x),if t=ti for some i∈[s],0,otherwise,∀x∈[0,1]n,t∈[T].f_{\mathbf{w},\sigma}^{\mathrm{e2e}-t}\left(\phi_{n,s}(\mathbf{x})\right) = \begin{cases} C_i(\mathbf{x}), & \text{if } t=t_i \text{ for some } i \in[s],\\ 0, & \text{otherwise}, \end{cases} \qquad\forall\mathbf{x} \in[0,1]^n,t \in[T].
  1. Efficiency. The feature map ϕn,s\phi_{n,s} and the designated steps depend only on n,sn,s and can be constructed in time polynomial in n,sn,s. Evaluating ϕn,s(x)\phi_{n,s}(\mathbf{x}) takes O(n′)O(n') real-RAM operations.

  1. Binary inputs. The feature map satisfies ϕn,s({0,1}n)⊆{0,1}n′\phi_{n,s}(\{0,1\}^n) \subseteq\{0,1\}^{n'}.

Proof of the exact part of Theorem 3 and Proposition 1. Order the non-input gates as v1,…,vsv_1,\ldots,v_s such that every gate appears after all of its non-input predecessors with vsv_s the output gate. For every i∈[s]i \in[s], let θi\theta_i be the bias of viv_i, let win[q,i]w^{\mathrm{in}}[q,i] be the weight from input gate vin,qv_{\mathrm{in},q} to viv_i, and let w[j,i]w[j,i] be the weight from vjv_j to viv_i, assigning weight zero to missing edges.

The goal is to choose vector weights w\mathbf{w}, a feature map ϕn,s\phi_{n,s}, and time steps 1≤t1<⋯<ts≤T1 \le t_1 < \cdots< t_s \le T such that the autoregressive process satisfies fw,σe2e−ti(ϕn,s(x))=Ci(x)f_{\mathbf{w},\sigma}^{\mathrm{e2e}-t_i}(\phi_{n,s}(\mathbf{x})) = C_i(\mathbf{x}).

Next, partition the input values x[1],…,x[n]x[1],\ldots,x[n] into k=⌈n/s⌉=O(n/s+1)k=\lceil n/s\rceil=O(n/s+1) blocks, each of size at most ss. Each block is encoded in a separate block of ϕn,s(x)\phi_{n,s}(\mathbf{x}). Formally, let k=⌈n/s⌉k=\lceil n/s\rceil, and pad x\mathbf{x} by setting x[q]=0x[q]=0 for n<q≤ksn<q\le ks. For every r∈[k]r \in[k] and j∈[s]j \in[s], set xr[j]:=x[(r−1)s+j]x_r[j] := x[(r-1)s+j] to be the jj-th element of the rr-th block. Let wrin[j,i]w_r^{\mathrm{in}}[j,i] be the weight from xr[j]x_r[j] to viv_i, that is, wrin[j,i]:=win[(r−1)s+j,i]w_r^{\mathrm{in}}[j,i] := w^{\mathrm{in}}[(r-1)s+j,i], where weights from padded coordinates are zero. Define the feature map ϕn,s:[0,1]n→[0,1]n′\phi_{n,s} : [0,1]^n \to[0,1]^{n'} and the weight vector w∈Rd\mathbf{w} \in\mathbb{R}^d by

w=[v⏟T coordinates,zk⏟T′ coordinates,…,z1⏟T′ coordinates,z⏟T coordinates],\mathbf{w} = \left[ \underbrace{\mathbf{v}}_{T\text{ coordinates}}, \underbrace{\mathbf{z}_k}_{T'\text{ coordinates}}, \ldots, \underbrace{\mathbf{z}_1}_{T'\text{ coordinates}}, \underbrace{\mathbf{z}}_{T\text{ coordinates}} \right],
ϕn,s(x)=[0T−1,1⏟T coordinates,uk⏟T′ coordinates,…,u1⏟T′ coordinates,0T⏟T coordinates],\phi_{n,s}(\mathbf{x}) = \left[ \underbrace{\mathbf{0}^{T-1},1}_{T\text{ coordinates}}, \underbrace{\mathbf{u}_k}_{T'\text{ coordinates}}, \ldots, \underbrace{\mathbf{u}_1}_{T'\text{ coordinates}}, \underbrace{\mathbf{0}^{T}}_{T\text{ coordinates}} \right],

for some T,T′T,T' and dd that will be specified later. The blocks ur∈[0,1]T′\mathbf{u}_r \in[0,1]^{T'} and zr∈RT′\mathbf{z}_r \in\mathbb{R}^{T'} for r∈[k]r \in[k] are responsible for the contributions of the input values, while z\mathbf{z} propagates previously computed gate values. We now describe formally the role and construction of each block:

Construction of vv. The vector vv encodes the biases θ1,…,θs\theta_1,\ldots,\theta_s. During the first TT autoregressive steps, the 11 in ϕn,s(x)\phi_{n,s}(x) shifts across the coordinates of vv. We set the coordinate aligned with this 11 at time tit_i to θi\theta_i. Thus, at time tit_i, the bias contribution is θi\theta_i. In other time steps t≠tit \ne t_i, we set the aligned coordinate to a sufficiently negative value to ensure that f~w,σe2e−t(ϕn,s(x))=0\tilde{f}^{e2e-t}_{w,\sigma}(\phi_{n,s}(x))=0. Formally, define

MC:=sup⁡{∣Ci(x)∣:x∈[0,1]n, i∈[s]}<∞,M_C := \sup\{|C_i(x)|:x\in[0,1]^n,\ i\in[s]\}<\infty,

which is well-defined by Observation 2. Set

A:=∑r=1k∥zr∥1+MC∥z∥1.A := \sum_{r=1}^{k}\|z_r\|_1+M_C\|z\|_1.

At every undesignated time, we set the aligned coordinate to cσ−A−1c_\sigma-A-1, where cσc_\sigma is from Assumption 1. This suppresses every contribution from the input and previously generated gate values. Formally, for every t∈[T]t\in[T], define

v[−t]={θi,t=ti for some i∈[s],cσ−A−1,otherwise,(1)v[-t]= \begin{cases} \theta_i, & t=t_i\text{ for some }i\in[s],\\ c_\sigma-A-1, & \text{otherwise}, \end{cases} \tag*{(1)}

where here and throughout the proof, negative indices count coordinates from the right endpoint of a block. Note that after tt steps, the 11 in ϕn,s(x)\phi_{n,s}(x) is aligned with the ttht^{\mathrm{th}} coordinate of vv from the right.

Construction of uru_r and zrz_r. The vector uru_r encodes the input values xr[1],…,xr[s]x_r[1],\ldots,x_r[s] (the rthr^{\mathrm{th}} block in the partition of xx) separated by zeros. Their locations are determined by indices t1′,…,ts′∈[O(s2)]t'_1,\ldots,t'_s\in[O(s^2)] that will be specified later. For every r∈[k]r\in[k] and ℓ∈[T′]\ell\in[T'], define ur∈[0,1]T′u_r\in[0,1]^{T'} by

ur[−ℓ]={xr[j],ℓ=tj′ for some j∈[s],0,otherwise.(2)u_r[-\ell]= \begin{cases} x_r[j], & \ell=t'_j\text{ for some }j\in[s],\\ 0, & \text{otherwise}. \end{cases} \tag*{(2)}

That is, xr[j]x_r[j] is located in the tj′tht'_j{}^{\mathrm{th}} coordinate of uru_r from the right. We can conclude that:

Observation 1. At step tit_i, the input value xr[j]x_r[j] is aligned with zr[−(ti+tj′−1)]z_r[-(t_i+t'_j-1)] for every r∈[k]r\in[k] and j∈[s]j\in[s].

This input value contributes to the preactivation at step tit_i with coefficient wrin[j,i]w_r^{\mathrm{in}}[j,i]. Therefore, we define the weight blocks zrz_r as follows: For every r∈[k]r\in[k] and i,j∈[s]i,j\in[s], set

zr[−ℓ]={wrin[j,i],ℓ=ti+tj′−1,0,otherwise.z_r[-\ell]= \begin{cases} w_r^{\mathrm{in}}[j,i], & \ell=t_i+t'_j-1,\\ 0, & \text{otherwise}. \end{cases}

To ensure that these assignments are consistent we need that the sums ti+tj′t_i+t'_j are all distinct, which will be guaranteed by the choice of tit_i and tj′t'_j later in the proof.

Requirement 1. The sums ti+tj′t_i+t'_j for i,j∈[s]i,j\in[s] are distinct.

Construction of zz. The vector zz is responsible for propagating the outputs of previously computed gates C1(x),C2(x),…,Cs(x)C_1(x), C_2(x), \ldots, C_s(x). More specifically, it encodes the weights between non-input gates. If at time tit_i the process outputs fw,σe2e−ti(ϕn,s(x))=Ci(x)f^{e2e-t_i}_{w,\sigma}(\phi_{n,s}(x)) = C_i(x), then at later times t>tit > t_i, the value Ci(x)C_i(x) shifts through the coordinates of zz, and is aligned with z[−(t−ti)]z[-(t-t_i)]. When t=tjt=t_j for some j>ij>i, we want the previously generated values Ci(x)C_i(x) to contribute with coefficients w[i,j]w[i,j]. Formally, for every i∈[s]i \in[s] and ℓ∈[T]\ell\in[T], define z∈RTz \in\mathbb{R}^T by

z[−ℓ]={w[i,j],ℓ=tj−ti for some j>i,0,otherwise.z[-\ell] = \begin{cases} w[i,j], & \ell=t_j-t_i\text{ for some }j>i,\\ 0, & \text{otherwise.} \end{cases}

To ensure that these assignments are consistent we need that the differences tj−tit_j-t_i, j>ij>i are all distinct, which will be guaranteed by the choice of tit_i later in the proof.

Requirement 2. The differences tj−tit_j-t_i over all 1≤i<j≤s1\leq i<j\leq s are distinct.

Construction of TT, T′T' and t1,…,ts,t1′,…,ts′t_1,\ldots,t_s,t'_1,\ldots,t'_s. In this part, we choose the time steps t1,…,tst_1,\ldots,t_s, the initial input values locations t1′,…,ts′t'_1,\ldots,t'_s, and TT to satisfy Requirement 1 and Requirement 2. Fortunately, these requirements are almost exactly the same as those required for a Golomb ruler and Sidon set (See Definition 4 and Definition 3). Moreover, there is a well-known construction of Golomb rulers and Sidon sets by Erdos and Turán [8]. Apply Claim 1 with parameter 2s2s. Write the resulting Golomb ruler (Sidon set) as {a1<⋯<a2s}\{a_1<\cdots<a_{2s}\}, then a1,…,a2sa_1,\ldots,a_{2s} are positive, a2s=O(s2)a_{2s}=O(s^2), and their positive pairwise differences and sums are distinct. For i,j∈[s]i,j\in[s], set tj′=ajt'_j=a_j, ti=as+it_i=a_{s+i}, and T=tsT=t_s. Hence t1<⋯<ts=T=O(s2)t_1<\cdots<t_s=T=O(s^2), the differences ti−tjt_i-t_j for j<ij<i are distinct, and the sums ti+tj′t_i+t'_j are distinct as well. Moreover, we can choose T′=O(s2)T'=O(s^2) such that ti+tj′≤T′t_i+t'_j\leq T' for all i,j∈[s]i,j\in[s]. This choice of T′T' ensures that all non-zero coordinates of uru_r are aligned with zrz_r throughout the autoregressive process, for any r∈[k]r\in[k].

We prove by induction over the first TT steps that the generated value is Ci(x)C_i(x) at step tit_i and zero at every other step. Assume this holds through step t−1t-1.

  • If t∉{t1,…,ts}t\notin\{t_1,\ldots,t_s\}, then the leading 11 in ϕn,s(x)\phi_{n,s}(x) is aligned with v[−t]=cσ−A−1v[-t]=c_\sigma-A-1. Since every input coordinate belongs to [0,1][0,1], the absolute input contribution is at most ∑r=1k∥zr∥1\sum_{r=1}^{k}\lVert z_r\rVert_1. By the induction hypothesis, every previously generated value is either zero or some Cj(x)C_j(x), so the absolute propagated contribution is at most MC∥z∥1M_C\lVert z\rVert_1. Thus the preactivation is at most

cσ−A−1+∑r=1k∥zr∥1+MC∥z∥1=cσ−1<cσ.c_\sigma-A-1+\sum_{r=1}^{k}\lVert z_r\rVert_1+M_C\lVert z\rVert_1=c_\sigma-1<c_\sigma.

The zero-region condition in Assumption 1 gives fw,σe2e−t(ϕn,s(x))=0f^{e2e-t}_{w,\sigma}(\phi_{n,s}(x))=0.

  • Suppose that t=tit=t_i for some i∈[s]i\in[s]. The leading 11 in ϕn,s(x)\phi_{n,s}(x) is aligned with v[−ti]v[-t_i], so its contribution is θi\theta_i. Moreover, for every r∈[k]r\in[k] and j∈[s]j\in[s], the value xr[j]x_r[j] is aligned with zr[−(ti+tj′−1)]z_r[-(t_i+t'_j-1)] and contributes wrin[j,i]xr[j]w^{\mathrm{in}}_r[j,i]x_r[j]. A value generated at an earlier step τ<ti\tau<t_i is aligned with z[−(ti−τ)]z[-(t_i-\tau)]. By the induction hypothesis, it is zero unless τ=tj\tau=t_j for some j<ij<i. In that case it equals Cj(x)C_j(x), and z[−(ti−tj)]=w[j,i]z[-(t_i-t_j)]=w[j,i]. Consequently, the preactivation at step tit_i is

θi+∑q=1nwin[q,i]x[q]+∑j=1i−1w[j,i]Cj(x).\theta_i+\sum_{q=1}^{n}w^{\mathrm{in}}[q,i]x[q]+\sum_{j=1}^{i-1}w[j,i]C_j(x).

This is precisely the preactivation computed by viv_i. Applying σ\sigma gives fw,σe2e−ti(ϕn,s(x))=Ci(x)f^{e2e-t_i}_{w,\sigma}(\phi_{n,s}(x))=C_i(x), completing the induction.

Thus, at every step t∈[T]t \in[T], the generated value is Ci(x)C_i(x) if t=tit = t_i for some i∈[s]i \in[s], and is zero otherwise. This proves the CoT-preserving property. Since ts=Tt_s = T and vsv_s is the output gate, the final generated value is C(x)C(x).

Every coordinate of ϕn,s(x)\phi_{n,s}(x) is an input coordinate, zero, or one. Hence, ϕn,s({0,1}n)⊆{0,1}n′\phi_{n,s}(\{0,1\}^n) \subseteq\{0,1\}^{n'}. For threshold activation, every generated token is also binary, so the simulation on Boolean inputs uses Σ={0,1}\Sigma= \{0,1\}.

Finally, ϕn,s\phi_{n,s} depends only on nn and ss, which determine TT and T′T' and the initial locations of the input coordinates t1′,…,ts′t'_1,\ldots,t'_s. The preceding construction therefore constructs a description of ϕn,s\phi_{n,s} in time polynomial in nn and ss. Given this description, evaluating ϕn,s(x)\phi_{n,s}(x) consists of initializing n′n' coordinates to zero, writing the leading 1, and copying the nn input values to their prescribed locations. This takes O(n′)O(n') real-RAM operations, which proves the efficiency property. Finally, the length of the feature map and the dimension of ww are

n′=d=T+T′k+T=O(ns+s2),n' = d = T + T'k + T = O(ns+s^2),

which completes the proof. □

Proof of Theorem 2. Apply the preceding construction with σ(z)=1[z≥0]\sigma(z) = \mathbf{1}[z \ge0] and restrict the inputs to {0,1}n\{0,1\}^n. This activation satisfies Assumption 1. Every coordinate of the feature map is an input coordinate, zero, or one, and every generated value is binary. Thus the construction gives a simulation over Σ={0,1}\Sigma= \{0,1\} with the stated bounds and a polynomial-time computable feature map depending only on n,sn,s. □

Remark 2 (General readouts). Neural networks often use a vector-valued affine output layer with no activation function. Although Theorem 3 is stated for scalar-output σ\sigma-circuits, its construction also supports networks with such output layers. Indeed, the exact construction reproduces every gate value Ci(x)C_i(x) at a designated generation step ti∈[T]t_i \in[T] by Property 1. Consequently, such networks can be simulated by applying an external affine readout to the designated values in the generated trajectory. Alternatively, in an extension of the model that permits omitting σ\sigma at designated output steps, the shared neuron can also compute the affine output coordinates, one per designated step. Our CIFAR-10 experiments use this designated affine-output extension to learn all 10 class logits jointly with the hidden computation.

Approximate simulation

The following theorem strengthens the approximate part of Theorem 3 by approximating the entire simulation trajectory, including all intermediate gate values.

Theorem 5 (Approximate simulation). Suppose that σ\sigma satisfies Assumption 2. For every input size nn and circuit size ss, use the feature map ϕn,s:[0,1]n→[0,1]n′\phi_{n,s} : [0,1]^n \to[0,1]^{n'} and designated steps 1≤t1<⋯<ts=T1 \le t_1 < \cdots< t_s = T from the construction in the proof of Theorem 3. For every size-ss σ\sigma-circuit C:[0,1]n→RC : [0,1]^n \to\mathbb{R} and every ε>0\varepsilon> 0, there exists w∈Rdw \in\mathbb{R}^d such that

  1. ∣fw,σ2e−ti(ϕn,s(x))−Ci(x)∣≤ε\left|f^{2e-t_i}_{w,\sigma}(\phi_{n,s}(x)) - C_i(x)\right| \le\varepsilon, for every x∈[0,1]nx \in[0,1]^n and i∈[s]i \in[s].

  1. ∣fw,σ2e−t(ϕn,s(x))∣≤ε\left|f^{2e-t}_{w,\sigma}(\phi_{n,s}(x))\right| \le\varepsilon, for every x∈[0,1]nx \in[0,1]^n and t∈[T]∖{t1,…,ts}t \in[T] \setminus\{t_1,\ldots,t_s\}.

In particular, ∣fw,σ2e−T(ϕn,s(x))−C(x)∣≤ε\left|f^{2e-T}_{w,\sigma}(\phi_{n,s}(x)) - C(x)\right| \le\varepsilon for every x∈[0,1]nx \in[0,1]^n. The bounds n′,d=O(ns+s2)n',d = O(ns+s^2) and T=O(s2)T = O(s^2), and the efficiency properties of the feature map and designated steps, remain unchanged. The feature map and designated steps are independent of CC and ε\varepsilon.

Proof. Use the construction from the proof of Theorem 3, changing only the coordinates of v\mathbf{v} associated with undesignated steps. Let MCM_C be the bound on absolute gate values used in that proof, and set B=∥z∥1B = \lVert z\rVert_1. Choose R≥1R \ge1 such that every circuit gate preactivation lies in [−R,R][-R,R] for every input. These bounds exist by Observation 2, since local Lipschitz continuity implies boundedness on bounded intervals. Let L≥1L \ge1 be a Lipschitz constant for σ\sigma on [−R−B,R+B][-R-B,R+B], and set q=max⁡{1,LB}q = \max\{1,LB\} and δ=min⁡{1,ε}⋅q−T\delta= \min\{1,\varepsilon\}\cdot q^{-T}.

By the tail condition, there exists h∈Rh \in\mathbb{R} such that ∣σ(z)∣≤δ\lvert\sigma(z)\rvert\le\delta whenever z<hz < h. At every undesignated step tt, set v[−t]=h−∑r=1k∥zr∥1−(MC+1)B−1\mathbf{v}[-t] = h - \sum_{r=1}^{k}\lVert z_r\rVert_1 - (M_C+1)B - 1. At designated steps, retain v[−ti]=θi\mathbf{v}[-t_i] = \theta_i. During the first TT steps, previously generated values interact only with zz, so changing these coordinates of v\mathbf{v} does not change the coefficients propagating errors.

We prove by induction that, through step tt, every generated value differs from its prescribed value by at most δqt\delta q^t, uniformly over all inputs. Here the prescribed value is Ci(x)C_i(x) at tit_i and zero otherwise. The claim is vacuous at t=0t=0. Suppose it holds through step t−1t-1. Since δqt−1≤1\delta q^{t-1} \le1, all previously generated values have absolute value at most MC+1M_C+1. At an undesignated step, the chosen coordinate of v\mathbf{v} therefore makes the preactivation at most h−1h-1, so the output has absolute value at most δ≤δqt\delta\le\delta q^t. At a designated step tit_i, the construction with prescribed previous values gives exactly the preactivation of gate viv_i. The error in this preactivation is at most Bδqt−1≤BB\delta q^{t-1} \le B. Both preactivations thus lie in [−R−B,R+B][-R-B,R+B], and the output error is at most LBδqt−1≤δqtLB\delta q^{t-1} \le\delta q^t. This completes the induction.

Finally, δqT≤ε\delta q^T \le\varepsilon. Only the suppressing coordinates of v\mathbf{v} have changed, so the feature map, designated steps, dimension, number of steps, and stated efficiency properties are unchanged.

Additional Claims

Here we establish additional claims used in the simulation proofs. First, we show that circuit gate values are uniformly bounded over the input domain (Observation 2). We then prove the equivalence between Sidon sets and Golomb rulers (Observation 3) and give an explicit construction of such sets based on [8].

Observation 2. Suppose that σ\sigma is bounded on every bounded interval. For every σ\sigma-circuit C:[0,1]n→RC : [0,1]^n \to\mathbb{R} there exists an integer MC<∞M_C < \infty such that ∣Ci(x)∣≤MC\lvert C_i(x)\rvert\le M_C for all x∈[0,1]nx \in[0,1]^n and i∈[s]i \in[s], where Ci(x)C_i(x) is the value of the ii-th non-input node.

Proof. Order the non-input gates as v1,…,vsv_1,\ldots,v_s such that every gate appears after all of its non-input predecessors. We prove inductively that each gate function Ci:[0,1]n→RC_i : [0,1]^n \to\mathbb{R} is bounded. Suppose this holds for every j<ij < i. The preactivation at viv_i is a finite linear combination of input coordinates and preceding gate functions, with fixed coefficients. Therefore, it takes values in some bounded interval. Since σ\sigma is bounded on every bounded interval, CiC_i is bounded. Thus, all CiC_i are bounded, and we may take

MC:=⌈sup⁡{∣Ci(x)∣:x∈[0,1]n, i∈[s]}⌉<∞.M_C := \left\lceil\sup\{\lvert C_i(x)\rvert: x \in[0,1]^n,\ i \in[s]\}\right\rceil< \infty.

Observation 3. A set S⊂NS \subset\mathbb{N} is a Sidon set if and only if it is a Golomb ruler.

Proof of Observation 3. Suppose SS is Sidon but not a Golomb ruler. Then two distinct pairs a<ba < b and c<dc < d satisfy b−a=d−cb-a=d-c. This implies b+c=d+ab+c=d+a. The Sidon property implies either b=db=d and c=ac=a, contradicting distinctness, or b=ab=a and c=dc=d, contradicting the strict inequalities. The converse follows similarly.

The following result is based on the classical construction of Erdos and Turán [8], originally stated for Sidon sets. Establishing the Sidon property is the main step in the proof. Our formulation additionally records that the resulting set is also a Golomb ruler, can be constructed in polynomial time, and can be translated and restricted to a prescribed size while preserving both properties. For completeness, we include a proof.

Claim 1 (Explicit Golomb ruler and Sidon set by Erdos and Turán [8]). For every n∈Nn \in\mathbb{N}, one can construct in time poly⁡(n)\operatorname{poly}(n) a set G⊆[1,4n2]G \subseteq[1,4n^2] of size nn that is both a Golomb ruler and Sidon set.

Proof of Claim 1. We use the classical construction of Sidon sets [8]. Recall that a set S⊆NS \subseteq\mathbb{N} is Sidon if all unordered pairwise sums are distinct, i.e., a+b=c+da+b=c+d with a,b,c,d∈Sa,b,c,d \in S implies {a,b}={c,d}\{a,b\}=\{c,d\}.

For n=1n=1, take G={1}G=\{1\}, and for n=2n=2, take G={1,2}G=\{1,2\}. Both sets satisfy the claim. Assume henceforth that n≥3n \ge3. Let pp be a prime satisfying n≤p<2nn \le p < 2n, which exists by Bertrand’s postulate, and can be found in deterministic time of O(nlog⁡log⁡n)O(n \log\log n), say by Eratosthenes’ sieve. Since p≥3p \ge3, it is odd. Consider S′={(x,x2):x∈Fp}⊆Fp2S'=\{(x,x^2):x\in\mathbb{F}_p\}\subseteq\mathbb{F}_p^2. We first note that S′S' is Sidon. Indeed, suppose (i,i2)+(j,j2)=(k,k2)+(ℓ,ℓ2)(i,i^2)+(j,j^2)=(k,k^2)+(\ell,\ell^2). Then we have the next equalities in Fp\mathbb{F}_p:

i+j=k+ℓ,i+j=k+\ell,
i2+j2=k2+ℓ2.i^2+j^2=k^2+\ell^2.

Since (i+j)2=i2+2ij+j2(i+j)^2=i^2+2ij+j^2 and 22 is invertible in Fp\mathbb{F}_p, the two equalities imply ij=kℓij=k\ell. Thus the unordered pairs {i,j}\{i,j\} and {k,ℓ}\{k,\ell\} have the same sum and product, hence they are roots of the same quadratic polynomial x2−(i+j)x+ijx^2-(i+j)x+ij, and thus {i,j}={k,ℓ}\{i,j\}=\{k,\ell\}. To embed the Sidon set S′S' into the integers, we use the mapping f(x,y)=2px+yf(x,y)=2px+y, where x,y∈{0,…,p−1}x,y\in\{0,\ldots,p-1\}. We argue that S:=f(S′)S:=f(S') is a Sidon set in N\mathbb{N}. First, note that the mapping ff is injective, as each pair (x,y)(x,y) corresponds to a unique integer representation in base 2p2p and thus ∣f(S′)∣=p≥n|f(S')|=p\ge n. To confirm that the Sidon property is preserved, suppose that for (x1,y1),(x2,y2),(x3,y3),(x4,y4)∈S′(x_1,y_1),(x_2,y_2),(x_3,y_3),(x_4,y_4)\in S', we have f(x1,y1)+f(x2,y2)=f(x3,y3)+f(x4,y4)f(x_1,y_1)+f(x_2,y_2)=f(x_3,y_3)+f(x_4,y_4). Expanding this using our mapping yields:

2p(x1+x2−x3−x4)=(y3+y4−y1−y2).2p(x_1+x_2-x_3-x_4)=(y_3+y_4-y_1-y_2).

Since ∣y3+y4−y1−y2∣<2p|y_3+y_4-y_1-y_2|<2p and the left-hand side is a multiple of 2p2p, both sides of the equation must be zero, which implies that x1+x2=x3+x4x_1+x_2=x_3+x_4 and y1+y2=y3+y4y_1+y_2=y_3+y_4 simultaneously in N\mathbb{N}. These are exactly the conditions defining the Sidon property for S′S' in Fp2\mathbb{F}_p^2. Since S′S' is Sidon, these equalities imply that {(x1,y1),(x2,y2)}={(x3,y3),(x4,y4)}\{(x_1,y_1),(x_2,y_2)\}=\{(x_3,y_3),(x_4,y_4)\}. Finally, because ff is injective, this coordinate-wise equality forces the equality of the mapped values: {f(x1,y1),f(x2,y2)}={f(x3,y3),f(x4,y4)}\{f(x_1,y_1),f(x_2,y_2)\}=\{f(x_3,y_3),f(x_4,y_4)\}. Thus, the set SS is a Sidon set in N\mathbb{N}. Finally, define

G={2px+(x2mod⁡p)+1:0≤x<n}.G=\{2px+(x^2 \mathbin{\operatorname{mod}} p)+1:0\le x<n\}.

where xx ranges over integers and x2mod⁡px^2 \mathbin{\operatorname{mod}} p denotes the least nonnegative residue modulo pp. Since n≤pn\le p, the set GG is a subset of S+1S+1 and has exactly nn elements by injectivity of ff. Translation and taking subsets preserve the Sidon property, so GG is Sidon and, by Observation 3, a Golomb ruler. Moreover,

max⁡G≤2p(n−1)+(p−1)+1=p(2n−1)<4n2.\max G\le2p(n-1)+(p-1)+1=p(2n-1)<4n^2.

Thus G⊆[1,4n2]G\subseteq[1,4n^2], and the construction takes poly⁡(n)\operatorname{poly}(n) time. □\square

Proof of Corollary

Proof of Corollary 1. Set sn=⌈τ(n)log⁡(τ(n))log⁡(n)⌉s_n = \lceil\tau(n)\log(\tau(n))\log(n)\rceil and ϕ=ϕn,sn\phi= \phi_{n,s_n}, where ϕn,sn\phi_{n,s_n} is from Theorem 2. These choices depend only on nn and τ\tau. Fix a deterministic Turing machine MM running in time at most τ(n)\tau(n). By Pippenger and Fischer [28], its computation on inputs of length nn can be simulated by a Boolean circuit CnC_n consisting of AND, OR, and NOT gates, of size O(τ(n)log⁡(τ(n)))11O(\tau(n)\log(\tau(n)))^{11}, where the implicit constant may depend on MM. The circuit satisfies Cn(x)=M(x)C_n(x) = M(x) for every x∈{0,1}nx \in\{0,1\}^n. For all sufficiently large nn depending on MM, the factor log⁡(n)\log(n) exceeds this constant, so CnC_n has size at most sns_n. Fix such an nn.

For threshold activation σ(z)=1[z≥0]\sigma(z) = \mathbb{1}[z \ge0], each Boolean gate can be simulated by a threshold gate as follows:

x∧y=σ(x+y−32),x∨y=σ(x+y−12),¬x=σ(12−x).x \land y = \sigma\left(x+y-\frac{3}{2}\right), \qquad x \lor y = \sigma\left(x+y-\frac{1}{2}\right), \qquad\neg x = \sigma\left(\frac{1}{2}-x\right).

Hence, CnC_n is a σ\sigma-circuit of size at most sns_n. By Remark 1, we may pad it to size sns_n without changing its output. Applying Theorem 2 with the feature map ϕ=ϕn,sn\phi= \phi_{n,s_n} chosen above gives a vector w∈Rdw \in\mathbb{R}^d such that

fwe2e-T(ϕ(x))=Cn(x)=M(x)for every x∈{0,1}n.f_w^{\mathrm{e2e}\text{-}T}(\phi(x)) = C_n(x) = M(x) \qquad\text{for every } x \in\{0,1\}^n.

The feature map and the generated tokens are binary by Theorem 2, so the entire autoregressive computation uses Σ={0,1}\Sigma= \{0,1\}. Moreover,

n′=d=O(nsn+sn2)=O~(nτ(n)+τ(n)2),n' = d = O(ns_n+s_n^2) = \widetilde{O}(n\tau(n)+\tau(n)^2),
T=O(sn2)=O~(τ(n)2).T = O(s_n^2) = \widetilde{O}(\tau(n)^2).

Since τ(n)=O(poly⁡(n))\tau(n) = O(\operatorname{poly}(n)), we have sn=poly⁡(n)s_n = \operatorname{poly}(n). The map ϕn,sn\phi_{n,s_n} is computable in time polynomial in nn and sns_n, so ϕ\phi is computable in poly⁡(n)\operatorname{poly}(n) time. The feature maps and the constants in the dimension and generation-length bounds are independent of MM. □\square

Learning

This part provides the remaining formal results supporting the learning consequences discussed in § 4 of the main text. We first give the learning procedure and generalization guarantee for ReLU networks under supervision of all neuron activations (Section D.1). We then prove hardness of E2E learning for autoregressive linear-threshold models assuming that one-way functions exist (Section D.2).

Learning Neural Networks with CoT

We consider binary classification by scalar-output ReLU networks, using σ(z)=max⁡{0,z}\sigma(z) = \max\{0,z\} and Σ=R\Sigma= \mathbb{R}. For a network C:[0,1]n→RC : [0,1]^n \to\mathbb{R}, the target label is 1[C(x)>0]\mathbb{1}[C(x) > 0]. Each training example reveals an input xx together with all neuron activations C1(x),…,Cs(x)C_1(x),\ldots,C_s(x). By Property 1, the observed activations suffice to construct the complete training trajectory of the simulating autoregressive neuron: place Ci(x)C_i(x) at step tit_i and zero at every other step. The designated steps depend only on ss, so this conversion requires no knowledge of the network weights. In particular, every prefix and its next-token target are known. Property 1 guarantees that a single shared ReLU neuron is consistent with all these training pairs.

Finding a consistent neuron. Each observed trajectory provides prefix–next-token pairs (z,y)(z,y). Since all target tokens are nonnegative, consistency of a ReLU neuron fw,bf_{w,b} with such a pair is equivalent to

⟨w,z⟩+b=yif y>0,⟨w,z⟩+b≤0if y=0.\begin{aligned} \langle w,z\rangle+ b &= y && \text{if } y > 0,\\ \langle w,z\rangle+ b &\le0 && \text{if } y = 0. \end{aligned}

Thus, fitting mm trajectories of length TT reduces to a linear feasibility problem with d+1d+1 variables and at most mTmT constraints. CoT preservation guarantees feasibility. Moreover, consistency on every observed prefix implies, by induction over the generation steps, that the learned neuron reproduces each training trajectory under autoregressive generation. In particular, it predicts every training label correctly. For rational input data, a feasible solution can be found in time polynomial in the encoding length of this linear program.

Generalization. We bound the complexity of the learned autoregressive model by unrolling it into a feedforward network. The bound applies to every choice of the shared parameters, including solutions that do not correspond to the original teacher architecture.

Claim 2. Fix dd, T≥1T \ge1 and a feature map ψ\psi taking values in R∗\mathbb{R}^{*} that is independent of the training sample. The classifier class

{x↦1[fw,be2e−T(ψ(x))>0]:w∈Rd, b∈R}\left\{x \mapsto\mathbb{1}\left[f_{w,b}^{\mathrm{e2e-}T}(\psi(x)) > 0\right] : w \in\mathbb{R}^{d},\ b \in\mathbb{R}\right\}

has VC dimension O((d+1)T2log⁡(2(d+1)T))O((d+1)T^{2}\log(2(d+1)T)). Consequently, in the realizable setting, a sufficient number of i.i.d. examples for every consistent classifier to have error at most ε\varepsilon, with probability at least 1−δ1-\delta, is

m=O((d+1)T2log⁡(2(d+1)T)log⁡(2/ε)+log⁡(1/δ)ε).m = O\left(\frac{(d+1)T^{2}\log(2(d+1)T)\log(2/\varepsilon)+\log(1/\delta)}{\varepsilon}\right).

Proof. Unrolling the autoregressive computation produces a feedforward network with TT ReLU units. Each unit receives at most dd inputs from the initial context and preceding units, and has one bias. Allowing separate weights and biases at each step gives a larger class with W=O((d+1)T)W = O((d+1)T) parameters and L=O(T)L = O(T) layers. To match the architecture assumed by Bartlett et al. [3], we append a fixed identity output unit that copies the final generated token. This leaves the computed function unchanged.

By the VC-dimension bound of Bartlett et al. [3], this enlarged classifier class has VC dimension O(WLlog⁡(2W))O(WL\log(2W)). The shared-parameter class is a subclass and satisfies the same upper bound. Composing with the fixed map ψ\psi cannot increase VC dimension. The sample bound follows from the standard realizable generalization bound for consistent classifiers.

Corollary 6. Let C:[0,1]n→RC : [0,1]^{n} \to\mathbb{R} be a size-ss ReLU network, and let D\mathcal{D} be any distribution over [0,1]n[0,1]^{n}. Given complete neuron activations on sufficiently many i.i.d. inputs drawn from D\mathcal{D}, one can learn a single autoregressive ReLU neuron of dimension d=O(ns+s2)d = O(ns+s^{2}) using T=O(s2)T = O(s^{2}) generation steps such that, with probability at least 1−δ1-\delta,

Pr⁡x∼D[1[fw,be2e−T(ϕn,s(x))>0]≠1[C(x)>0]]≤ε.\Pr_{x\sim\mathcal{D}}\left[\mathbb{1}\left[f_{w,b}^{\mathrm{e2e-}T}(\phi_{n,s}(x)) > 0\right] \ne\mathbb{1}[C(x)>0]\right] \le\varepsilon.

The required number of training examples is polynomial in nn, ss, 1/ε1/\varepsilon, and log⁡(1/δ)\log(1/\delta). Learning reduces to a linear program of polynomial size; for rational data, its running time is polynomial in the encoding length.

Remark 3 (Regression). The argument also extends to approximating C(x)C(x) under any bounded nonnegative loss that is a nondecreasing function of the absolute prediction error and vanishes at zero. Here we normalize the loss to take values in [0,1][0,1]. Examples include bounded absolute-error loss ℓ(y^,y)=min⁡{1,∣y^−y∣}\ell(\hat{y},y)=\min\{1,|\hat{y}-y|\} and bounded squared-error loss ℓ(y^,y)=min⁡{1,∣y^−y∣2}\ell(\hat{y},y)=\min\{1,|\hat{y}-y|^2\}. Indeed, the bounds of Bartlett et al. [3] also apply to pseudodimension. For these losses, the induced loss class has pseudodimension bounded by a constant multiple of that of the predictor class, so standard uniform convergence bounds yield polynomial sample complexity. The same linear-programming procedure reproduces every training output exactly, giving zero empirical loss. Thus, sufficiently many samples ensure arbitrarily small expected loss.

Hardness of Learning with E2E supervision

We consider σ(z)=1[z≥0]\sigma(z)=\mathbb{1}[z\ge0] and Σ={0,1}\Sigma=\{0,1\}.

Theorem 4.4 of Joshi et al. [Jos+25] rules out efficient E2E learning under the assumption that polynomial-size constant-depth threshold circuits are hard to learn. Their reduction uses dimension and generation length O(sLn)O(s^{L}n) to simulate a size-ss, depth-LL threshold circuit. This overhead is polynomial for constant LL, but it becomes exponential when the depth grows with the running time. Our simulation has polynomial overhead for arbitrary polynomial-time computations and therefore yields hardness from the weaker assumption that one-way functions exist.

We first recall the cryptographic assumption. A one-way function is easy to compute but hard to invert on a random input.

Definition 7 (One-way function). A function f:{0,1}∗→{0,1}∗f:\{0,1\}^{*}\to\{0,1\}^{*} is a one-way function if it is computable in polynomial time and, for every probabilistic polynomial-time algorithm II,

Pr⁡x∼Unif⁡({0,1}n)randomness of I[I(f(x),1n)∈f−1(f(x))]≤n−ω(1).\Pr_{\substack{x\sim\operatorname{Unif}(\{0,1\}^{n})\\ \text{randomness of }I}}\left[I(f(x),1^{n})\in f^{-1}(f(x))\right]\le n^{-\omega(1)}.

One-way functions imply pseudorandom generators [14], which in turn imply pseudorandom function (PRF) families [11]. Such functions have polynomial-size circuits. The guarantee is that no polynomial-time algorithm can distinguish a pseudorandom function from a uniformly random function with non-negligible probability. Existence of PRF implies hardness of learning [29, 20]. More specifically, an efficient learner with nontrivial prediction advantage would distinguish a pseudorandom function from a uniformly random function by testing the learned predictor on fresh inputs, contradicting pseudorandomness. This sequence of works give the following result:

Theorem 6 ([20, 11, 14]). If one-way functions exist, then there are a polynomial qq and function classes Gn⊆{0,1}{0,1}n\mathcal{G}_n\subseteq\{0,1\}^{\{0,1\}^{n}} such that every function in Gn\mathcal{G}_n is computable by a Boolean circuit of size at most q(n)q(n), but no probabilistic polynomial-time algorithm weakly learns (Gn)n≥1(\mathcal{G}_n)_{n\ge1}, even improperly and under the uniform distribution.

Combining with Corollary 1 gives the following result:

Corollary 7. If one-way functions exist, then autoregressive linear-threshold models are not efficiently E2E-learnable (Definition 6), even improperly.

Proof. Suppose that an efficient E2E learner exists. Let (Gn)n≥1(\mathcal{G}_n)_{n\ge1} and qq be as in Theorem 6, and set s=q(n)s=q(n). By Theorem 2, there is a single polynomial-time computable map ϕn,s:{0,1}n→{0,1}n′\phi_{n,s}:\{0,1\}^{n}\to\{0,1\}^{n'} such that, for every g∈Gng\in\mathcal{G}_n, there is a linear threshold fwg∈Fd,linf_{w_g}\in\mathcal{F}_{d,\mathrm{lin}} satisfying

fwge2e-T(ϕn,s(x))=g(x)for every x∈{0,1}n,f_{w_g}^{\mathrm{e2e}\text{-}T}\left(\phi_{n,s}(x)\right)=g(x)\qquad\text{for every }x\in\{0,1\}^{n},
Equation not extracted

where n′=O(ns+s2)n' = O(ns + s^2), d=O(ns+s2)d = O(ns + s^2), and T=O(s2)T = O(s^2). Crucially, ϕn,s\phi_{n,s} depends only on nn and the common circuit-size bound ss, not on gg.

We use the assumed E2E learner to learn Gn\mathcal{G}_n. Transform every labeled example (xi,g(xi))(x_i,g(x_i)) into (ϕn,s(xi),g(xi))(\phi_{n,s}(x_i),g(x_i)) and run the E2E learner with parameters dd and TT. The transformed sample is realizable by fwgf_{w_g}. If the learner returns hh, output the predictor x↦h(ϕn,s(x))x \mapsto h(\phi_{n,s}(x)). Its error under the original input distribution equals the error of hh under the pushforward distribution induced by ϕn,s\phi_{n,s}. Since ss, n′n', dd, and TT are polynomial in nn, this gives a probabilistic polynomial-time weak PAC learner for (Gn)n≥1(\mathcal{G}_n)_{n\ge1}, contradicting Theorem 6.

Proofs from Section

Proof of Theorem 4. Consider a width-1, depth-LL σ\sigma-circuit with one non-input node viv_i at each depth i∈[L]i \in[L] and an edge (vi−1,vi)(v_{i-1},v_i) for every i∈{2,…,L}i \in\{2,\ldots,L\}. Choose the weights of these L−1L-1 edges to be pairwise distinct. Since the simulation scheme must handle arbitrary σ\sigma-circuits, it must handle this circuit.

Let 1≤t1<⋯<tL≤T1 \le t_1 < \cdots< t_L \le T be the designated steps, and define Δi:=ti−ti−1\Delta_i := t_i-t_{i-1} for every i∈{2,…,L}i \in\{2,\ldots,L\}. Direct edge alignment gives w[−Δi]=w(vi−1,vi)w[-\Delta_i] = w(v_{i-1},v_i). Since the edge weights are pairwise distinct, the positive integers Δ2,…,ΔL\Delta_2,\ldots,\Delta_L are also pairwise distinct. Therefore,

T≥tL=t1+∑i=2LΔi≥1+∑q=1L−1q=1+(L2).T \ge t_L = t_1 + \sum_{i=2}^{L} \Delta_i \ge1 + \sum_{q=1}^{L-1} q = 1 + \binom{L}{2}.

where the last inequality follows because Δ2,…,ΔL\Delta_2,\ldots,\Delta_L are pairwise distinct.

Experiments

Dataset and supervision split. The CIFAR-10 dataset [22] contains 60,000 32 × 32 color images across ten classes. We partition the official 50,000-image training set deterministically, using seed 42, into 45,000 teacher-training images and 5,000 validation images used for teacher selection. In the saved validation ordering, the first 4,000 images supply student recovery trajectories, the next 500 form a holdout from student recovery, and the last 500 are unused for student recovery and evaluation. The recovery holdout belongs to the teacher’s validation partition. The official 10,000-image test set is used only for final evaluation after freezing all five step-10,000 checkpoints. It is not used for recovery, diagnostic tuning, or checkpoint or seed selection.

Teacher architecture. The teacher is a Convolutional Neural Network (CNN) consisting of four convolution–batch-normalization–ReLU stages, followed by global average pooling and a final affine readout layer. Before compiling the network into the autoregressive format, the batch normalization parameters are folded exactly into the weights and biases of the preceding convolutions. The architectural details of the four recovered stages are summarized in Table 2.

StageChannelsKernelStrideActivation Shape#Parameters
1325×55 \times5432×8×832 \times8 \times82,432
2643×33 \times3264×4×464 \times4 \times418,496
31283×33 \times32128×2×2128 \times2 \times273,856
41283×33 \times31128×2×2128 \times2 \times2147,584

Table 2. Architectural details of the teacher’s compiled convolutional stages.

These stages yield 4,096 scalar ReLU gates and contain 242,368 learned parameters. The compiled circuit appends ten affine output gates in class order. The student learns these coefficients and ten output biases, adding 1,290 parameters. In total, recovery covers 4,106 designated gates and 243,658 tied learned parameters.

Teacher training and selection. We train the teacher on the 45,000 labeled training images using cross-entropy and SGD, selecting the checkpoint by validation accuracy. The frozen teacher achieves 72.15% accuracy on the official test set.

Student construction. We construct an autoregressive student with shared weights and a fixed activation schedule, using the affine-output extension in Remark 2. At every step other than the ten designated output steps, the recurrence is

htstu=ReLU⁡(⟨wstu,zt⟩)(3)h_t^{\mathrm{stu}} = \operatorname{ReLU}\left(\langle w_{\mathrm{stu}}, z_t\rangle\right) \tag*{(3)}

where wstuw_{\mathrm{stu}} is shared across steps and ztz_t is the shifting window containing the encoded image and preceding student outputs. At the ten designated output steps, we omit ReLU in (3) to produce signed logits.

Following the construction in Theorem 3, the simulation use a shared neuron parametrize by ww that contain many structural zeros along the weights of the teacher’s circuit. Therefore our goal here is to learn the weights of the teacher’s circuit and not these zeros. We use the Sidon construction from Claim 1 to assign each circuit edge and bias to a unique coordinate of wstuw_{\mathrm{stu}}. The learner is given the architecture, sparsity pattern, and convolutional parameter tying, but not the teacher’s weights. That is, the coordinate assignment is independent of the teacher’s weight values. We learn the associated coefficients from activation traces and store them in a sparse coordinate map, leaving structural zeros implicit.

In more details, the weights that force undesignated outputs to zero all have the same value. We store this value once and identify the corresponding coordinates from the designated-step schedule. For each final learned student, we bound its outputs at all designated steps over inputs in [0,1]n[0,1]^n by interval propagation, including the ten output logits. We use the largest absolute value among the interval endpoints in place of MC when computing AA as in the proof of Theorem 3. The norms count every occurrence of a tied coefficient. We set the entries of wstuw_{\mathrm{stu}} that align with the constant 1 in the encoded input at undesignated steps to −A−1-A - 1. Inductively, undesignated preactivations are at most −1-1, while Sidon alignment reproduces the learned gates at designated steps. Thus, evaluating only designated gates preserves the recurrence in exact arithmetic.

Then we can represent wstuw_{\mathrm{stu}} sparsely as a map from occupied coordinates to learnable parameters, without store or create the elements whose value is zero.

Student training. We train five students on the same 4,000 complete teacher trajectories, using recovery seeds 4042, …, 4046. The seeds vary parameter initialization and minibatch ordering; the teacher checkpoint, image subsets, and optimization hyperparameters remain fixed. Tied hidden parameters and output biases are initialized independently according to N(0,0.022)\mathcal{N}(0,0.02^2); the pooled output coefficients use N(0,0.0052)\mathcal{N}(0,0.005^2). We use Adam with constant learning rate 0.001, minibatch size 64, and a budget of 10,000 steps.

Training uses designated positions only. The frozen teacher supplies fixed hidden prefixes, post-ReLU activation targets, and raw logit targets. For a hidden target yy and student preactivation aa, we minimize

ℓ(a,y)={(a−y)2,y>0,ReLU⁡(a)2,y=0.(4)\ell(a,y) = \begin{cases} (a-y)^2, & y > 0,\\ \operatorname{ReLU}(a)^2, & y = 0. \end{cases} \tag*{(4)}

Thus, a positive target determines the corresponding preactivation, whereas a zero target imposes only the constraint a≤0a \le0. For affine output gates, we use squared error (a−y)2(a-y)^2 for every target sign. With fixed teacher prefixes, this objective is convex in the tied trainable parameters; it need not be strictly convex or identify the teacher’s parameters. Training the student on 4,000 trajectories for 10,000 Adam steps took roughly 5 minutes on a single NVIDIA L40S GPU.

Student evaluation. At test time, the student classifies images using its own intermediate activations, followed by global-average pooling and its learned affine readout.

We evaluate all five students on the official test set and report both test accuracy and agreement with the teacher’s predictions. Teacher agreement is the fraction of test examples on which the student and teacher predict the same class, irrespective of whether that prediction is correct. We also report two measures of logit error relative to the teacher. Both measures compute the root mean squared difference between student and teacher logits, averaged over all test images and all ten classes. Logits are the class scores before softmax. Free-logit RMSE evaluates the complete student computation: the student generates its own hidden activations and applies global-average pooling and its learned affine readout. This measure therefore reflects errors in both the hidden computation and the readout. Teacher-forced output RMSE instead supplies the teacher’s final hidden activations to the student’s pooling and learned affine readout. Using the same hidden activations as the teacher isolates readout error from differences in the hidden computation. Both measures assess agreement with the teacher’s logits; test accuracy remains the measure of classification performance.

Evaluation runs sequentially on a single NVIDIA A40 with batch size 64. The teacher uses the same evaluation procedure.

For each student metric, we report the mean and one sample standard deviation across the five students,

s=1N−1∑i=1N(xi−xˉ)2,N=5.s = \sqrt{\frac{1}{N-1}\sum_{i=1}^{N}(x_i-\bar{x})^2}, \qquad N=5.

For percentage metrics, the standard deviation is in percentage points. It measures variation across students evaluated on the same test images; it is not a confidence interval over newly sampled images or dataset splits.

MetricOfficial test set
Student accuracy(72.106 ± 0.054)%
Teacher accuracy72.150%
Teacher agreement(99.484 ± 0.070)%
Free-logit RMSE0.023852 ± 0.004095
Teacher-forced output RMSE0.004897 ± 0.002957

Table 3. Official-test evaluation of all five final students trained on 4,000 recovery trajectories. Student metrics show mean ± sample standard deviation.

Experimental conclusion. With 4,000 recovery trajectories, the student jointly learns the hidden convolutional parameters and affine output head. Across five final checkpoints, it achieves 72.106% mean test accuracy, compared with the teacher’s 72.150%, and 99.484% mean teacher agreement. These results support our theoretical finding that complete activation supervision enables a single shared autoregressive neuron to recover the behavior of a multilayer network without access to its weights.

References

  1. [1]Awni Altabaa, Omar Montasser, and John Lafferty. “CoT Information: Improved Sample Complexity under Chain-of-Thought Supervision”. In: arXiv preprint arXiv:2505.15927 (2025) (Cited on page 5).arxiv.org/abs/2505.15927
  2. [2]Sanjeev Arora, Boaz Barak, et al. Computational complexity: a modern approach. Vol. 1. Cambridge University Press Cambridge, 2009 (Cited on pages 5, 6, 24).
  3. [3]Peter L Bartlett, Nick Harvey, Christopher Liaw, and Abbas Mehrabian. “Nearly-tight VC-dimension and pseudodimension bounds for piecewise linear neural networks”. In: Journal of Machine Learning Research 20.63 (2019), pp. 1–17 (Cited on pages 8, 25, 26).
  4. [4]Moritz Brösamle and Stephan Eckstein. “The Expressive Power of Low Precision Softmax Transformers with (Summarized) Chain-of-Thought”. In: arXiv preprint arXiv:2605.18079 (2026) (Cited on pages 2, 17).arxiv.org/abs/2605.18079
  5. [6]Ilan Doron-Arad, Idan Mehalel, and Elchanan Mossel. “A Theory of Online Learning with Autoregressive Chain-of-Thought Reasoning”. In: arXiv preprint arXiv:2605.06819 (2026) (Cited on page 5).
  6. [7]Ilan Doron-Arad, Idan Mehalel, and Elchanan Mossel. “Stochastic Autoregressive Learning”. In: arXiv preprint arXiv:2608.07224 (2026) (Cited on page 6).
  7. [8]Paul Erdos and Pál Turán. “On a problem of Sidon in additive number theory, and on some related problems”. In: J. London Math. Soc 16.4 (1941), pp. 212–215 (Cited on pages 3, 7, 20, 22, 23).
  8. [9]Guhao Feng, Bohang Zhang, Yuntian Gu, Haotian Ye, Di He, and Liwei Wang. “Towards revealing the mystery behind chain of thought: a theoretical perspective”. In: Advances in neural information processing systems 36 (2023), pp. 70757–70798 (Cited on page 17).arxiv.org/abs/2305.15408
  9. [10]Oded Goldreich. Foundations of Cryptography: A Two-Volume Set. Cambridge, UK: Cambridge University Press, 2007. ISBN: 9780521873734 (Cited on page 9).
  10. [11]Oded Goldreich, Shafi Goldwasser, and Silvio Micali. “How to construct random functions”. In: Journal of the ACM (JACM) 33.4 (1986), pp. 792–807 (Cited on page 26).
  11. [13]Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, et al. “Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning”. In: arXiv preprint arXiv:2501.12948 (2025) (Cited on pages 11, 17).DOI
  12. [14]Johan Haastad, Russell Impagliazzo, Leonid A Levin, and Michael Luby. “A pseudo-random generator from any one-way function”. In: SIAM Journal on Computing 28.4 (1999), pp. 1364–1396 (Cited on page 26).
  13. [15]Steve Hanneke, Idan Mehalel, and Shay Moran. “Sample Complexity of Autoregressive Reasoning: Chain-of-Thought vs. End-to-End”. In: arXiv preprint arXiv:2604.12013 (2026) (Cited on pages 2, 5).arxiv.org/abs/2604.12013
  14. [16]Namgyu Ho, Laura Schmid, and Se-Young Yun. “Large language models are reasoning teachers”. In: Proceedings of the 61st annual meeting of the association for computational linguistics (volume 1: long papers). 2023, pp. 14852–14882 (Cited on pages 11, 17).
  15. [17]Aaron Jaech, Adam Kalai, Adam Lerer, Adam Richardson, Ahmed El-Kishky, Aiden Low, Alec Helyar, Aleksander Madry, Alex Beutel, Alex Carney, et al. “Openai o1 system card”. In: arXiv preprint arXiv:2412.16720 (2024) (Cited on page 17).arxiv.org/abs/2412.16720
  16. [18]Nirmit Joshi, Roey Magen, Nathan Srebro, Nikolaos Tsilivis, and Gal Vardi. “Learning to Think from Multiple Thinkers”. In: arXiv preprint arXiv:2604.24737 (2026) (Cited on pages 3, 5, 6, 9, 10, 17).
  17. [19]Nirmit Joshi, Gal Vardi, Adam Block, Surbhi Goel, Zhiyuan Li, Theodor Misiakiewicz, and Nathan Srebro. “A Theory of Learning with Autoregressive Chain of Thought”. In: The Thirty Eighth Annual Conference on Learning Theory. PMLR. 2025, pp. 3161–3212 (Cited on pages 2–6, 8, 10, 16, 17, 26).
  18. [20]Michael J. Kearns and Leslie G. Valiant. “Cryptographic Limitations on Learning Boolean Formulae and Finite Automata”. In: Journal of the ACM 41.1 (1994), pp. 67–95. DOI: 10.1145/174644.174647 (Cited on page 26).
  19. [22]Alex Krizhevsky. “Learning Multiple Layers of Features from Tiny Images”. MA thesis. University of Toronto, 2009. URL: https://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf (Cited on pages 3, 10, 27).
  20. [23]Zhiyuan Li. “The Optimal Sample Complexity of Learning Autoregressive Chain-of-Thought”. In: arXiv preprint arXiv:2607.07423 (2026) (Cited on pages 2, 17).
  21. [24]Zhiyuan Li, Hong Liu, Denny Zhou, and Tengyu Ma. “Chain of thought empowers transformers to solve inherently serial problems”. In: The Twelfth International Conference on Learning Representations. 2024 (Cited on page 2).
  22. [25]Hunter Lightman, Vineet Kosaraju, Yuri Burda, Harrison Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. “Let’s verify step by step”. In: International Conference on Learning Representations. Vol. 2024. 2024, pp. 39578–39601 (Cited on page 17).arxiv.org/abs/2305.20050
  23. [26]Eran Malach. “Auto-regressive next-token predictors are universal learners”. In: arXiv preprint arXiv:2309.06979 (2023) (Cited on pages 2, 10, 17).arxiv.org/abs/2309.06979
  24. [27]William Merrill and Ashish Sabharwal. “The expressive power of transformers with chain of thought”. In: International Conference on Learning Representations. Vol. 2024. 2024, pp. 7690–7706 (Cited on pages 2, 17).arxiv.org/abs/2310.07923
  25. [28]Nicholas Pippenger and Michael J Fischer. “Relations among complexity measures”. In: Journal of the ACM (JACM) 26.2 (1979), pp. 361–381 (Cited on pages 6, 24).DOI
  26. [29]Leslie G Valiant. “A theory of the learnable”. In: Communications of the ACM 27.11 (1984), pp. 1134–1142 (Cited on page 26).
  27. [30]Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. “Attention is all you need”. In: Advances in neural information processing systems 30 (2017) (Cited on pages 2, 17).arxiv.org/abs/1706.03762

Paper details

vlnc:W_fhuuncz2
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 3

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

OpenAI models

View statement
Looking for related papers…
Contents