[论文解读] GPT-NAS: Evolutionary Neural Architecture Search with the Generative Pre-Trained Model
GPT-NAS 提出了一种新颖的神经架构搜索(NAS)框架,利用微调后的 GPT 模型生成语义上合理的神经架构组件,显著缩小了搜索空间。通过将 GPT 模型的先验知识与进化算法(EA)相结合,GPT-NAS 在图像分类基准上实现了最先进性能,超越了 13 种 NAS 方法和 7 种人工设计的架构,相较于非 GPT 微调模型,准确率最高提升了 12%。
Neural Architecture Search (NAS) has emerged as one of the effective methods to design the optimal neural network architecture automatically. Although neural architectures have achieved human-level performances in several tasks, few of them are obtained from the NAS method. The main reason is the huge search space of neural architectures, making NAS algorithms inefficient. This work presents a novel architecture search algorithm, called GPT-NAS, that optimizes neural architectures by Generative Pre-Trained (GPT) model with an evolutionary algorithm (EA) as the search strategy. In GPT-NAS, we assume that a generative model pre-trained on a large-scale corpus could learn the fundamental law of building neural architectures. Therefore, GPT-NAS leverages the GPT model to propose reasonable architecture components given the basic one and then utilizes EAs to search for the optimal solution. Such an approach can largely reduce the search space by introducing prior knowledge in the search process. Extensive experimental results show that our GPT-NAS method significantly outperforms seven manually designed neural architectures and thirteen architectures provided by competing NAS methods. In addition, our experiments also indicate that the proposed algorithm improves the performance of finely tuned neural architectures by up to about 12% compared to those without GPT, further demonstrating its effectiveness in searching neural architectures.
研究动机与目标
- 为解决传统 NAS 方法因神经架构搜索空间过大而导致的低效问题。
- 利用预训练的语言模型(GPT)作为归纳偏置的来源,以指导神经架构搜索。
- 通过整合 GPT 预训练中学习到的神经架构模式先验知识,缩小搜索空间。
- 通过结合基于 GPT 的架构生成与进化算法,提升搜索效率与性能。
- 证明基于 GPT 生成的架构组件相较于随机或人工设计,能够生成更优的模型。
提出的方法
- 将神经架构编码为向量序列,输入至 GPT 模型,实现对架构结构的自然语言风格处理。
- 使用 NAS-Bench-101 数据集对 GPT 模型进行预训练,以学习有效神经架构的统计模式。
- 在小规模目标任务架构子集上对预训练的 GPT 模型进行微调,以适应 CIFAR-10 和 CIFAR-100 等目标数据集。
- 采用遗传算法(EA)作为搜索策略,其中 GPT 基于初始架构生成候选架构组件。
- 通过突变和选择 GPT 生成的组件,结合训练过程中的性能反馈,逐步演化出更优架构。
- 通过限制候选架构为 GPT 模型所学习到的语义上合理且结构上一致的架构,从而缩小搜索空间。
实验结果
研究问题
- RQ1预训练的 GPT 模型能否有效学习并生成有效且高性能的神经架构组件?
- RQ2在神经架构搜索中,引入 GPT 生成的先验知识在多大程度上能减少有效搜索空间?
- RQ3将基于 GPT 的架构生成与进化算法结合,是否能获得优于标准 NAS 或人工设计模型的性能?
- RQ4在有限训练轮次(如 6 轮)下,GPT 模型的预测与实际模型性能的相关性如何?
- RQ5GPT 引导的搜索能否发现超越人工设计及竞争性 NAS 生成模型的架构?
主要发现
- GPT-NAS 在 CIFAR-10 和 CIFAR-100 上超越了 13 种竞争性 NAS 方法和 7 种人工设计架构,实现了最先进准确率。
- 在 CIFAR-10 上,6 轮训练与 30 轮训练的准确率相关系数为 0.7247(p 值 = 2.68e-09);在 CIFAR-100 上为 0.8657(p 值 = 4.96e-16),表明早期训练具有强大的预测能力。
- 仅训练预测块与训练全部块的性能相关性始终高于 80%,热力图对角线值超过 0.8,显示出高度一致性。
- 相较于未使用 GPT 微调的模型,GPT-NAS 将微调后模型的性能最高提升了 12%,证明了预训练知识的增强效应。
- 即使仅进行极少量训练(如 6 轮),该方法仍能保持高准确率相关性,表明 GPT 预测是最终性能的可靠指标。
- 微调后的 GPT 模型有效捕捉了架构模式,能够生成语义连贯且高性能的架构。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。