Convolutional Neural Network Compression Based on Low-Rank Decomposition

Yaping He, Linhao Jiang, Di WuarXiv 2024 · DOI

Introduction

Deep Neural Networks (DNNs) have become indispensable in computer vision, yet their deployment on resource-constrained "edge" devices—such as mobile phones and embedded systems—remains a significant challenge due to high computational and memory requirements. While tensor decomposition is a promising strategy for model compression by breaking large weight matrices into smaller, low-rank factors, it typically suffers from two major drawbacks: significant accuracy loss and the difficulty of optimal rank selection. This paper presents a novel framework that addresses these issues by combining orthogonal regularization with Variational Bayesian Matrix Factorization (VBMF).

Methods

The proposed compression pipeline utilizes a multi-stage approach to maintain model performance while reducing size.

TK-2 Decomposition

For convolutional layers, the authors employ a specific variant of Tucker decomposition known as TK-2. This method decomposes a standard convolutional layer into three consecutive sub-layers: a 1x1 kernel, a DxD kernel, and another 1x1 kernel. This structure significantly reduces the number of parameters while preserving spatial information.

TK-2 decomposition for compacting a convolution.

Orthogonal Regularization

To mitigate the accuracy loss common in low-rank decomposition, the framework introduces an "over-parameterized" training phase. During this stage, a penalty term is added to the loss function to encourage weight matrices to remain orthogonal. This regularization ensures the model retains high representational power, providing a robust initialization for the subsequent low-rank approximation.

Rank Estimation via VBMF

Determining the optimal compression rank is often a manual process. The authors automate this using Variational Bayesian Matrix Factorization (VBMF). To address the inherent imbalance between input and output channels in CNNs, VBMF is applied to estimate the rank of only one modality, while the other is derived analytically. This prevents over-compression of sensitive network components.

Fully Connected Layers

For the final dense layers, Truncated Singular Value Decomposition (TSVD) is used to split the weight matrix into two smaller sub-layers, further reducing the model's footprint.

Experimental Setup

The framework was evaluated on the CIFAR-10 and CIFAR-100 datasets using ResNet-18, ResNet-20, and ResNet-32 architectures. CIFAR-10 consists of 60,000 images across 10 classes, while CIFAR-100 requires finer-grained recognition across 100 classes.

Key Results and Discussion

Experimental results indicate that the proposed method consistently outperforms state-of-the-art (SOTA) compression techniques in both accuracy and efficiency.

The "Accuracy Bonus"

A notable finding is that at moderate compression ratios (approximately 2x), the compressed models often exceed the accuracy of the original "dense" models. For instance, ResNet-20 on CIFAR-10 achieved 91.79% Top-1 accuracy at a 2.00x compression ratio, compared to the original 91.25%. This suggests that the combination of orthogonal regularization and low-rank constraints acts as an effective regularizer, reducing overfitting.

Comparison of ResNet-20 performance on CIFAR-10 against SOTA methods.

Performance Benchmarks

  • ResNet-20 (CIFAR-100): Achieved 66.96% accuracy at 2.00x compression (original: 65.40%).
  • ResNet-32 (CIFAR-10): Reached 92.99% accuracy at 2.00x compression (original: 92.49%). Even at a 4.26x compression ratio, the model maintained a respectable 91.07% accuracy.

The method demonstrated superior performance compared to other techniques such as SVDT, PSTRN-S, and sparse methods like GE and BS.

Conclusion and Future Work

The proposed framework successfully combines orthogonal regularization and automated rank selection to achieve high compression ratios with minimal accuracy loss—and in some cases, accuracy gains. However, the authors note that performance begins to degrade significantly when compression ratios exceed 4x to 5x.

Future research will explore hybrid compression strategies, combining low-rank decomposition with pruning and quantization to further push the limits of model efficiency. Additionally, the development of specialized tensor decomposition formats may offer better trade-offs between parameter reduction and model expressivity.

Summary updated

BibTeX
@misc{he2024convolutional,
  author = {Yaping He and Linhao Jiang and Di Wu},
  title = {{Convolutional Neural Network Compression Based on Low-Rank Decomposition}},
  year = {2024},
  eprint = {2408.16289},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.16289},
}
Figure