Context. Learning a -sparse parity of uniform is statistically easy (about samples) but costs any statistical-query algorithm, hence gradient descent with noisy gradients, queries, because is orthogonal to every other parity, so a partly correct guess has zero correlation with the label. Yet small networks trained by plain SGD find , with training curves that sit at chance for a long time and then drop abruptly. One explanation is that SGD finds by luck; the paper argues, by proof and experiment, against it. The population gradient at a random initialization is not zero. On each relevant coordinate it is a degree- Fourier coefficient of the neuron's derivative, and on each irrelevant one a degree- coefficient, which is smaller. That bias is of size (for sign initialization), so SGD performs a biased random walk that needs samples to separate the relevant weights from the noise, and the loss does not reflect the progress until the relevant weights dominate. A parity is the extreme non-MSP target of the merged-staircase paper; this one shows what happens at finite from a random start.
Setting. with is drawn at random, is uniform, and (label noise is handled by scaling all correlations). Training is online with a fresh batch of examples per step, step sizes and weight decay , and the prediction is . Write . A function has a -Fourier gap at if for every -subset and every -superset .
Theorem (SGD on a ReLU MLP learns sparse parities). For even and odd, there are a random initialization, step sizes and weight decays such that for every , SGD with the hinge loss on a two-layer ReLU network of width and batch size reaches expected loss at most (best iterate) within iterations. The total work is , matching the SQ lower bound up to the constant in the exponent. Theorem (low-width kernels cannot fit all parities): for an embedding into with , if some has hinge loss above for every ; since a network's NTK has dimension equal to its parameter count, the small networks here can succeed only by learning features.
Theorems (disjoint-PolyNet). Split into blocks of size , take , the correlation loss, and one relevant coordinate per block. (i) Plateau: for , on the event that the relevant initial weights have positive product (for , and with high probability for Gaussian initialization), with the first time the error is at most , so gradient flow spends all but a vanishing fraction of its time with error above . (ii) SGD at any batch size: from initialization with an adaptive step, the error falls below within steps, with probability over the initialization and over the samples.
The population gradient of one neuron is a vector of Fourier coefficients, and a Fourier gap reveals . For a neuron and the correlation loss, coordinate of the population gradient is , and since multiplying by removes from or adds it: If has a -Fourier gap at , any estimate within in sup norm has its largest entries exactly on , and Hoeffding with a union bound gives one from samples. The question becomes how large the gap is.
For a ReLU with sign weights, the gap comes from the explicit Fourier spectrum of majority. With and , the ReLU derivative is a threshold, for odd , whose coefficients are known in closed form, depend only on , vanish for even , and satisfy with . So relevant gradients exceed irrelevant ones by a factor of about , and the gap is of order , the per-sample signal SGD must accumulate. For even , are odd and the gap is nonzero; for odd an unbiased threshold has no signal at all, which is why biases are needed in practice. (My brute-force check at , gives gradient on and off it, ratio .)
One large-batch step aligns neurons with , and a convex fit of the second layer gives the parity. Neurons come in pairs with opposite output weights, so and the hinge loss has derivative ; first-layer weights are random signs and biases sit on a grid. Weight decay removes the initialization, so each neuron's new weights are its rescaled batch gradient, which by Step 2 points at : a neuron whose initial signs on agree (probability ) gets weights about on and at most off it, with the batch error. The off- errors add up inside the neuron with spread , which must stay below about because the second layer adds such neurons with weights up to , so and up to logs. An aligned neuron then computes a ramp ; with width every bias level has one, and since is a function of , alternating second-layer weights of size at most interpolate . With the first layer frozen the second-layer problem is convex, and standard SGD analysis gives loss in steps.
Why the small networks must be learning features. The paper cites the kernel bound from earlier work; for the hinge loss Bessel's inequality already gives it (this short argument is not in the paper). The parities are orthonormal, so , some has , and then once . The tangent kernel of a width- network is such a small embedding. In the other direction the SQ bound applies to SGD with noisy gradients, so is the right order.
On a disjoint-PolyNet, gradient flow is an explosion ODE, and the loss changes only at the end. Here the population gradient vanishes off the relevant coordinates, so irrelevant weights never move, and the relevant weights drive each other: All move together, and Maclaurin's inequality sandwiches the common increment between two ODEs , which for blow up in finite time: going from to takes at most . The loss lags because the error depends on , a parity of independent sign events, one per block, so with it stays above until , and the blow-up time from there gives the plateau fraction. Progress in is steady throughout, but stays near zero for almost the entire run.
SGD on the disjoint-PolyNet tracks the flow with a normalized step. The stochastic gradient differs from the population one by a martingale increment bounded by , so normalizing the step by that product makes each increment at most . Azuma-Hoeffding with a union bound keeps the irrelevant weights within of their start, and on the positive-product event an induction shows each relevant weight keeps its sign and gains at least per step, because the normalized drift is a product of ratios . The error is at most once , which takes steps at any batch size.
The experiments test random search against hidden progress. Success is robust across , , batch sizes from 1 to 1024, three initializations, three losses and fifteen architectures, from ReLU MLPs to single sinusoidal neurons and a small Transformer (trained with Adam), reaching full accuracy in at least 20% of runs within steps. The timing rules out random search: memoryless search would succeed at a geometric time, most likely at , but over PolyNet runs no early successes appear; times are concentrated given the initialization; widening an MLP up to neurons gives no -fold speedup, only a thinner upper tail; and the exponent worsens with . The hidden progress can be seen directly: separates training on parity from training on noise long before the loss moves, and measured Fourier gaps under other initializations and activations are comparable to majority's and grow during training, which no theorem covers. With a finite sample and weight decay the networks grok, and a deep quadratic network learns a 4-parity that greedy layer-wise training provably cannot.
Consequences and limits. A flat loss curve does not mean that optimization has stalled: SGD can be amplifying a tiny, systematic gradient bias that has almost no effect on the loss until the relevant parameters dominate, and the abrupt drop comes at the end of steady progress. On parities this costs , near the SQ limit, without any sparse prior, and it depends on Fourier anti-concentration of the neuron's derivative, so the activation, biases and initialization affect the computation as well as expressivity (non-smooth ReLUs give the strongest gaps). Measures such as are a concrete way to look for hidden progress, in line with Nanda and Lieberum's reading of grokking. Limits: the MLP theorem needs even , sign initialization and a batch of size in which the features appear in one step, then trains only the second layer, so it is a one-step feature-learning result; small-batch training and other initializations rest on measured, unproved Fourier gaps. The PolyNet theorems need one relevant coordinate per block and an adaptive step, and hold on an event of probability . The fitted exponents come from small , and noiseless parities are easy outside SQ, by Gaussian elimination.
Terms
- -sparse parity; orthogonal to every other
- SQ lower bound
- noisy correlation queries; covers SGD with noisy gradients
- -Fourier gap at
- for all -sets
- Gradient coordinate
- , : degree on , off
- majority coefficient; zero for even ,
- Majority gap
- Disjoint-PolyNet
- on blocks; relevant weights solve
- Plateau fraction
- Kernel bound
- leaves some parity with hinge loss above
- Progress measure
- : drift on beats noise before the loss moves
Quiz
- Why can the population gradient at a random initialization carry information about even though every partial guess has zero correlation with ?Multiplying by gives or , so the gradient compares lower-degree with higher-degree coefficients of the neuron's derivative. A Fourier gap between them makes the relevant coordinates larger, although no single neuron correlates with .
- Why does the first step need a batch of order rather than ?After the step a neuron sees plus , whose spread is . Keeping it below about needs , so .
- Why does adding width not give an -fold speedup in the experiments?If success were a lucky event per neuron, neurons would cut the expected time by . Under a deterministic drift every neuron needs about the same number of steps, so width only reduces variance, which is what widths up to show.
- What does the kernel lower bound imply for the networks studied?Bessel's inequality over the orthonormal parities leaves some with correlation at most with the embedding. A tangent kernel has dimension equal to the parameter count, so a width- network that succeeds must move its features.
Sources
- Boaz Barak, Benjamin L. Edelman, Surbhi Goel, Sham Kakade, Eran Malach, and Cyril Zhang. Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit. NeurIPS, 2022.