Block-term tensor neural networks

Jinmian Ye, Guangxi Li, Di Chen, Haiqin Yang, Shandian Zhe, Zenglin Xu · DOI

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success across various domains, yet their deployment on resource-constrained edge devices remains a significant challenge. The primary bottleneck is often the massive parameter count of fully-connected (FC) layers. While existing tensor decomposition methods like CP, Tucker, and Tensor Train (TT) offer compression, they frequently struggle with a trade-off between expressivity, stability, and compression ratio. This research introduces Block-term Tensor Layers (BT-layers), leveraging a hybrid tensor decomposition to achieve extreme compression without sacrificing performance.

Methodology: The Block-term Tensor Layer

The proposed approach transforms standard weight matrices into high-order tensors and approximates them using Block-term Decomposition (BTD).

Tensorization

The first step involves reshaping input vectors and weight matrices into high-order tensors. This process, known as tensorization, allows the model to exploit multi-dimensional correlations that are typically lost when data is flattened into 2D matrices.

Tensorization and Matrixization: Mapping between a 2D matrix and a 3rd-order tensor.

Block-term Decomposition (BTD)

BTD represents a large tensor as a sum of several "Tucker" models. This hybrid structure combines the additive flexibility of CP decomposition with the core-tensor structure of Tucker decomposition, capturing complex local correlations more effectively than either method alone.

Block-term Decomposition (BTD): Approximating a large tensor W as a sum of N Tucker terms.

By integrating these BTD structures into neural network architectures (e.g., CNNs and RNNs), standard matrix-vector multiplications are replaced by efficient tensor contractions. The authors derived gradients for BTD, enabling end-to-end training via backpropagation.

Key Results and Insights

The BT-layer approach was evaluated across image classification (MNIST, CIFAR-10, ImageNet), video classification (UCF11), and image captioning (MSCOCO) tasks.

  • Extreme Compression: On ImageNet using AlexNet, the first FC layer was compressed by a factor of 44,281x with minimal accuracy loss.
  • Performance Gains: In video classification (UCF11), BT-LSTMs improved accuracy from 69.7% to 85.3% while significantly reducing parameters.
  • Stability and Convergence: BTD proved more stable than the Tensor Train (TT) format. Furthermore, BT-LSTMs converged significantly faster—reaching 60% accuracy in 16 epochs compared to 220 epochs for vanilla LSTMs—suggesting that the low-rank constraint provides beneficial regularization.
  • Interpretability: Grad-CAM analysis indicated that BT-layers focus more precisely on salient image features compared to standard layers.

Conclusion

Block-term Tensor Layers offer a powerful solution for compressing DNNs, achieving staggering reduction ratios while maintaining or improving performance. Future work will explore combining BTD with pruning and binarization to further push the boundaries of model efficiency for edge deployment.

Summary updated

BibTeX
@inproceedings{ye2020block,
  author = {Jinmian Ye and Guangxi Li and Di Chen and Haiqin Yang and Shandian Zhe and Zenglin Xu},
  title = {{Block-term tensor neural networks}},
  booktitle = {Neural Networks},
  year = {2020},
  doi = {10.1016/j.neunet.2020.05.034},
}
Figure