arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.01996cs.LGcs.AIcs.ARcs.MS
收藏

在RISC-V架构上通过设计空间探索和编译器优化优化DNN中的张量列车分解

Optimizing Tensor Train Decomposition in DNNs for RISC-V Architectures Using Design Space Exploration and Compiler Optimizations

School of Informatics, Aristotle University of Thessaloniki(阿尔基托斯大学信息学院);School of Engineering, Computing and Mathematics, University of Plymouth(普利茅斯大学工程、计算与数学学院);School of Informatics, Reutlingen University(鲁特林根大学信息学院)

Theologos Anthimopoulos, Milad Kokhazadeh, Vasilios Kelefouras, Benjamin Himpel, Georgios Keramidas

AI总结:

本文提出了一种在RISC-V架构上通过设计空间探索和编译器优化优化DNN中张量列车分解的方法,以提高计算效率和推理速度。

摘要:

深度神经网络(DNN)在许多现实应用中已成为不可或缺的工具,如自然语言处理和自主系统。然而,将DNN部署在资源受限的设备上(例如RISC-V平台)仍然具有挑战性,因为全连接(FC)层的高计算和内存需求主导了资源消耗。低秩因子分解(LRF)提供了一种有效的方法来压缩FC层,但LRF解决方案的广阔设计空间涉及FLOPs、内存大小、推理时间和准确性之间的复杂权衡,使LRF过程复杂且耗时。本文介绍了一种端到端的LRF设计空间探索方法和专门的设计工具,用于优化RISC-V处理器上的FC层。使用Tensor Train Decomposition(TTD)提供的TensorFlow T3F库,所提出的工作通过排除首先无效的分解形状和其次在RISC-V架构上性能差的解决方案来修剪LRF设计空间。然后应用编译器优化来增强自定义T3F层的性能,从而最小化推理时间和提高计算效率。平均而言,我们的TT分解层在相同压缩模型上比IREE快3倍,比Pluto快8倍。这项工作为在RISC-V架构驱动的边缘和嵌入式设备上部署DNN提供了一个高效的解决方案。

英文摘要:

Deep neural networks (DNNs) have become indispensable in many real-life applications like natural language processing, and autonomous systems. However, deploying DNNs on resource-constrained devices, e.g., in RISC-V platforms, remains challenging due to the high computational and memory demands of fully connected (FC) layers, which dominate resource consumption. Low-rank factorization (LRF) offers an effective approach to compressing FC layers, but the vast design space of LRF solutions involves complex trade-offs among FLOPs, memory size, inference time, and accuracy, making the LRF process complex and time-consuming. This paper introduces an end-to-end LRF design space exploration methodology and a specialized design tool for optimizing FC layers on RISC-V processors. Using Tensor Train Decomposition (TTD) offered by TensorFlow T3F library, the proposed work prunes the LRF design space by excluding first, inefficient decomposition shapes and second, solutions with poor inference performance on RISC-V architectures. Compiler optimizations are then applied to enhance custom T3F layer performance, minimizing inference time and boosting computational efficiency. On average, our TT-decomposed layers run 3x faster than IREE and 8x faster than Pluto on the same compressed model. This work provides an efficient solution for deploying DNNs on edge and embedded devices powered by RISC-V architectures.

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

↑