[Paper Review] Large Language Models Meet NL2Code: A Survey
This survey provides a comprehensive analysis of 27 large language models (LLMs) for natural language to code (NL2Code), identifying 'Large Size, Premium Data, Expert Tuning' as key success factors. It evaluates models on the HumanEval benchmark, reviews benchmarks and metrics, and introduces a community-maintained website to track progress in this emerging field.
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.
Motivation & Objective
- To provide a systematic review of 27 large language models specifically designed for NL2Code tasks.
- To analyze the performance of these models on the HumanEval benchmark and identify key success factors.
- To review existing benchmarks and evaluation metrics for NL2Code, highlighting gaps and limitations.
- To explore the performance gap between LLMs and human programmers in code generation.
- To establish a community-driven website (nl2code.github.io) for tracking real-time progress and fostering collaborative updates.
Proposed method
- The authors conducted a comprehensive survey of 27 state-of-the-art LLMs trained on large-scale code corpora for NL2Code.
- They evaluated all models on the HumanEval benchmark using standardized metrics, including pass@1 and pass@10.
- The study involved in-depth analysis of model architecture, training data quality, hyperparameter tuning, and inference strategies.
- The authors compared models across dimensions such as model size, tokenizer type, optimizer, learning rate, and precision format.
- They introduced a structured comparison table summarizing model details including size, decoder type, tokenizer, optimizer, and training hyperparameters.
- A dedicated website (nl2code.github.io) was created to support crowd-sourced tracking of model performance and new releases.
Experimental results
Research questions
- RQ1What are the key architectural and training characteristics that contribute to the success of LLMs in NL2Code?
- RQ2How do different LLMs perform on standardized benchmarks like HumanEval, and what factors explain performance differences?
- RQ3What are the current limitations and gaps in existing benchmarks and evaluation metrics for NL2Code?
- RQ4How do LLMs compare to human programmers in terms of code generation quality and reasoning ability?
- RQ5What are the most promising directions for future research in NL2Code, given the current capabilities of LLMs?
Key findings
- The top-performing LLMs for NL2Code achieve pass@1 scores above 70% on the HumanEval benchmark, with Codex reaching 72.31%.
- The success of LLMs in NL2Code is primarily attributed to 'Large Size, Premium Data, Expert Tuning', indicating that model scale, high-quality training data, and careful hyperparameter tuning are critical.
- Models like CodeGen, InCoder, and SantaCoder show strong zero-shot generalization, particularly in code completion and filling-in-the-middle tasks.
- The use of high-quality, de-duplicated code corpora and advanced tokenization (e.g., BBPE, SentencePiece) significantly improves model performance.
- Despite strong performance, a notable gap remains between LLMs and human programmers in handling complex, multi-step programming tasks and reasoning under ambiguity.
- The survey identifies a lack of standardized, multilingual benchmarks, with most existing benchmarks focusing narrowly on Python, highlighting a need for broader evaluation frameworks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.