Lune

ICLR2024Top-tier venue

SGD Finds then Tunes Features in Two-Layer Neural Networks with near-Optimal Sample Complexity: A Case Study in the XOR problem

Margalit Glasgow

Abstract

In this work, we consider the optimization process of minibatch stochastic gradient descent (SGD) on a 2-layer neural network with data separated by a quadratic ground truth function. We prove that with data drawn from the dd-dimensional Boolean hypercube labeled by the quadratic ``XOR'' function y=−xixjy = -x_ix_j, it is possible to train to a population error o(1)o(1) with d polylog(d)d \:\text{polylog}(d) samples. Our result considers simultaneously training both layers of the two-layer-neural network with ReLU activations via standard minibatch SGD on the logistic loss. To our knowledge, this work is the first to give a sample complexity of O~(d)\tilde{O}(d) for efficiently learning the XOR function on isotropic data on a standard neural network with standard training. Our main technique is showing that the network evolves in two phases: a signal-finding\textit{signal-finding} phase where the network is small and many of the neurons evolve independently to find features, and a signal-heavy\textit{signal-heavy} phase, where SGD maintains and balances the features. We leverage the simultaneous training of the layers to show that it is sufficient for only a small fraction of the neurons to learn features, since those neurons will be amplified by the simultaneous growth of their second layer weights.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

21 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On the Complexity of Learning Sparse Functions with Statistical and Gradient Queries cites Learning single-index models with shallow neural networks
  • Neural network learns low-dimensional polynomials with SGD near the information-theoretic limit cites Learning single-index models with shallow neural networks
  • Neural network learns low-dimensional polynomials with SGD near the information-theoretic limit cites Beyond Linearization: On Quadratic and Higher-Order Approximation of Wide Neural Networks
  • Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit cites Learning Parities with Neural Networks
  • Learning single-index models with shallow neural networks cites Gradient Descent Maximizes the Margin of Homogeneous Neural Networks
  • Learning single-index models with shallow neural networks cites Beyond Linearization: On Quadratic and Higher-Order Approximation of Wide Neural Networks
  • Saddle-to-Saddle Dynamics Explains A Simplicity Bias Across Neural Network Architectures cites Alternating Gradient Flows: A Theory of Feature Learning in Two-layer Neural Networks
  • RL for Reasoning by Adaptively Revealing Rationales cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Alternating Gradient Flows: A Theory of Feature Learning in Two-layer Neural Networks cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers21

  1. Neural network learns low-dimensional polynomials with SGD near the information-theoretic limitJason D. Lee, Kazusato Oko, Taiji Suzuki, Denny WuNeurIPS 2024 · 49 citations
  2. RL for Reasoning by Adaptively Revealing RationalesMohammad Hossein Amani, Aryo Lotfi, Nicolas Baldwin, Samy Bengio et al.ICLR 2026 · 19 citations
  3. On the Complexity of Learning Sparse Functions with Statistical and Gradient QueriesNirmit Joshi, Theodor Misiakiewicz, Nati SrebroNeurIPS 2024 · 16 citations
  4. Saddle-to-Saddle Dynamics Explains A Simplicity Bias Across Neural Network ArchitecturesYedi Zhang, Andrew M. Saxe, Peter E. LathamICLR 2026 · 15 citations
  5. Alternating Gradient Flows: A Theory of Feature Learning in Two-layer Neural NetworksDaniel Kunin, Giovanni Luca Marchetti, Feng Chen, Dhruva Karkada et al.NeurIPS 2025 · 15 citations

Builds on17

  1. Gradient Descent Maximizes the Margin of Homogeneous Neural NetworksKaifeng Lyu, Jian LiICLR 2020 · 402 citations
  2. Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational LimitBoaz Barak, Benjamin L. Edelman, Surbhi Goel, Sham M. Kakade et al.NeurIPS 2022 · 220 citations
  3. Beyond Linearization: On Quadratic and Higher-Order Approximation of Wide Neural NetworksYu Bai, Jason D. LeeICLR 2020 · 128 citations
  4. Learning single-index models with shallow neural networksAlberto Bietti, Joan Bruna, Clayton Sanford, Min Jae SongNeurIPS 2022 · 119 citations
  5. Learning Parities with Neural NetworksAmit Daniely, Eran MalachNeurIPS 2020 · 104 citations

Related papers

  1. Benign Overfitting in Two-Layer ReLU Convolutional Neural Networks for XOR DataXuran Meng, Difan Zou, Yuan CaoICML 2024 · 11 citations
  2. Early Neuron Alignment in Two-layer ReLU Networks with Small InitializationHancheng Min, Enrique Mallada, René VidalICLR 2024 · 31 citations
  3. Benign Overfitting and Grokking in ReLU Networks for XOR Cluster DataZhiwei Xu, Yutong Wang, Spencer Frei, Gal Vardi et al.ICLR 2024 · 39 citations
  4. Towards Understanding Learning in Neural Networks with Linear TeachersRoei Sarussi, Alon Brutzkus, Amir GlobersonICML 2021 · 24 citations
  5. Matching the Statistical Query Lower Bound for k-Sparse Parity Problems with Sign Stochastic Gradient DescentYiwen Kou, Zixiang Chen, Quanquan Gu, Sham M. KakadeNeurIPS 2024 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines