[Paper Review] Wide Compression: Tensor Ring Nets
This paper proposes Tensor Ring Networks (TR-Nets), a novel compression method for deep neural networks using tensor ring factorization to significantly reduce model size with minimal accuracy loss. It achieves 11× compression on LeNet-5 and 243× on Wide ResNet with only 2.3% accuracy degradation on CIFAR-10, enabling efficient deployment on resource-constrained devices.
Deep neural networks have demonstrated state-of-the-art performance in a variety of real-world applications. In order to obtain performance gains, these networks have grown larger and deeper, containing millions or even billions of parameters and over a thousand layers. The trade-off is that these large architectures require an enormous amount of memory, storage, and computation, thus limiting their usability. Inspired by the recent tensor ring factorization, we introduce Tensor Ring Networks (TR-Nets), which significantly compress both the fully connected layers and the convolutional layers of deep neural networks. Our results show that our TR-Nets approach {is able to compress LeNet-5 by $11 imes$ without losing accuracy}, and can compress the state-of-the-art Wide ResNet by $243 imes$ with only 2.3\% degradation in {Cifar10 image classification}. Overall, this compression scheme shows promise in scientific computing and deep learning, especially for emerging resource-constrained devices such as smartphones, wearables, and IoT devices.
Motivation & Objective
- Address the challenge of deploying large deep neural networks on memory- and compute-constrained devices such as smartphones and IoT devices.
- Overcome the limitations of prior compression methods that primarily target fully connected layers, by extending compression to convolutional layers which dominate modern architectures.
- Develop a compression framework that preserves model performance while drastically reducing parameter count, especially for models with high parameter counts like Wide ResNet.
- Enable efficient inference on edge devices by minimizing storage, memory, and computational overhead through structured tensor factorization.
- Demonstrate the effectiveness of tensor ring factorization as a generalization of tensor train and CP decompositions for neural network compression.
Proposed method
- Apply tensor ring (TR) factorization to decompose weight tensors in both fully connected and convolutional layers, representing them as a ring-structured product of low-rank tensors.
- For fully connected layers, reshape the weight matrix into a higher-order tensor and apply TR factorization to reduce parameter count.
- For convolutional layers, compress only the input and output channel dimensions while preserving spatial dimensions (e.g., 3×3 or 5×5 filters), maintaining spatial invariance.
- Use a ring structure where the first and last factor matrices are multiplied along their outer edges, generalizing both CP and tensor train decompositions.
- Optimize the order of tensor reshaping and contraction to minimize computational overhead during inference.
- Train the compressed networks end-to-end using standard optimization techniques (SGD with momentum) and learning rate decay on benchmark datasets.
Experimental results
Research questions
- RQ1Can tensor ring factorization effectively compress both fully connected and convolutional layers in deep neural networks without significant performance degradation?
- RQ2How does the compression performance of TR-Nets compare to existing methods like Tucker and tensor train (TT) factorizations on standard image classification benchmarks?
- RQ3To what extent can TR-Nets compress state-of-the-art models like Wide ResNet while maintaining competitive accuracy on CIFAR-10 and CIFAR-100?
- RQ4Does the TR-Nets approach reduce the generalization gap during training compared to other low-rank factorization methods?
- RQ5What is the trade-off between compression ratio, model accuracy, and computational overhead in TR-Nets for edge deployment?
Key findings
- TR-Nets achieved 11× compression on LeNet-5 with no accuracy degradation, maintaining 99.31% test accuracy on MNIST.
- LeNet-300-100 was compressed by 13× with only 0.14% accuracy drop, achieving 97.36% accuracy.
- On the 28-layer Wide ResNet, TR-Nets achieved 243× compression with just 2.3% accuracy degradation, reaching 92.7% accuracy on CIFAR-10.
- For the same compression ratio, TR-Nets showed a smaller generalization gap than Tucker factorization, indicating better generalization during training.
- At r=10, TR-Nets outperformed Tucker factorization in both final test error and generalization gap on CIFAR-100, demonstrating superior training stability.
- The method achieved 1217× compression on Wide ResNet with r=2, though at the cost of higher error (16.3% on CIFAR-100), showing a trade-off between compression and accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.