[论文解读] DiffusionNAG: Predictor-guided Neural Architecture Generation with Diffusion Models
DiffusionNAG 提出了一种基于扩散模型的神经架构生成框架,通过参数化预测器引导生成任务最优架构,显著减少了搜索时间。通过将架构建模为有向图并使用得分网络编码节点顺序,该方法在可迁移 NAS 中实现了高达 20× 的加速,并在 ImageNet-1K 上优于现有的基于贝叶斯优化的 NAS 方法,且使用 MobileNetV3 作为基准。
Existing NAS methods suffer from either an excessive amount of time for repetitive sampling and training of many task-irrelevant architectures. To tackle such limitations of existing NAS methods, we propose a paradigm shift from NAS to a novel conditional Neural Architecture Generation (NAG) framework based on diffusion models, dubbed DiffusionNAG. Specifically, we consider the neural architectures as directed graphs and propose a graph diffusion model for generating them. Moreover, with the guidance of parameterized predictors, DiffusionNAG can flexibly generate task-optimal architectures with the desired properties for diverse tasks, by sampling from a region that is more likely to satisfy the properties. This conditional NAG scheme is significantly more efficient than previous NAS schemes which sample the architectures and filter them using the property predictors. We validate the effectiveness of DiffusionNAG through extensive experiments in two predictor-based NAS scenarios: Transferable NAS and Bayesian Optimization (BO)-based NAS. DiffusionNAG achieves superior performance with speedups of up to 35 times when compared to the baselines on Transferable NAS benchmarks. Furthermore, when integrated into a BO-based algorithm, DiffusionNAG outperforms existing BO-based NAS approaches, particularly in the large MobileNetV3 search space on the ImageNet 1K dataset. Code is available at https://github.com/CownowAn/DiffusionNAG.
研究动机与目标
- 解决现有神经架构搜索(NAS)方法因反复训练无关架构而导致的高搜索成本问题。
- 克服现有 NAS 方法将预测器被动视为评估器而非主动引导架构生成的问题。
- 通过将参数化预测器整合到基于扩散的生成框架中,实现对任务最优神经架构的条件生成。
- 设计一种得分网络,以捕捉神经架构图中的方向关系,确保生成架构的结构有效性与语义合理性。
- 开发一种即插即用的框架,适用于多种 NAS 场景,包括延迟约束、鲁棒性约束以及可迁移 NAS 任务。
提出的方法
- 将神经架构建模为有向无环图(DAG),以表示计算流程并保留层之间的方向依赖关系。
- 开发一种图得分网络,通过编码节点位置信息来捕捉 DAG 中的操作顺序,从而实现有效架构的生成。
- 在无需性能标签的情况下,在搜索空间上训练基础扩散模型,学习生成符合有效架构分布的架构。
- 通过利用参数化属性预测器的梯度,引入预测器引导的采样策略,引导扩散过程向具有期望属性(如高准确率、高鲁棒性)的架构方向演化。
- 采用离散扩散模型,使用架构标记(独热向量)表示设计选择(如块数、隐藏维度),并通过掩码标记预测与交叉熵损失进行训练。
- 通过替换不同目标的预测器(如准确率、延迟、鲁棒性)实现即插即用的集成,而无需重新训练基础生成模型。
实验结果
研究问题
- RQ1扩散模型能否被有效适配以实现条件化、有效且任务最优的神经架构生成?
- RQ2与传统 NAS 方法相比,预测器引导的扩散生成在搜索效率和性能方面表现如何?
- RQ3所提出的得分网络能否有效建模有向架构图,以在生成过程中确保结构有效性?
- RQ4DiffusionNAG 在可迁移 NAS 和基于贝叶斯优化的 NAS 设置中,能在多大程度上加速搜索过程?
- RQ5通过即插即用的预测器集成,该框架能否在多种 NAS 目标之间实现良好泛化?
主要发现
- 在可迁移 NAS 基准测试中,DiffusionNAG 相较基线方法实现了高达 20× 的加速,包括在大型 MobileNetV3 搜索空间上的表现。
- 在 NAS-Bench-201 和可迁移 NAS 数据集上,DiffusionNAG 以显著更短的搜索时间达到或超越了当前最先进 NAS 方法的性能。
- 在基于贝叶斯优化的 NAS 中,DiffusionNAG 超过了依赖启发式采样或变异策略的现有方法,尤其在 ImageNet-1K 上的大型 MobileNetV3 搜索空间中表现更优。
- 在相同评估设置下,与相关无条件生成方法 MetaD2A 相比,DiffusionNAG 展现出更优的生成质量。
- 该框架通过利用预测器梯度实现高效、条件化的架构生成,减少了对低潜力候选架构的无效计算。
- 即插即用的设计允许通过更换预测器无缝适配不同目标(如准确率、延迟、鲁棒性),而无需重新训练生成模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。