English

Learning Two Layer Rectified Neural Networks in Polynomial Time

Data Structures and Algorithms 2018-11-06 v1 Machine Learning

Abstract

Consider the following fundamental learning problem: given input examples xRdx \in \mathbb{R}^d and their vector-valued labels, as defined by an underlying generative neural network, recover the weight matrices of this network. We consider two-layer networks, mapping Rd\mathbb{R}^d to Rm\mathbb{R}^m, with kk non-linear activation units f()f(\cdot), where f(x)=max{x,0}f(x) = \max \{x , 0\} is the ReLU. Such a network is specified by two weight matrices, URm×k,VRk×d\mathbf{U}^* \in \mathbb{R}^{m \times k}, \mathbf{V}^* \in \mathbb{R}^{k \times d}, such that the label of an example xRdx \in \mathbb{R}^{d} is given by Uf(Vx)\mathbf{U}^* f(\mathbf{V}^* x), where f()f(\cdot) is applied coordinate-wise. Given nn samples as a matrix XRd×n\mathbf{X} \in \mathbb{R}^{d \times n} and the (possibly noisy) labels Uf(VX)+E\mathbf{U}^* f(\mathbf{V}^* \mathbf{X}) + \mathbf{E} of the network on these samples, where E\mathbf{E} is a noise matrix, our goal is to recover the weight matrices U\mathbf{U}^* and V\mathbf{V}^*. In this work, we develop algorithms and hardness results under varying assumptions on the input and noise. Although the problem is NP-hard even for k=2k=2, by assuming Gaussian marginals over the input X\mathbf{X} we are able to develop polynomial time algorithms for the approximate recovery of U\mathbf{U}^* and V\mathbf{V}^*. Perhaps surprisingly, in the noiseless case our algorithms recover U,V\mathbf{U}^*,\mathbf{V}^* exactly, i.e., with no error. To the best of the our knowledge, this is the first algorithm to accomplish exact recovery. For the noisy case, we give the first polynomial time algorithm that approximately recovers the weights in the presence of mean-zero noise E\mathbf{E}. Our algorithms generalize to a larger class of rectified activation functions, f(x)=0f(x) = 0 when x0x\leq 0, and f(x)>0f(x) > 0 otherwise.

Keywords

Cite

@article{arxiv.1811.01885,
  title  = {Learning Two Layer Rectified Neural Networks in Polynomial Time},
  author = {Ainesh Bakshi and Rajesh Jayaram and David P. Woodruff},
  journal= {arXiv preprint arXiv:1811.01885},
  year   = {2018}
}
R2 v1 2026-06-23T05:04:48.841Z