实现用于移动设备上DNN加速的非对齐块剪枝
Realizing Unaligned Block-wise Pruning for DNN Acceleration on Mobile Devices
AI总结:
针对移动设备DNN加速中非对齐块剪枝(UBP)受限于耗时算法和缺乏高效内核的问题,提出快速块选择算法BED及高效移动端推理内核,实现与对齐剪枝相似的延迟并保持模型精度。
摘要:
随着近期端侧AI的普及,越来越需要在移动设备上直接运行计算密集的DNN。然而,这些设备有限的计算和内存资源需要有效的剪枝技术。块剪枝因其在加速收益与精度下降之间具有较低的折损而备受看好,但它要求块位置与块大小对齐,阻碍了通过最优位置选择来最小化模型精度下降。非对齐块剪枝(UBP)通过允许在任意位置选择块来解决这一问题,但其实际应用受限于耗时的最优块选择算法以及缺乏高效的推理内核。在本文中,我们提出了一种伪最优但快速的块选择算法,称为块扩展与划分(BED),该算法可集成到迭代模型训练过程中。此外,我们引入了一种面向移动设备的高效推理内核实现,使基于UBP的模型能够获得与由对齐块剪枝压缩的DNN模型相似的延迟。我们在真实手机上利用MobileNet和ResNet模型展示了我们技术的优越性。
英文摘要:
With the recent proliferation of on-device AI, there is an increasing need to run computationally intensive DNNs directly on mobile devices. However, the limited computing and memory resources of these devices necessitate effective pruning techniques. Block-wise pruning is promising due to its low accuracy drop tradeoff for speedup gains, but it requires block positions to be aligned with block size, hindering optimal position selection to minimize model accuracy drop. Unaligned block pruning (UBP) addresses this by allowing blocks to be selected at arbitrary positions, yet its practical use is limited by a time-consuming optimal block selection algorithm and lack of efficient inference kernels. In this paper, we propose a pseudo-optimal yet fast block selection algorithm called Block Expansion and Division (BED), which can be integrated into an iterative model training process. Additionally, we introduce an efficient inference kernel implementation for mobile devices, enabling a UBP-based model to achieve similar latency to a DNN model compressed by aligned block pruning. We demonstrate the superiority of our techniques on a real mobile phone with MobileNet and ResNet models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。