about
Progress in Deep Learning: SGD Learns Parities Near the Computational Limit (arxiv.org)
2 points by nabla9 on Jan 10, 2025 | hide | past | pdf | discuss on HN

In plain words: Networks trained to find which few of n bits control a yes/no answer suddenly crack the puzzle after roughly n-to-the-k training steps, near the fastest any method could. The gradient quietly boosts the right bits all along, invisible in loss and accuracy.

Abstract · Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit

There is mounting evidence of emergent phenomena in the capabilities of deep learning methods as we scale up datasets, model sizes, and training times. While there are some accounts of how these resources modulate statistical capacity, far less is known about their effect on the computational problem of model training. This work conducts such an exploration through the lens of learning a $k$-sparse parity of $n$ bits, a canonical discrete search problem which is statistically easy but computationally hard. Empirically, we find that a variety of neural networks successfully learn sparse parities, with discontinuous phase transitions in the training curves. On small instances, learning abruptly occurs at approximately $n^{O(k)}$ iterations; this nearly matches SQ lower bounds, despite the apparent lack of a sparse prior. Our theoretical analysis shows that these observations are not explained by a Langevin-like mechanism, whereby SGD "stumbles in the dark" until it finds the hidden set of features (a natural algorithm which also runs in $n^{O(k)}$ time). Instead, we show that SGD gradually amplifies the sparse solution via a Fourier gap in the population gradient, making continual progress that is invisible to loss and error metrics.

Boaz Barak, Benjamin L. Edelman, Surbhi Goel, Sham Kakade, Eran Malach, Cyril Zhang
arXiv:2207.08799 · cs.LG, cs.NE, math.OC, stat.ML · submitted Jul 18, 2022 · updated Jan 15, 2023
abstract · pdf · html · v3: final camera-ready revisions for NeurIPS 2022

add comment on HN