arXiv:2610.36970cs.LGOct 2026

Manuscript Offprint

arXiv:2610.36970

On the VC Dimension of Autoregressive Linear Threshold Functions

Ilan Doron-Arad, Idan Mehalel, Elchanan Mossel

Abstract

Linear threshold functions (LTFs) are a canonical class of Boolean predictors. In the autoregressive setting, the same LTF reads the most recent dd bits, generates the next bit, and returns the bit produced after TT steps. While the one-step class has VC dimension dd, for general TT the counting upper bound is O(d2)O(d^2). We prove that the VC dimension is Θ(d2)\Theta(d^2) for every T≥d2T \geq d^2, resolving the quadratic gap for deterministic autoregressive LTFs. We then adapt the same technique to show an exponential separation between deterministic and stochastic autoregressive models: replacing the sign of LTFs by logistic sampling can increase the VC dimension of the final majority prediction class from quadratic to exponential in dd.

1 Introduction

Understanding recursive rules is central in mathematics, connecting number theory, probability, and dynamical systems. Known examples include the 3n+13n+1 problem [1] and random Fibonacci sequences [2], illustrating how an elementary update rule yields notoriously difficult mathematical questions.

In recent years, understanding recursive formulas has become important in large language models (LLMs). As an abstraction, an autoregressive model repeatedly applies a fixed next-token generator to the current sequence and appends the generated token. Intermediate tokens can serve as computational steps [3, 4], increasing the computational power of autoregressive models [5, 6]. To study the statistical cost of this process, Joshi et al. [7] introduced a learning framework in which a fixed generator is applied repeatedly for T steps and the last token is the answer. Training reveals either only the prompt string and the answer bit (end-to-end supervision (e2e)), or reveals all intermediate tokens (chain-of-thought supervision (CoT)). A fundamental question is to understand the statistical complexity of CoT and e2e supervision.

Perhaps the most fundamental test case for autoregressive learning from the work of Joshi et al. [7] onward has been the class of linear threshold functions (LTFs). In the studied learning problem, an LTF outputs the sign of a weighted sum over the Boolean hypercube. In our autoregressive model, the same LTF reads the most recent dd bits at every step. Its weights and threshold never change during generation. Formally, for integers d,T≥1d, T \geq 1 and w∈Qdw \in \mathbb{Q}^d, define a autoregressive linear threshold function (LTF) fwT:{0,1}d→{0,1}f_w^T : \{0,1\}^d \to \{0,1\} of dimension dd with TT autoregressive steps as follows. Given x=(x1−d,…,x0)x = (x_{1-d}, \ldots, x_0), set zt=xtz_t = x_t for 1−d≤t≤01 - d \leq t \leq 0 and

zt=1{∑ℓ=1dwℓzt−ℓ≥1}(1≤t≤T).(1)z_{t}=\mathbf{1}\left\{\sum_{\ell=1}^{d}w_{\ell}z_{t-\ell}\geq1\right\}\quad(1\leq t\leq T). \tag{1}

Here 1{A}\mathbf{1}\{A\} is the indicator function, equal to 1 when the Boolean expression AA is true and 0 otherwise. Let fwT(x)=zTf_w^T(x) = z_T and let Fd,T={fwT:w∈Qd}\mathcal{F}_{d,T} = \{f_w^T : w \in \mathbb{Q}^d\} be the class of all autoregressive LTFs with rational weights. Standard LTFs are obtained from this class by setting T=1T = 1.

For this class, a large gap remained in the VC dimension, which measures how many inputs can receive arbitrary labels and controls sample complexity in distribution-free learning [10]. Formally, a set A⊆{0,1}dA \subseteq \{0,1\}^d is shattered by Fd,T\mathcal{F}_{d,T} if, for every map λ:A→{0,1}\lambda: A \to \{0,1\}, there exists f∈Fd,Tf \in \mathcal{F}_{d,T} with f(x)=λ(x)f(x) = \lambda(x) for all x∈Ax \in A. The VC dimension is the maximum size of a set shattered by Fd,T\mathcal{F}_{d,T}. For T=1T = 1, it is well known that VCdim(Fd,1)=d\text{VCdim}(\mathcal{F}_{d,1}) = d from [11], even though the number of LTFs over the boolean cube is 2Θ(d2)2^{\Theta(d^2)} [12], and the VC dimension of a class may grow logarithmically with its size. Since every LTF uniquely determines its autoregressive trajectory, the counting bound VCdim(Fd,T)=O(d2)\text{VCdim}(\mathcal{F}_{d,T}) = O(d^2) holds for every TT. As for lower bounds, [14] proved that VCdim(Fd,T)=Ω(d)\text{VCdim}(\mathcal{F}_{d,T}) = \Omega(d) for sufficiently large TT. However, whether the VC dimension is of order dd, d2d^2, or anything in between remained open, and was asked explicitly in [7,13,14]. Thus, it remained unclear how autoregressive steps affect the VC dimension of LTFs which directly implies the sample complexity with e2e supervision. In contrast, it is known that with CoT supervision the sample complexity depends linearly on dd. The upper bound was proved in [13,15], and the lower bound in [14].

