NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Neural Network Compression.

Hyeji Kim, Muhammad Umar Karim Khan, Chong-Min Kyung

Abstract

Network compression reduces the computational complexity and memory consumption of deep neural networks by reducing the number of parameters. In SVD-based network compression, the right rank needs to be decided for every layer of the network. In this paper, we propose an efficient method for obtaining the rank configuration of the whole network. Unlike previous methods which consider each layer separately, our method considers the whole network to choose the right rank configuration. We propose novel accuracy metrics to represent the accuracy and complexity relationship for a given neural network. We use these metrics in a non-iterative fashion to obtain the right rank configuration which satisfies the constraints on FLOPs and memory while maintaining sufficient accuracy. Experiments show that our method provides a better compromise between accuracy and computational complexity/memory consumption while performing compression at much higher speed. For VGG-16, our network can reduce the FLOPs by 25% and improve accuracy by 0.7% compared to the baseline, while requiring only 3 minutes on a CPU to search for the right rank configuration. Previously, similar results were achieved in 4 hours with 8 GPUs. The proposed method can be used for lossless compression of a neural network as well.

Introduction

Deep Learning models are notoriously "heavy," requiring massive computational power (FLOPs) and memory. To run these on mobile devices or embedded systems, network compression is essential. One popular technique is low-rank approximation using Singular Value Decomposition (SVD), where a large weight matrix is decomposed into two smaller ones.

Low-rank approximation of convolutional and fully-connected layers using SVD.

The primary challenge in SVD-based compression is deciding the "rank" (the size of those smaller matrices) for every single layer in the network. If a layer is compressed too much, accuracy drops significantly; if it is not compressed enough, the model remains computationally expensive. Finding the optimal "rank configuration" for a deep network is a complex combinatorial problem. Previous methods were either too slow, relying on iterative searches for hours, or too simplistic, evaluating layers in isolation.

Methodology: Efficient Network Compression (ENC)

The proposed Efficient Neural network Compression (ENC) method is a holistic, model-based approach to find the best rank configuration without exhaustive, iterative searching. ENC relies on three main components:

1. Novel Accuracy Metrics

The authors developed two metrics to estimate how a specific rank choice affects a layer's accuracy:

  • PCA energy-based ($y_{p,l}$): A heuristic based on the "energy" (singular values) retained after SVD.
  • Measurement-based ($y_{m,l}$): A more precise metric derived by evaluating the layer's impact on a small validation dataset.
Relationship between normalized rank and accuracy metrics (PCA-energy and measurement-based accuracy) for different layers.

2. Hierarchical Search Space

To avoid the "curse of dimensionality," layers are grouped into a hierarchy. This reduces the search space from an exponential number of possibilities to a manageable size that can be processed in seconds.

3. Implementation Variants

  • ENC-Map: The fastest version; it uses a direct mapping function to pick ranks based on a complexity constraint.
  • ENC-Model: Uses a combined accuracy/complexity metric to pick the best configuration from a candidate set.
  • ENC-Inf: The most accurate version; it picks a few top candidates and runs a quick inference check on a validation set to choose the winner.

Experimental Results

The authors evaluated ENC on standard computer vision benchmarks including ImageNet (AlexNet, VGG-16) and CIFAR-10 (ResNet-56).

  • VGG-16 (ImageNet): ENC reduced FLOPs by 25% with a 0.6% accuracy gain after fine-tuning. Crucially, the search took only 3 minutes on a CPU, compared to 4 hours on 8 GPUs for previous state-of-the-art methods like ADC.
  • ResNet-56 (CIFAR-10): Achieved "lossless" compression (no accuracy drop) while reducing FLOPs by 55%.
  • AlexNet: Achieved a 37.5% FLOPs reduction with only a 0.1% drop in Top-1 accuracy.

A key insight is that moderate compression can act as a form of regularization, leading to the "compression bonus" observed in VGG-16. Furthermore, hardware latency tests on mobile processors confirmed that theoretical FLOPs savings translate directly into real-world speedups.

Conclusion

ENC provides a significant leap in efficiency for neural network compression. By looking at the network as a whole rather than optimizing layers individually, it can trade off accuracy losses in sensitive layers by compressing redundant layers more aggressively. While the configuration search is incredibly fast, standard fine-tuning is still required to recover peak accuracy. Future work may explore the interaction of SVD-based compression with other techniques like quantization or pruning.

Summary updated

BibTeX
@inproceedings{kim2019efficient,
  author = {Hyeji Kim and Muhammad Umar Karim Khan and Chong-Min Kyung},
  title = {{Efficient Neural Network Compression.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=HQEgE7eOaS},
}
Figure