ΒΆPaper Feed

Issue 42 Β· Pick 10 AI / ML βœ“ read

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

Roey Magen, Nirmit Joshi, Gal Vardi

TL;DR: A single neuron β€” one weight vector, one activation, applied autoregressively to its own output stream β€” can simulate any feedforward network with the same activation, with dimension and generation length that are polynomial in the circuit's size and completely independent of its depth. The trick is a scheduling argument: place the circuit's weights inside the shared weight vector at positions drawn from a Sidon set (an additive-combinatorics object with all pairwise differences distinct), so that as generated values slide past the weight vector, each value meets exactly the right weight at exactly the right time. Corollaries: an autoregressive threshold neuron captures polynomial-time Turing machines and is efficiently learnable from full chain-of-thought traces, while learning from final answers alone is cryptographically hard. This is the cleanest formal statement yet of how much computational work CoT moves out of the architecture and into the generation loop.

The question, stripped to its bones

When a language model "thinks step by step," two things are going on: a next-token predictor (the architecture), and a loop that feeds generated tokens back as input (autoregression). There's a growing body of theory showing that transformers plus CoT can simulate Turing machines β€” but transformers are already powerful objects, so those results don't isolate where the computational power lives. The sharper question: how degenerate can the per-step predictor be before CoT stops being universal?

Malach (2023) argued "very degenerate indeed" β€” a linear threshold gate suffices β€” but his construction cheated in an important way: it used a different weight vector at every generation step. Real autoregressive models are time-invariant: the same parameters apply at step 3 and step 3,000. Joshi et al. (COLT 2025) formalized the time-invariant setting and showed a single shared threshold neuron can still simulate threshold circuits β€” but with dimension and generation length scaling as O(s^L) for a size-s, depth-L circuit. Exponential in depth. They left closing this gap as an open problem.

Why is time-invariance hard? Because parameter sharing creates collisions. The model is f(\mathbf{x}) = \sigma(\langle \mathbf{w}, \mathbf{x}\rangle) with a right-aligned inner product: the most recently generated token always multiplies \mathbf{w}[-1], the one before it \mathbf{w}[-2], and so on. A value generated at step t_i and consumed at step t_j is forced to interact with coordinate \mathbf{w}[-(t_j - t_i)] β€” the offset alone determines which weight gets used. If two different circuit edges end up with the same offset, they'd need the same weight, and the simulation breaks.

The aha: schedule gates on a Golomb ruler

The construction assigns each circuit gate v_i a designated generation step t_i, at which the neuron outputs exactly that gate's value C_i(\mathbf{x}). To implement an edge (v_i, v_j) with weight w(v_i, v_j), you set

\mathbf{w}[-(t_j - t_i)] = w(v_i, v_j),

so that when step t_j arrives, the value produced at t_i sits exactly t_j - t_i slots back in the context and contributes w(v_i,v_j)\,C_i(\mathbf{x}) to the preactivation β€” precisely the term in the circuit's definition.

For this to be consistent, all pairwise differences t_j - t_i must be distinct, and similarly all sums t_i + t'_q (for input positions t'_q) must be distinct. A set of integers with all pairwise differences distinct is a Golomb ruler; with all pairwise sums distinct, a Sidon set β€” and these are the same thing. The classical ErdΕ‘s–TurΓ‘n construction gives a Sidon set of size 2s whose largest element is O(s^2): take \{2px + (x^2 \bmod p)\} for a prime p \approx 2s. Use the first s elements as input positions, the last s as gate steps, and you get T = O(s^2) generation steps with zero collisions. Depth never enters the argument β€” only the number of gates does.

Shared weight vector w (fixed, right-aligned) w(2,3) w(1,3) w(1,2) offset 1 offset 11 Generated stream at step t₃ (slides right-to-left each step) C₂(x) C₁(x) 0 0 t₃−t₂ t₃−t₁ σ(⋅) Why no collisions: gate steps t₁, t₂, ..., tₛ come from a Sidon set All differences t₭ − tᵢ are distinct ⇒ every circuit edge owns a unique coordinate of w. Erdős–Turán gives s such steps inside [1, O(s²)] ⇒ T = O(s²), independent of depth.
The weight vector is a fixed ruler; generated values are a conveyor belt sliding one slot per step. The value of gate $v_i$, emitted at step $t_i$, meets coordinate $\mathbf{w}[-(t_j-t_i)]$ exactly when gate $v_j$ fires at step $t_j$. Sidon spacing guarantees each (producer, consumer) pair gets a private slot.

Two remaining mechanics make the induction go through. First, biases: the feature map plants a single 1 that slides along a dedicated block \mathbf{v} of the weight vector, delivering bias \theta_i at step t_i. Second, silence between gates: at every undesignated step, the aligned coordinate of \mathbf{v} is a huge negative constant, pushing the preactivation below the activation's zero region so the neuron outputs exactly 0 β€” these zeros slide through the context harmlessly. This exact-zero trick needs activations like threshold and ReLU (\sigma(z)=0 for z \le c_\sigma); for sigmoid/GELU/SiLU, which only decay to zero, the paper gets an \varepsilon-approximate version by driving the suppression constant far enough negative and controlling error propagation via local Lipschitzness.

