[论文解读] LayerNAS: Neural Architecture Search in Polynomial Complexity
LayerNAS 提出了一种多项式复杂度的神经架构搜索(NAS)方法,通过逐层搜索和基于成本的分桶机制,将多目标NAS转化为组合优化问题。该方法将搜索复杂度从指数级降低至 O(H·|S|·L),在 MobileNetV2/V3 和 NATS-Bench 搜索空间中,仅使用 200 万次尝试即实现了在 MAdds 约束下的最先进准确率。
Neural Architecture Search (NAS) has become a popular method for discovering effective model architectures, especially for target hardware. As such, NAS methods that find optimal architectures under constraints are essential. In our paper, we propose LayerNAS to address the challenge of multi-objective NAS by transforming it into a combinatorial optimization problem, which effectively constrains the search complexity to be polynomial. For a model architecture with $L$ layers, we perform layerwise-search for each layer, selecting from a set of search options $\mathbb{S}$. LayerNAS groups model candidates based on one objective, such as model size or latency, and searches for the optimal model based on another objective, thereby splitting the cost and reward elements of the search. This approach limits the search complexity to $ O(H \cdot |\mathbb{S}| \cdot L) $, where $H$ is a constant set in LayerNAS. Our experiments show that LayerNAS is able to consistently discover superior models across a variety of search spaces in comparison to strong baselines, including search spaces derived from NATS-Bench, MobileNetV2 and MobileNetV3.
研究动机与目标
- 解决大规模架构空间中多目标 NAS 所面临的指数级搜索复杂度问题。
- 在延迟和 FLOPs 等硬件约束下,实现高效且可扩展的架构搜索。
- 解耦模型质量与成本度量,以实现有效的多目标优化。
- 通过分桶成本分组,将 NAS 搜索复杂度从 O(|S|^L) 降低至多项式复杂度 O(H·|S|·L)。
- 在包括 MobileNetV2、MobileNetV3 和 NATS-Bench 在内的多样化搜索空间中,展示一致的性能提升。
提出的方法
- LayerNAS 执行从第一层到最后一层的定向逐层搜索,假设第 i 层的最优结构可由第 i-1 层的最优结构构建而成。
- 它根据模型的成本(如 MAdds)对候选模型进行分组,每层每成本桶仅保留性能最佳的模型。
- 对于每一层,通过从搜索选项集合 S 中选择来生成子候选模型,然后根据目标成本约束进行过滤。
- 每层维护 H 个桶(例如 H=100),限制候选数量,从而确保多项式复杂度。
- 该算法使用动态规划向前传播最佳性能模型,以在成本约束下优化准确率。
- 它利用因子化搜索空间,使每一层的选择相互独立,从而实现高效的剪枝与搜索。
实验结果
研究问题
- RQ1多目标 NAS 是否可被重新表述为组合优化问题,以实现多项式时间复杂度?
- RQ2基于成本分桶的逐层搜索是否在 MAdds 约束下优于标准 NAS 方法的准确率?
- RQ3LayerNAS 是否能有效扩展至 MobileNetV2 和 MobileNetV3 等大型搜索空间?
- RQ4桶的数量 H 如何影响搜索效率与模型性能之间的权衡?
- RQ5LayerNAS 在包括 NATS-Bench 衍生搜索空间在内的多样化搜索空间中是否具有鲁棒性?
主要发现
- 在 600M MAdds 约束下,LayerNAS 在 ImageNet-1K 上实现了最先进准确率,优于同搜索空间中的强基线方法。
- 该方法将有效搜索空间从 1.6×10^39 个候选减少至约 2.0×10^6 次尝试(每层 300 个候选)。
- 当每层使用 H=100 个桶时,LayerNAS 在保持高性能的同时确保了多项式复杂度。
- 该算法发现了一款在 600M MAdds 约束下达到 86.4% top-1 准确率的模型,优于 MobileNetV3 和其他基线方法。
- LayerNAS 在多个搜索空间中持续发现性能更优的架构,包括来自 MobileNetV2、MobileNetV3 和 NATS-Bench 的搜索空间。
- 定向的逐层搜索结合基于成本的过滤机制,实现了高效的探索,而无需穷举枚举。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。