Skip to main content
QUICK REVIEW

[Paper Review] A Survey on Large Language Models for Software Engineering

Quanjun Zhang, Chunrong Fang|arXiv (Cornell University)|Dec 23, 2023
Software Engineering ResearchComputer Science18 citations
TL;DR

A systematic survey summarizing the state-of-the-art in LLMs for software engineering, detailing 62 code LLMs, 15 pre-training objectives, 16 downstream SE tasks, and 947 SE studies across five workflow phases, with a living public repository.

ABSTRACT

Software Engineering (SE) is the systematic design, development, maintenance, and management of software applications underpinning the digital infrastructure of our modern world. Very recently, the SE community has seen a rapidly increasing number of techniques employing Large Language Models (LLMs) to automate a broad range of SE tasks. Nevertheless, existing information of the applications, effects, and possible limitations of LLMs within SE is still not well-studied. In this paper, we provide a systematic survey to summarize the current state-of-the-art research in the LLM-based SE community. We summarize 62 representative LLMs of Code across three model architectures, 15 pre-training objectives across four categories, and 16 downstream tasks across five categories. We then present a detailed summarization of the recent SE studies for which LLMs are commonly utilized, including 947 studies for 112 specific code-related tasks across five crucial phases within the SE workflow. We also discuss several critical aspects during the integration of LLMs into SE, such as empirical evaluation, benchmarking, security and reliability, domain tuning, compressing and distillation. Finally, we highlight several challenges and potential opportunities on applying LLMs for future SE studies, such as exploring domain LLMs and constructing clean evaluation datasets. Overall, our work can help researchers gain a comprehensive understanding about the achievements of the existing LLM-based SE studies and promote the practical application of these techniques. Our artifacts are publicly available and will be continuously updated at the living repository: https://github.com/iSEngLab/AwesomeLLM4SE.

Motivation & Objective

  • Summarize the current state-of-the-art in LLM-based software engineering (LLM4SE).
  • Catalog representative code LLMs by architectures, pre-training objectives, and downstream tasks.
  • Map SE tasks and phases facilitated by LLMs across the SE lifecycle.
  • Discuss integration, evaluation, benchmarking, security, and domain-tuning challenges.
  • Provide open science artifacts and future directions for LLM-based SE research.

Proposed method

  • Automated search across Google Scholar, ACM Digital Library, and IEEE Explorer with SE- and LLM-related keywords.
  • Snowballing and manual screening to augment automated results.
  • Classification of papers into LLMs of code, SE studies empowered by LLMs, and integration aspects.
  • Quantitative aggregation of 1009 relevant papers (59 code-LLM papers and 912 LLM-based SE papers) and qualitative synthesis.
  • Public living repository for artifacts and progress tracking: AwesomeLLM4SE.

Experimental results

Research questions

  • RQ1RQ1 (LLM Perspective): What LLMs are released to support SE, their pre-training tasks, downstream tasks, and open-science status?
  • RQ2RQ2 (SE Perspective): What SE tasks are facilitated by LLMs across requirements/design, development, testing, maintenance, and management?
  • RQ3RQ3 (Integration Perspective): What are the key factors in evaluating, benchmarking, security/reliability, domain tuning, and compression/distillation when integrating LLMs into SE.

Key findings

  • The survey analyzes 62 representative code LLMs across encoder-only, encoder-decoder, and decoder-only architectures.
  • It identifies 15 pre-training objectives categorized into four groups (code sequence modeling, bidirectional code-NLP understanding, code structure, and cross-modal learning).
  • There are 16 downstream tasks spanning five SE phases, illustrating broad applicability of LLMs in SE.
  • A total of 947 SE studies cover 112 code-related tasks across five SE phases, indicating rapid growth in the field.
  • The literature collection includes 1009 relevant papers from 2020–2024, with top venues including ICSE, FSE, ACL, ASE, and ISSTA.
  • The authors provide a living public repository (AwesomeLLM4SE) to track progress and support open science.

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.