On the VC Dimension of Autoregressive Linear Threshold Functions

Ilan Doron-Arad, Idan Mehalel, Elchanan MosselarXiv 2026

TL;DR

This paper settles a long-standing question about the statistical complexity of autoregressive models. The authors prove that deterministic autoregressive linear threshold functions (LTFs) have a VC dimension of $\Theta(d^2)$, closing a quadratic gap, and remarkably show that adding a tiny bit of stochasticity (logistic sampling) can explode this complexity to exponential levels ($\Omega(2^d)$).

What Problem Does This Paper Address?

Autoregressive models—the backbone of modern Large Language Models (LLMs)—work by repeatedly predicting the next token based on a fixed window of previous tokens. A fundamental question in machine learning theory is: How "flexible" or "complex" is such a model?

In technical terms, we want to know the VC dimension of these models. The VC dimension measures the largest set of inputs that a model class can "shatter" (assign any arbitrary combination of labels to). For a standard, single-step Linear Threshold Function (LTF) with $d$ inputs, the VC dimension is exactly $d$. However, when you feed the output of an LTF back into itself for $T$ steps, the complexity can grow.

Previously, it was known that the VC dimension was at most $O(d^2)$, but the best known lower bound was only linear ($\Omega(d)$). This paper aims to resolve this "quadratic gap" and explore how stochasticity (randomness in token generation) changes the game.

Methods

The authors use a constructive proof technique. They show how to "program" a single, fixed LTF to perform a complex recursive computation that extracts information hidden in its own weights.

  1. Deterministic Construction: They design a recursive process where an LTF acts like a simple computer. It uses some bits of its $d$-bit memory to store a "row index," some to store "output bits" (recovered labels), and some as a "pointer" to the next bit to be extracted.
  2. The labels to be shattered are encoded into the LTF's weights.
  3. By carefully choosing the input strings, they force the LTF to run this "extraction program" over $T$ steps to produce the desired label.
  4. To make this work with a single LTF (rather than a sequence of different ones), they use a "block encoding" technique where one LTF update transforms an entire state block into the next.
One round of the recursion. The LTF copies row bits, performs a test to extract a bit from the weights, writes it to the output, and shifts the pointer.
  1. Stochastic Construction: They replace the hard "sign" function of the LTF with logistic sampling (the sigmoid function). Here, they encode exponentially many labels into a single real number. They show that by repeatedly sampling from a logistic gate, the probability of the final state can be made to oscillate around $1/2$ in a way that reveals the hidden labels.

Datasets

As a theoretical paper focused on proving mathematical bounds, no empirical datasets were used. The "data" consists of constructed sets of binary strings in $\{0, 1\}^d$ used to demonstrate shattering.

Key Insights and Ideas

  • The Quadratic Limit of Determinism: For deterministic models, the memory is strictly limited to the $d$ bits in the input window. This physical constraint limits the VC dimension to $O(d^2)$. The authors show this bound is tight: you can actually reach $\Theta(d^2)$ by using the memory efficiently to "loop" through weights.
  • Stochasticity as a Complexity Multiplier: The most surprising "aha moment" is that moving from deterministic to stochastic generation doesn't just add a little noise—it fundamentally changes the model's capacity. Stochastic models can "smuggle" infinite precision information through probabilities, allowing them to shatter an exponential number of points.
  • CoT vs. e2e Supervision: The results highlight a massive "statistical gap." If you see all intermediate steps (Chain-of-Thought), the complexity is linear in $d$. If you only see the final answer (end-to-end), the complexity jumps to quadratic or even exponential. This explains why training on intermediate reasoning steps is so much more efficient.
Implementation of the recursion using a single LTF. The state is encoded in a block, and the LTF generates the next block bit-by-bit.

Key Results

  • Theorem 1 (Deterministic): For $T \ge d^2$, the VC dimension of autoregressive LTFs is $\Omega(d^2)$. Specifically, they prove a lower bound of $d^2 / 30242$. This resolves the quadratic gap.
  • Theorem 2 (Stochastic): For the majority class of stochastic autoregressive generators (using the canonical logistic model), the VC dimension is exponential in $d$ ($\Omega(2^{cd})$ for some constant $c$).
  • Pseudo-dimension: The authors also show that the pseudo-dimension of the underlying probability class is $2^{\Omega(d)}$, contrasting sharply with the $O(d^2)$ deterministic bound.

Limitations and Future Work

  • Large Constants: The constant factor in the deterministic lower bound ($1/30242$) is quite small, suggesting that while the scaling is $d^2$, the practical "shattering power" for small $d$ might be limited.
  • Long Horizons: The exponential VC dimension for stochastic models requires a very large number of steps $T$ (exponential in $d$). Whether this exponential complexity persists for smaller, more practical values of $T$ remains an open question.
  • Weight Precision: The constructions rely on weights with high precision (polynomial bit length for deterministic, even higher for stochastic). Exploring the VC dimension under restricted weight precision (e.g., 8-bit weights) would be a natural next step for the community.

Summary updated

Abstract

Linear threshold functions (LTFs) are a canonical class of Boolean predictors. In the autoregressive setting, the same LTF reads the most recent $d$ bits, generates the next bit, and returns the bit produced after $T$ steps. While the one-step class has VC dimension $d$, for general $T$ the counting upper bound is $O(d^2)$. We prove that the VC dimension is $Θ(d^2)$ for every $T\ge 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 $d$.
BibTeX
@misc{doronarad2026vc,
  author = {Ilan Doron-Arad and Idan Mehalel and Elchanan Mossel},
  title = {{On the VC Dimension of Autoregressive Linear Threshold Functions}},
  year = {2026},
  eprint = {2610.36970},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.36970},
}
Figure