Reducing the Model Order of Deep Neural Networks Using Information Theory

Ming Tu, Visar Berisha, Yu Cao, Jae-sun Seo

Abstract

Deep neural networks (DNNs) typically require a vast number of parameters, making them difficult to deploy on small-footprint devices. However, significant redundancy exists within these parameter spaces. We propose a compression method using the Fisher Information metric, estimated efficiently through the Adam optimizer's second-order information. Our approach involves a hybrid pruning strategy followed by non-uniform fixed-point quantization. Experimental results on a CNN trained on MNIST demonstrate that our method outperforms existing techniques, achieving substantial model size reduction with minimal accuracy loss.

Introduction

Modern deep learning models are notoriously over-parameterized. While this redundancy facilitates learning, it poses a significant barrier for "edge" deployment on devices with limited memory and power. Traditional compression techniques like magnitude-based pruning and uniform quantization often fail to capture the true importance of individual weights. More advanced methods using the Hessian matrix are computationally prohibitive for large-scale networks. This paper introduces a mathematically grounded yet computationally efficient alternative using Fisher Information.

Methodology

The core of our approach is using the diagonal of the Fisher Information Matrix (FIM) as a proxy for parameter importance. The FIM measures the sensitivity of the output distribution to changes in specific parameters.

Efficient FIM Estimation

Calculating the FIM from scratch is expensive. We observe that the Adam optimizer, widely used in training, already maintains a "second moment" vector that tracks gradient variance. We leverage this existing vector as a low-complexity estimate of the FIM diagonal, essentially obtaining the importance metric for "free" during the training process.

Hybrid Pruning and Quantization

We found that combining metrics yields the best results. Our hybrid pruning approach first removes a large portion of parameters with the smallest magnitudes, then uses FIM to identify and remove the least informative remaining parameters.

Following pruning, we apply non-uniform quantization. Remaining weights are ranked by FIM and grouped using k-means clustering. We assign higher bit-depths to "high-information" groups and lower bit-depths to "low-information" groups, ensuring that critical weights retain their precision.

Experimental Results

We evaluated our framework on a CNN architecture with approximately 591,000 parameters trained on the MNIST dataset.

Pruning Performance

The hybrid "mag_fisher" method significantly outperformed standard magnitude-only or Fisher-only pruning. As shown in the figure below, the accuracy remains stable even as the vast majority of parameters are removed.

Accuracy vs. Percentage of removed parameters for different pruning methods.

We successfully removed 94.72% of parameters in the fully connected layers (an 18.9x compression ratio) while maintaining an accuracy of 98.38%.

Quantization Gains

Our non-uniform FIM-based quantization reached original baseline accuracy levels using an average of only 2.4 bits per parameter.

Accuracy vs. Average number of bits for different quantization methods.

Compared to standard 32-bit floating-point representations, this represents a 13.3x reduction in storage requirements. When combined with pruning, the theoretical total compression ratio reaches approximately 251x with less than 1% loss in accuracy.

Conclusion

By utilizing Fisher Information estimated via the Adam optimizer, we provide a robust and efficient path for DNN compression. Our hybrid pruning and non-uniform quantization methods demonstrate that information-theoretic metrics can drastically reduce model size without sacrificing performance. Future work will extend these techniques to more complex datasets like ImageNet and explore embedding these criteria directly into the training objective as regularization terms.

Summary updated

Abstract

Deep neural networks are typically represented by a much larger number of parameters than shallow models, making them prohibitive for small footprint devices. Recent research shows that there is considerable redundancy in the parameter space of deep neural networks. In this paper, we propose a method to compress deep neural networks by using the Fisher Information metric, which we estimate through a stochastic optimization method that keeps track of second-order information in the network. We first remove unimportant parameters and then use non-uniform fixed point quantization to assign more bits to parameters with higher Fisher Information estimates. We evaluate our method on a classification task with a convolutional neural network trained on the MNIST data set. Experimental results show that our method outperforms existing methods for both network pruning and quantization.
BibTeX
@inproceedings{tu2016reducing,
  author = {Ming Tu and Visar Berisha and Yu Cao and Jae-sun Seo},
  title = {{Reducing the Model Order of Deep Neural Networks Using Information Theory}},
  booktitle = {ISVLSI},
  year = {2016},
  url = {https://openreview.net/forum?id=RDRFqMV1yKQ},
}
Figure