arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2307.02894cs.LG
收藏

Free Bits:边缘端混合精度量化神经网络的延迟优化

Free Bits: Latency Optimization of Mixed-Precision Quantized Neural Networks on the Edge

ETH Zürich(苏黎世联邦理工学院);Università di Bologna(博洛尼亚大学)

Georg Rutishauser, Francesco Conti, Luca Benini

AI总结:

本文提出混合搜索方法,结合硬件无关的可微搜索与硬件感知启发式优化,为边缘端多核 RISC-V 平台寻找延迟最优的混合精度量化配置,在 MobileNet 上实现最高 28.6% 延迟降低且精度损失可忽略。

摘要:

混合精度量化将深度神经网络的不同层量化到不同精度,能够在模型大小、延迟和统计精度之间实现超越同质位宽量化所能达到的权衡优化。为了在给定网络的混合精度配置这一难以处理的搜索空间中进行导航,本文提出了一种混合搜索方法。该方法由一个与硬件无关的可微搜索算法和一个硬件感知的启发式优化组成,用于为特定硬件目标找到延迟优化的混合精度配置。我们在 MobileNetV1 和 MobileNetV2 上评估了该算法,并将所得网络部署到一组具有不同硬件特性的多核 RISC-V 微控制器平台上。在 1000 类 ImageNet 数据集上,与 8 位模型相比,我们实现了高达 28.6% 的端到端延迟降低,同时相对于全精度基线仅产生可忽略的精度下降。我们展示了相对于 8 位基线的加速效果,即使在缺乏亚字节算术硬件支持的系统上也能以可忽略的精度下降实现加速。此外,我们还证明了我们的方法相对于以降低二进制运算次数作为延迟代理目标的可微搜索具有优越性。

英文摘要:

Mixed-precision quantization, where a deep neural network's layers are quantized to different precisions, offers the opportunity to optimize the trade-offs between model size, latency, and statistical accuracy beyond what can be achieved with homogeneous-bit-width quantization. To navigate the intractable search space of mixed-precision configurations for a given network, this paper proposes a hybrid search methodology. It consists of a hardware-agnostic differentiable search algorithm followed by a hardware-aware heuristic optimization to find mixed-precision configurations latency-optimized for a specific hardware target. We evaluate our algorithm on MobileNetV1 and MobileNetV2 and deploy the resulting networks on a family of multi-core RISC-V microcontroller platforms with different hardware characteristics. We achieve up to 28.6% reduction of end-to-end latency compared to an 8-bit model at a negligible accuracy drop from a full-precision baseline on the 1000-class ImageNet dataset. We demonstrate speedups relative to an 8-bit baseline, even on systems with no hardware support for sub-byte arithmetic at negligible accuracy drop. Furthermore, we show the superiority of our approach with respect to differentiable search targeting reduced binary operation counts as a proxy for latency.

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

↑