The resulting bounds: dimension d = O(ns + s^2) and T = O(s^2) for a size-s circuit on n inputs. The dimension matches the worst-case weight count of the circuit (ns input edges plus \binom{s}{2} internal edges), so you shouldn't expect better. For T, the paper proves \Omega(s^2) is necessary β€” but only for "directly edge-aligned" simulations (where each gate value is emitted once and consumed via the offset mechanism above, as in all known constructions): a depth-L path of distinct edge weights forces L-1 distinct step gaps, hence T \ge 1 + \binom{L}{2}. Whether a cleverer, non-aligned scheme can hit T = O(s) is explicitly open.

Composing with the classical simulation of Turing machines by threshold circuits: a single autoregressive threshold neuron simulates any poly-time Turing machine with \tilde{O}(n\tau + \tau^2) dimension and \tilde{O}(\tau^2) steps for runtime \tau(n). One honest caveat baked into all of this: there is a fixed input feature map \phi_{n,s} (poly-time computable, independent of the specific circuit) that lays out the input bits at Sidon positions. The "single neuron" claim is about the recurrent computation, not about preprocessing-free universality.

The learning side: CoT makes it easy, E2E makes it cryptographically hard

Here's where the construction pays off beyond expressivity. The simulation has a CoT-preservation property: the generated trajectory contains every intermediate gate value at a known step and zeros elsewhere. So a full trajectory is just T labeled (prefix β†’ next token) examples for the same shared neuron. For thresholds, finding consistent weights is a linear program; combined with VC bounds for autoregressive linear thresholds, you get: a single threshold neuron is efficiently PAC-learnable from complete CoT traces of any poly-time Turing machine (Corollary 2). For ReLU, consistency is a linear feasibility problem (equality where the target activation is positive, \le 0 where it's zero), and an unrolling argument bounds the VC dimension by O(dT^2 \log(dT)).

The converse is just as clean. Because the simulation now has only polynomial overhead for arbitrary poly-time computation, the hardness reduction goes through from the weakest standard cryptographic assumption: if one-way functions exist, autoregressive linear thresholds are not efficiently learnable from end-to-end supervision (input and final answer only). Prior work needed stronger assumptions because its exponential-in-depth simulation only covered constant-depth circuits. So the same model class flips from efficiently learnable to intractable depending solely on whether intermediate computation is exposed β€” expressivity is constant across the comparison; only supervision changes.

The CIFAR-10 illustration

The experiment is a sanity check that the mechanism works outside exact arithmetic. Take a 4-stage ReLU CNN teacher (72.15% on CIFAR-10, ~243k parameters after folding batch norm), record its complete activation traces (4,096 hidden ReLU values + 10 logits per image) on 4,000 images, serialize them with the Sidon construction, and train the shared student weights with Adam on a convex per-step loss β€” no access to teacher weights. Five minutes on one GPU.

CIFAR-10: single AR neuron student vs. CNN teacherpercent02040608010072.272.1Test accuracy10099.5Teacher agreementCNN teacher (45k images)AR neuron student (4k traces)Tables 1 and 3 of the paper; student numbers are means over 5 seeds (std ≀ 0.07 points). Teacher agreement for the teacher is trivially 100%.

The student matches the teacher's predictions on 99.48% of test images and its accuracy to within 0.05 points, with free-running logit RMSE of 0.024. Impressive-sounding β€” but read the fine print in Appendix F. The student is given the teacher's architecture, sparsity pattern, and convolutional weight tying; only the ~244k coefficient values are learned, and the loss (with fixed teacher prefixes) is convex. This is not evidence that gradient descent on a generic dense AR neuron discovers such solutions, and it's certainly not evidence about real CoT text. It's a demonstration that the serialization is numerically stable and that complete activation supervision turns a deep network's function into a tractable fitting problem. The authors are upfront that it's an "illustration."

What this changes, and what it doesn't

The genuinely new idea is the collision-free serialization via Sidon sets. It resolves the open problem from Joshi et al. β€” depth-independence where the previous bound was O(s^L) β€” and it does so with a proof you can hold in your head. The framing it supports is worth internalizing: in time-invariant autoregression, the generation schedule is itself a computational resource, and additive combinatorics is the right language for allocating it. The neuron does essentially nothing; the choreography does everything.

The conceptual takeaway for people thinking about CoT and distillation: expressivity of the next-token predictor is nearly irrelevant to what an autoregressive system can compute β€” a one-neuron predictor captures P/poly. What matters is the match between the intermediate supervision and what the predictor can represent per step. The paper's own gloss connects this to reasoning distillation: suitably structured teacher traces can make a task learnable by a drastically simpler student, and one could imagine co-designing traces and student architectures. That's a research direction, not a result, but it's a well-motivated one.

What to be skeptical about. The "single neuron" carries O(ns + s^2) weights β€” as many parameters as the circuit it simulates β€” so there is no compression; the result is about parameter sharing across time, not parameter count. The feature map does real (if simple) work laying out inputs. The learnability results require complete traces β€” every intermediate value, in the right order β€” which is a far stronger oracle than natural-language CoT; nothing here says noisy or partial reasoning traces suffice. The \Omega(s^2) lower bound on generation length is conditional on the direct-edge-alignment assumption. And the gap flagged in the triage note is real: expressivity plus LP-learnability-from-perfect-traces says little about what SGD on realistic data finds.

Where to spend your time: Section 3.3 plus the proof in Appendix C.1 β€” the full construction (bias block, input blocks, suppression constant, Sidon scheduling) is about three pages and is the paper's heart. Section 4 is worth a skim for the crisp CoT-easy/E2E-hard dichotomy; the ErdΕ‘s–TurΓ‘n construction in Claim 1 is a pleasant two-paragraph detour if you've never seen why \{2px + x^2 \bmod p\} is Sidon.