arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.02446cs.LGcs.ARcs.CVcs.PF
收藏

面向神经架构搜索的延迟预测器研究

On Latency Predictors for Neural Architecture Search

Cornell University(康奈尔大学)

Yash Akhauri, Mohamed S. Abdelfattah

AI总结:

针对神经架构搜索中延迟预测器性能波动、评估不系统的问题,提出自动化划分的延迟预测任务集与通用预测器,经多维度研究后提出的端到端训练策略在多数任务上优于现有方法,还提升了硬件感知NAS的搜索效率。

摘要:

神经网络(NN)的高效部署需要对准确率和延迟进行协同优化。例如,硬件感知神经架构搜索已被用于自动寻找在特定硬件设备上满足延迟约束的NN架构。这些搜索算法的核心是一个预测模型,用于为候选NN架构提供硬件延迟估计。近期研究表明,通过在一些拥有大量样本的“训练”设备上进行预训练,再将预测器迁移到“测试”(目标)设备上,可大幅提升这些预测模型的样本效率。迁移学习和元学习方法已被用于该场景,但往往表现出显著的性能波动。此外,现有延迟预测器的评估大多在手工构建的训练/测试设备集上开展,难以确定构成鲁棒通用延迟预测器的设计特征。为解决这些问题,我们引入了一套全面的延迟预测任务集,这些任务通过硬件设备集的自动化划分以原则性方式生成。随后我们设计了一个通用延迟预测器,以全面研究(1)预测器架构、(2)NN样本选择方法、(3)硬件设备表示、(4)NN操作编码方案。基于研究结论,我们提出了一种端到端延迟预测器训练策略,在12项高难度延迟预测任务中的11项上优于现有方法,延迟预测准确率平均提升22.5%,在难度最高的任务上提升幅度可达87.6%。聚焦于延迟预测场景,我们的硬件感知NAS实现了5.8倍的实际运行时间加速。我们的代码可在https://github.com/abdelfattah-lab/nasflat_latency获取。

英文摘要:

Efficient deployment of neural networks (NN) requires the co-optimization of accuracy and latency. For example, hardware-aware neural architecture search has been used to automatically find NN architectures that satisfy a latency constraint on a specific hardware device. Central to these search algorithms is a prediction model that is designed to provide a hardware latency estimate for a candidate NN architecture. Recent research has shown that the sample efficiency of these predictive models can be greatly improved through pre-training on some \textit{training} devices with many samples, and then transferring the predictor on the \textit{test} (target) device. Transfer learning and meta-learning methods have been used for this, but often exhibit significant performance variability. Additionally, the evaluation of existing latency predictors has been largely done on hand-crafted training/test device sets, making it difficult to ascertain design features that compose a robust and general latency predictor. To address these issues, we introduce a comprehensive suite of latency prediction tasks obtained in a principled way through automated partitioning of hardware device sets. We then design a general latency predictor to comprehensively study (1) the predictor architecture, (2) NN sample selection methods, (3) hardware device representations, and (4) NN operation encoding schemes. Building on conclusions from our study, we present an end-to-end latency predictor training strategy that outperforms existing methods on 11 out of 12 difficult latency prediction tasks, improving latency prediction by 22.5\% on average, and up to to 87.6\% on the hardest tasks. Focusing on latency prediction, our HW-Aware NAS reports a $5.8\times$ speedup in wall-clock time. Our code is available on \href{https://github.com/abdelfattah-lab/nasflat_latency}{https://github.com/abdelfattah-lab/nasflat\_latency}.

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

↑