Enhancing LLM-Based Neural Network Generation: Few-Shot Prompting and Efficient Validation for Automated Architecture Design
Not on the map. Why?
Abstract (arXiv)
Automated neural network architecture design remains a significant challenge in computer vision. Task diversity and computational constraints require both effective architectures and efficient search methods. Large Language Models (LLMs) present a promising alternative to computationally intensive Neural Architecture Search (NAS), but their application to architecture generation in computer vision has not been systematically studied, particularly regarding prompt engineering and validation strategies. Building on the task-agnostic NNGPT/LEMUR framework, this work introduces and validates two key contributions for computer vision. First, we present Few-Shot Architecture Prompting (FSAP), the first systematic study of the number of supporting examples (n = 1, 2, 3, 4, 5, 6) for LLM-based architecture generation. We find that using n = 3 examples best balances architectural diversity and context focus for vision tasks. Second, we introduce Whitespace-Normalized Hash Validation, a lightweight deduplication method (less than 1 ms) that provides a 100x speedup over AST parsing and prevents redundant training of duplicate computer vision architectures. In large-scale experiments across seven computer vision benchmarks (MNIST, CIFAR-10, CIFAR-100, CelebA, ImageNette, SVHN, Places365), we generated 1,900 unique architectures. We also introduce a dataset-balanced evaluation methodology to address the challenge of comparing architectures across heterogeneous vision tasks. These contributions provide actionable guidelines for LLM-based architecture search in computer vision and establish rigorous evaluation practices, making automated design more accessible to researchers with limited computational resources.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 33 of its 50 references that are in the map. First posted on arXiv 30 Dec 2025.
Builds on
33 of 50 references.
References · 33
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2014Deep Learning Face Attributes in the Wildcited by 3,693
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2018DARTS: Differentiable Architecture Searchcited by 1,798
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
21 more
- 2018Regularized Evolution for Image Classifier Architecture Searchcited by 909
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2018Efficient Neural Architecture Search via Parameter Sharingcited by 837
- 2023StarCoder: may the source be with you!cited by 799
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2020Neural Architecture Search without Trainingcited by 244
- 2021Zero-Cost Proxies for Lightweight NAScited by 199
- 2021Neural Architecture Search on ImageNet in Four GPU Hours: A Theoretically Inspired Perspectivecited by 169
- 2023Neural Architecture Search: Insights from 1000 Paperscited by 139
- 2023LLMatic: Neural Architecture Search via Large Language Models and Quality Diversity Optimizationcited by 87
- 2021Zen-NAS: A Zero-Shot NAS for High-Performance Deep Image Recognitioncited by 73
- 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
- 2025Optuna vs Code Llama: Are LLMs a New Paradigm for Hyperparameter Tuning?cited by 21
- 2025LEMUR Neural Network Dataset: Towards Seamless AutoMLcited by 20
- 2025NNGPT: Rethinking AutoML with Large Language Modelscited by 13
- 2025VIST-GPT: Ushering in the Era of Visual Storytelling with LLMs?cited by 11
- 2025Preparation of Fractal-Inspired Computational Architectures for Advanced Large Language Model Analysiscited by 11
- 2025A Retrieval-Augmented Generation Approach to Extracting Algorithmic Logic from Neural Networkscited by 11
- 2025AugmentGest: Can Random Data Cropping Augmentation Boost Gesture Recognition Performance?cited by 10
- 2025LLM as a Neural Architect: Controlled Generation of Image Captioning Models Under Strict API Contractscited by 9
- 2024The Unreasonable Effectiveness Of Early Discarding After One Epoch In Neural Network Hyperparameter Optimizationcited by 5
Built on by
Citing papers per year: 2026: 10.
10 papers.
- 2026From Memorization to Creativity: LLM as a Designer of Novel Neural Architecturescited by 10
- 2026From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMscited by 7
- 2026Resource-Efficient Iterative LLM-Based NAS with Feedback Memorycited by 7
- 2026Closed-Loop LLM Discovery of Non-Standard Channel Priors in Vision Modelscited by 6
- 2026Delta-Based Neural Architecture Search: LLM Fine-Tuning via Code Diffscited by 3
- 2026LEMUR 2: Unlocking Neural Network Diversity for AIcited by 2
- 2026Systematic Exploration of 4-Expert Heterogeneous Mixture-of-Experts via Automated Pipeline Searchcited by 1
- 2026Towards Robust Training in NNGPT AutoML Pipeline: A Loss-Optimizer Pairing Selection Studycited by 0
- 2026Curating Same-Family Neural Networks for LLM-Guided Model Improvement: A Controlled Case Studycited by 0
- 2026Systematic Evaluation of Learning Rate Scheduling Strategies Across Heterogeneous Architecturescited by 0
- 2026Systematic Evaluation of Learning Rate Scheduling Strategies Across Heterogeneous Architectures9 Jul 2026
- 2026LEMUR 2: Unlocking Neural Network Diversity for AI7 Jul 2026
- 2026Curating Same-Family Neural Networks for LLM-Guided Model Improvement: A Controlled Case Study6 Jul 2026
- 2026Systematic Exploration of 4-Expert Heterogeneous Mixture-of-Experts via Automated Pipeline Search21 Jun 2026
- 2026Towards Robust Training in NNGPT AutoML Pipeline: A Loss-Optimizer Pairing Selection Study18 Jun 2026
- 2026Delta-Based Neural Architecture Search: LLM Fine-Tuning via Code Diffs6 May 2026
- 2026Resource-Efficient Iterative LLM-Based NAS with Feedback Memory12 Mar 2026
- 2026Closed-Loop LLM Discovery of Non-Standard Channel Priors in Vision Models13 Jan 2026
- 2026From Brute Force to Semantic Insight: Performance-Guided Data Transformation Design with LLMs7 Jan 2026
- 2026From Memorization to Creativity: LLM as a Designer of Novel Neural Architectures6 Jan 2026