Manuscript Offprint
arXiv:2610.17283The Surprising Expressivity of a Single Neuron with Autoregressive Chain-of-Thought
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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-s circuit on n inputs can be simulated by a neuron of dimension using 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.
1 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, 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
*Corresponding author: roey.magen@weizmann.ac.il.
Here, “efficient” means that both the number of parameters of the next-token predictor and the number of generation steps are polynomial in the input length and in the size (or runtime) of the simulated computation.
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 [Vas+17]. Consequently, a growing line of work has established strong expressivity results for transformers augmented with AR chain-of-thought generation [Li+24; MS24; BE26]. 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 [Mal23] 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, 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. [Jos+25] 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 [HMM26; Li26]. However, parameter sharing complicates even basic expressivity questions. Indeed, the construction of Joshi et al. [Jos+25] for simulating threshold circuits with an AR linear-threshold predictor incurs an exponential dependence on circuit depth, requiring both dimension and generation length . 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 -circuits, or equivalently, feedforward neural networks with activation :
Theorem 1 (Informal version of Theorems 2 and 3). Under mild assumptions on the activation (satisfied by threshold, ReLU, GELU, and sigmoid, among others), any size-s -circuit on inputs of dimension can be simulated by autoregressively applying a single fixed neuron , with . The dimension of the AR neuron is and the number of generation steps is , both completely independent of the circuit depth.
The paper formulates these models using argmax decoding over linear scores, which can equivalently be represented by a single linear-threshold gate.
For vectors of different dimensions, the inner product is defined by padding the shorter vector with zeros on the left.
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 (Section 3). For threshold activations, our simulation improves on Joshi et al. [Jos+25] 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-s feedforward network with the same activation on (Theorem 3).
• Learnability (Section 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 [Jos+25; Jos+26].
• Optimality of the simulation bounds (Section 5). The dimension bound matches the worst-case number of circuit weights. For generation length, we prove a matching worst-case lower bound of (Theorem 4) under a natural structural assumption shared by our construction and prior simulations.
• Experiments (Section 6). We use a CNN teacher with nontrivial test accuracy on CIFAR-10 [Kri09] 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% 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 [ET41], 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.
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 be a token alphabet and let be a class of next-token predictors, called the base class. We use for Boolean computation and for real-valued computation. For an input , starting from the initial context , autoregressive generation repeatedly applies the same predictor and appends its output to the context. We write for the output token generated at the -th autoregressive step:
We denote the resulting chain of thought by , consisting of the 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 , where . For and , we use the right-aligned inner product , equivalently padding the shorter vector with zeros on the left. This convention aligns each new CoT value with the shared parameter vector. For , define the next-token predictor by . The resulting dimension-d base class is
Thus, is a class of single neurons with activation , or equivalently generalized linear models with link function . When , we write . When is clear from context, we omit it from the notation and write , , and .
Efficient Learning with CoT. We study learning these AR predictors from complete CoT supervision [Jos+25]. Let be a base class of next-token predictors, where measures predictor size. Given target generator , each training example reveals the input and the entire trajectory . The learner is evaluated on the final output . Here, we define CoT learnability in the Boolean setting . Learning setting for real-valued models are given in Section D.1.
Definition 1 (Realizable CoT learnability). We say that is CoT-learnable over with generation length and sample complexity if there is a learning rule such that the following holds. For every distribution over , target generator , and , let
where . Then, with probability at least over the sample and the randomness of , the predictor satisfies
The Computational Aspect. We call efficiently CoT-learnable if there exists a learning rule satisfying Definition 1 whose sample complexity and running time are polynomial in , , , , and .
Our positive results also hold under the stronger evaluation criterion that requires the learner to match the entire CoT trajectory.
-circuits. We next define the circuits that serve as simulation targets. A size-, depth- -circuit is a weighted directed acyclic graph with input nodes at depth 0 and non-input nodes . The non-input nodes are partitioned into layers , where contains the hidden nodes at depth and is the output node at depth . Edges point from smaller to larger depth, with weights .
For input , each node has a value . Input nodes have values , and each non-input node has a bias and computes
The output is , and we write for the function computed at node . The circuit's size is its number of non-input nodes, . We call the circuit layered if every edge connects consecutive layers.
For threshold activation and , these are threshold circuits [AB+09]. For real-valued activations, these circuits are feedforward neural networks with activation , including MLPs and CNNs with or without skip connections. In this setting, we also consider inputs restricted to , while retaining node and output values in .
3 Expressivity of Autoregressive Single Neuron
In this section, we present our main result: for a broad class of activations , a single autoregressive neuron can simulate a -circuit using the same activation. For size-s circuits on inputs, our simulations use dimension and generation length , after applying an input feature map that depends only on and (see Remark 1). We begin in Section 3.1 with the discrete token space and threshold activations, showing how to simulate boolean threshold circuits and Turing machines. In Section 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, Section 3.3 outlines how Sidon sets enable efficient serialization of circuit computations.
3.1 Autoregressive Linear Thresholds Simulate Boolean Threshold Circuits
We begin with the threshold activation , which yields the autoregressive linear-threshold class studied in prior work [Jos+25; Jos+26; AML25; HMM26; DMM26a]. This is arguably the simplest autoregressive model over the binary token space : taking the logits to be the linear scores and 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 . Below is our main expressivity result, stated for the binary token space :
Theorem 2. Consider , and the class over the token space . For every input size and circuit size , there is a map for , with the following property. Every size- Boolean threshold circuit can be simulated by a single autoregressive linear threshold neuron with , where , in generation steps:
Moreover, depends only on n and s and is computable in time polynomial in n and s.
Remark 1 (A common feature map). For any fixed input size n and circuit-size bound s, the map applies simultaneously to all threshold circuits of size at most s; only the parameter vector depends on the circuit C. Indeed, smaller circuits can be padded to size s 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 [Jos+25; Jos+26; DMM26b].
Combining Theorem 2 with the standard simulation of polynomial-time Turing machines by polynomial-size threshold circuits [PF79; AB+09], yields the following universality result:
Corollary 1 (Turing machine simulation). Let be a running-time bound. There exists a family of -time computable feature maps , where , such that the following holds. For every deterministic Turing machine running in time at most and every sufficiently large , there exists a linear threshold with such that
where and .
Moreover, Theorem 2 replaces the bounds of Joshi et al. [Jos+25, Lemma 4.5], where is the circuit depth, with and . This removes the exponential dependence on circuit depth, enabling efficient simulation of polynomial-time Turing machines.
3.2 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 . In this case, -circuits correspond to standard feedforward neural networks. To state the results formally, we first specify the assumptions on the activation .
Assumption 1. There exists such that for every (the zero-region condition). Moreover, 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 . 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 , together with a mild regularity condition.
Assumption 2. The activation is locally Lipschitz (Definition 5) and satisfies .
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 n and circuit size s, there exist a feature map \phi_{n,s} : [0,1]^n \to [0,1]^n' and integers , with and , such that the following holds for every size-s -circuit :
The required lower bound on n may depend on M, but the feature maps depend only on n and . An extra logarithmic factor in the common circuit-size bound absorbs machine-dependent simulation constants; see Remark 1 for the padding argument.
- Exact simulation. If satisfies Assumption 1, there exists such that
- Approximate simulation. If satisfies Assumption 2, then for every , there exists such that
Moreover, depends only on n and s and is computable in time polynomial in n and s.
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 , depending only on , such that
The designated steps are computable in time polynomial in n, s. The same property holds for the Boolean simulation in Theorem 2, with inputs restricted to .
3.3 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 , for , is assigned a generation step , at which the value is produced, i.e. . At any later step , where , this value is the -th most recent value in the autoregressive context and is therefore aligned with the coordinate , where is the shared parameter vector. To simulate a circuit edge with weight , we therefore set , so that contributes to the preactivation at step , matching the corresponding term in the definition of a -circuit.
The difficulty is that each coordinate of is reused at every generation step. Consequently, if , for two distinct pairs and , then two potentially different circuit weights would have to be encoded by the same coordinate of . Similarly, aligning input-to-gate weights requires distinct sums , where 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 is a Sidon set if
Equivalently, its positive pairwise differences are also distinct (Observation 3). Using the classical construction of Erdos and Turán [ET41], we obtain such a set of size whose largest element is . The precise formulation we use is stated and proved in Claim 1. Then we use this set to choose the generation steps and to construct the feature map . 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.
Here, we use the real-RAM model, in which reading, writing, and copying a real number take unit time.
4 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 , each trajectory generated by a target neuron provides labeled prefix-next-token examples for the same shared predictor. Consequently, it suffices to find a neuron in 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 be a polynomial-time Turing machine, and let be any distribution over . Given a sufficiently large polynomial number of complete CoT trajectories of length encoding the computations of on inputs drawn from , one can efficiently train a single linear-threshold neuron to predict with high probability over a fresh .
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. Combined with generalization bounds for ReLU Neural Networks [Bar+19] yields the following:
Corollary 3 (Informal version of Corollary 6 and remark 3). For any distribution over , complete activation supervision from a size-s ReLU network suffices to train a single autoregressive ReLU neuron to predict (or approximate 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 and consider learning without access to the intermediate trajectory. Under End-to-End (E2E) supervision, a training example reveals only the input and the final output of a target generator . 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. [Jos+25] 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-s, depth-L threshold circuit using dimension and generation length of
For a fixed prefix z and target activation y, consistency here requires when and when .
order . Thus, the reduction has polynomial overhead only for constant L, 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 [Gol07].
5 Optimality of the simulation bounds on T and d
In this section, we discuss the optimality of the bounds of the generation length T and dimension d in Theorem 3. We show that the bounds are tight up to constant factors, under some reasonable assumptions on the construction. Joshi et al. [Jos+26] showed simulation of depth-2 threshold circuit with and . 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 . A size-s circuit has at most ns edges from input nodes and at most edges between non-input nodes. Therefore, the bound of 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 . Indeed, a depth-3 circuit can have two consecutive layers of non-input nodes with all edges between them, and hence 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 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 and an activation . Consider a simulation scheme that simulates every -circuit by an autoregressive neuron using any feature map . The scheme is directly edge-aligned if, for every circuit with non-input nodes , there are designated steps such that:
-
for every and .
-
For every edge between non-input nodes, the value generated at step , namely , is used at step with coefficient .
This assumption does not yield an unconditional lower bound, since edge counting alone does not preclude the existence of a more compact simulation. However, any such simulation must apply to arbitrary circuits, including those that are already "compressed".
Formally, the value generated at step is the -th most recent value in the autoregressive input. Thus, being used with coefficient means that , so this value contributes to the preactivation at step .
For threshold circuits on Boolean inputs, the same definition applies with and . The construction in the proof of Theorem 3 is directly edge-aligned, as well as all the previous constructions [Mal23; Jos+25; Jos+26]. 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 , any directly edge-aligned simulation (Definition 2) for arbitrary -circuits has generation length on depth- circuits, even when restricted to width-1 circuits.
In the worst case, a circuit with nodes may have depth proportional to , leading to a generation length of . This holds even for sparse circuits whose non-input nodes form a single directed path.
6 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 on CIFAR-10 [Kri09], obtaining nontrivial test accuracy. Given an image , we record its intermediate activations 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 , ReLU at hidden and undesignated steps, and identity activation at ten designated output steps. For efficiency, we represent the AR neuron (i.e., ) using a sparse implementation which enables very efficient training and inference. We independently initialize the trainable parameters underlying 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.
Table 1: CIFAR-10 test results. Student results show mean standard deviation.
| Model | Supervision | Test accuracy | Teacher agreement |
|---|---|---|---|
| CNN teacher | 45,000 images | 72.150% | -- |
| AR student | 4,000 traces | (72.106 ± 0.054)% | (99.484 ± 0.070)% |
7 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 [HSY23; Guo+25]. 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 Section 5, can simulations without direct edge alignment improve the worst-case 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 while preserving time invariance and the CoT-preserving property? Could a stronger but still simple architecture achieve ? 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 Section 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.
References
[AML25] 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).
[AB+09] Sanjeev Arora, Boaz Barak, et al. Computational complexity: a modern approach. Vol. 1. Cambridge University Press Cambridge, 2009 (Cited on pages 5, 6, 24).
[Bar+19] 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).
[BE26] 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).
[Bro+20] Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. "Language models are few-shot learners". In: Advances in neural information processing systems 33 (2020), pp. 1877–1901 (Cited on page 17).
[DMM26a] 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).
[DMM26b] Ilan Doron-Arad, Idan Mehalel, and Elchanan Mossel. “Stochastic Autoregressive Learning”. In: arXiv preprint arXiv:2608.07224 (2026) (Cited on page 6).
[ET41] 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).
[Fen+23] 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).
[Gol07] Oded Goldreich. Foundations of Cryptography: A Two-Volume Set. Cambridge, UK: Cambridge University Press, 2007. ISBN: 9780521873734 (Cited on page 9).
[GGM86] 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).
[Gra+24] Aaron Grattafori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. “The llama 3 herd of models”. In: arXiv preprint arXiv:2407.21783 (2024) (Cited on page 17).
[Guo+25] 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).
[Haa+99] 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).
[HMM26] 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).
[HSY23] 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).
[Jae+24] 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).
[Jos+26] 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).
[Jos+25] 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).
[KV94] 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).
[Koj+22] Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. "Large language models are zero-shot reasoners". In: Advances in neural information processing systems 35 (2022), pp. 22199–22213 (Cited on pages 1, 17).
[Kri09] 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).
[Li26] Zhiyuan Li. "The Optimal Sample Complexity of Learning Autoregressive Chain-of-Thought". In: arXiv preprint arXiv:2607.07423 (2026) (Cited on pages 2, 17).
[Li+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).
[Lig+24] 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).
[Mal23] Eran Malach. “Auto-regressive next-token predictors are universal learners”. In: arXiv preprint arXiv:2309.06979 (2023) (Cited on pages 2, 10, 17).
[MS24] 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).
[PF79] 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).
[Val84] Leslie G Valiant. “A theory of the learnable”. In: Communications of the ACM 27.11 (1984), pp. 1134–1142 (Cited on page 26).
[Vas+17] 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).
[WCM22] Colin Wei, Yining Chen, and Tengyu Ma. “Statistically meaningful approximation: a case study on approximating turing machines with transformers”. In: Advances in Neural Information Processing Systems 35 (2022), pp. 12071–12083 (Cited on page 17).
[Wei+22a] Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V. Le. “Finetuned Language Models are Zero-Shot Learners”. In: The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. 2022 (Cited on page 17).
[Wei+22b] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. “Chain-of-thought prompting elicits reasoning in large language models”. In: Advances in neural information processing systems 35 (2022), pp. 24824–24837 (Cited on pages 1, 17).
[Zel+22] Eric Zelikman, Yuhuai Wu, Jesse Mu, and Noah Goodman. “Star: Bootstrapping reasoning with reasoning”. In: Advances in Neural Information Processing Systems 35 (2022), pp. 15476–15488 (Cited on page 17).
Contents
1 Introduction 1
2 Preliminaries 3
3 Expressivity of Autoregressive Single Neuron 5
3.1 Autoregressive Linear Thresholds Simulate Boolean Threshold Circuits 5
3.2 Neural Networks can be simulated by a Single Autoregressive Neuron 6
3.3 Proof technique: serialization via Sidon sets 7
4 Implications for Learning 8
5 Optimality of the simulation bounds on T and d 9
6 Experiments 10
7 Conclusion and Future Directions 10
A Technical Preliminary 16
A.1 Supervised Learning with CoT. 16
B Related Work 17
C Expressivity 18
C.1 Exact simulation 18
C.2 Approximate simulation 21
C.3 Additional Claims 22
C.4 Proof of Corollary 1 24
D Learning 24
D.1 Learning Neural Networks with CoT 24
D.2 Hardness of Learning with E2E supervision 26
E Proofs from Section 5 27
F Experiments 27
A 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 is called a Sidon set if whenever with , then . Equivalently,
Definition 4 (Golomb ruler). A finite set is called a Golomb ruler if all pairwise differences are distinct, that is, if with , , , then . Equivalently,
A function is locally Lipschitz if around every point in its domain, it behaves like a Lipschitz function.
Definition 5 (Locally Lipschitz function). A function is locally Lipschitz if, for every , there exist and such that for all .
A.1 Supervised Learning with CoT
We recall the learning framework of Joshi et al. [Jos+25]. Fix , an input length , a generation length , and a base class . For a distribution over and a target generator , both learning settings aim to predict the final output . They differ only in the information available during training. An E2E example is , whereas a CoT example is . Thus, CoT supervision reveals all intermediate outputs, while E2E supervision treats them as latent variables.
Definition 6 (Realizable E2E learnability). We say that is E2E-learnable over with generation length and sample complexity if there is a learning rule such that the following holds. For every distribution over , target generator , and , let
where . Then, with probability at least over the sample and the randomness of , the predictor satisfies
A CoT learner (Definition 1) receives examples 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 , and .
The main benefit of CoT supervision is computational. Let denote the VC dimension of the base class. Joshi et al. [Jos+25] showed that the CONSISTENT rule learns the autoregressive model under CoT supervision with sample complexity
Linear Threshold. For and , the predictors are linear thresholds on binary contexts with real weights and biases. Their VC dimension is , so this bound is nearly linear in the number of parameters and depends only logarithmically on the generation length. Moreover, the CONSISTENT rule is computationally efficient in this setting: the observed CoT trajectories provide 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. [Jos+25] give the following result.
Corollary 5. Autoregressive linear-threshold models (i.e. ) are efficiently learnable with CoT supervision (Definition 1).
B 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 [Lig+24; HSY23; 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 [Jae+24; Guo+25]. 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 [Vas+17] are the dominant architecture underlying LLMs, growing attention has been devoted to characterizing their expressivity [WCM22], particularly when augmented with CoT [MS24; BE26; Fen+23]. For example, Merrill and Sabharwal [MS24] 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 [Mal23] 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. [Jos+25] established an analogous result for time-invariant AR linear-threshold models, albeit with exponentially many autoregressive steps. More recently, Joshi et al. [Jos+26] 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.
Li [Li26] subsequently removed the dependence on T, obtaining the optimal rate .
C Expressivity
Both main-text simulation theorems (Theorems 2 and 3) follow from a common construction for -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).
C.1 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.
- CoT preservation. There exist designated steps , depending only on , such that, for every size-s -circuit , the simulating neuron satisfies
-
Efficiency. The feature map and the designated steps depend only on and can be constructed in time polynomial in . Evaluating takes real-RAM operations.
-
Binary inputs. The feature map satisfies .
Proof of the exact part of Theorem 3 and Proposition 1. Order the non-input gates as such that every gate appears after all of its non-input predecessors with the output gate. For every , let be the bias of , let be the weight from input gate to , and let be the weight from to , assigning weight zero to missing edges.
The goal is to choose vector weights , a feature map , and time steps such that the autoregressive process satisfies .
Next, partition the input values into blocks, each of size at most . Each block is encoded in a separate block of . Formally, let , and pad by setting for . For every and , set to be the -th element of the -th block. Let be the weight from to , that is, , where weights from padded coordinates are zero. Define the feature map \phi_{n,s} : [0, 1]^n \to [0, 1]^n' and the weight vector by
for some and that will be specified later. The blocks \boldsymbol{u}_r \in [0,1]^T' and for are responsible for the contributions of the input values, while propagates previously computed gate values. We now describe formally the role and construction of each block:
Construction of . The vector encodes the biases . During the first autoregressive steps, the in shifts across the coordinates of . We set the coordinate aligned with this at time to . Thus, at time , the bias contribution is . In other time steps , we set the aligned coordinate to a sufficiently negative value to ensure that . Formally, define
which is well-defined by Observation 2. Set
At every undesignated time, we set the aligned coordinate to , where is from Assumption 1. This suppresses every contribution from the input and previously generated gate values. Formally, for every , define
where here and throughout the proof, negative indices count coordinates from the right endpoint of a block. Note that after steps, the in is aligned with the coordinate of from the right.
Construction of and . The vector encodes the input values (the block in the partition of ) separated by zeros. Their locations are determined by indices that will be specified later. For every and , define \boldsymbol{u}_r \in [0, 1]^T' by
That is, is located in the coordinate of from the right. We can conclude that:
Observation 1. At step , the input value is aligned with for every and .
This input value contributes to the preactivation at step with coefficient . Therefore, we define the weight blocks as follows: For every and , set
To ensure that these assignments are consistent we need that the sums are all distinct, which will be guaranteed by the choice of and later in the proof.
Requirement 1. The sums for are distinct.
Construction of . The vector is responsible for propagating the outputs of previously computed gates . More specifically, it encodes the weights between non-input gates. If at time the process outputs , then at later times , the value shifts through the coordinates of , and is aligned with . When for some , we want the previously generated values to contribute with coefficients . Formally, for every and , define by
To ensure that these assignments are consistent we need that the differences are all distinct, which will be guaranteed by the choice of later in the proof.
Requirement 2. The differences over all are distinct.
Construction of , and . In this part, we choose the time steps , the initial input values locations and 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 [ET41]. Apply Claim 1 with parameter . Write the resulting Golomb ruler (Sidon set) as , then are positive, , and their positive pairwise differences and sums are distinct. For , set , , and . Hence , the differences for are distinct, and the sums are distinct as well. Moreover, we can choose such that for all . This choice of ensures that all non-zero coordinates of are aligned with throughout the autoregressive process, for any .
We prove by induction over the first steps that the generated value is at step and zero at every other step. Assume this holds through step .
- If , then the leading 1 in is aligned with . Since every input coordinate belongs to , the absolute input contribution is at most . By the induction hypothesis, every previously generated value is either zero or some , so the absolute propagated contribution is at most . Thus the preactivation is at most
The zero-region condition in Assumption 1 gives .
- Suppose that for some . The leading 1 in is aligned with , so its contribution is . Moreover, for every and , the value is aligned with and contributes . A value generated at an earlier step is aligned with . By the induction hypothesis, it is zero unless for some . In that case it equals , and . Consequently, the preactivation at step is
This is precisely the preactivation computed by . Applying gives , completing the induction.
Thus, at every step , the generated value is if for some , and is zero otherwise. This proves the CoT-preserving property. Since and is the output gate, the final generated value is .
Every coordinate of is an input coordinate, zero, or one. Hence, . For threshold activation, every generated token is also binary, so the simulation on Boolean inputs uses .
Finally, depends only on and , which determine and and the initial locations of the input coordinates . The preceding construction therefore constructs a description of in time polynomial in and . Given this description, evaluating consists of initializing coordinates to zero, writing the leading 1, and copying the input values to their prescribed locations. This takes real-RAM operations, which proves the efficiency property. Finally, the length of the feature map and the dimension of are
which completes the proof.
Proof of Theorem 2. Apply the preceding construction with and restrict the inputs to . 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 with the stated bounds and a polynomial-time computable feature map depending only on .
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 -circuits, its construction also supports networks with such output layers. Indeed, the exact construction reproduces every gate value at a designated generation step 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 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.
C.2 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 satisfies Assumption 2. For every input size and circuit size , use the feature map and designated steps from the construction in the proof of Theorem 3. For every size- -circuit and every , there exists such that
-
, for every and .
-
, for every and .
In particular, for every . The bounds and , and the efficiency properties of the feature map and designated steps, remain unchanged. The feature map and designated steps are independent of and .
Proof. Use the construction from the proof of Theorem 3, changing only the coordinates of associated with undesignated steps. Let be the bound on absolute gate values used in that proof, and set . Choose such that every circuit gate preactivation lies in for every input. These bounds exist by Observation 2, since local Lipschitz continuity implies boundedness on bounded intervals. Let be a Lipschitz constant for on , and set and .
By the tail condition, there exists such that whenever . At every undesignated step , set . At designated steps, retain . During the first steps, previously generated values interact only with , so changing these coordinates of does not change the coefficients propagating errors.
We prove by induction that, through step , every generated value differs from its prescribed value by at most , uniformly over all inputs. Here the prescribed value is at and zero otherwise. The claim is vacuous at . Suppose it holds through step . Since , all previously generated values have absolute value at most . At an undesignated step, the chosen coordinate of therefore makes the preactivation at most , so the output has absolute value at most . At a designated step , the construction with prescribed previous values gives exactly the preactivation of gate . The error in this preactivation is at most . Both preactivations thus lie in , and the output error is at most . This completes the induction.
Finally, . Only the suppressing coordinates of have changed, so the feature map, designated steps, dimension, number of steps, and stated efficiency properties are unchanged.
C.3 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 [ET41].
Observation 2. Suppose that is bounded on every bounded interval. For every -circuit there exists an integer such that for all and , where is the value of the -th non-input node.
Proof. Order the non-input gates as such that every gate appears after all of its non-input predecessors. We prove inductively that each gate function is bounded. Suppose this holds for every . The preactivation at is a finite linear combination of input coordinates and preceding gate functions, with fixed coefficients. Therefore, it takes values in some bounded interval. Since is bounded on every bounded interval, is bounded. Thus, all are bounded, and we may take
Observation 3. A set is a Sidon set if and only if it is a Golomb ruler.
Proof of Observation 3. Suppose is Sidon but not a Golomb ruler. Then two distinct pairs and satisfy . This implies . The Sidon property implies either and , contradicting distinctness, or and , contradicting the strict inequalities The converse follows similarly.
The following result is based on the classical construction of Erdos and Turán [ET41], 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 [ET41]). For every , one can construct in time a set of size that is both a Golomb ruler and Sidon set.
Proof of Claim 1. We use the classical construction of Sidon sets [ET41]. Recall that a set is Sidon if all unordered pairwise sums are distinct, i.e., with implies .
For , take , and for , take . Both sets satisfy the claim. Assume henceforth that . Let be a prime satisfying , which exists by Bertrand's postulate, and can be found in deterministic time of , say by Eratosthenes' sieve. Since , it is odd. Consider . We first note that is Sidon. Indeed, suppose . Then we have the next equalities in :
Since and 2 is invertible in , the two equalities imply . Thus the unordered pairs and have the same sum and product, hence they are roots of the same quadratic polynomial , and thus . To embed the Sidon set into the integers, we use the mapping , where . We argue that is a Sidon set in . First, note that the mapping is injective, as each pair corresponds to a unique integer representation in base 2p and thus . To confirm that the Sidon property is preserved, suppose that for , we have . Expanding this using our mapping yields:
Since and the left-hand side is a multiple of 2p, both sides of the equation must be zero, which implies that and simultaneously in . These are exactly the conditions defining the Sidon property for in . Since is Sidon, these equalities imply that . Finally, because is injective, this coordinate-wise equality forces the equality of the mapped values: . Thus, the set is a Sidon set in . Finally, define
where ranges over integers and denotes the least nonnegative residue modulo . Since , the set is a subset of and has exactly elements by injectivity of . Translation and taking subsets preserve the Sidon property, so is Sidon and, by Observation 3, a Golomb ruler. Moreover,
Thus , and the construction takes time.
C.4 Proof of Corollary 1
Proof of Corollary 1. Set and , where is from Theorem 2. These choices depend only on and . Fix a deterministic Turing machine running in time at most . By Pippenger and Fischer [PF79], its computation on inputs of length can be simulated by a Boolean circuit consisting of AND, OR, and NOT gates, of size , where the implicit constant may depend on . The circuit satisfies for every . For all sufficiently large depending on , the factor exceeds this constant, so has size at most . Fix such an .
For threshold activation , each Boolean gate can be simulated by a threshold gate as follows:
Hence, is a -circuit of size at most . By Remark 1, we may pad it to size without changing its output. Applying Theorem 2 with the feature map chosen above gives a vector such that
The feature map and the generated tokens are binary by Theorem 2, so the entire autoregressive computation uses . Moreover,
Since , we have . The map is computable in time polynomial in and , so is computable in time. The feature maps and the constants in the dimension and generation-length bounds are independent of .
D Learning
This part provides the remaining formal results supporting the learning consequences discussed in Section 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).
D.1 Learning Neural Networks with CoT
We consider binary classification by scalar-output ReLU networks, using and . For a network , the target label is . Each training example reveals an input together with all neuron activations . By Property 1, the observed activations suffice to construct the complete training trajectory of the simulating autoregressive neuron: place at step and zero at every other step. The designated steps depend only on , 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.
See also Sec. 6 and the proof sketch of Theorem 6.7 in Arora, Barak, et al. [AB+09].
Finding a consistent neuron. Each observed trajectory provides prefix-next-token pairs . Since all target tokens are nonnegative, consistency of a ReLU neuron with such a pair is equivalent to
Thus, fitting m trajectories of length T reduces to a linear feasibility problem with variables and at most mT 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 and a feature map taking values in that is independent of the training sample. The classifier class
has VC dimension . Consequently, in the realizable setting, a sufficient number of i.i.d. examples for every consistent classifier to have error at most , with probability at least , is
Proof. Unrolling the autoregressive computation produces a feedforward network with T ReLU units. Each unit receives at most d 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 parameters and layers. To match the architecture assumed by Bartlett et al. [Bar+19], 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. [Bar+19], this enlarged classifier class has VC dimension . The shared-parameter class is a subclass and satisfies the same upper bound. Composing with the fixed map cannot increase VC dimension. The sample bound follows from the standard realizable generalization bound for consistent classifiers.
Corollary 6. Let be a size- ReLU network, and let be any distribution over . Given complete neuron activations on sufficiently many i.i.d. inputs drawn from , one can learn a single autoregressive ReLU neuron of dimension using generation steps such that, with probability at least ,
The required number of training examples is polynomial in , and . 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 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]. Examples include bounded absolute-error loss and bounded squared-error loss . Indeed, the bounds of Bartlett et al. [Bar+19] 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.
D.2 Hardness of Learning with E2E supervision
We consider and .
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 to simulate a size-s, depth-L threshold circuit. This overhead is polynomial for constant L, 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 is a one-way function if it is computable in polynomial time and, for every probabilistic polynomial-time algorithm I,
One-way functions imply pseudorandom generators [Haa+99], which in turn imply pseudorandom function (PRF) families [GGM86]. 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 [Val84; KV94]. 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 ([KV94; GGM86; Haa+99]). If one-way functions exist, then there are a polynomial q and function classes such that every function in is computable by a Boolean circuit of size at most , but no probabilistic polynomial-time algorithm weakly learns , 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 and be as in Theorem 6, and set . By Theorem 2, there is a single polynomial-time computable map such that, for every , there is a linear threshold satisfying
where , , and . Crucially, depends only on n and the common circuit-size bound s, not on g.
We use the assumed E2E learner to learn . Transform every labeled example into and run the E2E learner with parameters and . The transformed sample is realizable by . If the learner returns , output the predictor . Its error under the original input distribution equals the error of under the pushforward distribution induced by . Since , , , and are polynomial in , this gives a probabilistic polynomial-time weak PAC learner for , contradicting Theorem 6.
E Proofs from Section 5
Proof of Theorem 4. Consider a width-1, depth-L -circuit with one non-input node at each depth and an edge for every . Choose the weights of these edges to be pairwise distinct. Since the simulation scheme must handle arbitrary -circuits, it must handle this circuit.
Let be the designated steps, and define for every . Direct edge alignment gives . Since the edge weights are pairwise distinct, the positive integers are also pairwise distinct. Therefore,
where the last inequality follows because are pairwise distinct.
F Experiments
Dataset and supervision split. The CIFAR-10 dataset [Kri09] contains 60,000 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.
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.
Table 2: Architectural details of the teacher's compiled convolutional stages.
| Stage | Channels | Kernel | Stride | Activation Shape | #Parameters |
|---|---|---|---|---|---|
| 1 | 32 | 4 | 2,432 | ||
| 2 | 64 | 2 | 18,496 | ||
| 3 | 128 | 2 | 73,856 | ||
| 4 | 128 | 1 | 147,584 |
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
where is shared across steps and 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 parametriz by 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 . 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 by interval propagation, including the ten output logits. We use the largest absolute value among the interval endpoints in place of when computing as in the proof of Theorem 3. The norms count every occurrence of a tied coefficient. We set the entries of that align with the constant 1 in the encoded input at undesignated steps to . Inductively, undesignated preactivations are at most , 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 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 ; the pooled output coefficients use . 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 and student preactivation , we minimize
Thus, a positive target determines the corresponding preactivation, whereas a zero target imposes only the constraint . For affine output gates, we use squared error 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,
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.
Table 3: Official-test evaluation of all five final students trained on 4,000 recovery trajectories. Student metrics show mean sample standard deviation.
| Metric | Official test set |
|---|---|
| Student accuracy | (72.106 ± 0.054)% |
| Teacher accuracy | 72.150% |
| Teacher agreement | (99.484 ± 0.070)% |
| Free-logit RMSE | 0.023852 ± 0.004095 |
| Teacher-forced output RMSE | 0.004897 ± 0.002957 |
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.