Our results. Our first main result is that, for T≥d2T \geq d^2, the VC dimension of autoregressive LTFs is Ω(d2)\Omega(d^2), substantially larger than the Θ(d)\Theta(d) VC dimension of the base (non-autoregressive) LTF class.

Theorem 1. For all integers d,T≥1d, T \geq 1 with T≥d2T \geq d^2, VCdim(Fd,T)≥d2/30242\mathrm{VCdim}(\mathcal{F}_{d,T}) \geq d^2/3024^2.

The weights used in the proof are rational numbers of polynomial bit length. Thus, a single LTF, reused without changing its parameters, can increase VC dimension from linear to quadratic. In particular, at fixed accuracy and confidence, e2e learning requires Θ(d2)\Theta(d^2) examples, whereas the analogue CoT-supervision bound is Θ(d)\Theta(d). This resolves the question of statistical separation left open in [7].

Implication for stochastic autoregressive learning. Our second result concerns stochastic autoregressive learning, replacing deterministic generation by a distribution of the next token at each step. We consider this as the canonical study case for the stochastic setting [17]. Let σ(u)=11+e−u\sigma(u) = \frac{1}{1 + e^{-u}} be the sigmoid (or logistic) function. Here, we replace the threshold in (1) by an affine logistic probability: for w∈Rdw \in \mathbb{R}^d, b∈Rb \in \mathbb{R}, and a prompt x=(x1−d,…,x0)x = (x_{1-d}, \ldots, x_0), initialize Zt=xtZ_t = x_t for 1−d≤t≤01 - d \leq t \leq 0 and sample the next token ZtZ_t by the following distribution:

Pr⁡(Zt=1∣Z1−d,…,Zt−1)=σ(b+∑ℓ=1dwℓZt−ℓ),(1≤t≤T).(2)\Pr(Z_{t}=1\mid Z_{1-d},\ldots,Z_{t-1})=\sigma\left(b+\sum_{\ell=1}^{d}w_{\ell}Z_{t-\ell}\right),\qquad(1\leq t\leq T). \tag{2}

Define the final probability by qw,b(T)(x)=Pr⁡(ZT=1∣x)q_{w,b}^{(T)}(x) = \Pr(Z_T = 1 \mid x) and the majority class by

Hd,T={x↦1{qw,b(T)(x)>1/2}:w∈Rd,b∈R}.(3)\mathcal{H}_{d,T}=\left\{x\mapsto\mathbf{1}\left\{q_{w,b}^{(T)}(x)>1/2\right\}:w\in\mathbb{R}^{d},b\in\mathbb{R}\right\}. \tag{3}

Thus, Hd,T\mathcal{H}_{d,T} consists of the deterministic majority predictions of the stochastic generators. We prove that even in this simple stochastic setting shattering exponential many points is possible, though with small margin.

Theorem 2. There are constants c,C>0c, C > 0 and d0d_0 such that for every d≥d0d \geq d_0 there is an integer T≤2CdT \leq 2^{Cd} for which VCdim(Hd,T)≥2cd\text{VCdim}(\mathcal{H}_{d,T}) \geq 2^{cd}.

Recall that the pseudo-dimension of a real valued function class Q is the largest n for which there exist inputs x1,…,xnx_1, \ldots, x_n and fixed thresholds r1,…,rnr_1, \ldots, r_n such that, for every labeling λ∈{0,1}n\lambda \in \{0,1\}^n, some q∈Qq \in \mathcal{Q} satisfies 1{q(xi)>ri}=λi\mathbf{1}\{q(x_i) > r_i\} = \lambda_i for all i∈[n]i \in [n]. In particular, Theorem 2 shows that the class {qw,b(T):w∈Rd,b∈R}\{q_{w,b}^{(T)} : w \in \mathbb{R}^d, b \in \mathbb{R}\} has pseudo-dimension 2Ω(d)2^{\Omega(d)} for some T, even with all thresholds fixed at ri=1/2r_i = 1/2, in stark contrast to the O(d2)O(d^2) bound in the deterministic setting. Previous work show qualitative differences between deterministic and stochastic autoregressive learning [14,17], but the separating constructions relied on specially designed next-token distributions. In contrast, our exponential separation holds even for the canonical logistic model, where each next token probability is a monotone function of an affine linear score.

Further related work. Joshi et al. [7] also establish a computational separation between e2e and CoT supervision: autoregressive LTFs are efficiently learnable with CoT supervision, whereas e2e learning is hard under cryptographic assumptions. Magen, Joshi, and Vardi [19] show that a single autoregressive threshold neuron can simulate threshold circuits with polynomial overhead, after a fixed encoding of the inputs. Joshi et al. [16] study learning from multiple thinkers and show that CoT supervision from even a small number of thinkers can make learning computationally hard. The autoregressive learning framework has also been extended to online prediction [14] and stochastic next-token generation [17]. Li [15] obtains optimal realizable PAC bounds for learning complete CoT trajectories over multiclass alphabets, independently of trajectory length.

References (17)