arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.12091cs.LGcs.AI
收藏

高效迭代基于大语言模型的神经架构搜索与反馈记忆

Resource-Efficient Iterative LLM-Based NAS with Feedback Memory

Xiaojie Gu, Dmitry Ignatov, Radu Timofte

AI总结:

本文提出一种基于大语言模型的高效迭代神经架构搜索方法,通过反馈记忆机制和双LLM专业化,在单块消费级GPU上实现高效模型搜索,提升图像分类性能。

摘要:

神经架构搜索(NAS)自动化网络设计,但传统方法需要大量计算资源。我们提出了一种闭环流程,利用大语言模型(LLMs)迭代生成、评估和改进用于图像分类的卷积神经网络架构,在单块消费级GPU上无需对LLM进行微调即可完成。我们的方法核心是一种受马尔可夫链启发的历史反馈记忆:一个滑动窗口的K=5次最近改进尝试保持上下文大小恒定,同时提供足够的信号用于迭代学习。不同于以往LLM优化器丢弃失败轨迹的做法,每个历史条目都是一个结构化的诊断三元组——记录识别出的问题、建议的修改和结果,将代码执行失败视为一级学习信号。双LLM专业化减少了每次调用的认知负担:代码生成器生成可执行的PyTorch架构,而提示改进器处理诊断推理。由于LLM和架构训练共享有限的VRAM,搜索隐式地倾向于紧凑、硬件高效模型,适合边缘部署。我们评估了三个冻结指令微调的LLM(≤7B参数)在最多2000次迭代的无约束开放代码空间中,使用CIFAR-10、CIFAR-100和ImageNette上的一个周期代理准确率作为快速排序信号。在CIFAR-10上,DeepSeek-Coder-6.7B从28.2%提升到69.2%,Qwen2.5-7B从50.0%提升到71.5%,GLM-5从43.2%提升到62.0%。一个完整的2000次迭代搜索在单块RTX~4090上完成约18个GPU小时,建立了无需云基础设施的低成本、可重复、硬件感知的LLM驱动NAS范式。

英文摘要:

Neural Architecture Search (NAS) automates network design, but conventional methods demand substantial computational resources. We propose a closed-loop pipeline leveraging large language models (LLMs) to iteratively generate, evaluate, and refine convolutional neural network architectures for image classification on a single consumer-grade GPU without LLM fine-tuning. Central to our approach is a historical feedback memory inspired by Markov chains: a sliding window of $K{=}5$ recent improvement attempts keeps context size constant while providing sufficient signal for iterative learning. Unlike prior LLM optimizers that discard failure trajectories, each history entry is a structured diagnostic triple -- recording the identified problem, suggested modification, and resulting outcome -- treating code execution failures as first-class learning signals. A dual-LLM specialization reduces per-call cognitive load: a Code Generator produces executable PyTorch architectures while a Prompt Improver handles diagnostic reasoning. Since both the LLM and architecture training share limited VRAM, the search implicitly favors compact, hardware-efficient models suited to edge deployment. We evaluate three frozen instruction-tuned LLMs (${\leq}7$B parameters) across up to 2000 iterations in an unconstrained open code space, using one-epoch proxy accuracy on CIFAR-10, CIFAR-100, and ImageNette as a fast ranking signal. On CIFAR-10, DeepSeek-Coder-6.7B improves from 28.2% to 69.2%, Qwen2.5-7B from 50.0% to 71.5%, and GLM-5 from 43.2% to 62.0%. A full 2000-iteration search completes in ${\approx}18$ GPU hours on a single RTX~4090, establishing a low-budget, reproducible, and hardware-aware paradigm for LLM-driven NAS without cloud infrastructure.

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

↑