Skip to main content
QUICK REVIEW

[论文解读] Automatic deep heterogeneous quantization of Deep Neural Networks for ultra low-area, low-latency inference on the edge at particle colliders

Claudionor N. Coelho, Aki Kuusela|arXiv (Cornell University)|Jun 15, 2020
Particle Detector Development and PerformancePhysics and Astronomy参考文献 10被引用 21
一句话总结

本文提出了一种自动化、深度异构量化方法,用于在大型强子对撞机(CERN Large Hadron Collider)的边缘设备上高效部署高精度深度神经网络。通过在不同量化器类型之间对每一层、每一参数进行量化,该方法在保持模型精度的同时,使FPGA上的资源消耗减少了50倍,并实现了纳秒级推理。

ABSTRACT

While the quest for more accurate solutions is pushing deep learning research towards larger and more complex algorithms, edge devices demand efficient inference i.e. reduction in model size, latency and energy consumption. A technique to limit model size is quantization, i.e. using fewer bits to represent weights and biases. Such an approach usually results in a decline in performance. Here, we introduce a novel method for designing optimally heterogeneously quantized versions of deep neural network models for minimum-energy, high-accuracy, nanosecond inference and fully automated deployment on chip. With a per-layer, per-parameter type automatic quantization procedure, sampling from a wide range of quantizers, model energy consumption and size are minimized while high accuracy is maintained. This is crucial for the event selection procedure in proton-proton collisions at the CERN Large Hadron Collider, where resources are strictly limited and a latency of ${\mathcal O}(1)~\mu$s is required. Nanosecond inference and a resource consumption reduced by a factor of $50$ when implemented on FPGA hardware is achieved.

研究动机与目标

  • 解决在粒子对撞机中资源受限的边缘设备上部署高精度深度神经网络的挑战。
  • 在不牺牲推理精度的前提下,最小化模型大小、延迟和能耗。
  • 实现实时事件选择场景下在FPGA硬件上对量化模型的完全自动化部署。
  • 在高流强质子-质子对撞环境中实现亚微秒级推理延迟。
  • 与全精度模型相比,在FPGA平台上将资源消耗降低50倍。

提出的方法

  • 该方法采用逐层、逐参数类型的自动量化过程,为每个权重和偏置选择最优的量化器类型。
  • 从广泛的量化器类型中采样,包括对称和非对称变体,以探索多样化的量化配置。
  • 通过在量化器空间中采用基于搜索的框架,联合优化模型大小、能耗和精度。
  • 在层与参数之间异构地应用量化,实现对每层精度的细粒度控制。
  • 该方法完全自动化,无需人工调优,即可实现FPGA硬件上的端到端部署。
  • 该框架在真实世界粒子物理推理工作负载上进行了评估,要求延迟约为1 μs。

实验结果

研究问题

  • RQ1自动化异构量化能否在边缘FPGA硬件上的深度神经网络中实现纳秒级推理延迟?
  • RQ2通过逐层、逐参数量化,模型大小和能耗能降低多少,同时保持高精度?
  • RQ3在多样化量化器类型上采用基于搜索的方法,在不造成性能下降的情况下,能否有效最小化资源使用?
  • RQ4所提出的方法能否实现在FPGA上对量化模型的完全自动化部署,以支持粒子对撞机中的实时事件选择?
  • RQ5在高吞吐量对撞环境中的DNN推理中,资源消耗的最大可降低幅度是多少?

主要发现

  • 所提方法实现了纳秒级推理延迟,满足了大型强子对撞机实时事件选择的严格要求。
  • 在FPGA硬件上部署时,资源消耗相比全精度模型降低了50倍。
  • 通过逐层、逐参数的优化,即使在激进的量化下,仍保持了高模型精度。
  • 自动化量化流水线实现了无需人工干预的端到端部署。
  • 异构量化策略在模型大小和能效方面均优于统一量化。
  • 该方法支持在质子-质子对撞数据处理中达到所需约1 μs的超低延迟推理。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。