Skip to main content
QUICK REVIEW

[Paper Review] A law of robustness for two-layers neural networks

Sébastien Bubeck, Yuanzhi Li|arXiv (Cornell University)|Sep 30, 2020
Neural Networks and ApplicationsComputer Science22 references8 citations
TL;DR

This paper proposes a conjecture that two-layer neural networks must have a Lipschitz constant on the order of $\sqrt{n/k}$ to perfectly fit generic data, implying that robustness requires overparametrization—specifically, $k \approx n$ neurons for $O(1)$ Lipschitz continuity, even though only $k \approx n/d$ neurons are needed for basic data fitting. The authors prove weaker versions of the conjecture for spectral norm bounds, high-dimensional regimes ($n \approx d$), and polynomial activations, supported by experiments showing a linear relationship between the maximum gradient and $\sqrt{n/k}$.

ABSTRACT

We initiate the study of the inherent tradeoffs between the size of a neural network and its robustness, as measured by its Lipschitz constant. We make a precise conjecture that, for any Lipschitz activation function and for most datasets, any two-layers neural network with $k$ neurons that perfectly fit the data must have its Lipschitz constant larger (up to a constant) than $\sqrt{n/k}$ where $n$ is the number of datapoints. In particular, this conjecture implies that overparametrization is necessary for robustness, since it means that one needs roughly one neuron per datapoint to ensure a $O(1)$-Lipschitz network, while mere data fitting of $d$-dimensional data requires only one neuron per $d$ datapoints. We prove a weaker version of this conjecture when the Lipschitz constant is replaced by an upper bound on it based on the spectral norm of the weight matrix. We also prove the conjecture in the high-dimensional regime $n \approx d$ (which we also refer to as the undercomplete case, since only $k \leq d$ is relevant here). Finally we prove the conjecture for polynomial activation functions of degree $p$ when $n \approx d^p$. We complement these findings with experimental evidence supporting the conjecture.

Motivation & Objective

  • To investigate the fundamental tradeoff between neural network size and robustness, measured by the Lipschitz constant.
  • To determine whether overparametrization is necessary for robustness in two-layer ReLU networks trained on generic data.
  • To formalize and prove partial versions of a conjecture linking network size $k$, data size $n$, and the minimal achievable Lipschitz constant.
  • To provide theoretical and empirical evidence that robustness requires significantly more parameters than mere data fitting.

Proposed method

  • Propose a conjecture stating that any two-layer network perfectly fitting generic data must have a Lipschitz constant at least $\Omega(\sqrt{n/k})$ for Lipschitz activation functions.
  • Prove a weaker version of the conjecture by bounding the Lipschitz constant via the spectral norm of the weight matrix.
  • Establish the conjecture in the high-dimensional regime where $n \approx d$, using concentration of measure and tensor decomposition techniques.
  • Prove the conjecture for polynomial activation functions of degree $p$ when $n \approx d^p$, leveraging Markov brothers' inequality and tensor norm lower bounds.
  • Use empirical training of ReLU networks with batch normalization and Adam optimization to measure the maximum gradient as a proxy for the Lipschitz constant.
  • Conduct two experiments: (1) varying $n/k$ to test the $\sqrt{n/k}$ scaling, and (2) comparing $k=n$ vs. $k=10n/d$ to validate the robustness vs. size tradeoff.

Experimental results

Research questions

  • RQ1Is overparametrization necessary for robustness in two-layer neural networks trained on generic data?
  • RQ2What is the minimal achievable Lipschitz constant for a two-layer network that perfectly fits $n$ data points with $k$ neurons?
  • RQ3How does the required network size for $O(1)$ Lipschitz continuity scale with data size $n$ and input dimension $d$?
  • RQ4Can the conjectured $\sqrt{n/k}$ lower bound on the Lipschitz constant be proven under specific conditions such as polynomial activations or high-dimensional settings?
  • RQ5Does empirical training of ReLU networks confirm the predicted linear dependence between the maximum gradient and $\sqrt{n/k}$?

Key findings

  • The conjecture implies that robustness requires $k \approx n$ neurons, while data fitting alone requires only $k \approx n/d$, indicating a $d$-fold overparametrization cost for robustness.
  • For polynomial activations of degree $p$, the conjecture holds when $n \approx d^p$, with the Lipschitz constant lower bounded by $\Omega(\sqrt{n/k})$.
  • In the high-dimensional regime ($n \approx d$), the conjecture is proven, showing that $k \approx n$ neurons are necessary for $O(1)$ Lipschitz continuity.
  • The spectral norm-based bound proves a weaker version of the conjecture, showing $\|T\|_{\mathrm{op}} \geq c \frac{\sqrt{nd}}{k}$ for rank-$k$ matrices fitting the data.
  • Experiments confirm a linear trend between the maximum gradient (proxy for Lipschitz constant) and $\sqrt{n/k}$, supporting the conjecture empirically.
  • When $k = n$, the maximum gradient remains approximately constant as $\sqrt{d}$ increases, while for $k = 10n/d$, the gradient grows linearly with $\sqrt{d}$, validating the theoretical tradeoff.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.