Optimizing Tensor-Train Decomposition for efficient edge AI: Accelerated decoding via GEMM and reshape minimization
Hyunseok Kwak , Sangmin Jeon , Kyeongwon Lee , Woojoo Lee
AIMS Mathematics ›› 2025, Vol. 10 ›› Issue (7) : 15755 -15784.
Tensor-Train Decomposition (TTD) has emerged as a powerful mathematical framework for compressing neural network models in edge-oriented deployments, significantly reducing communication overhead between cloud environments and resource-constrained edge devices. However, its widespread adoption is hindered by the substantial computational overhead of decoding compressed parameters on edge hardware. In this paper, we experimentally demonstrate and mathematically validate that TTD achieves superior compression efficiency and better accuracy retention compared to conventional pruning methods, particularly when fine-tuning is impractical. To overcome the critical decoding bottleneck, we propose a mathematically rigorous yet hardware-aware optimization framework specifically tailored for efficient TTD-based deployments. Our approach leverages existing General Matrix Multiplication (GEMM) accelerators, commonly available in modern edge processors, to substantially accelerate the computationally intensive Einsum operations inherent in TTD decoding. Furthermore, we analytically identify redundant reshape operations between the decoding and inference stages, introducing a novel merging strategy that significantly reduces memory-bound overhead. Evaluations on a Field-Programmable Gate Array (FPGA)-based edge inference processor show substantial improvements, including a 3$ \times $ speedup in reshape operations and a 69.3% decrease in decoding time. By seamlessly integrating rigorous mathematical formulation, analytical justification, and practical hardware optimization, this work paves the way for the efficient real-world deployment of TTD-compressed models on edge devices.
Tensor-Train Decomposition (TTD) / edge AI / model compression / GEMM accelerator / reshape optimization / Cloud-to-Edge deployment / FPGA prototyping
| [1] |
|
| [2] |
|
| [3] |
|
| [4] |
|
| [5] |
|
| [6] |
|
| [7] |
|
| [8] |
A. Quélennec, E. Tartaglione, P. Mozharovskyi, V. T. Nguyen, Towards on-device learning on the edge: Ways to select neurons to update under a budget constraint, IEEE/CVF Winter Conf. Appl. Comput. Vis., 2024,685–694. https://doi.org/10.1109/WACVW60836.2024.00080 |
| [9] |
|
| [10] |
S. Sai, M. Prasad, G. Dashore, V. Chamola, B. Sikdar, On-device generative AI: The need, architectures, and challenges, IEEE Consum. Electr. M., (In press). https://doi.org/10.1109/MCE.2024.3518761 |
| [11] |
Z. Dong, Q. He, F. Chen, H. Jin, T. Gu, Y. Yang, Edgemove: Pipelining device-edge model training for mobile intelligence, ACM Web Conf., 2023, 3142–3153. https://doi.org/10.1145/3543507.3583540 |
| [12] |
H. Wen, Y. Li, Z. Zhang, S. Jiang, X. Ye, Y. Ouyang, et al., Adaptivenet: Post-deployment neural architecture adaptation for diverse edge environments, ACM Mobicom., 2023, 1–17. https://doi.org/10.1145/3570361.3592529 |
| [13] |
|
| [14] |
X. Li, S. Bi, Optimal AI model splitting and resource allocation for device-edge co-inference in multi-user wireless sensing systems, IEEE Trans. Wireless Commun., (In press). https://doi.org/10.1109/TWC.2024.3378418 |
| [15] |
Y. Guo, A. Yao, Y. Chen, Dynamic network surgery for efficient DNNs, Adv. Neural Inf. Process. Syst., 29 (2016). |
| [16] |
X. Dong, S. Chen, S. Pan, Learning to prune deep neural networks via layer-wise optimal brain surgeon, Adv. Neural Inf. Process. Syst., 30 (2017). |
| [17] |
X. Ding, G. Ding, Y. Guo, J. Han, Centripetal SGD for pruning very deep convolutional networks with complicated structure, IEEE/CVF Conf. Comput. Vis. Pattern Recognit., 2019, 4943–4953. https://doi.org/10.1109/CVPR.2019.00508 |
| [18] |
O. A. Malik, S. Becker, Low-rank Tucker decomposition of large tensors using TensorSketch, Adv. Neural Inf. Process. Syst., 31 (2018). |
| [19] |
|
| [20] |
K. Han, W. Xiang, Multiscale tensor decomposition and rendering equation encoding for view synthesis, IEEE/CVF Conf. Comput. Vis. Pattern Recognit., 2023, 4232–4241. https://doi.org/10.1109/CVPR52729.2023.00412 |
| [21] |
M. Nagel, M. Fournarakis, Y. Bondarenko, T. Blankevoort, Overcoming oscillations in quantization-aware training, Int. Conf. Mach. Learn., 2022, 16318–16330. |
| [22] |
|
| [23] |
A. Marchisio, D. Dura, M. Capra, M. Martina, G. Masera, M. Shafique, Swifttron: An efficient hardware accelerator for quantized transformers, Int. Jt. Conf. Neural Netw., 2023, 1–9. https://doi.org/10.1109/IJCNN54540.2023.10191521 |
| [24] |
L. Beyer, X. Zhai, A. Royer, L. Markeeva, R. Anil, A. Kolesnikov, Knowledge distillation: A good teacher is patient and consistent, IEEE/CVF Conf. Comput. Vis. Pattern Recognit., 2022, 10925–10934. https://doi.org/10.1109/CVPR52688.2022.01065 |
| [25] |
|
| [26] |
O. T. C. Chen, Y. X. Chang, C. Y. Chung, Y. Cheng, M. H. Ha, Hardware-aware iterative one-shot neural architecture search with adaptable knowledge distillation for efficient edge computing, IEEE Access, (In press). https://doi.org/10.1109/ACCESS.2025.3554185 |
| [27] |
|
| [28] |
|
| [29] |
N. Aghli, E. Ribeiro, Combining weight pruning and knowledge distillation for CNN compression, IEEE/CVF Conf. Comput. Vis. Pattern Recognit., 2021, 3191–3198. |
| [30] |
S. Muralidharan, S. T. Sreenivas, R. Joshi, M. Chochowski, M. Patwary, M. Shoeybi, et al., Compact language models via pruning and knowledge distillation, Adv. Neural Inf. Process. Syst., 37, 41076–41102, 2024. |
| [31] |
I. V. Oseledets, Tensor-train decomposition, SIAM J. Sci. Comput., 33 (5), 2295–2317, 2011. https://doi.org/10.1137/090752286 |
| [32] |
|
| [33] |
C. Yin, D. Zheng, I. Nisa, C. Faloutsos, G. Karypis, R. Vuduc, Nimble GNN embedding with tensor-train decomposition, ACM SIGKDD Conf. Knowl. Discov. Data Min., 2022, 2327–2335. https://doi.org/10.1145/3534678.3539423 |
| [34] |
D. Lee, R. Yin, Y. Kim, A. Moitra, Y. Li, P. Panda, TT-SNN: Tensor train decomposition for efficient spiking neural network training, Des. Autom. Test Eur. Conf. Exhib., 2024, 1–6. https://doi.org/10.23919/DATE58400.2024.10546679 |
| [35] |
Y. He, L. Xiao, Structured pruning for deep convolutional neural networks: A survey, IEEE T. Pattern Anal., 46 (5), 2900–2919, 2023. https://doi.org/10.1109/TPAMI.2023.3334614 |
| [36] |
Z. Wang, Sparsert: Accelerating unstructured sparsity on GPUs for deep learning inference, ACM Int. Conf. Parallel Archit. Compil. Techn., 2020, 31–42. https://doi.org/10.1145/3410463.3414654 |
| [37] |
|
| [38] |
J. Lee, W. Lee, J. Sim, Tender: Accelerating large language models via tensor decomposition and runtime requantization, ACM/IEEE Int. Symp. Comput. Archit., 2024, 1048–1062. https://doi.org/10.1109/ISCA59077.2024.00080 |
| [39] |
|
| [40] |
|
| [41] |
|
| [42] |
|
| [43] |
|
| [44] |
M. Astrid, S. I. Lee, CP-decomposition with tensor power method for convolutional neural networks compression, IEEE Int. Conf. Big Data Smart Comput., 2017,115–118. https://doi.org/10.1109/BIGCOMP.2017.7881725 |
| [45] |
S. Fang, R. M. Kirby, S. Zhe, Bayesian streaming sparse Tucker decomposition, Uncertainty Artif. Intell., 2021,558–567. |
| [46] |
|
| [47] |
C. Deng, F. Sun, X. Qian, J. Lin, Z. Wang, B. Yuan, TIE: Energy-efficient tensor train-based inference engine for deep neural network, Int. Symp. Comput. Archit., 2019,264–278. https://doi.org/10.1145/3307650.3322258 |
| [48] |
|
| [49] |
|
| [50] |
Y. Wang, C. Yang, S. Lan, L. Zhu, Y. Zhang, End-edge-cloud collaborative computing for deep learning: A comprehensive survey, IEEE Commun. Surv. Tutor., (In press). https://doi.org/10.1109/COMST.2024.3393230 |
| [51] |
|
| [52] |
|
| [53] |
|
| [54] |
S. Chetlur, C. Woolley, P. Vandermersch, J. Cohen, J. Tran, B. Catanzaro, et al, cuDNN: Efficient primitives for deep learning, arXiv Preprint, arXiv: 1410.0759, 2014. https://doi.org/10.48550/arXiv.1410.0759 |
| [55] |
|
| [56] |
G. H. Golub, C. F. Van Loan, Matrix Computations, Johns Hopkins Univ. Press, 4th ed., 2013. |
| [57] |
|
| [58] |
K. Han, S. Lee, K. I. Oh, Y. Bae, H. Jang, J. J. Lee, et al., Developing TEI-aware ultralow-power SoC platforms for IoT end nodes, IEEE Internet Things, 8 (6) (2020), 4642–4656. https://doi.org/10.1109/JIOT.2020.3027479 |
| [59] |
J. Park, E. Choi, K. Lee, J. J. Lee, K. Han, W. Lee, Developing an ultra-low power RISC-V processor for anomaly detection, Des. Autom. Test Eur. Conf. Exhib., 2023, 1–2. https://doi.org/10.23919/DATE56975.2023.10137003 |
| [60] |
|
| [61] |
|
| [62] |
|
| [63] |
|
| [64] |
S. Jeon, K. Lee, K. Lee, W. Lee, HH-PIM: Dynamic optimization of power and performance with heterogeneous-hybrid PIM for edge AI devices, arXiv preprint arXiv: 2504.01468, 2025. https://arXiv.org/abs/2504.01468 |
| [65] |
SiFIVE, Available from: https://github.com/chipsalliance/rocket-chip |
| [66] |
K. Han, S. Lee, J. J. Lee, W. Lee, M. Pedram, TIP: A temperature effect inversion-aware ultra-low power system-on-chip platform, In Proc. IEEE/ACM Int. Symp. Low Power Electron. Des., 1–6, 2019. https://doi.org/10.1109/ISLPED.2019.8824925 |
| [67] |
Genesys2 FPGA Board, Available from: https://digilent.com/shop/genesys-2-kintex-7-fpga-development-board |
/
| 〈 |
|
〉 |