mlsanityData to 14 Oct 2026

Enhancing LLM-Based Neural Network Generation: Few-Shot Prompting and Efficient Validation for Automated Architecture Design

arXiv 2512.24120 ↗First posted 30 Dec 2025cs.CV cs.AIcited by 10

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2014Deep Learning Face Attributes in the Wildcited by 3,693
  6. 2021Program Synthesis with Large Language Modelscited by 3,637
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2018DARTS: Differentiable Architecture Searchcited by 1,798
  9. 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
  10. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  11. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
  12. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
21 more
  1. 2018Regularized Evolution for Image Classifier Architecture Searchcited by 909
  2. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  3. 2018Efficient Neural Architecture Search via Parameter Sharingcited by 837
  4. 2023StarCoder: may the source be with you!cited by 799
  5. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  6. 2020Neural Architecture Search without Trainingcited by 244
  7. 2021Zero-Cost Proxies for Lightweight NAScited by 199
  8. 2021Neural Architecture Search on ImageNet in Four GPU Hours: A Theoretically Inspired Perspectivecited by 169
  9. 2023Neural Architecture Search: Insights from 1000 Paperscited by 139
  10. 2023LLMatic: Neural Architecture Search via Large Language Models and Quality Diversity Optimizationcited by 87
  11. 2021Zen-NAS: A Zero-Shot NAS for High-Performance Deep Image Recognitioncited by 73
  12. 2015SourcererCC: Scaling Code Clone Detection to Big Codecited by 40
  13. 2025Optuna vs Code Llama: Are LLMs a New Paradigm for Hyperparameter Tuning?cited by 21
  14. 2025LEMUR Neural Network Dataset: Towards Seamless AutoMLcited by 20
  15. 2025NNGPT: Rethinking AutoML with Large Language Modelscited by 13
  16. 2025VIST-GPT: Ushering in the Era of Visual Storytelling with LLMs?cited by 11
  17. 2025Preparation of Fractal-Inspired Computational Architectures for Advanced Large Language Model Analysiscited by 11
  18. 2025A Retrieval-Augmented Generation Approach to Extracting Algorithmic Logic from Neural Networkscited by 11
  19. 2025AugmentGest: Can Random Data Cropping Augmentation Boost Gesture Recognition Performance?cited by 10
  20. 2025LLM as a Neural Architect: Controlled Generation of Image Captioning Models Under Strict API Contractscited by 9
  21. 2024The Unreasonable Effectiveness Of Early Discarding After One Epoch In Neural Network Hyperparameter Optimizationcited by 5

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 10.

10 papers.