Lune

ICLR2024Top-tier venue

Benign Overfitting and Grokking in ReLU Networks for XOR Cluster Data

Zhiwei Xu, Yutong Wang, Spencer Frei, Gal Vardi, Wei Hu

Abstract

Neural networks trained by gradient descent (GD) have exhibited a number of surprising generalization behaviors. First, they can achieve a perfect fit to noisy training data and still generalize near-optimally, showing that overfitting can sometimes be benign. Second, they can undergo a period of classical, harmful overfitting -- achieving a perfect fit to training data with near-random performance on test data -- before transitioning ("grokking") to near-optimal generalization later in training. In this work, we show that both of these phenomena provably occur in two-layer ReLU networks trained by GD on XOR cluster data where a constant fraction of the training labels are flipped. In this setting, we show that after the first step of GD, the network achieves 100% training accuracy, perfectly fitting the noisy labels in the training data, but achieves near-random test accuracy. At a later training step, the network achieves near-optimal test accuracy while still fitting the random labels in the training data, exhibiting a"grokking"phenomenon. This provides the first theoretical result of benign overfitting in neural network classification when the data distribution is not linearly separable. Our proofs rely on analyzing the feature learning process under GD, which reveals that the network implements a non-generalizable linear classifier after one step and gradually learns generalizable features in later steps.

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.

27 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

  • Deep Networks Always Grok and Here is Why cites Progress measures for grokking via mechanistic interpretability
  • Deep Networks Always Grok and Here is Why cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking cites Towards Understanding Grokking: An Effective Theory of Representation Learning
  • Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking cites Progress measures for grokking via mechanistic interpretability
  • Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Progress measures for grokking via mechanistic interpretability cites Towards Understanding Grokking: An Effective Theory of Representation Learning
  • Progress measures for grokking via mechanistic interpretability cites Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limit
  • Grokking Group Multiplication with Cosets cites Progress measures for grokking via mechanistic interpretability
  • From Tempered to Benign Overfitting in ReLU Neural Networks cites Benign Overfitting in Two-layer Convolutional Neural Networks
  • Going Beyond Linear Mode Connectivity: The Layerwise Linear Feature Connectivity cites Benign Overfitting in Two-layer Convolutional Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers27

  1. Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce GrokkingKaifeng Lyu, Jikai Jin, Zhiyuan Li, Simon Shaolei Du et al.ICLR 2024 · 71 citations
  2. Going Beyond Linear Mode Connectivity: The Layerwise Linear Feature ConnectivityZhanpeng Zhou, Yongyi Yang, Xiaojiang Yang, Junchi Yan et al.NeurIPS 2023 · 56 citations
  3. Deep Networks Always Grok and Here is WhyAhmed Imtiaz Humayun, Randall Balestriero, Richard G. BaraniukICML 2024 · 53 citations
  4. Unveil Benign Overfitting for Transformer in Vision: Training Dynamics, Convergence, and GeneralizationJiarui Jiang, Wei Huang, Miao Zhang, Taiji Suzuki et al.NeurIPS 2024 · 21 citations
  5. Grokking Group Multiplication with CosetsDashiell Stander, Qinan Yu, Honglu Fan, Stella BidermanICML 2024 · 20 citations

Builds on8

  1. Towards Understanding Grokking: An Effective Theory of Representation LearningZiming Liu, Ouail Kitouni, Niklas Nolte, Eric J. Michaud et al.NeurIPS 2022 · 299 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. Benign Overfitting in Two-layer Convolutional Neural NetworksYuan Cao, Zixiang Chen, Misha Belkin, Quanquan GuNeurIPS 2022 · 121 citations
  4. Progress measures for grokking via mechanistic interpretabilityNeel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith et al.ICLR 2023 · 54 citations
  5. From Tempered to Benign Overfitting in ReLU Neural NetworksGuy Kornowski, Gilad Yehudai, Ohad ShamirNeurIPS 2023 · 18 citations

Related papers

  1. Training shallow ReLU networks on noisy data using hinge loss: when do we overfit and is it benign?Erin George, Michael Murray, William Swartworth, Deanna NeedellNeurIPS 2023 · 9 citations
  2. Benign Overfitting in Two-Layer ReLU Convolutional Neural Networks for XOR DataXuran Meng, Difan Zou, Yuan CaoICML 2024 · 11 citations
  3. Benign Overfitting in Two-layer ReLU Convolutional Neural NetworksYiwen Kou, Zixiang Chen, Yuanzhou Chen, Quanquan GuICML 2023 · 32 citations
  4. Grokking at the Edge of Linear SeparabilityAlon Beck, Noam Itzhak Levi, Yohai Bar-SinaiICML 2025
  5. Benign overfitting in leaky ReLU networks with moderate input dimensionKedar Karhadkar, Erin George, Michael Murray, Guido F. Montúfar et al.NeurIPS 2024 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines