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

A Unified Approximation Framework for Compressing and Accelerating Deep Neural Networks

Yuzhe Ma, Ran Chen, Wei Li, Fanhua Shang, Wenjian Yu, Minsik Cho, Bei YuICTAI 2019 · DOI

TL;DR

This paper introduces a novel framework that simultaneously compresses deep neural networks (DNNs) by approximating each layer with a combination of a structured sparse component and a low-rank component. This unified approach effectively reduces model size and speeds up inference while preserving accuracy, outperforming previous methods on various benchmark datasets.

What Problem Does This Paper Address?

Deep neural networks (DNNs) have achieved remarkable success in various applications, but their large model sizes and intensive computational demands pose significant challenges for deployment on resource-constrained devices. This "over-parameterization" leads to high throughput requirements for inference, limiting their practical use. While techniques like network sparsification (pruning) and low-rank approximation have been explored to address this, they often lead to accuracy degradation or don't fully leverage the benefits of structured sparsity for acceleration. This paper aims to bridge this gap by proposing a unified framework that combines both structured sparsity and low-rankness, while also considering the impact of non-linear activation functions, to achieve significant compression and speedup with minimal accuracy loss.

Methods

The core of the proposed method is a unified approximation framework for convolutional neural network (CNN) layers. Each layer's weight matrix is approximated as the sum of two components:

  • Structured Sparse Component (A): This component aims to introduce sparsity in a structured manner (e.g., column-wise zeros) that can be efficiently exploited by hardware for acceleration.
  • Low-Rank Component (B): This component approximates the remaining structure by decomposing the weight matrix into two smaller matrices, reducing the number of parameters.

This approximation is formulated as an optimization problem that minimizes the reconstruction error of the layer's output after the non-linear activation function (like ReLU). To handle the non-convexity and complexity of the problem, the authors employ a convex relaxation of the constraints, using the nuclear norm for low-rankness and the $\ell_{2,1}$-norm for structured sparsity. This relaxed problem is then solved using an extended Alternating Direction Method of Multipliers (ADMM) algorithm, for which convergence is proven. The ADMM algorithm iteratively updates the sparse component (A), the low-rank component (B), and an auxiliary variable (M) representing their sum.

Datasets

The paper evaluates its framework on the following datasets:

  • CIFAR-10: Used for experiments on VGG-16 and NIN networks.
  • ILSVRC-2012 (ImageNet): Used for experiments on AlexNet and GoogLeNet networks.

The authors collected input and output feature maps from pre-trained models on these datasets to train and evaluate their approximation framework.

Key Insights and Ideas

  • Unified Sparsity and Low-Rankness: Combining structured sparsity and low-rankness in a single framework is more effective than using either technique in isolation for both compression and acceleration.
  • Importance of Non-Linear Activation: Approximating the non-linear response of a layer (after activation) leads to better accuracy preservation compared to just approximating the linear response. This is because the error in the positive response is more critical for network performance.
  • Structured Sparsity for Acceleration: The paper emphasizes that structured sparsity (e.g., column-wise zeros) is crucial for achieving actual speedups during inference, as it allows for more efficient computation on hardware.
  • Flexibility of the Framework: The framework is shown to be adaptable, automatically identifying whether to use sparse, low-rank, or a combination of both components for different layers and network architectures, without relying on prior assumptions about which component is best.
  • ADMM for Optimization: The use of an extended ADMM algorithm with proven convergence is key to efficiently solving the complex optimization problem arising from the unified approximation.

Key Results

The proposed framework demonstrates significant improvements across various metrics:

  • Compression: Achieved up to 4.9x reduction in model parameters (e.g., on AlexNet).
  • Accuracy Preservation: Minimal accuracy degradation, with some cases showing no loss (e.g., GoogLeNet on ImageNet). For VGG-16 on CIFAR-10, accuracy dropped by only 0.40% after fine-tuning.
  • Speedup: Achieved notable speedups in inference, such as 2.2x for VGG-16 and 1.1x for AlexNet.
  • Outperformance: Consistently outperformed previous state-of-the-art methods in terms of accuracy degradation, compression rate, and speedup ratio across multiple network architectures and datasets.

Limitations and Future Work

  • Computational Cost of Approximation: While the inference is accelerated, the approximation process itself can be time-consuming, with layer-wise runtime ranging from 10 minutes to half an hour.
  • Fine-tuning: The paper mentions that fine-tuning is often required to restore accuracy after approximation, adding an extra step to the overall process.
  • Future Work: The authors suggest that further speedup might be achievable by considering the actual hardware architecture and parallel computing capabilities, especially since structured sparse filters and low-rank filters are independent. They also implicitly suggest exploring more advanced optimization techniques or network architectures that can better leverage these properties.

Summary updated

BibTeX
@inproceedings{ma2019unified,
  author = {Yuzhe Ma and Ran Chen and Wei Li and Fanhua Shang and Wenjian Yu and Minsik Cho and Bei Yu},
  title = {{A Unified Approximation Framework for Compressing and Accelerating Deep Neural Networks}},
  booktitle = {ICTAI},
  year = {2019},
  doi = {10.1109/ictai.2019.00060},
}
Figure