Gradient Dynamics of Shallow Univariate ReLU Networks

Francis Williams, Matthew Trager, Cláudio T. Silva, Daniele Panozzo, Denis Zorin, Joan Bruna

Abstract

We present a theoretical and empirical study of the gradient dynamics of overparameterized shallow ReLU networks with one-dimensional input, solving least-squares interpolation. We show that the gradient dynamics of such networks are determined by the gradient flow in a non-redundant parameterization of the network function. We examine the principal qualitative features of this gradient flow. In particular, we determine conditions for two learning regimes: kernel and adaptive, which depend both on the relative magnitude of initialization of weights in different layers and the asymptotic behavior of initialization coefficients in the limit of large network widths. We show that learning in the kernel regime yields smooth interpolants, minimizing curvature, and reduces to cubic splines for uniform initializations. Learning in the adaptive regime favors instead linear splines, where knots cluster adaptively at the sample points.

Introduction

Despite the ubiquity of deep learning, a precise mathematical description of how network parameters evolve during training remains elusive. Two primary theoretical frameworks have emerged: the Kernel Regime (or "lazy training"), where the network behaves like a linear model and weights remain near their initial values, and the Adaptive Regime (or "active/mean-field" regime), where weights move significantly to learn features. This paper bridges these views by analyzing shallow ReLU networks with one-dimensional inputs, identifying the fundamental "knobs" that control the transition between these behaviors.

Theoretical Framework: Canonical Parameterization

To analyze the training dynamics of a two-layer ReLU network, the researchers introduce a "canonical parameterization." This approach shifts the perspective from tracking individual weights to treating the collection of neurons as a density of particles (an Eulerian perspective). By employing Wasserstein Gradient Flows, the study describes the movement of this "neuron mass" over time.

A critical discovery is the identification of an invariant, $\delta$, derived from the initial weights of each neuron. This value remains constant throughout training and serves as the primary determinant of the network's learning regime. In the infinite-width limit, mean-field theory reveals how this $\delta$ dictates the qualitative behavior of the system.

The Regimes of Learning: From Cubic to Linear Splines

The research identifies two distinct qualitative behaviors based on the initialization invariant $\delta$:

  1. The Kernel Regime ($\delta \ll 0$): When second-layer weights are initialized significantly larger than the first-layer weights, the network minimizes a form of linearized curvature. Under uniform initialization, this regime converges to a cubic spline, producing exceptionally smooth interpolants.
  2. The Adaptive Regime ($\delta \gg 0$): In this regime, the network behaves as an adaptive linear spline. Neurons migrate toward data points with high residuals, causing the "knots" of the ReLU functions to cluster where the function is hardest to fit.
Gradient flow streamlines illustrating the transition from the kernel regime ($\delta = -100$) to the adaptive regime ($\delta = 100$).

Results and Discussion

The authors provide a formal proof (Theorem 5) that uniform initialization in the kernel regime leads to cubic spline convergence. They also clarify that the scaling factor $\alpha(m)$ relative to the number of neurons $m$ determines whether the network remains "lazy" (following Neural Tangent Kernel behavior) or becomes "active."

Qualitative visualizations in the "uv-plane" demonstrate these dynamics. In the kernel regime, neurons move primarily radially. In contrast, the adaptive regime shows neurons clustering along specific lines that correspond to the locations of data points in the input space.

Neuron dynamics in the uv-plane, showing how data points act as attractors, leading to knot clustering in the adaptive regime.

Conclusion

This study provides an intuitive "physics-based" look at neural network training. It demonstrates that the choice between a smooth, kernel-like fit and an adaptive, feature-learning fit is largely determined by initialization parameters. While currently limited to univariate, shallow architectures, this work lays the groundwork for understanding more complex, high-dimensional, and deep networks by identifying the fundamental mechanisms of gradient flow and parameter invariants.

Summary updated

BibTeX
@inproceedings{williams2019gradient,
  author = {Francis Williams and Matthew Trager and Cláudio T. Silva and Daniele Panozzo and Denis Zorin and Joan Bruna},
  title = {{Gradient Dynamics of Shallow Univariate ReLU Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
}
Figure