Learning Sparse Neural Networks via Sensitivity-Driven Regularization

Enzo Tartaglione, Skjalg Lepsøy, Attilio Fiandrotti, Gianluca Francini

Abstract

Deep neural networks are often too large for deployment on edge devices due to their massive parameter counts. This paper introduces a novel regularization technique that measures the sensitivity of a network's output to individual weights. By gently pushing low-sensitivity weights toward zero, the method enables effective pruning. The approach achieves state-of-the-art sparsity in fully connected networks while simultaneously improving generalization to unseen data.

Introduction

Modern deep neural networks achieve remarkable performance but require significant memory and computational resources. This over-parameterization makes it difficult to deploy models like VGG-16 on resource-constrained devices such as smartphones or embedded sensors. While pruning—the removal of unnecessary weights—is a common solution, determining which weights to remove without compromising accuracy remains a difficult optimization problem. Existing methods often involve complex multi-stage pipelines or struggle to maintain performance at high compression rates.

Methodology: Sensitivity-Driven Pruning

The authors propose a "regularize-and-prune" approach driven by parameter sensitivity. During training, the method calculates how much the network's final output changes in response to changes in a specific weight. If the output barely changes, the parameter is deemed to have low sensitivity.

The standard Stochastic Gradient Descent (SGD) update rule is modified to include a "bounded insensitivity" penalty. This penalty is proportional to both the weight's value and its calculated insensitivity, actively shrinking unimportant weights toward zero. This sensitivity metric is computationally efficient, as it utilizes Jacobian matrices already computed during standard backpropagation.

Generalization and Performance

One of the most significant findings is that pushing insensitive weights to zero acts as a powerful regularizer. Unlike standard $l_1$ or $l_2$ penalties, which shrink all weights blindly, this method protects critical weights while eliminating noise. As shown in the comparison of test loss, the sensitivity-driven approach prevents overfitting more effectively than traditional methods.

The sensitivity-driven regularizer achieves lower test loss compared to standard SGD, L1, and L2 regularization, indicating superior generalization.

Experimental Results

The method was evaluated on standard benchmarks including MNIST (LeNet architectures) and ImageNet (VGG-16).

  • LeNet300 (MNIST): The proposed method achieved a massive 103x compression (retaining only ~0.93% of weights) with a Top-1 error of 1.95%. At a higher accuracy target, it doubled the sparsity of competing methods like Han et al.
  • VGG-16 (ImageNet): The network was reduced to just 9.77M parameters (14.12x compression) while actually improving the Top-5 error from 10.88% to 10.06%.
Comparison of the proposed sensitivity-driven methods (unspecific and specific) against other state-of-the-art pruning techniques on the MNIST dataset.

Conclusion and Future Work

While the sensitivity-driven approach dominates in fully connected layers, it is currently surpassed by techniques like Variational Dropout in convolutional architectures. This is likely because the current formulation does not account for shared parameters in convolutional filters. Future work will focus on extending the sensitivity term to handle these shared parameters and formally investigating the theoretical basis for the observed improvements in generalization.

Summary updated

BibTeX
@inproceedings{tartaglione2018learning,
  author = {Enzo Tartaglione and Skjalg Lepsøy and Attilio Fiandrotti and Gianluca Francini},
  title = {{Learning Sparse Neural Networks via Sensitivity-Driven Regularization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=r1WWAubu-r},
}
Figure