边缘推理延迟预测
Inference Latency Prediction at the Edge
摘要:
随着移动设备上推理任务的工作量不断增长,最先进的神经架构(NA)通常通过神经架构搜索(NAS)来设计,以识别在准确性和效率之间具有良好权衡的NA(例如,等待时间)。由于在NAS期间测量大量候选架构的延迟是不可扩展的,因此需要用于预测移动设备上的端到端推断延迟的方法。由于硬件异构性,ML框架应用的优化以及神经架构的多样性,这种预测具有挑战性。出于这些挑战的动机,在本文中,我们首先定量评估了对推理延迟有重大影响的神经架构和移动设备的特征。基于此评估,我们提出了一个延迟预测框架,通过开发操作方面的延迟预测器来解决这些挑战,在各种设置和许多硬件设备下,使用多核CPU和GPU,实现端到端延迟预测的高准确性,正如我们的综合评估所示。为了说明我们的方法不需要昂贵的数据汇集,我们还表明,准确的预测,可以实现对现实世界的NA只使用少量的分析数据。
英文摘要:
With the growing workload of inference tasks on mobile devices, state-of-the-art neural architectures (NAs) are typically designed through Neural Architecture Search (NAS) to identify NAs with good tradeoffs between accuracy and efficiency (e.g., latency). Since measuring the latency of a huge set of candidate architectures during NAS is not scalable, approaches are needed for predicting end-to-end inference latency on mobile devices. Such predictions are challenging due to hardware heterogeneity, optimizations applied by ML frameworks, and the diversity of neural architectures. Motivated by these challenges, in this paper, we first quantitatively assess characteristics of neural architectures and mobile devices that have significant effects on inference latency. Based on this assessment, we propose a latency prediction framework which addresses these challenges by developing operation-wise latency predictors, under a variety of settings and a number of hardware devices, with multi-core CPUs and GPUs, achieving high accuracy in end-to-end latency prediction, as shown by our comprehensive evaluations. To illustrate that our approach does not require expensive data collection, we also show that accurate predictions can be achieved on real-world NAs using only small amounts of profiling data.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。