Gradient descent learns simple relu classifiers on hard data

A Minimal ReLU Classifier on Non-Linearly Separable Data: Convergence and Implicit Bias at and beyond the Edge of Stability

Machine Learning

Summary

Training neural networks can be tricky when the data isn't easily separable or the learning rates are large. The authors study a very simple neural network with two ReLU units learning from one-dimensional, non-linearly separable data. They show how the training process converges in a predictable way under these challenging conditions and reveal how certain learning rate schedules can speed up learning. Their mathematical findings also apply to more complex networks and hold up when tested on the MNIST dataset of handwritten digits.

What this means in practice

  • For machine learning engineers: Use adaptive large learning rate schedules informed by this work to train small ReLU networks effectively on non-separable data.
  • For deep learning framework developers: Incorporate training stability analyses and adaptive learning rate methods based on the edge-of-stability insights to improve optimizer implementations.

Tested on one dataset.

Authors

Quan Nguyen, Robin Yadav, Param Mody, Mark Schmidt

Abstract

Gradient descent (GD) with large learning rates can successfully optimize neural networks even though classical smoothness-based learning rate conditions are violated. Yet theory for this regime largely covers linear models or linearly separable data. We analyze a minimal setting outside both regimes. Specifically, a two-neuron ReLU network trained with logistic loss on 1D non-linearly separable data. The objective is nonconvex and nonsmooth, and GD exhibits edge-of-stability (EoS) behavior. We identify an active cone in parameter space that contains every perfect classifier, where the problem becomes piecewise logistic regression with a varying effective dataset. Within this cone, we prove a finite-time loss bound for constant learning rates and show that GD converges in direction to an explicit max-margin vector, while the orthogonal component converges to the unique minimizer of a non-strongly convex potential. We further establish catapult results where exponentially small loss is reached after a single loss spike. Furthermore, we propose an adaptive schedule that lets learning rates grow to infinity without leaving the active cone. We prove that this schedule achieves a loss rate of $O(1/(T\log{T})$, which is faster than the standard $O(1/T)$ rate. Our theoretical results extend to local convergence on more general network and are validated on MNIST dataset. Overall, we show that this setup provides a tractable neural-network model for studying large and adaptive step sizes beyond linear predictors and separable data.