Ridgeless Interpolation with Shallow ReLU Networks in $1D$ is Nearest Neighbor Curvature Extrapolation and Provably Generalizes on Lipschitz Functions

Boris Hanin

Introduction

A central mystery in deep learning is why overparameterized models—which possess far more parameters than data points—generalize so well to unseen data instead of simply memorizing noise. Traditional statistical learning theory suggests that strong regularization is necessary to avoid overfitting. However, neural networks often interpolate (fit perfectly) the training data and still perform remarkably well.

This phenomenon is attributed to "implicit bias": the tendency of optimization algorithms, such as gradient descent with weight decay, to select specific types of functions from the infinite set of possible interpolants. This paper provides a precise geometric characterization of this bias for shallow ReLU networks in a 1D setting, a regime known as "ridgeless interpolation."

The Implicit Bias of Weight Decay

The study focuses on a one-hidden-layer ReLU network with 1D input and output. The objective is to describe the function learned when minimizing the $\ell_2$ norm of the weights while perfectly interpolating a dataset $\mathcal{D} = \{(x_i, y_i)\}_{i=1}^m$.

Prior research has shown that minimizing the $\ell_2$ weight norm in shallow ReLU networks is functionally equivalent to minimizing the Total Variation (TV) of the network's derivative. Intuitively, the network attempts to be as "flat" as possible, changing its slope only when strictly necessary to pass through the data points. This leads to a piecewise linear function with a minimal number of "kinks."

Geometric Characterization: Nearest Neighbor Curvature Extrapolation

The core contribution of the paper is a set of rules determining the network's behavior on any interval $(x_i, x_{i+1})$ between two data points. This behavior is driven by "discrete curvature" estimates ($\epsilon_i$) at each data point, calculated from the slopes $s_i$ of the lines connecting adjacent points.

Figure 1: Discrete curvature $\epsilon_i$ and slopes $s_i$ for a 1D dataset. The network's behavior on each interval is determined by the agreement of curvatures at the endpoints.

The network follows a Nearest Neighbor Curvature Extrapolation rule:

  • Linearity by Default: If the discrete curvatures at $x_i$ and $x_{i+1}$ have different signs (e.g., one is convex and the other concave), the network draws a straight line between them. This avoids introducing unnecessary oscillations.
  • Curvature Agreement: If both points agree that the data is convex ($\epsilon_i = \epsilon_{i+1} = 1$) or concave ($\epsilon_i = \epsilon_{i+1} = -1$), the network will maintain that convexity or concavity on the interval. Specifically, it stays "below" the straight-line interpolant if the data is convex and "above" if it is concave.
  • Minimal Oscillation: This strategy ensures the function doesn't "wiggle" more than required by the surrounding data points.

Generalization and Optimality

This specific geometric structure is not just a mathematical curiosity; it is the key to proving strong generalization bounds. For a dataset of $m$ points sampled from an underlying $L$-Lipschitz function $f_*$ on $[0,1]$, the paper proves that the error of any ridgeless ReLU interpolant $f$ is bounded by:

$$\sup_{x \in [0,1]} |f(x) - f_*(x)| \leq \frac{2L}{m}$$

This rate of $O(L/m)$ is the best possible rate for learning Lipschitz functions, confirming that the implicit bias of weight decay is "smart" enough to recover the underlying function with high accuracy as the sample size increases.

Conclusion and Future Work

While this work provides a complete picture for 1D shallow networks, several challenges remain for future research:

  • High-Dimensional Inputs: In higher dimensions, the total variation of the derivative is related to the Radon transform, making the geometric intuition significantly more complex.
  • Deep Networks: Deep architectures introduce different types of implicit biases that are not yet fully characterized in this geometric way.
  • Optimization Dynamics: While the paper describes the global minimum of the regularized cost, proving that gradient descent always converges to these specific interpolants remains an active area of investigation.

Summary updated

BibTeX
@misc{hanin2021ridgeless,
  author = {Boris Hanin},
  title = {{Ridgeless Interpolation with Shallow ReLU Networks in $1D$ is Nearest Neighbor Curvature Extrapolation and Provably Generalizes on Lipschitz Functions}},
  year = {2021},
  eprint = {2109.12960},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2109.12960},
}
Figure