arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.01054cs.LG
收藏

面向高效深度神经网络的联合剪枝与逐通道混合精度量化

Joint Pruning and Channel-wise Mixed-Precision Quantization for Efficient Deep Neural Networks

Politecnico di Torino(都灵理工大学)

Beatrice Alessandra Motetti, Matteo Risso, Alessio Burrello, Enrico Macii, Massimo Poncino, Daniele Jahier Pagliari

AI总结:

提出一种基于梯度的硬件感知联合剪枝与逐通道混合精度量化方法,在保证准确率的同时大幅缩减模型尺寸并显著降低训练时间。

摘要:

深度神经网络(DNNs)的资源需求对其在边缘设备上的部署构成了重大挑战。解决该问题的常用方法是剪枝和混合精度量化,它们能够改善延迟和内存占用。这些优化技术通常独立应用。我们提出了一种新颖的方法,通过轻量级的基于梯度的搜索,以硬件感知的方式联合应用这些技术,大大减少了在准确率与成本(即延迟或内存)权衡方面生成帕累托最优DNNs所需的时间。我们在三个与边缘相关的基准上测试了我们的方法,即CIFAR-10、Google Speech Commands和Tiny ImageNet。当以优化内存占用为目标时,在与所有权重分别量化为8位和2位的基线网络保持同等准确率的情况下,我们分别实现了47.50%和69.54%的尺寸缩减。我们的方法超越了先前最先进的方法,在同等准确率下尺寸缩减高达56.17%。与顺序应用最先进的剪枝和混合精度优化相比,我们获得了可比或更优的结果,但训练时间显著降低。此外,我们还展示了在针对特定部署硬件时,量身定制的成本模型如何改善成本与准确率之间的权衡。

英文摘要:

The resource requirements of deep neural networks (DNNs) pose significant challenges to their deployment on edge devices. Common approaches to address this issue are pruning and mixed-precision quantization, which lead to latency and memory occupation improvements. These optimization techniques are usually applied independently. We propose a novel methodology to apply them jointly via a lightweight gradient-based search, and in a hardware-aware manner, greatly reducing the time required to generate Pareto-optimal DNNs in terms of accuracy versus cost (i.e., latency or memory). We test our approach on three edge-relevant benchmarks, namely CIFAR-10, Google Speech Commands, and Tiny ImageNet. When targeting the optimization of the memory footprint, we are able to achieve a size reduction of 47.50% and 69.54% at iso-accuracy with the baseline networks with all weights quantized at 8 and 2-bit, respectively. Our method surpasses a previous state-of-the-art approach with up to 56.17% size reduction at iso-accuracy. With respect to the sequential application of state-of-the-art pruning and mixed-precision optimizations, we obtain comparable or superior results, but with a significantly lowered training time. In addition, we show how well-tailored cost models can improve the cost versus accuracy trade-offs when targeting specific hardware for deployment.

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

↑