Proceedings

Learning Low-Rank Tensor Cores with Probabilistic ℓ0-Regularized Rank Selection for Model Compression

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 3780-3788.

https://doi.org/10.24963/ijcai.2024/418

Abstract

Compressing deep neural networks is of great importance for real-world applications on resource-constrained devices. Tensor decomposition is one promising answer that retains the functionality and most of the expressive power of the original deep models by replacing the weights with their decomposed cores. Decomposition with optimal ranks can achieve a good compression-accuracy trade-off, but it is expensive to optimize due to its discrete and combinatorial nature. A common practice is to set all ranks equal and tune one hyperparameter, but it may significantly harm the flexibility and generalization. In this paper, we propose a novel automatic rank selection method for deep model compression that allows learning model weights and decomposition ranks simultaneously. We propose to penalize the ℓ0 (quasi-)norm of the slices of decomposed tensor cores during model training. To avoid combinatorial optimization, we develop a probabilistic formulation and apply an approximate Bernoulli gate to each of the slices of tensor cores, which can be implemented in an end-to-end and scalable framework via gradient descent. It enables the automatic rank selection to be incorporated with arbitrary tensor decompositions and neural network layers such as linear layers, convolutional layers, and embedding layers. Comprehensive experiments on various tasks, including image classification, text sentiment classification, and neural machine translation, demonstrate the superior effectiveness of the proposed method over baselines.

  1. [Arora et al., 2018] Sanjeev Arora, Nadav Cohen, and Elad Hazan. On the optimization of deep networks: Implicit acceleration by overparameterization. In International Conference on Machine Learning, pages 244-253. PMLR, 2018.
  2. [Ba and Caruana, 2014] Jimmy Ba and Rich Caruana. Do deep nets really need to be deep? Advances in neural information processing systems, 27, 2014.
  3. [Cettolo et al., 2014] Mauro Cettolo, Jan Niehues, Sebastian Stüker, Luisa Bentivogli, and Marcello Federico. Report on the 11th iwslt evaluation campaign. In Proceedings of the 11th International Workshop on Spoken Language Translation: Evaluation Campaign, pages 2-17, 2014.
  4. [Cheng et al., 2020] Zhiyu Cheng, Baopu Li, Yanwen Fan, and Yingze Bao. A novel rank selection scheme in ten- sor ring decomposition based on reinforcement learning for deep neural networks. In ICASSP 2020-2020 IEEE In- ternational Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 3292-3296. IEEE, 2020.
  5. [Dai et al., 2023] Wei Dai, Jicong Fan, Yiming Miao, and Kai Hwang. Deep learning model compression with rank reduction in tensor decomposition. IEEE Transactions on Neural Networks and Learning Systems, 2023.
  6. [Dolgov et al., 2021] Sergey Dolgov, Dante Kalise, and Karl K Kunisch. Tensor decomposition methods for high- dimensional hamilton-jacobi-bellman equations. SIAM Journal on Scientific Computing, 43(3):A1625-A1650, 2021.
  7. [Gao et al., 2020] Ze-Feng Gao, Song Cheng, Rong-Qiang He, Zhi-Yuan Xie, Hui-Hai Zhao, Zhong-Yi Lu, and Tao Xiang. Compressing deep neural networks by matrix prod- uct operators. Physical Review Research, 2(2):023300, 2020.
  8. [Garipov et al., 2016] Timur Garipov, Dmitry Podoprikhin, Alexander Novikov, and Dmitry Vetrov. Ultimate ten- sorization: compressing convolutional and fc layers alike. arXiv preprint arXiv:1611.03214, 2016.
  9. [Gu et al., 2022] Jiaqi Gu, Ben Keller, Jean Kossaifi, An- ima Anandkumar, Brucek Khailany, and David Z Pan. Heat: Hardware-efficient automatic tensor decompo- sition for transformer compression. arXiv preprint arXiv:2211.16749, 2022.
  10. [Gusak et al., 2019] Julia Gusak, Maksym Kholi- avchenko, Evgeny Ponomarev, Larisa Markeeva, Philip Blagoveschensky, Andrzej Cichocki, and Ivan Oseledets. Automated multi-stage compression of neural networks. In 2019 IEEE/CVF International Conference on Com- puter Vision Workshop (ICCVW), pages 2501-2508. IEEE Computer Society, 2019.
  11. [Han et al., 2015] Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural net- works with pruning, trained quantization and huffman cod- ing. arXiv preprint arXiv:1510.00149, 2015.
  12. [Hashemizadeh et al., 2020] Meraj Hashemizadeh, Michelle Liu, Jacob Miller, and Guillaume Rabusseau. Adaptive tensor learning with tensor networks. 2020.
  13. [Hawkins and Zhang, 2021] Cole Hawkins and Zheng Zhang. Bayesian tensorized neural networks with au- tomatic rank selection. Neurocomputing, 453:172-180, 2021.
  14. [Hayashi et al., 2019] Kohei Hayashi, Taiki Yamaguchi, Yohei Sugawara, and Shin-ichi Maeda. Exploring unex- plored tensor network decompositions for convolutional neural networks. Advances in Neural Information Process- ing Systems, 32, 2019.
  15. [He et al., 2016] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recog- nition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770-778, 2016.
  16. [Hillar and Lim, 2013] Christopher J Hillar and Lek-Heng Lim. Most tensor problems are np-hard. Journal of the ACM (JACM), 60(6):1-39, 2013.
  17. [Hinton et al., 2015] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
  18. [Hochreiter and Schmidhuber, 1997] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735-1780, 1997.
  19. [Hrinchuk et al., 2020] Oleksii Hrinchuk, Valentin Khrulkov, Leyla Mirvakhabova, Elena Orlova, and Ivan Oseledets. Tensorized embedding layers. In Findings of the Association for Computational Linguistics: EMNLP 2020, pages 4847-4860, 2020.
  20. [Kodryan et al., 2023] Maxim Kodryan, Dmitry Kropotov, and Dmitry Vetrov. Mars: Masked automatic ranks selec- tion in tensor decompositions. In International Conference on Artificial Intelligence and Statistics, pages 3718-3732.
  21. PMLR, 2023.
  22. [Krizhevsky et al., 2009] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny im- ages. 2009.
  23. [Kwon et al., 2023] Taehyung Kwon, Jihoon Ko, Jinhong Jung, and Kijung Shin. Tensorcodec: Compact lossy com- pression of tensors without strong data assumptions. arXiv preprint arXiv:2309.10310, 2023.
  24. [Lebedev et al., 2014] Vadim Lebedev, Yaroslav Ganin, Maksim Rakhuba, Ivan Oseledets, and Victor Lempitsky. Speeding-up convolutional neural networks using fine- tuned cp-decomposition. arXiv preprint arXiv:1412.6553, 2014.
  25. [LeCun et al., 1998] Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning ap- plied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998.
  26. [Li et al., 2021] Nannan Li, Yu Pan, Yaran Chen, Zixiang Ding, Dongbin Zhao, and Zenglin Xu. Heuristic rank se- lection with progressively searching tensor ring network. Complex & Intelligent Systems, pages 1-15, 2021.
  27. [Li et al., 2022] Sunzhu Li, Peng Zhang, Guobing Gan, Xi- uqing Lv, Benyou Wang, Junqiu Wei, and Xin Jiang. Hy- poformer: Hybrid decomposition transformer for edge- friendly neural machine translation. In Proceedings of the 2022 Conference on Empirical Methods in Natural Lan- guage Processing, pages 7056-7068, 2022.
  28. [Louizos et al., 2018] Christos Louizos, Max Welling, and Diederik P Kingma. Learning sparse neural networks through l 0 regularization. In International Conference on Learning Representations, 2018.
  29. [Ma et al., 2019] Xindian Ma, Peng Zhang, Shuai Zhang, Nan Duan, Yuexian Hou, Ming Zhou, and Dawei Song. A tensorized transformer for language modeling. Advances in neural information processing systems, 32, 2019.
  30. [Maddison et al., 2016] Chris J Maddison, Andriy Mnih, and Yee Whye Teh. The concrete distribution: A continuous relaxation of discrete random variables. In International Conference on Learning Representations, 2016.
  31. [Nakajima et al., 2010] Shinichi Nakajima, Masashi Sugiyama, and Ryota Tomioka. Global analytic solution for variational bayesian matrix factorization. Advances in Neural Information Processing Systems, 23, 2010.
  32. [Novikov et al., 2015] Alexander Novikov, Dmitrii Podoprikhin, Anton Osokin, and Dmitry P Vetrov. Tensorizing neural networks. Advances in neural information processing systems, 28, 2015.
  33. [Orús, 2019] Román Orús. Tensor networks for complex quantum systems. Nature Reviews Physics, 1(9):538-550, 2019.
  34. [Oseledets, 2011] Ivan V Oseledets. Tensor-train de- composition. SIAM Journal on Scientific Computing, 33(5):2295-2317, 2011.
  35. [Pan et al., 2022] Yu Pan, Zeyong Su, Ao Liu, Wang Jingquan, Nannan Li, and Zenglin Xu. A unified weight initialization paradigm for tensorial convolutional neural networks. In International Conference on Machine Learn- ing, pages 17238-17257. PMLR, 2022.
  36. [Post, 2018] Matt Post. A call for clarity in reporting bleu scores. In Proceedings of the Third Conference on Ma- chine Translation: Research Papers, page 186. Associa- tion for Computational Linguistics, 2018.
  37. [Rouard et al., 2023] Simon Rouard, Francisco Massa, and Alexandre Défossez. Hybrid transformers for music source separation. In ICASSP 2023-2023 IEEE Interna- tional Conference on Acoustics, Speech and Signal Pro- cessing (ICASSP), pages 1-5. IEEE, 2023.
  38. [Tibshirani, 1996] Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society Series B: Statistical Methodology, 58(1):267-288, 1996.
  39. [Tomioka et al., 2010] Ryota Tomioka, Kohei Hayashi, and Hisashi Kashima. Estimation of low-rank tensors via con- vex optimization. arXiv preprint arXiv:1010.0789, 2010.
  40. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
  41. [Wang et al., 2018] Wenqi Wang, Yifan Sun, Brian Eriksson, Wenlin Wang, and Vaneet Aggarwal. Wide compression: Tensor ring nets. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 9329- 9338, 2018.
  42. [Wang et al., 2021] Benyou Wang, Yuxin Ren, Lifeng Shang, Xin Jiang, and Qun Liu. Exploring extreme pa- rameter compression for pre-trained language models. In International Conference on Learning Representations, 2021.
  43. [Wen et al., 2016] Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. Advances in neural information processing systems, 29, 2016.
  44. [Yaguchi et al., 2019] Atsushi Yaguchi, Taiji Suzuki, Shuhei Nitta, Yukinobu Sakata, and Akiyuki Tanizawa. Decomposable-net: Scalable low-rank compression for neural networks. arXiv preprint arXiv:1910.13141, 2019. IJCAI
  45. [Yamada et al., 2020] Yutaro Yamada, Ofir Lindenbaum, Sa- hand Negahban, and Yuval Kluger. Feature selection using stochastic gates. In International Conference on Machine Learning, pages 10648-10659. PMLR, 2020.
  46. [Yang et al., 2017] Yinchong Yang, Denis Krompass, and Volker Tresp. Tensor-train recurrent neural networks for video classification. In International Conference on Ma- chine Learning, pages 3891-3900. PMLR, 2017.
  47. [Yin et al., 2022] Miao Yin, Yang Sui, Wanzhao Yang, Xiao Zang, Yu Gong, and Bo Yuan. Hodec: Towards ef- ficient high-order decomposed convolutional neural net- works. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 12299- 12308, 2022.
  48. [Zhao et al., 2016] Qibin Zhao, Guoxu Zhou, Shengli Xie, Liqing Zhang, and Andrzej Cichocki. Tensor ring decom- position. arXiv preprint arXiv:1606.05535, 2016.
  49. [Zhen et al., 2022] Peining Zhen, Ziyang Gao, Tianshu Hou, Yuan Cheng, and Hai-Bao Chen. Deeply tensor com- pressed transformers for end-to-end object detection. In Proceedings of the AAAI Conference on Artificial Intelli- gence, volume 36, pages 4716-4724, 2022.
  50. [Ziyin and Wang, 2023] Liu Ziyin and Zihao Wang. spred: Solving l1 penalty with sgd. In International Conference on Machine Learning, pages 43407-43422. PMLR, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards