arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.15200cs.LG
收藏

基于半张量积的TensorDecomposition压缩神经网络

Semi-tensor Product-based TensorDecomposition for Neural Network Compression

University of Electronic Science and Technology of China(电子科技大学);Shanghai Jiao Tong University(上海交通大学)

Hengling Zhao, Yipeng Liu, Xiaolin Huang, Ce Zhu

摘要:

现有的张量网络采用传统的矩阵积进行连接。经典的矩阵乘积要求因子之间具有严格的维数一致性,这会导致数据表示的冗余。本文利用半张量积将经典的基于矩阵积的模积推广到半张量积。由于它允许连接两个不同维度的因子,因此可以用较小的因子获得更灵活和紧凑的张量分解。Tucker分解、张量训练(TT)和张量环(TR)是深度神经网络低秩压缩的常用分解。将半张量积应用于这些张量分解以获得它们的广义版本,即,半张量Tucker分解(STTu)、半张量训练(STT)和半张量环(STR)。实验结果表明,STTu,STT和STR实现更高的压缩因子比传统的张量分解具有相同的精度,但更少的训练时间在ResNet和WideResNet压缩。在2%精度下降的情况下,TT-RN(rank = 14)和TR-WRN(rank = 16)仅获得3倍和99 t倍的压缩因子,而STT-RN(rank = 14)和STR-WRN(rank = 16)分别获得9倍和179倍的压缩因子。

英文摘要:

The existing tensor networks adopt conventional matrix product for connection. The classical matrix product requires strict dimensionality consistency between factors, which can result in redundancy in data representation. In this paper, the semi-tensor product is used to generalize classical matrix product-based mode product to semi-tensor mode product. As it permits the connection of two factors with different dimensionality, more flexible and compact tensor decompositions can be obtained with smaller sizes of factors. Tucker decomposition, Tensor Train (TT) and Tensor Ring (TR) are common decomposition for low rank compression of deep neural networks. The semi-tensor product is applied to these tensor decompositions to obtained their generalized versions, i.e., semi-tensor Tucker decomposition (STTu), semi-tensor train(STT) and semi-tensor ring (STR). Experimental results show the STTu, STT and STR achieve higher compression factors than the conventional tensor decompositions with the same accuracy but less training times in ResNet and WideResNetcompression. With 2% accuracy degradation, the TT-RN (rank = 14) and the TR-WRN (rank = 16) only obtain 3 times and99t times compression factors while the STT-RN (rank = 14) and the STR-WRN (rank = 16) achieve 9 times and 179 times compression factors, respectively.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