MAPLE-Edge:边缘设备的时延预测器
MAPLE-Edge: A Runtime Latency Predictor for Edge Devices
摘要:
神经架构搜索(NAS)已实现了更高效的神经网络架构的自动发现,特别是对于移动和嵌入式视觉应用。尽管最近的研究提出了仅使用少量样本快速估计看不见的硬件设备上的延迟的方法,但很少关注使用优化图(如TensorRT)估计运行时延迟的挑战,特别是边缘设备。在这项工作中,我们提出了MAPLE-Edge,一个面向边缘设备的扩展MAPLE,最先进的延迟预测器的通用硬件,在那里我们训练回归网络的架构延迟对结合硬件运行时描述符,以有效地估计延迟的边缘设备的不同池。与MAPLE相比,MAPLE-Edge可以使用所有Linux内核上广泛使用的一组更小的CPU性能计数器来描述运行时和目标设备平台,同时在优化的边缘设备运行时上,与以前最先进的基线方法相比,仅使用10个从未见过的目标设备测量,仍然可以实现高达+49.6%的准确性增益。我们还证明,与MAPLE不同,MAPLE在共享公共运行时的设备池上训练时表现最好,MAPLE-Edge可以通过在测量的硬件运行时描述符中应用操作延迟标准化性能计数器的技巧来有效地在运行时进行泛化。最后,我们表明,对于表现出低于预期精度的运行时,可以通过从目标设备收集额外的样本来提高性能,额外的90个样本转化为近+40%的增益。
英文摘要:
Neural Architecture Search (NAS) has enabled automatic discovery of more efficient neural network architectures, especially for mobile and embedded vision applications. Although recent research has proposed ways of quickly estimating latency on unseen hardware devices with just a few samples, little focus has been given to the challenges of estimating latency on runtimes using optimized graphs, such as TensorRT and specifically for edge devices. In this work, we propose MAPLE-Edge, an edge device-oriented extension of MAPLE, the state-of-the-art latency predictor for general purpose hardware, where we train a regression network on architecture-latency pairs in conjunction with a hardware-runtime descriptor to effectively estimate latency on a diverse pool of edge devices. Compared to MAPLE, MAPLE-Edge can describe the runtime and target device platform using a much smaller set of CPU performance counters that are widely available on all Linux kernels, while still achieving up to +49.6% accuracy gains against previous state-of-the-art baseline methods on optimized edge device runtimes, using just 10 measurements from an unseen target device. We also demonstrate that unlike MAPLE which performs best when trained on a pool of devices sharing a common runtime, MAPLE-Edge can effectively generalize across runtimes by applying a trick of normalizing performance counters by the operator latency, in the measured hardware-runtime descriptor. Lastly, we show that for runtimes exhibiting lower than desired accuracy, performance can be boosted by collecting additional samples from the target device, with an extra 90 samples translating to gains of nearly +40%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。