ICLR2023

Neural Networks Efficiently Learn Low-Dimensional Representations with SGD

Alireza Mousavi Hosseini, Sejun Park, Manuela Girotti, Ioannis Mitliagkas, Murat A. Erdogdu

被引用 6 次

摘要

We study the problem of training a two-layer neural network (NN) of arbitrary width using stochastic gradient descent (SGD) where the input xRd\boldsymbol{x}\in \mathbb{R}^d is Gaussian and the target yRy \in \mathbb{R} follows a multiple-index model, i.e., y=g(u1,x,...,uk,x)y=g(\langle\boldsymbol{u_1},\boldsymbol{x}\rangle,...,\langle\boldsymbol{u_k},\boldsymbol{x}\rangle) with a noisy link function gg. We prove that the first-layer weights of the NN converge to the kk-dimensional principal subspace spanned by the vectors u1,...,uk\boldsymbol{u_1},...,\boldsymbol{u_k} of the true model, when online SGD with weight decay is used for training. This phenomenon has several important consequences when kdk \ll d. First, by employing uniform convergence on this smaller subspace, we establish a generalization error bound of O(kd/T)O(\sqrt{{kd}/{T}}) after TT iterations of SGD, which is independent of the width of the NN. We further demonstrate that, SGD-trained ReLU NNs can learn a single-index target of the form y=f(u,x)+εy=f(\langle\boldsymbol{u},\boldsymbol{x}\rangle) + ε by recovering the principal direction, with a sample complexity linear in dd (up to log factors), where ff is a monotonic function with at most polynomial growth, and εε is the noise. This is in contrast to the known dΩ(p)d^{Ω(p)} sample requirement to learn any degree pp polynomial in the kernel regime, and it shows that NNs trained with SGD can outperform the neural tangent kernel at initialization. Finally, we also provide compressibility guarantees for NNs using the approximate low-rank structure produced by SGD.