Skip to main content
QUICK REVIEW

[Paper Review] A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future Trends

Zibin Zheng, Kaiwen Ning|arXiv (Cornell University)|Nov 17, 2023
Topic ModelingComputer Science20 citations
TL;DR

This paper systematically reviews Code LLMs (specialized for software engineering) versus general LLMs, catalogs 149 Code LLM works (134 after screening), analyzes performance differences, and maps which LLMs excel at which SE tasks.

ABSTRACT

General large language models (LLMs), represented by ChatGPT, have demonstrated significant potential in tasks such as code generation in software engineering. This has led to the development of specialized LLMs for software engineering, known as Code LLMs. A considerable portion of Code LLMs is derived from general LLMs through model fine-tuning. As a result, Code LLMs are often updated frequently and their performance can be influenced by the base LLMs. However, there is currently a lack of systematic investigation into Code LLMs and their performance. In this study, we conduct a comprehensive survey and analysis of the types of Code LLMs and their differences in performance compared to general LLMs. We aim to address three questions: (1) What LLMs are specifically designed for software engineering tasks, and what is the relationship between these Code LLMs? (2) Do Code LLMs really outperform general LLMs in software engineering tasks? (3) Which LLMs are more proficient in different software engineering tasks? To answer these questions, we first collect relevant literature and work from five major databases and open-source communities, resulting in 134 works for analysis. Next, we categorize the Code LLMs based on their publishers and examine their relationships with general LLMs and among themselves. Furthermore, we investigate the performance differences between general LLMs and Code LLMs in various software engineering tasks to demonstrate the impact of base models and Code LLMs. Finally, we comprehensively maintained the performance of LLMs across multiple mainstream benchmarks to identify the best-performing LLMs for each software engineering task. Our research not only assists developers of Code LLMs in choosing base models for the development of more advanced LLMs but also provides insights for practitioners to better understand key improvement directions for Code LLMs.

Motivation & Objective

  • Identify what LLMs are designed for software engineering and how they relate to each other.
  • Assess whether Code LLMs outperform general LLMs on SE tasks.
  • Catalog which LLMs perform best on different SE tasks and benchmarks.

Proposed method

  • Collect literature from four databases (GitHub, dblp, Google Scholar, arXiv) using predefined keywords.
  • Apply card sorting (closed) to classify papers as relevant or irrelevant.
  • Screen 134 papers via screening and snowballing; manually extract development relationships and performance results.
  • Compare Code LLMs with general LLMs using reported experimental results across SE tasks.
  • Maintain and analyze performance scores of Code LLMs on major benchmarks (e.g., HumanEval) across 126 Code LLMs.

Experimental results

Research questions

  • RQ1RQ1: What LLMs are designed for software engineering tasks and how are they related?
  • RQ2RQ2: Do Code LLMs outperform general LLMs in software engineering tasks?
  • RQ3RQ3: Which LLMs are more proficient in different software engineering tasks?

Key findings

  • Code LLMs fine-tuned for SE tasks generally outperform their base models.
  • When parameter counts are comparable, Code LLMs tend to outperform general LLMs.
  • State-of-the-art Code LLMs (e.g., CodeFuse-CodeLlama-34B) can surpass GPT-4 in code generation benchmarks in some settings, while GPT-4 remains competitive in other tasks.
  • The study maintains performance scores for 126 Code LLMs and analyzes their performance across major SE benchmarks and tasks.
  • The review is the first systematic assessment of Code LLMs, organized by developer affiliation and task performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.