TL;DR
This paper introduces Hierarchical Tucker (HT) decomposition for neural network compression, demonstrating its effectiveness, particularly for fully connected layers. By proposing a hybrid approach that combines HT for fully connected layers and Tensor-Train (TT) for convolutional layers, the authors achieve superior compression performance compared to using either method alone.
What Problem Does This Paper Address?
Deep neural networks (DNNs) have achieved remarkable success across various AI applications. However, their increasing complexity and size lead to significant computational and storage demands, hindering their deployment on resource-constrained devices. Existing compression techniques like quantization, pruning, and knowledge distillation help, but low-rank factorization using tensor decomposition methods (like TT) has shown particular promise. While TT is widely used, this paper explores the potential of Hierarchical Tucker (HT) decomposition, a less commonly applied method, and proposes a hybrid strategy to optimize compression by leveraging the strengths of both HT and TT for different network components.
Methods
The core of this work lies in applying and comparing two tensor decomposition techniques:
- Hierarchical Tucker (HT) Decomposition: The authors introduce HT decomposition for neural network compression. They detail its basic, normal, and contracted forms, highlighting its flexible, tree-like structure. They argue that HT is particularly well-suited for compressing weight matrices in fully connected (FC) layers due to its ability to handle balanced tensor dimensions effectively.
- Tensor-Train (TT) Decomposition: TT decomposition, a variant of HT, is also employed. The paper suggests that TT is more advantageous for compressing convolutional kernels, which often have unbalanced dimensions.
- Hybrid Tensor Decomposition Strategy: The key novelty is the proposed hybrid approach. This strategy leverages HT for FC layers and TT for convolutional layers within a single network. This aims to capitalize on the individual strengths of each method for different network components, leading to improved overall compression and accuracy.
Datasets
The paper evaluates its methods on several standard datasets:
- UCF11 and UCF50: Used for evaluating RNNs (specifically LSTMs) for video classification.
- CIFAR-10: Used for evaluating CNNs on image recognition tasks.
- CVRR-HANDS 3D: Used for evaluating 3D CNNs on hand gesture recognition.
- ImageNet 2012: A large-scale dataset used to test the proposed methods on a more complex CNN architecture (AlexNet).
- MNIST: Used for specific experiments to analyze the effect of dimension lengths on HT decomposition.
Key Insights and Ideas
- HT vs. TT for Different Layers: A crucial finding is that HT decomposition performs better for compressing weight matrices in FC layers, while TT decomposition is more suitable for convolutional kernels. This is attributed to HT's preference for balanced dimensions and TT's robustness with unbalanced dimensions.
- Hybrid Strategy Superiority: The proposed hybrid approach, combining HT for FC layers and TT for convolutional layers, consistently outperforms using either HT or TT alone across various datasets and network architectures.
- Gradient Analysis: The paper provides theoretical analysis of gradients during training, suggesting that HT is more sensitive to unbalanced tensor shapes, which can impact convergence. This analysis supports the rationale behind the hybrid strategy.
- Tensor Decomposition as Network Redesign: The authors propose that tensor-decomposed networks can be viewed as new, independent architectures, potentially offering more flexibility than traditional compression methods like quantization or pruning.
Key Results
- Compression Factors: The hybrid approach achieves significant compression factors. For example, on the CVRR dataset, the hybrid method achieved a compression factor of 171.38, while maintaining high accuracy.
- Accuracy Maintenance: Despite substantial compression, the hybrid method generally maintains or even improves accuracy compared to baseline models, especially in cases where the baseline model might be under-parameterized. For instance, on CVRR, the hybrid method achieved 90.00±1.70 accuracy, surpassing the uncompressed baseline of 89.74±1.30.
- RNN Performance: For RNNs (LSTMs), HT decomposition showed comparable or slightly better performance than TT decomposition in terms of accuracy and compression.
- CNN Performance: For CNNs, the hybrid approach consistently yielded the best results. While TT-decomposed CNNs performed better than HT-decomposed CNNs when only convolutional kernels were compressed, the hybrid method combining TT for convolutions and HT for FC layers achieved the highest accuracy.
Limitations and Future Work
- Limitations:
- The paper acknowledges that while compressed networks generally maintain accuracy, there is often a slight decline compared to uncompressed models.
- The effectiveness of HT for convolutional kernels was found to be less pronounced than for FC layers, especially in 2D CNNs, due to unbalanced dimensions.
- Future Work:
- The authors suggest exploring joint compression techniques that combine tensor decomposition with other methods like quantization and pruning to achieve even greater compression factors.
- They also hint at the potential for tensor decomposition to inspire new neural network architectures.
Summary updated