Network size and weights size for memorization with two-layers neural networks

06/04/2020
by   Sébastien Bubeck, et al.
12

In 1988, Eric B. Baum showed that two-layers neural networks with threshold activation function can perfectly memorize the binary labels of n points in general position in R^d using only n/d neurons. We observe that with ReLU networks, using four times as many neurons one can fit arbitrary real labels. Moreover, for approximate memorization up to error ϵ, the neural tangent kernel can also memorize with only O(n/d·log(1/ϵ) ) neurons (assuming that the data is well dispersed too). We show however that these constructions give rise to networks where the magnitude of the neurons' weights are far from optimal. In contrast we propose a new training procedure for ReLU networks, based on complex (as opposed to real) recombination of the neurons, for which we show approximate memorization with both O(n/d·log(1/ϵ)/ϵ) neurons, as well as nearly-optimal size of the weights.

READ FULL TEXT

Please sign up or login with your details

Forgot password? Click here to reset