mlsanityData to 14 Oct 2026

Empowering AI to Generate Better AI Code: Guided Generation of Deep Learning Projects with LLMs

arXiv 2504.15080 ↗First posted 21 Apr 2025cs.SE cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

While large language models (LLMs) have been widely applied to code generation, they struggle with generating entire deep learning projects, which are characterized by complex structures, longer functions, and stronger reliance on domain knowledge than general-purpose code. An open-domain LLM often lacks coherent contextual guidance and domain expertise for specific projects, making it challenging to produce complete code that fully meets user requirements. In this paper, we propose a novel planning-guided code generation method, DLCodeGen, tailored for generating deep learning projects. DLCodeGen predicts a structured solution plan, offering global guidance for LLMs to generate the project. The generated plan is then leveraged to retrieve semantically analogous code samples and subsequently abstract a code template. To effectively integrate these multiple retrieval-augmented techniques, a comparative learning mechanism is designed to generate the final code. We validate the effectiveness of our approach on a dataset we build for deep learning code generation. Experimental results demonstrate that DLCodeGen outperforms other baselines, achieving improvements of 9.7% in CodeBLEU and 3.6% in human evaluation metrics.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 34 of its 43 references that are in the map. First posted on arXiv 21 Apr 2025.

Builds on

34 of 43 references.

References · 34

  1. 2017Attention Is All You Needcited by 60,361
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  4. 2020Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecastingcited by 2,169
  5. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  6. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  7. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,190
  8. 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
  9. 2022Automatic Chain of Thought Prompting in Large Language Modelscited by 688
  10. 2023Plan-and-Solve Prompting: Improving Zero-Shot Chain-of-Thought Reasoning by Large Language Modelscited by 560
  11. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
  12. 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
22 more
  1. 2017Recent Trends in Deep Learning Based Natural Language Processingcited by 263
  2. 2023Self-collaboration Code Generation via ChatGPTcited by 258
  3. 2020IntelliCode Compose: Code Generation Using Transformercited by 227
  4. 2021Towards Continual Knowledge Learning of Language Modelscited by 174
  5. 2018Demystifying Parallel and Distributed Deep Learning: An In-Depth Concurrency Analysiscited by 156
  6. 2022DocPrompting: Generating Code by Retrieving the Docscited by 153
  7. 2021Retrieval Augmented Code Generation and Summarizationcited by 149
  8. 2023Structured Chain-of-Thought Prompting for Code Generationcited by 138
  9. 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 127
  10. 2023Self-planning Code Generation with Large Language Modelscited by 124
  11. 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
  12. 2023AutoML-GPT: Automatic Machine Learning with GPTcited by 81
  13. 2023MLCopilot: Unleashing the Power of Large Language Models in Solving Machine Learning Taskscited by 66
  14. 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
  15. 2023SelfEvolve: A Code Evolution Framework via Large Language Modelscited by 43
  16. 2024Large Language Models for Constructing and Optimizing Machine Learning Workflows: A Surveycited by 19
  17. 2024Large Language Models Synergize with Automated Machine Learningcited by 9
  18. 2023Neural Machine Translation for Mathematical Formulaecited by 7
  19. 2023InfeRE: Step-by-Step Regex Generation via Chain of Inferencecited by 5
  20. 2023AI for Low-Code for AIcited by 3
  21. 2020The PHOTON Wizard -- Towards Educational Machine Learning Code Generatorscited by 1
  22. 2024Evaluating ChatGPT-3.5 Efficiency in Solving Coding Problems of Different Complexity Levels: An Empirical Analysiscited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024AICoderEval: Improving AI Domain Code Generation of Large Language Models
  2. 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs
  3. 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement
  4. 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
  5. 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunities
  6. 2023Chain-of-Thought in Neural Code Generation: From and For Lightweight Language Models
  7. 2024Search-Based LLMs for Code Optimization
  8. 2023DeceptPrompt: Exploiting LLM-driven Code Generation via Adversarial Natural Language Instructions