Skip to main content
QUICK REVIEW

[Paper Review] Memory capacity of neural networks with threshold and ReLU activations

Roman Vershynin|arXiv (Cornell University)|Jan 20, 2020
Neural Networks and ApplicationsComputer Science25 references13 citations
TL;DR

This paper resolves a 1988 open question by proving that general multilayered feedforward neural networks with threshold or ReLU activations can memorize any dataset of size K when the number of connections exceeds K, using a probabilistic construction that exploits sparsity. The key contribution is a general proof of memorization capacity for hybrid architectures, extending prior results on sigmoid and ReLU networks.

ABSTRACT

Overwhelming theoretical and empirical evidence shows that mildly overparametrized neural networks -- those with more connections than the size of the training data -- are often able to memorize the training data with $100\%$ accuracy. This was rigorously proved for networks with sigmoid activation functions and, very recently, for ReLU activations. Addressing a 1988 open question of Baum, we prove that this phenomenon holds for general multilayered perceptrons, i.e. neural networks with threshold activation functions, or with any mix of threshold and ReLU activations. Our construction is probabilistic and exploits sparsity.

Motivation & Objective

  • To resolve a longstanding open question posed by Baum (1988) regarding the memory capacity of neural networks with threshold activations.
  • To establish a general theoretical foundation for memorization in multilayered perceptrons with mixed threshold and ReLU activation functions.
  • To extend prior results on memorization in networks with sigmoid and ReLU activations to include threshold functions and hybrid architectures.
  • To provide a probabilistic construction that demonstrates memorization is achievable with mild overparametrization, even when the output layer uses a threshold activation.

Proposed method

  • Uses a probabilistic construction to show that a neural network with more connections than training samples can memorize the data with high probability.
  • Applies sparsity techniques to reduce the complexity of the weight and bias configurations needed for memorization.
  • Employs asymptotic analysis of the Mills ratio and tail probabilities of the standard normal distribution to bound expectations of ReLU and threshold functions.
  • Leverages moment estimates for the random variable $(\gamma - a)_+$ where $\gamma \sim N(0,1)$, deriving asymptotic expansions for its first and second moments as $a \to \infty$.
  • Uses stability lemmas to compare expectations under scaled normal variables, showing how moments scale with variance changes.
  • Applies a monotonicity property for Gaussian integrals to support the main probabilistic argument in the proof of memorization capacity.

Experimental results

Research questions

  • RQ1Can multilayered perceptrons with threshold activation functions memorize any finite dataset when overparametrized?
  • RQ2Does the memorization capacity of ReLU networks extend to networks with mixed threshold and ReLU activations?
  • RQ3What is the minimal overparametrization required for a neural network to memorize a dataset of size K?
  • RQ4How does the probabilistic construction ensure that the network can fit arbitrary labels on K data points?

Key findings

  • The paper proves that any multilayered feedforward neural network with threshold or ReLU activations can memorize K data points as long as the number of connections exceeds K.
  • The asymptotic expansion of the Mills ratio is used to derive precise tail probability bounds for the standard normal distribution, which underpin the moment estimates.
  • For large $a$, the expected value of $(\gamma - a)_+$ is asymptotically $\frac{1}{\sqrt{2\pi}} e^{-a^2/2} (a^{-2} + O(a^{-4}))$, and the second moment is $\frac{1}{\sqrt{2\pi}} e^{-a^2/2} (2a^{-3} + O(a^{-5}))$.
  • The stability lemma shows that scaling the input to a ReLU by $\sqrt{1+z}$ scales the expected ReLU output by a factor of $\exp\left(\frac{a^2 z}{2(1+z)}\right) (1+z) (1 + O(a^{-2}))$.
  • The monotonicity lemma confirms that $\sigma \mapsto \mathbb{E}[\psi(\sigma \gamma)]$ is nondecreasing for nondecreasing $\psi$ with $\psi(t) = 0$ for $t < 0$, supporting the probabilistic argument.
  • The main result resolves Baum's 1988 open question by establishing memorization capacity for general multilayered perceptrons with threshold and ReLU activations.

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.