Low-Rank+Sparse Tensor Compression for Neural Networks

Cole Hawkins, Haichuan Yang, Meng Li, Liangzhen Lai, Vikas ChandraarXiv 2021 · arXiv

Introduction

Deploying state-of-the-art (SOTA) neural networks on edge devices—such as smartphones and IoT sensors—remains a significant challenge due to stringent memory and power constraints. Researchers have traditionally relied on two primary techniques for model compression: low-rank tensor decomposition, which captures coarse structural redundancies by representing weights as products of smaller tensors, and sparse pruning, which removes individual unimportant weights to exploit fine-grained sparsity.

While tensor compression has historically yielded impressive results on overparameterized models like VGG or ResNet, its efficacy on modern, efficient architectures like MobileNetv3 and EfficientNet is less clear. These models already utilize depthwise separable convolutions, a form of manual tensor factorization. This study investigates whether a hybrid "Low-Rank + Sparse" (LR+S) approach can extract further efficiency from these already-lean models.

Methodology: The LR+S Pipeline

The researchers proposed a two-phase algorithm designed to combine the strengths of both compression paradigms.

The proposed two-phase compression pipeline.

Phase 1: Decomposition

A trained weight tensor is decomposed into a low-rank component ($L$) and a sparse residual ($S$). Two reconstruction strategies were evaluated:

  • Additive: $Weight = L + (Mask \odot S)$
  • Masking: $Weight = (1 - Mask) \odot L + (Mask \odot S)$, where each entry is represented by either the low-rank or sparse component.

The study explored three major tensor formats: CP, Tucker, and Tensor-Train (TT/TTM). To process $1 \times 1$ convolutions and fully connected layers, these matrices were "folded" into higher-order tensors before decomposition.

Phase 2: Iterative Pruning & Fine-tuning

Following decomposition, global magnitude pruning is applied to the sparse residual. The entire model is then fine-tuned using Knowledge Distillation, where a larger "teacher" model guides the compressed "student" model to recover lost accuracy.

Key Insights: The "Already Efficient" Wall

The study's most significant finding is that modern architectural designs have already "designed out" much of the low-rank redundancy that tensor decomposition typically exploits. In models like MobileNetv3, weights are approximately full-rank, causing significant initial error during decomposition.

However, the impact varies by layer type:

  • Spatial Convolutions: $3 \times 3$ or $5 \times 5$ kernels still possess regular structures that are amenable to low-rank methods.
  • Pointwise ($1 \times 1$) Convolutions: These dominate modern efficient models but exhibit high relative error when decomposed, suggesting they lack exploitable coarse structure.

Interestingly, removing low-rank structure from spatial layers acts as a "pruning preprocessor," creating a residual weight distribution that is more "peaky" around zero, theoretically facilitating more aggressive pruning.

Experimental Results

Experiments were conducted on the ImageNet-1K dataset, evaluating Top-5 validation accuracy across MobileNetv3, EfficientNet-B0, and Vision Transformers (DeiT-Small).

Accuracy vs. parameter retention for MobileNetV3 Small.

The results indicate that while the hybrid LR+S method is competitive with standard sparse pruning, it does not significantly surpass the existing Pareto frontier. As shown in the performance plots, different tensor formats (TT, CP, Tucker) yield varying results, but none consistently "break through" the efficiency of simple magnitude pruning in these specific architectures. Furthermore, using low-rank decomposition alone (without the sparse component) led to drastic accuracy drops, confirming the lack of massive redundancy in modern models.

Conclusion

The inherent design of modern, factorized models leaves little "low-hanging fruit" for post-hoc tensor decomposition. While the LR+S approach provides a robust framework for compression, its gains are marginal on architectures that are already optimized for efficiency. Future research may find more success by training models in a hybrid low-rank + sparse format from scratch, potentially allowing the network to learn a more naturally compressible representation.

Summary updated

Abstract

Low-rank tensor compression has been proposed as a promising approach to reduce the memory and compute requirements of neural networks for their deployment on edge devices. Tensor compression reduces the number of parameters required to represent a neural network weight by assuming network weights possess a coarse higher-order structure. This coarse structure assumption has been applied to compress large neural networks such as VGG and ResNet. However modern state-of-the-art neural networks for computer vision tasks (i.e. MobileNet, EfficientNet) already assume a coarse factorized structure through depthwise separable convolutions, making pure tensor decomposition a less attractive approach. We propose to combine low-rank tensor decomposition with sparse pruning in order to take advantage of both coarse and fine structure for compression. We compress weights in SOTA architectures (MobileNetv3, EfficientNet, Vision Transformer) and compare this approach to sparse pruning and tensor decomposition alone.
BibTeX
@misc{hawkins2021low,
  author = {Cole Hawkins and Haichuan Yang and Meng Li and Liangzhen Lai and Vikas Chandra},
  title = {{Low-Rank+Sparse Tensor Compression for Neural Networks}},
  year = {2021},
  eprint = {2111.01697},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.01697},
}
Figure