Understanding How Nonlinear Layers Create Linearly Separable Features for Low-Dimensional Data
Alec S. Xu, Can Yaras, Peng Wang, Qing Qu
TL;DR
This work analyzes how a shallow nonlinear network with random Gaussian weights and a quadratic activation can transform data drawn from a union of low-dimensional subspaces into linearly separable sets. The authors prove that for two subspaces, linear separability of the transformed features occurs with high probability when the hidden-layer width grows polynomially with the intrinsic dimension r, specifically requiring width $D$ that scales as a function of r and the principal angles between subspaces. They extend the result to multiple subspaces K>2 via one-vs-all separation, and provide experimental evidence on synthetic data and CIFAR-10 (via MCR^2 representations) showing the practical relevance of the theory and robustness to other activations. The results offer a theoretical bridge between observed linear separability in early network layers and the role of overparameterization and random features in generalization, with implications for interpretability and the design of representation-learning systems. Overall, the paper deepens our understanding of how shallow nonlinear mappings contribute to the discriminative structure of neural representations under low intrinsic dimensionality assumptions.
Abstract
Deep neural networks have attained remarkable success across diverse classification tasks. Recent empirical studies have shown that deep networks learn features that are linearly separable across classes. However, these findings often lack rigorous justifications, even under relatively simple settings. In this work, we address this gap by examining the linear separation capabilities of shallow nonlinear networks. Specifically, inspired by the low intrinsic dimensionality of image data, we model inputs as a union of low-dimensional subspaces (UoS) and demonstrate that a single nonlinear layer can transform such data into linearly separable sets. Theoretically, we show that this transformation occurs with high probability when using random weights and quadratic activations. Notably, we prove this can be achieved when the network width scales polynomially with the intrinsic dimension of the data rather than the ambient dimension. Experimental results corroborate these theoretical findings and demonstrate that similar linear separation properties hold in practical scenarios beyond our analytical scope. This work bridges the gap between empirical observations and theoretical understanding of the separation capacity of nonlinear networks, offering deeper insights into model interpretability and generalization.
