Consistent Sparse Deep Learning: Theory and Computation

Yan Sun, Qifan Song, Faming Liang

Abstract

Deep learning has been the engine powering many successes of data science. However, the deep neural network (DNN), as the basic model of deep learning, is often excessively over-parameterized, causing many difficulties in training, prediction and interpretation. We propose a frequentist-like method for learning sparse DNNs and justify its consistency under the Bayesian framework: the proposed method could learn a sparse DNN with at most $O(n/\log(n))$ connections and nice theoretical guarantees such as posterior consistency, variable selection consistency and asymptotically optimal generalization bounds. In particular, we establish posterior consistency for the sparse DNN with a mixture Gaussian prior, show that the structure of the sparse DNN can be consistently determined using a Laplace approximation-based marginal posterior inclusion probability approach, and use Bayesian evidence to elicit sparse DNNs learned by an optimization method such as stochastic gradient descent in multiple runs with different initializations. The proposed method is computationally more efficient than standard Bayesian methods for large-scale sparse DNNs. The numerical results indicate that the proposed method can perform very well for large-scale network compression and high-dimensional nonlinear variable selection, both advancing interpretable machine learning.

Introduction

Deep learning is the undisputed engine of modern data science, yet it often relies on "over-parameterized" architectures—neural networks containing millions of redundant connections. This structural bloat renders models difficult to interpret, prone to overfitting, and computationally expensive to deploy. While various "pruning" techniques have been developed to slim down these models, they frequently lack a rigorous theoretical foundation.

In "Consistent Sparse Deep Learning: Theory and Computation," Sun, Song, and Liang introduce a methodology that bridges the gap between the speed of standard optimization and the rigorous guarantees of Bayesian statistics. Their approach consistently identifies the "true" sparse structure of a network while achieving optimal generalization bounds, offering a computationally efficient alternative to traditional Bayesian sampling.

The Consistency-Efficiency Gap

In the current landscape of deep learning, a persistent tension exists between theoretical rigor and computational feasibility:

  1. Frequentist and Optimization Methods: Techniques such as $L_1$ regularization or heuristic pruning are fast and effective in practice. However, it is often unclear if the resulting sparse models are "consistent"—that is, whether they converge to the true underlying structure as more data becomes available.
  2. Bayesian Methods: These provide elegant theoretical guarantees, such as posterior consistency. However, they typically rely on Markov Chain Monte Carlo (MCMC) simulations. For large-scale DNNs, MCMC is prohibitively slow because it requires evaluating the entire dataset at every iteration.

The proposed method addresses this gap by utilizing a "frequentist-like" optimization process backed by a robust Bayesian framework, allowing for high-dimensional nonlinear variable selection without the computational burden of MCMC.

Methodology

The core of the approach is an algorithm that integrates optimization with Bayesian approximation through four key components:

Mixture Gaussian Prior

Instead of a discrete "spike-and-slab" prior, which is difficult to optimize, the authors employ a continuous mixture of two Gaussians. One narrow Gaussian (the "spike") represents near-zero weights, while a wider Gaussian (the "slab") represents significant weights. This allows for a differentiable objective function.

Laplace Approximation

To avoid the slow sampling of MCMC, the method uses a Laplace approximation to estimate the Marginal Posterior Inclusion Probability (MPIP). By analyzing the curvature of the "energy landscape" (the Hessian matrix), the algorithm determines which connections are statistically significant.

Bayesian Evidence

DNN training is notorious for converging to different local optima. To mitigate this, the authors perform multiple optimization runs with different initializations. They then use "Bayesian Evidence"—a measure of model marginal likelihood—as a criterion to select the most robust sparse structure among the various runs. This favors models residing in "wide valleys," which are associated with better generalization.

Refinement

Once insignificant connections are pruned based on the MPIP, a final short optimization phase fine-tunes the remaining nonzero weights to ensure peak performance.

Experimental Validation

The authors validated their method across synthetic and real-world benchmarks:

  • Simulated Nonlinear Systems: In tests involving 1,000 input variables where only five were relevant, the method achieved a False Selection Rate (FSR) of 0. This significantly outperformed existing sparse methods like Spinn or DPF, demonstrating superior accuracy in identifying driving features in complex systems.
  • CIFAR-10 Compression: The method was applied to compress ResNet20 and ResNet32 architectures. On CIFAR-10, a ResNet20 compressed to approximately 20% of its original size reached 92.27% accuracy, outperforming Sparse Momentum (91.54%) and Variational Bayes (90.20%).

Key Insights and Theoretical Contributions

The paper establishes that the proposed method achieves both posterior consistency and variable selection consistency. As the sample size $n$ grows, the probability of the method identifying the correct sparse structure approaches 1. Furthermore, the results support the "Lottery Ticket Hypothesis" context, suggesting that training a dense model and pruning it is generally more effective than training a sparse model from a random initialization.

Limitations and Future Directions

While the method represents a significant step forward, some challenges remain:

  • Hyperparameter Sensitivity: The method relies on parameters ($\sigma_{0,n}, \sigma_{1,n}, \lambda_n$) that control sparsity. While theoretical guidelines are provided, practical tuning remains iterative.
  • Computational Overhead: Performing multiple independent runs (e.g., $T=10$) to find the best local mode is still more expensive than a single standard training run.
  • Hessian Approximations: For massive networks, calculating the full Hessian is computationally impossible. While the authors suggest BIC-like approximations, future work into more efficient curvature estimates, such as Fisher Information approximations, could further scale the method.

Summary updated

BibTeX
@misc{sun2021consistent,
  author = {Yan Sun and Qifan Song and Faming Liang},
  title = {{Consistent Sparse Deep Learning: Theory and Computation}},
  year = {2021},
  eprint = {2102.13229},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.13229},
}
Figure