arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.16555cs.LGcs.AIcs.CV
收藏

将LLM作为工具而非代理:基于代码挖掘的树变换用于神经架构搜索

LLM as a Tool, Not an Agent: Code-Mined Tree Transformations for Neural Architecture Search

Sony Group Corporation(索尼集团公司)

Masakazu Yoshimura, Zitang Sun, Yuiko Sakuma, Junji Otsuka, Atsushi Irie, Takeshi Ohashi

AI总结:

本文提出LLMasTool框架,通过树变换实现稳定且开放的模型进化,避免LLM的固有偏差,提升NAS在CIFAR-10、CIFAR-100和ImageNet16-120上的性能。

摘要:

神经架构搜索(NAS)旨在自动发现高性能的深度神经网络(DNN)架构。然而,传统算法驱动的NAS依赖精心设计的搜索空间以确保可执行性,这限制了开放探索。最近基于编码的代理方法利用大语言模型(LLMs)减少手动设计,但当前LLMs难以可靠生成复杂、有效的架构,其提案常偏向训练数据中观察到的狭窄模式。为弥合可靠算法搜索与强大LLM辅助之间的差距,我们提出LLMasTool,一种基于树的NAS框架,用于稳定且开放的模型进化。我们的方法自动从任意源代码中提取可重用模块,并将完整架构表示为分层树,通过可靠的树变换而非代码生成实现进化。在每个进化步骤中,粗粒度规划由引导多样性的算法驱动,利用贝叶斯建模提高探索效率,而LLM解决剩余自由度以确保有意义的进化轨迹和可执行的生成架构。通过这种形式,而不是完全代理的LLM方法,我们的方法探索了超越LLM固有偏差的多样化方向。我们的方法在CIFAR-10、CIFAR-100和ImageNet16-120上分别提高了0.69、1.83和2.68个点,证明了其有效性。

英文摘要:

Neural Architecture Search (NAS) aims to automatically discover high-performing deep neural network (DNN) architectures. However, conventional algorithm-driven NAS relies on carefully hand-crafted search spaces to ensure executability, which restricts open-ended exploration. Recent coding-based agentic approaches using large language models (LLMs) reduce manual design, but current LLMs struggle to reliably generate complex, valid architectures, and their proposals are often biased toward a narrow set of patterns observed in their training data. To bridge reliable algorithmic search with powerful LLM assistance, we propose LLMasTool, a hierarchical tree-based NAS framework for stable and open-ended model evolution. Our method automatically extracts reusable modules from arbitrary source code and represents full architectures as hierarchical trees, enabling evolution through reliable tree transformations rather than code generation. At each evolution step, coarse-level planning is governed by a diversity-guided algorithm that leverages Bayesian modeling to improve exploration efficiency, while the LLM resolves the remaining degrees of freedom to ensure a meaningful evolutionary trajectory and an executable generated architecture. With this formulation, instead of fully agentic LLM approaches, our method explores diverse directions beyond the inherent biases in the LLM. Our method improves over existing NAS methods by 0.69, 1.83, and 2.68 points on CIFAR-10, CIFAR-100, and ImageNet16-120, demonstrating its effectiveness.

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

↑