Neural Architecture Search (NAS) is increasingly popular to automatically explore the accuracy versus computational complexity trade-off of Deep Learning (DL) architectures. When targeting tiny edge devices, the main challenge for DL deployment is matching the tight memory constraints, hence most NAS algorithms consider model size as the complexity metric. Other methods reduce the energy or latency of DL models by trading off accuracy and number of inference operations. Energy and memory are rarely considered simultaneously, in particular by low-search-cost Differentiable NAS (DNAS) solutions. We overcome this limitation proposing the first DNAS that directly addresses the most realistic scenario from a designer's perspective: the co-optimization of accuracy and energy (or latency) under a memory constraint, determined by the target HW. We do so by combining two complexity-dependent loss functions during training, with independent strength. Testing on three edge-relevant tasks from the MLPerf Tiny benchmark suite, we obtain rich Pareto sets of architectures in the energy vs. accuracy space, with memory footprints constraints spanning from 75% to 6.25% of the baseline networks. When deployed on a commercial edge device, the STM NUCLEO-H743ZI2, our networks span a range of 2.18x in energy consumption and 4.04% in accuracy for the same memory constraint, and reduce energy by up to 2.2x with negligible accuracy drop with respect to the baseline.
翻译:神经结构搜索(NAS)越来越受欢迎,可以自动探索深学习(DL)架构的精确度和计算复杂度的权衡。当针对微小边缘设备时,DL部署的主要挑战在于匹配记忆紧张的限制,因此大多数NAS算算法将模型大小视为复杂度衡量标准。其他方法通过交换精确度和推断操作数量来降低DL模型的能量或延迟度。能源和记忆很少同时考虑,特别是低搜索成本可区分的NAS(DNAS)解决方案。我们克服了这一限制,提出了第一个直接从设计者的角度处理最现实情景的DNAS:在目标HW确定的记忆限制下,将精度和能量(或延缓度)的同步优化作为模型大小。我们这样做的方法是通过在培训期间以独立强度来将两个复杂度损失功能结合起来。测试MLPerf Tin基准套的三项边缘相关任务,我们获得了能源(DNAS)和精度空间(DR)的精度结构。 准确度空间的记忆足迹限制从75%到6.25, 基线网络的精度范围为SEOEO的精确度为S- 2.18。