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

提升边缘设备上的DNN冷启动推理性能

Boosting DNN Cold Inference on Edge Devices

State Key Laboratory of Networking and Switching Technology(网络与交换技术国家重点实验室);Microsoft Research(微软研究院)

Rongjie Yi, Ting Cao, Ao Zhou, Xiao Ma, Shangguang Wang, Mengwei Xu

AI总结:

针对边缘设备DNN冷启动推理性能瓶颈,该研究提出首个面向冷启动的端侧推理引擎NNV12,通过三项优化策略与启发式调度方案,在边缘CPU和GPU上分别实现最高15.2倍、401.5倍的性能提升。

摘要:

如今深度神经网络(DNN)在边缘设备上无处不在。随着其重要性和用例不断增加,不可能将所有DNN都装入设备内存并指望每次推理都已完成预热。因此,冷启动推理——即读取、初始化并执行DNN模型的过程——正变得愈发普遍,其性能亟待优化。为此,我们提出了NNV12,这是首个针对冷启动推理进行优化的端侧推理引擎。NNV12基于三项全新的优化策略构建:为每个DNN算子选择合适的内核(实现方式)、通过在磁盘上缓存变换后的权重来绕过权重变换过程、以及在非对称处理器上对多个内核进行流水线执行。为应对庞大的搜索空间,NNV12采用了一种基于启发式的方案来获取近似最优的内核调度计划。我们完整实现了NNV12的原型,并通过大量实验评估其性能。结果表明,在边缘CPU和GPU上,NNV12的性能分别是当前最先进DNN引擎的15.2倍和401.5倍。

英文摘要:

DNNs are ubiquitous on edge devices nowadays. With its increasing importance and use cases, it's not likely to pack all DNNs into device memory and expect that each inference has been warmed up. Therefore, cold inference, the process to read, initialize, and execute a DNN model, is becoming commonplace and its performance is urgently demanded to be optimized. To this end, we present NNV12, the first on-device inference engine that optimizes for cold inference NNV12 is built atop 3 novel optimization knobs: selecting a proper kernel (implementation) for each DNN operator, bypassing the weights transformation process by caching the post-transformed weights on disk, and pipelined execution of many kernels on asymmetric processors. To tackle with the huge search space, NNV12 employs a heuristic-based scheme to obtain a near-optimal kernel scheduling plan. We fully implement a prototype of NNV12 and evaluate its performance across extensive experiments. It shows that NNV12 achieves up to 15.2x and 401.5x compared to the state-of-the-art DNN engines on edge CPUs and GPUs, respectively.

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

↑