English

Geometric compression of invariant manifolds in neural nets

Machine Learning 2021-05-07 v4 Machine Learning

Abstract

We study how neural networks compress uninformative input space in models where data lie in dd dimensions, but whose label only vary within a linear manifold of dimension d<dd_\parallel < d. We show that for a one-hidden layer network initialized with infinitesimal weights (i.e. in the feature learning regime) trained with gradient descent, the first layer of weights evolve to become nearly insensitive to the d=ddd_\perp=d-d_\parallel uninformative directions. These are effectively compressed by a factor λp\lambda\sim \sqrt{p}, where pp is the size of the training set. We quantify the benefit of such a compression on the test error ϵ\epsilon. For large initialization of the weights (the lazy training regime), no compression occurs and for regular boundaries separating labels we find that ϵpβ\epsilon \sim p^{-\beta}, with βLazy=d/(3d2)\beta_\text{Lazy} = d / (3d-2). Compression improves the learning curves so that βFeature=(2d1)/(3d2)\beta_\text{Feature} = (2d-1)/(3d-2) if d=1d_\parallel = 1 and βFeature=(d+d/2)/(3d2)\beta_\text{Feature} = (d + d_\perp/2)/(3d-2) if d>1d_\parallel > 1. We test these predictions for a stripe model where boundaries are parallel interfaces (d=1d_\parallel=1) as well as for a cylindrical boundary (d=2d_\parallel=2). Next we show that compression shapes the Neural Tangent Kernel (NTK) evolution in time, so that its top eigenvectors become more informative and display a larger projection on the labels. Consequently, kernel learning with the frozen NTK at the end of training outperforms the initial NTK. We confirm these predictions both for a one-hidden layer FC network trained on the stripe model and for a 16-layers CNN trained on MNIST, for which we also find βFeature>βLazy\beta_\text{Feature}>\beta_\text{Lazy}.

Keywords

Cite

@article{arxiv.2007.11471,
  title  = {Geometric compression of invariant manifolds in neural nets},
  author = {Jonas Paccolat and Leonardo Petrini and Mario Geiger and Kevin Tyloo and Matthieu Wyart},
  journal= {arXiv preprint arXiv:2007.11471},
  year   = {2021}
}