Large Language Models Meet NL2Code: A Survey
Not on the map. Why?
Abstract (arXiv)
The task of generating code from a natural language description, or NL2Code, is considered a pressing and significant challenge in code intelligence. Thanks to the rapid development of pre-training techniques, surging large language models are being proposed for code, sparking the advances in NL2Code. To facilitate further research and applications in this field, in this paper, we present a comprehensive survey of 27 existing large language models for NL2Code, and also review benchmarks and metrics. We provide an intuitive comparison of all existing models on the HumanEval benchmark. Through in-depth observation and analysis, we provide some insights and conclude that the key factors contributing to the success of large language models for NL2Code are "Large Size, Premium Data, Expert Tuning". In addition, we discuss challenges and opportunities regarding the gap between models and humans. We also create a website https://nl2code.github.io to track the latest progress through crowd-sourcing. To the best of our knowledge, this is the first survey of large language models for NL2Code, and we believe it will contribute to the ongoing development of the field.
Key facts. Cited by 135 papers in the map (data through 7 Oct 2026). Builds on 63 of its 123 references that are in the map. First posted on arXiv 19 Dec 2022.
Builds on
63 of 123 references.
References · 63
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,968
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
38 more
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
- 2022Self-critiquing models for assisting human evaluatorscited by 372
- 2022CodeT: Code Generation with Generated Testscited by 369
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2022A Systematic Evaluation of Large Language Models of Codecited by 360
- 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2022Efficient Training of Language Models to Fill in the Middlecited by 248
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 220
- 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 216
- 2018Learning to Mine Aligned Code and Natural Language Pairs from Stack Overflowcited by 165
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
- 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2022Automating Code Review Activities by Large-Scale Pre-trainingcited by 98
- 2021A Neural Network Solves, Explains, and Generates University Math Problems by Program Synthesis and Few-Shot Learning at Human Levelcited by 96
- 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
- 2022Experiences from Using Code Explanations Generated by Large Language Models in a Web Software Development E-Bookcited by 84
- 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
- 2022SELFIES and the future of molecular string representationscited by 76
- 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
- 2022Repair Is Nearly Generation: Multilingual Program Repair with LLMscited by 68
- 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
- 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 54
- 2022When Language Model Meets Private Librarycited by 54
- 2019JuICe: A Large Scale Distantly Supervised Dataset for Open Domain Context-based Code Generationcited by 49
- 2022PanGu-Coder: Program Synthesis with Function-Level Language Modelingcited by 47
50 most cited of 63 All 63 (JSON)
Built on by
Citing papers per year: 2023: 22; 2024: 59; 2025: 41; 2026: 13.
135 papers.
Sort:
By area:
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024OlympiadBench: A Challenging Benchmark for Promoting AGI with Olympiad-Level Bilingual Multimodal Scientific Problemscited by 1,099
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2024InfiAgent-DABench: Evaluating Agents on Data Analysis Taskscited by 134
- 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 110
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphscited by 89
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 85
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
38 more
- 2023AutomaTikZ: Text-Guided Synthesis of Scientific Vector Graphics with TikZcited by 74
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaborationcited by 70
- 2024Can Language Models Solve Olympiad Programming?cited by 70
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2024A Survey on LLM-based Code Generation for Low-Resource and Domain-Specific Programming Languagescited by 65
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2024What's Wrong with Your Code Generated by Large Language Models? An Extensive Studycited by 52
- 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
- 2024Beyond Chain-of-Thought: A Survey of Chain-of-X Paradigms for LLMscited by 48
- 2023LaMPilot: An Open Benchmark Dataset for Autonomous Driving with Language Model Programscited by 45
- 2024LLaMoCo: Instruction Tuning of Large Language Models for Optimization Code Generationcited by 45
- 2024Human-In-the-Loop Software Development Agentscited by 42
- 2024Are LLMs Ready for Real-World Materials Discovery?cited by 40
- 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
- 2024CYCLE: Learning to Self-Refine the Code Generationcited by 39
- 2024Mercury: A Code Efficiency Benchmark for Code Large Language Modelscited by 34
- 2024SWE-bench-java: A GitHub Issue Resolving Benchmark for Javacited by 34
- 2024MBBQ: A Dataset for Cross-Lingual Comparison of Stereotypes in Generative LLMscited by 32
- 2025Is Long Context All You Need? Leveraging LLM's Extended Context for NL2SQLcited by 30
- 2023Emergent Representations of Program Semantics in Language Models Trained on Programscited by 28
- 2024CodeS: Natural Language to Code Repository via Multi-Layer Sketchcited by 28
- 2024The RealHumanEval: Evaluating Large Language Models' Abilities to Support Programmerscited by 28
- 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Modelscited by 24
- 2024HumanEvalComm: Benchmarking the Communication Competence of Code Generation for LLMs and LLM Agentcited by 24
- 2024Helpful assistant or fruitful facilitator? Investigating how personas affect language model behaviorcited by 21
- 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
- 2025Process-Supervised Reinforcement Learning for Code Generationcited by 21
- 2024BudgetMLAgent: A Cost-Effective LLM Multi-Agent system for Automating Machine Learning Taskscited by 19
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generationcited by 16
- 2024Code Simulation Challenges for Large Language Modelscited by 15
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
- 2023FRANC: A Lightweight Framework for High-Quality Code Generationcited by 14
- 2023Benchmarking Causal Study to Interpret Large Language Models for Source Codecited by 14
- 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoningcited by 14
- 2024PromptIntern: Saving Inference Costs by Internalizing Recurrent Prompt during Large Language Model Fine-tuningcited by 13
- 2023Testing LLMs on Code Generation with Varying Levels of Prompt Specificitycited by 12
- 2024LLMs with Industrial Lens: Deciphering the Challenges and Prospects -- A Surveycited by 12
- 2025Tokenization is Sensitive to Language Variationcited by 12
50 most cited of 135 All 135 (JSON)
- 2026AdaRepair-Mem: Adaptive Experience Orchestration for Repository-Level Program Repair17 Sep 2026
- 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Security9 Sep 2026
- 2026YeasierAgent: Agentic Social Sandbox as a Canvas for Intent-Driven Creation of Platform-Agnostic Symbiotic Agent-Native Applications11 Jun 2026
- 2026From I/O to Code with Discovery Agent14 May 2026
- 2026Hierarchical Long-Term Semantic Memory for LinkedIn's Hiring Agent29 Apr 2026
- 2026Do Papers Tell the Whole Story? A Benchmark and Framework for Uncovering Hidden Implementation Gaps in Bioinformatics23 Mar 2026
- 2026AI In Cybersecurity Education -- Scalable Agentic CTF Design Principles and Educational Outcomes23 Mar 2026
- 2026RF-Agent: Automated Reward Function Design via Language Agent Tree Search27 Feb 2026
- 2026LLM-Assisted Op-Amp Behavioral-Level Design via Agentic Human-Mimicking Reasoning29 Jan 2026
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2026KALE: Enhancing Knowledge Manipulation in Large Language Models via Knowledge-aware Learning12 Jan 2026
38 more
- 2026STELP: Secure Transpilation and Execution of LLM-Generated Programs9 Jan 2026
- 2025Attention Distance: A Novel Metric for Directed Fuzzing with Large Language Models19 Dec 2025
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection16 Dec 2025
- 2025Do LLMs Recognize Your Latent Preferences? A Benchmark for Latent Information Discovery in Personalized Interaction20 Oct 2025
- 2025A Matter of Representation: Towards Graph-Based Abstract Code Generation15 Oct 2025
- 2025Repairing Regex Vulnerabilities via Localization-Guided Instructions10 Oct 2025
- 2025ByteSized32Refactored: Towards an Extensible Interactive Text Games Corpus for LLM World Modeling and Evaluation28 Sep 2025
- 2025MultiMat: Multimodal Program Synthesis for Procedural Materials using Large Multimodal Models26 Sep 2025
- 2025Large Language Models Meet Legal Artificial Intelligence: A Survey12 Sep 2025
- 2025EnvX: Agentize Everything with Agentic AI9 Sep 2025
- 2025Can Multi-turn Self-refined Single Agent LMs with Retrieval Solve Hard Coding Problems?30 Aug 2025
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answering25 Aug 2025
- 2025The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completion22 Aug 2025
- 2025Tapas Are Free! Training-Free Adaptation of Programmatic Agents via LLM-Guided Program Synthesis in Dynamic Environments15 Aug 2025
- 2025Exploring the Potential of Large Language Models in Fine-Grained Review Comment Classification13 Aug 2025
- 2025ProCut: LLM Prompt Compression via Attribution Estimation4 Aug 2025
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedback25 Jul 2025
- 2025ReCode: Updating Code API Knowledge with Reinforcement Learning25 Jun 2025
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action16 Jun 2025
- 2025SwiftEval: Developing a Language-Specific Benchmark for LLM-generated Code Evaluation30 May 2025
- 2025ASyMOB: Algebraic Symbolic Mathematical Operations Benchmark28 May 2025
- 2025Deconstructing Obfuscation: A four-dimensional framework for evaluating Large Language Models assembly code deobfuscation capabilities26 May 2025
- 2025AutoGEEval: A Multimodal and Automated Framework for Geospatial Code Generation on GEE with Large Language Models19 May 2025
- 2025Talk to Your Slides: High-Efficiency Slide Editing via Language-Driven Structured Data Manipulation16 May 2025
- 2025OSVBench: Benchmarking LLMs on Specification Generation Tasks for Operating System Verification29 Apr 2025
- 2025CodeBC: A More Secure Large Language Model for Smart Contract Code Generation in Blockchain28 Apr 2025
- 2025Multimodal graph representation learning for website generation based on visual sketch25 Apr 2025
- 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoning19 Apr 2025
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolving3 Apr 2025
- 2025HKCanto-Eval: A Benchmark for Evaluating Cantonese Language Understanding and Cultural Comprehension in LLMs16 Mar 2025
- 2025Language Models, Graph Searching, and Supervision Adulteration: When More Supervision is Less and How to Make More More13 Mar 2025
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models10 Mar 2025
- 2025Marking Code Without Breaking It: Code Watermarking for Detecting LLM-Generated Code26 Feb 2025
- 2025Tokenization is Sensitive to Language Variation21 Feb 2025
- 2025Mechanistic Understanding of Language Models in Syntactic Code Completion20 Feb 2025
- 2025GiFT: Gibbs Fine-Tuning for Code Generation17 Feb 2025
- 2025Improving Existing Optimization Algorithms with LLMs12 Feb 2025
- 2025Code Simulation as a Proxy for High-order Tasks in Large Language Models5 Feb 2025
50 newest of 135 All 135 (JSON)
- 2024InfiAgent-DABench: Evaluating Agents on Data Analysis Taskscited by 134
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 77
- 2024Human-In-the-Loop Software Development Agentscited by 42
- 2024HumanEvalComm: Benchmarking the Communication Competence of Code Generation for LLMs and LLM Agentcited by 24
- 2024BudgetMLAgent: A Cost-Effective LLM Multi-Agent system for Automating Machine Learning Taskscited by 19
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generationcited by 9
- 2025Tapas Are Free! Training-Free Adaptation of Programmatic Agents via LLM-Guided Program Synthesis in Dynamic Environmentscited by 9
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Modelscited by 3
- 2026RF-Agent: Automated Reward Function Design via Language Agent Tree Searchcited by 3
- 2025Can Multi-turn Self-refined Single Agent LMs with Retrieval Solve Hard Coding Problems?cited by 2
- 2025EnvX: Agentize Everything with Agentic AIcited by 2
- 2026AI In Cybersecurity Education -- Scalable Agentic CTF Design Principles and Educational Outcomescited by 1
12 most cited of 16 All 16 (JSON)
- 2026YeasierAgent: Agentic Social Sandbox as a Canvas for Intent-Driven Creation of Platform-Agnostic Symbiotic Agent-Native Applications11 Jun 2026
- 2026From I/O to Code with Discovery Agent14 May 2026
- 2026Hierarchical Long-Term Semantic Memory for LinkedIn's Hiring Agent29 Apr 2026
- 2026AI In Cybersecurity Education -- Scalable Agentic CTF Design Principles and Educational Outcomes23 Mar 2026
- 2026RF-Agent: Automated Reward Function Design via Language Agent Tree Search27 Feb 2026
- 2026STELP: Secure Transpilation and Execution of LLM-Generated Programs9 Jan 2026
- 2025EnvX: Agentize Everything with Agentic AI9 Sep 2025
- 2025Can Multi-turn Self-refined Single Agent LMs with Retrieval Solve Hard Coding Problems?30 Aug 2025
- 2025Tapas Are Free! Training-Free Adaptation of Programmatic Agents via LLM-Guided Program Synthesis in Dynamic Environments15 Aug 2025
- 2025Fully Autonomous Programming using Iterative Multi-Agent Debugging with Large Language Models10 Mar 2025
- 2024CoopetitiveV: Leveraging LLM-powered Coopetitive Multi-Agent Prompting for High-quality Verilog Generation15 Dec 2024
- 2024Human-In-the-Loop Software Development Agents19 Nov 2024
12 newest of 16 All 16 (JSON)
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaborationcited by 70
- 2024Beyond Chain-of-Thought: A Survey of Chain-of-X Paradigms for LLMscited by 48
- 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoningcited by 14
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Actioncited by 4
- 2026LLM-Assisted Op-Amp Behavioral-Level Design via Agentic Human-Mimicking Reasoningcited by 0
- 2026LLM-Assisted Op-Amp Behavioral-Level Design via Agentic Human-Mimicking Reasoning29 Jan 2026
- 2025Code Reasoning for Software Engineering Tasks: A Survey and A Call to Action16 Jun 2025
- 2025CodeCrash: Exposing LLM Fragility to Misleading Natural Language in Code Reasoning19 Apr 2025
- 2024Beyond Chain-of-Thought: A Survey of Chain-of-X Paradigms for LLMs24 Apr 2024
- 2023Corex: Pushing the Boundaries of Complex Reasoning through Multi-Model Collaboration30 Sep 2023
- 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Modelcited by 40
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generationcited by 16
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoningcited by 3
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injectioncited by 2
- 2026DRAINCODE: Stealthy Energy Consumption Attacks on Retrieval-Augmented Code Generation via Context Poisoning28 Jan 2026
- 2025IaC Generation with LLMs: An Error Taxonomy and A Study on Configuration Knowledge Injection16 Dec 2025
- 2024GraphCoder: Enhancing Repository-Level Code Completion via Code Context Graph-based Retrieval and Language Model11 Jun 2024
- 2024Prompt-based Code Completion via Multi-Retrieval Augmented Generation13 May 2024
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
- 2025Multi-SWE-bench: A Multilingual Benchmark for Issue Resolvingcited by 165
- 2023RLTF: Reinforcement Learning from Unit Test Feedbackcited by 110
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphscited by 89
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 85
- 2023AutomaTikZ: Text-Guided Synthesis of Scientific Vector Graphics with TikZcited by 74
- 2024Can Language Models Solve Olympiad Programming?cited by 70
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
12 most cited of 99 All 99 (JSON)
- 2026AdaRepair-Mem: Adaptive Experience Orchestration for Repository-Level Program Repair17 Sep 2026
- 2026Do Papers Tell the Whole Story? A Benchmark and Framework for Uncovering Hidden Implementation Gaps in Bioinformatics23 Mar 2026
- 2026AlignCoder: Aligning Retrieval with Target Intent for Repository-Level Code Completion27 Jan 2026
- 2026KALE: Enhancing Knowledge Manipulation in Large Language Models via Knowledge-aware Learning12 Jan 2026
- 2025Attention Distance: A Novel Metric for Directed Fuzzing with Large Language Models19 Dec 2025
- 2025Do LLMs Recognize Your Latent Preferences? A Benchmark for Latent Information Discovery in Personalized Interaction20 Oct 2025
- 2025A Matter of Representation: Towards Graph-Based Abstract Code Generation15 Oct 2025
- 2025Repairing Regex Vulnerabilities via Localization-Guided Instructions10 Oct 2025
- 2025Large Language Models Meet Legal Artificial Intelligence: A Survey12 Sep 2025
- 2025ST-Raptor: LLM-Powered Semi-Structured Table Question Answering25 Aug 2025
- 2025The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completion22 Aug 2025
- 2025Exploring the Potential of Large Language Models in Fine-Grained Review Comment Classification13 Aug 2025
12 newest of 99 All 99 (JSON)