arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2106.08630cs.LG
收藏

HELP:通过元学习实现NAS的硬件自适应高效延迟预测

HELP: Hardware-Adaptive Efficient Latency Prediction for NAS via Meta-Learning

KAIST(韩国科学技术院);AITRICS

Hayeon Lee, Sewoong Lee, Song Chong, Sung Ju Hwang

摘要:

对于部署,神经架构搜索应该是硬件感知的,以便满足设备特定的约束(例如,存储器使用、等待时间和能量消耗)并增强模型效率。关于硬件感知NAS的现有方法收集大量样本(例如,准确性和等待时间),或者构建查找表,或者构建等待时间估计器。然而,这种方法在现实世界的场景中是不切实际的,因为存在具有不同硬件规格的许多设备,并且从如此大量的设备收集样本将需要过高的计算和金钱成本。为了克服这些限制,我们提出了硬件自适应高效延迟预测器(HELP),它将特定于设备的延迟估计问题制定为元学习问题,这样我们就可以估计模型性能的延迟对于一个给定的任务,在一个看不见的设备上使用一些样本。为此,我们引入了新的硬件嵌入来嵌入任何设备,将它们视为输出延迟的黑盒函数,并使用硬件嵌入以设备相关的方式元学习硬件自适应延迟预测器。我们验证了所提出的HELP在看不见的平台上的延迟估计性能,在该平台上,它仅用10个测量样本就实现了高估计性能,优于所有相关基线。我们还验证了端到端的NAS框架使用HELP对那些没有它,并表明它大大降低了总的时间成本的基础NAS方法,在延迟约束的设置。代码可在https://github.com/HayeonLee/HELP上获得。

英文摘要:

For deployment, neural architecture search should be hardware-aware, in order to satisfy the device-specific constraints (e.g., memory usage, latency and energy consumption) and enhance the model efficiency. Existing methods on hardware-aware NAS collect a large number of samples (e.g., accuracy and latency) from a target device, either builds a lookup table or a latency estimator. However, such approach is impractical in real-world scenarios as there exist numerous devices with different hardware specifications, and collecting samples from such a large number of devices will require prohibitive computational and monetary cost. To overcome such limitations, we propose Hardware-adaptive Efficient Latency Predictor (HELP), which formulates the device-specific latency estimation problem as a meta-learning problem, such that we can estimate the latency of a model's performance for a given task on an unseen device with a few samples. To this end, we introduce novel hardware embeddings to embed any devices considering them as black-box functions that output latencies, and meta-learn the hardware-adaptive latency predictor in a device-dependent manner, using the hardware embeddings. We validate the proposed HELP for its latency estimation performance on unseen platforms, on which it achieves high estimation performance with as few as 10 measurement samples, outperforming all relevant baselines. We also validate end-to-end NAS frameworks using HELP against ones without it, and show that it largely reduces the total time cost of the base NAS method, in latency-constrained settings. Code is available at https://github.com/HayeonLee/HELP.

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

↑