Pruning is Optimal for Learning Sparse Features in High-Dimensions

Nuri Mert Vural, Murat A. Erdogdu

Abstract

While it is commonly observed in practice that pruning networks to a certain level of sparsity can improve the quality of the features, a theoretical explanation of this phenomenon remains elusive. In this work, we investigate this by demonstrating that a broad class of statistical models can be optimally learned using pruned neural networks trained with gradient descent, in high-dimensions. We consider learning both single-index and multi-index models of the form $y = \sigma^*(\boldsymbol{V}^{\top} \boldsymbol{x}) + \epsilon$, where $\sigma^*$ is a degree-$p$ polynomial, and $\boldsymbol{V} \in \mathbb{R}^{d \times r}$ with $r \ll d$, is the matrix containing relevant model directions. We assume that $\boldsymbol{V}$ satisfies a certain $\ell_q$-sparsity condition for matrices and show that pruning neural networks proportional to the sparsity level of $\boldsymbol{V}$ improves their sample complexity compared to unpruned networks. Furthermore, we establish Correlational Statistical Query (CSQ) lower bounds in this setting, which take the sparsity level of $\boldsymbol{V}$ into account. We show that if the sparsity level of $\boldsymbol{V}$ exceeds a certain threshold, training pruned networks with a gradient descent algorithm achieves the sample complexity suggested by the CSQ lower bound. In the same scenario, however, our results imply that basis-independent methods such as models trained via standard gradient descent initialized with rotationally invariant random weights can provably achieve only suboptimal sample complexity.

Introduction

In contemporary deep learning, practitioners often navigate a paradox: while overparameterization is known to aid generalization, pruning networks—removing weights to introduce sparsity—frequently improves both efficiency and feature quality. While the computational benefits of pruning are well-established, the theoretical justification for why pruning enhances feature learning has remained largely unexplored.

This research addresses this gap by demonstrating that when underlying data structures are sparse, pruning is not merely a compression technique but a theoretically optimal strategy for feature learning. By employing a data-dependent pruning step, neural networks can achieve optimal sample complexity, significantly outperforming standard "basis-independent" training methods that fail to exploit coordinate-aligned sparsity.

The Challenge of High-Dimensional Feature Learning

The study focuses on the "curse of dimensionality" within the context of multi-index models: $y = \sigma^*(V^\top x) + \epsilon$. In these models, the target $y$ depends on a few directions $V$ within a high-dimensional input space $d$. When these directions are sparse—meaning they rely on only a subset of the $d$ coordinates—standard gradient descent (GD) initialized with rotationally invariant weights struggles. Because standard GD treats all directions equally (basis-independence), it requires a massive number of samples to identify relevant features. This research asks whether pruning can close the gap between current algorithmic performance and the fundamental statistical limits of the problem.

The PruneNetwork Algorithm

The authors propose a constructive three-step training procedure designed to exploit sparsity:

  1. Pruning as Dimension Reduction: Before formal training, the algorithm utilizes a small data batch to calculate empirical gradients at initialization. By comparing gradient magnitudes across coordinates, it identifies the "support"—the specific input indices likely containing sparse features—and prunes connections to all other indices.
  2. Feature Learning: A single gradient descent step with a large step size is performed to align the first-layer weights with the hidden directions $V$.
  3. Final Training: The second-layer weights are trained to fit the final model based on the learned features.

To ensure robustness, the authors introduced two specific technical innovations: Even-Odd Decomposition, which prevents first-order signals from masking higher-order information, and Data Augmentation with a Shifted Basis, which handles magnitude mismatches between different entries in the target matrix $V$.

Theoretical Insights and Optimality

The core of the paper establishes Correlational Statistical Query (CSQ) lower bounds. These bounds define the minimum samples required for a broad class of algorithms (including most GD variants) to solve the learning problem.

A critical metric in this analysis is the Information Exponent ($k^*$), which represents the degree of the first non-zero term in the Hermite expansion of the target function. The difficulty of learning a feature increases with $k^*$. The authors show that pruning effectively reduces the search space, lowering the "cost" associated with this exponent.

Key Results

  • Sample Complexity Separation: The research proves a massive separation in efficiency. If the target is sparse, pruned networks can learn with $O(d^{\alpha k^*})$ samples (where $\alpha < 1/2$ relates to sparsity), whereas standard basis-independent methods require $O(d^{k^*/2})$ samples.
  • Provable Optimality: For single-index models, the pruning-based algorithm achieves the sample complexity suggested by the CSQ lower bound for any information exponent $k^* \ge 1$.
  • Multi-Index Success: The results extend to multi-index models ($r > 1$), proving that pruned networks can recover the entire principal subspace of model directions optimally under non-degeneracy assumptions.
  • Suboptimality of Standard GD: The analysis confirms that without a coordinate-aware mechanism like pruning, standard GD with symmetric initialization is fundamentally incapable of reaching these optimal limits in sparse regimes.

Conclusion

This work provides a rigorous theoretical foundation for the empirical success of pruning. By demonstrating that pruning acts as a mechanism to inject a coordinate-aligned prior, the authors show how it simplifies the optimization landscape and enables optimal feature learning. While the current analysis relies on isotropic Gaussian inputs and single-step feature learning, it opens new avenues for investigating pruning in more complex settings, such as incremental or curriculum learning.

Summary updated

BibTeX
@inproceedings{vural2024pruning,
  author = {Nuri Mert Vural and Murat A. Erdogdu},
  title = {{Pruning is Optimal for Learning Sparse Features in High-Dimensions}},
  booktitle = {Conference on Learning Theory},
  year = {2024},
  url = {https://openreview.net/forum?id=KuPL0QnDdN},
}
Figure