Paper Reading AI Learner

LLM as a Neural Architect: Controlled Generation of Image Captioning Models Under Strict API Contracts

2025-12-07 10:47:28
Krunal Jesani, Dmitry Ignatov, Radu Timofte

Abstract

Neural architecture search (NAS) traditionally requires significant human expertise or automated trial-and-error to design deep learning models. We present NN-Caption, an LLM-guided neural architecture search pipeline that generates runnable image-captioning models by composing CNN encoders from LEMUR's classification backbones with sequence decoders (LSTM/GRU/Transformer) under a strict Net API. Using DeepSeek-R1-0528-Qwen3-8B as the primary generator, we present the prompt template and examples of generated architectures. We evaluate on MS COCO with BLEU-4. The LLM generated dozens of captioning models, with over half successfully trained and producing meaningful captions. We analyse the outcomes of using different numbers of input model snippets (5 vs. 10) in the prompt, finding a slight drop in success rate when providing more candidate components. We also report training dynamics (caption accuracy vs. epochs) and the highest BLEU-4 attained. Our results highlight the promise of LLM-guided NAS: the LLM not only proposes architectures but also suggests hyperparameters and training practices. We identify the challenges encountered (e.g., code hallucinations or API compliance issues) and detail how prompt rules and iterative code fixes addressed them. This work presents a pipeline that integrates prompt-based code generation with automatic evaluation, and adds dozens of novel captioning models to the open LEMUR dataset to facilitate reproducible benchmarking and downstream AutoML research.

Abstract (translated)

神经架构搜索(NAS)传统上需要大量的专业知识或自动化试错来设计深度学习模型。我们提出了一个由大语言模型(LLM)引导的神经架构搜索流水线——NN-Caption,它通过组合从LEMUR分类骨干中提取的CNN编码器和序列解码器(LSTM/GRU/Transformer),在严格的Net API下生成可运行的图像描述模型。使用DeepSeek-R1-0528-Qwen3-8B作为主要生成器,我们展示了提示模板以及生成架构的例子。我们在MS COCO数据集上进行了BLEU-4评估,结果显示LLM生成了数十个描述模型,其中一半以上成功训练并产生了有意义的描述。我们分析了在提示中使用不同数量的输入模型片段(5与10)对成功率的影响,发现提供更多候选组件会导致成功率略有下降。 此外,我们报告了训练动态(随时间变化的描述准确性)和最高获得的BLEU-4分数。我们的研究结果强调了由LLM引导NAS的潜力:LLM不仅提出架构建议,还提出了超参数设置和训练实践方面的建议。我们识别了遇到的一些挑战(如代码幻觉或API兼容性问题),并详细说明了如何通过提示规则以及迭代代码修复来解决这些问题。 这项工作提供了一个集成基于提示的代码生成与自动评估的流水线,并向开放的LEMUR数据集增加了数十个新颖的描述模型,以促进可重复性的基准测试和下游自动化机器学习研究。

URL

https://arxiv.org/abs/2512.14706

PDF

https://arxiv.org/pdf/2512.14706.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot