arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.00663cs.LG
收藏

在预算内搜索:具有10个延迟探针的HW-NAS

Searching on a Budget: HW-NAS with 10 Latency Probes

University of Oxford(牛津大学);Julius-Maximilians-Universität Würzburg(乌尔姆-马克斯-普朗克大学);Technische Universität Darmstadt(达姆施塔特技术大学);Politecnico di Torino(都灵理工大学)

Francesco Capuano, Gabriele Tiboni, Niccolò Cavagnero, Giuseppe Averta

AI总结:

本文提出一种两阶段HW-NAS框架,通过在合成设备上预训练控制器,再在目标设备上直接部署,利用少量高保真延迟测量实现目标设备架构设计,无需预收集信息。

摘要:

现有的硬件感知NAS(HW-NAS)方法通常假设可以访问目标设备的精确信息,要么通过后编译延迟模型的分析近似,要么通过学习的延迟预测器。此类近似方法可能引入估计误差,这对风险敏感的应用可能有害。在本工作中,我们提出了一种两阶段HW-NAS框架,首先在合成设备的分布上学习架构控制器,然后直接在目标设备上部署控制器。在测试时,我们的网络控制器直接部署到目标设备,不依赖任何预收集的信息,仅利用直接交互。特别是,预训练阶段在合成设备上使控制器能够通过少量高保真延迟测量与目标设备交互,设计出适合的目标设备架构。为保证方法的可访问性,我们仅使用无训练准确度代理进行训练,允许我们在不产生完整网络训练开销的情况下扩展元训练阶段。我们在HW-NATS-Bench上进行了基准测试,证明我们的方法能够泛化到未见过的设备,并通过上下文适应在测试时仅使用少量真实世界延迟评估来搜索延迟高效的架构。

英文摘要:

Existing hardware-aware NAS (HW-NAS) methods typically assume access to precise information circa the target device, either via analytical approximations of the post-compilation latency model, or through learned latency predictors. Such approximate approaches risk introducing estimation errors that may prove detrimental in risk-sensitive applications. In this work, we propose a two-stage HW-NAS framework, in which we first learn an architecture controller on a distribution of synthetic devices, and then directly deploy the controller on a target device. At test-time, our network controller deploys directly to the target device without relying on any pre-collected information, and only exploits direct interactions. In particular, the pre-training phase on synthetic devices enables the controller to design an architecture for the target device by interacting with it through a small number of high-fidelity latency measurements. To guarantee accessibility of our method, we only train our controller with training-free accuracy proxies, allowing us to scale the meta-training phase without incurring the overhead of full network training. We benchmark on HW-NATS-Bench, demonstrating that our method generalizes to unseen devices and searches for latency-efficient architectures by in-context adaptation using only a few real-world latency evaluations at test-time.

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

↑