Towards Efficient Tensor Decomposition-Based DNN Model Compression with Optimization Framework

Miao Yin

Abstract

Advanced tensor decomposition, such as Tensor Train (TT) and Tensor Ring (TR), has been widely studied for deep neural network (DNN) model compression, especially for recurrent neural networks (RNNs). However, compressing convolutional neural networks (CNNs) using TT/TR always suffers significant accuracy loss. In this paper, we propose a systematic framework for tensor decomposition-based model compression using the Alternating Direction Method of Multipliers (ADMM). By formulating TT decomposition-based model compression as an optimization problem with constraints on tensor ranks, we leverage the ADMM technique to systematically solve this optimization problem in an iterative way. During this procedure, the entire DNN model is trained in its original structure instead of TT format but gradually adopts the desired low tensor rank characteristics. We then decompose this uncompressed model to TT format and fine-tune it to finally obtain a high-accuracy TT-format DNN model. Our framework is general, working for both CNNs and RNNs, and can be easily modified for other tensor decomposition approaches. Experimental results on image classification and video recognition tasks show that our ADMM-based TT-format models demonstrate very high compression performance with high accuracy.

Introduction

Deep Neural Networks (DNNs) have become the cornerstone of modern AI, but their massive storage and computational requirements pose significant challenges for deployment on edge devices and IoT systems. While techniques like pruning and quantization are widely used, tensor decomposition—specifically Tensor Train (TT) and Tensor Ring (TR)—offers the potential for extreme compression ratios, sometimes exceeding 1,000x for RNNs.

Illustration of Tensor Train Decomposition (TTD)

Despite its potential, applying TT decomposition to Convolutional Neural Networks (CNNs) typically results in a severe drop in accuracy. This is primarily due to two factors: the difficulty of training reduced-capacity models from scratch, which makes them highly sensitive to initialization, and the large approximation errors introduced when decomposing pre-trained models that standard fine-tuning cannot easily recover.

The ADMM-Based Optimization Framework

To overcome these hurdles, we propose a systematic framework that treats tensor decomposition as a constrained optimization problem. Instead of a simple post-processing step, we use the Alternating Direction Method of Multipliers (ADMM) to guide the training process toward a low-rank solution.

The proposed ADMM-based tensor decomposition framework workflow

The workflow consists of three key stages:

  1. ADMM-Regularized Training: The model is trained in its original, full-rank structure. ADMM introduces a penalty that pushes weights toward a low-rank target, allowing the model to maintain learning capacity while adopting characteristics suitable for decomposition.
  2. Explicit Decomposition: Once the weights have "learned" to be low-rank, they are decomposed into TT-cores. The prior regularization ensures that the approximation error at this stage is negligible.
  3. Fine-Tuning: The resulting TT-format model undergoes final standard training (SGD) to recover and polish performance.

Experimental Results

We evaluated the framework across various benchmarks, including image classification (MNIST, CIFAR-10/100, ImageNet) and video recognition (UCF11, HMDB51).

  • CIFAR-100: Our models achieved 2.3x and 2.4x compression with a surprising 1.96% and 2.21% increase in top-1 accuracy over the original ResNet-20 and ResNet-32 baselines, respectively. This suggests the low-rank constraint acts as an effective regularizer, preventing overfitting.
  • ImageNet: For ResNet-18, we achieved a 2.47x reduction in FLOPs with no loss in accuracy.
  • Video Recognition: On the HMDB51 dataset, our method achieved a massive 84x compression ratio for LSTM models while maintaining 64.09% accuracy, significantly outperforming previous SOTA tensor decomposition methods.

Conclusion

This work demonstrates that shifting the perspective of tensor decomposition from a heuristic post-processing step to a formal optimization problem significantly improves the compression-accuracy trade-off. By using ADMM to "softly" transition a model into a low-rank state, we can achieve high compression ratios even for CNNs, sometimes even improving the base model's performance through regularization. Future work will explore automated rank selection to further optimize these results.

Summary updated

BibTeX
@inproceedings{yin2021towards,
  author = {Miao Yin},
  title = {{Towards Efficient Tensor Decomposition-Based DNN Model Compression with Optimization Framework}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=lCsWI7jcc8y},
}
Figure