NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generative Software Engineering

Yuan Huang, Yinan Chen, Xiangping Chen, Junqi Chen, Rui Peng, Zhicao Tang, Jinbo Huang, Furen Xu, Zibin ZhengarXiv 2024 · DOI

Abstract

This paper provides a comprehensive systematic review of "Generative Software Engineering," mapping how Pre-trained Models (PTMs) and Large Language Models (LLMs) are applied across the software development lifecycle (SDLC). By analyzing 91 key studies, the authors categorize the field into seven core generative tasks—from requirements and code generation to testing and optimization—identifying state-of-the-art tools, datasets, and critical knowledge gaps.

1. Introduction

The rapid ascent of models like BERT, CodeBERT, and ChatGPT has revolutionized software development. However, the research landscape has become fragmented, often failing to show the evolutionary link between older PTMs and modern LLMs. Furthermore, many studies conflate "discriminative" tasks (e.g., bug detection) with "generative" tasks (e.g., writing the fix), obscuring the effectiveness of techniques for creating new software artifacts. This review addresses these gaps by providing a structured taxonomy of generative tasks based on the SDLC.

2. Methodology

The authors conducted a Systematic Literature Review (SLR), filtering thousands of papers down to 91 high-quality studies published after 2017. They employed a "closed card sorting" method to categorize these papers into seven sub-fields.

Table 1: Distribution of research effort across generative software engineering tasks based on search results.

As shown in Table 1, there is a significant research imbalance. Code Generation is the dominant focus, while Requirements Generation and Code Optimization represent major opportunities for future work due to their relative under-representation in current literature.

3. Taxonomy of Generative Tasks

The field is categorized into seven core tasks:

  • Requirements Generation: Automating user stories and specifications.
  • Code Generation: Translating natural language into executable code.
  • Code Summarization: Producing human-readable comments for existing code.
  • Test Generation: Creating unit tests and assertions.
  • Patch Generation: Automated Program Repair (APR).
  • Code Optimization: Enhancing performance metrics such as execution speed and memory usage.
  • Code Translation: Converting code between different programming languages.

4. Benchmarking and Datasets

The review identifies a vast array of benchmarks used to evaluate these generative tasks. Evaluation is shifting from traditional NLP metrics like BLEU and ROUGE toward execution-based metrics such as Pass@k, which assess the functional correctness of generated code.

Table 2: Summary of key datasets and benchmarks for evaluating code generation capabilities.

Table 2 highlights the diversity of datasets, ranging from Python-specific benchmarks like HumanEval to multi-language environments like CodeScope, which covers 43 languages.

A notable trend is the move toward "self-cooperative frameworks" like ChatCoder, which utilize multiple LLM "roles" (Analyst, Coder, Tester) to mimic a real-world development team. While zero-shot LLMs are impressive—ChatGPT fixed 31 of 40 bugs in the QuixBugs benchmark—fine-tuning still offers substantial gains, sometimes improving performance by over 1000% in patch generation tasks.

However, "Prompt Fragility" remains a challenge; minor phrasing changes in requirements can lead to broken code. This has spurred the development of requirements-guided tools like ClarifyGPT.

6. Challenges and Future Directions

Current research faces several hurdles:

  • The "Fictional" Data Problem: Benchmarks often rely on competitive programming or "toy" examples rather than complex, multi-file industrial environments.
  • Knowledge Fusion: There is a need to combine LLMs with traditional static and dynamic analysis tools to bridge domain knowledge gaps.
  • Security and Robustness: LLMs may generate code that is functionally correct but contains security vulnerabilities, necessitating more robust verification loops.

7. Conclusion

Generative Software Engineering is a rapidly evolving domain. While Code Generation has reached a high level of maturity, areas such as Requirements Engineering and Code Optimization remain fertile ground for future research. Integrating domain-specific knowledge and improving the robustness of generated artifacts are critical next steps for the field.

Summary updated

BibTeX
@misc{huang2024generative,
  author = {Yuan Huang and Yinan Chen and Xiangping Chen and Junqi Chen and Rui Peng and Zhicao Tang and Jinbo Huang and Furen Xu and Zibin Zheng},
  title = {{Generative Software Engineering}},
  year = {2024},
  eprint = {2403.02583},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.02583},
}
Figure