Fine-grained hierarchical singular value decomposition for convolutional neural networks compression and acceleration

被引:0
作者
Qi, Mengmeng [1 ]
Wang, Dingheng [2 ]
Yang, Wei [2 ]
Liu, Baorong [2 ]
Wang, Fuyong [1 ]
Chen, Zengqiang [1 ]
机构
[1] Nankai Univ, Coll Artificial Intelligence, Tianjin, Peoples R China
[2] Northwest Inst Mech & Elect Engn, Xianyang, Peoples R China
基金
中国国家自然科学基金;
关键词
Hierarchical singular value decomposition; Convolutional neural networks; Compression and acceleration; Self-adaptive rank selection; Fine-tuning; TENSOR; SVD;
D O I
10.1016/j.neucom.2025.129966
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Convolutional neural networks (CNNs) still remain crucial in the field of computer vision, especially in industrial-embedded scenarios. Although modern artificial intelligence chips such as embedded graphics processing units (GPUs) and neural process units (NPUs) are equipped with sufficient computability, making CNNs more lightweight always has non-negligible significance. Until now, many researchers have made multiple corresponding achievements, in which a series of tensor decomposition methods have represented their unique advantages such as concision, flexibility, and low-rank approximation theory. However, balancing the compression, acceleration, and precision, is still an open issue, because the traditional tensor decompositions are hard to deal with the trade-off between approximation and compression ability, while the so-called finegrained tensor decompositions such as Kronecker canonical polyadic (KCP) have not created a way to merge the factors for efficient inference. In this paper, we first review related works on convolutional neural network (CNN) compression and the necessary prior knowledge. We then propose a novel matrix decomposition method, termed hierarchical singular value (HSV) decomposition, and validate its effectiveness. Subsequently, we introduce a fast contraction strategy based on the merged factors of HSV and explain how our method addresses the inefficiencies in inference associated with traditional contraction processes. Additionally, we validate the advantages of HSV by comparing its complexity with that of other classical tensor decomposition methods. Thereafter, we apply HSV to CNN compression and acceleration by transforming convolution operations into matrix multiplication. We also propose a self-adaptive rank selection algorithm tailored to standard CNN architecture and conduct a theoretical analysis of the convergence of our method. Multiple experiments on CIFAR-10, ImageNet, COCO, and Cityscapes benchmark datasets show that the proposed HSV-Conv can simultaneously gain considerable compression ratio and acceleration ratio, while the precision loss is almost non-existent. We also make a comprehensive comparison with the other related works, and the superiority of our method is further validated. Besides, we give a deep discussion about the rank selection issue of HSV in the aspects of practice and theory, which explains the strategy of the proposed self-adaptive rank selection and the reason for choosing fine-tuning rather than training from scratch.
引用
收藏
页数:17
相关论文
共 72 条
[1]  
Achiam J., 2023, Open AI GPT-4 technical report, DOI [DOI 10.48550/ARXIV.2303.08774, 10.48550/arxiv.2303.08774]
[2]  
Phan AH, 2013, INT CONF ACOUST SPEE, P3228, DOI 10.1109/ICASSP.2013.6638254
[3]  
Anh Huy Phan, 2012, Latent Variable Analysis and Signal Separation. Proceedings 10th International Conference, LVA/ICA 2012, P297, DOI 10.1007/978-3-642-28551-6_37
[4]  
Astrid M, 2017, INT CONF BIG DATA, P115, DOI 10.1109/BIGCOMP.2017.7881725
[5]  
Batselier K., 2015, Numer. Linear Algebra Appl.
[6]   A CONSTRUCTIVE ALGORITHM FOR DECOMPOSING A TENSOR INTO A FINITE SUM OF ORTHONORMAL RANK-1 TERMS [J].
Batselier, Kim ;
Liu, Haotian ;
Wong, Ngai .
SIAM JOURNAL ON MATRIX ANALYSIS AND APPLICATIONS, 2015, 36 (03) :1315-1337
[7]  
Cai H., 2019, INT C LEARN REPR
[8]  
Cai LH, 2022, AAAI CONF ARTIF INTE, P140
[9]   ANALYSIS OF INDIVIDUAL DIFFERENCES IN MULTIDIMENSIONAL SCALING VIA AN N-WAY GENERALIZATION OF ECKART-YOUNG DECOMPOSITION [J].
CARROLL, JD ;
CHANG, JJ .
PSYCHOMETRIKA, 1970, 35 (03) :283-&
[10]  
Chen YP, 2018, PROCEEDINGS OF THE TWENTY-SEVENTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE, P635