[Paper Review] Prompting Large Language Models to Tackle the Full Software Development Lifecycle: A Case Study
This paper introduces DevBench, a comprehensive benchmark evaluating large language models (LLMs) across the full software development lifecycle—design, environment setup, implementation, and testing—using 22 real-world repositories in Python, C/C++, Java, and JavaScript. Despite state-of-the-art models like GPT-4-Turbo achieving less than 10% on implementation tasks, DevBench reveals critical gaps in LLMs' understanding of complex repository structures, compilation tools like Makefile and Gradle, and advanced programming concepts.
Recent advancements in large language models (LLMs) have significantly enhanced their coding capabilities. However, existing benchmarks predominantly focused on simplified or isolated aspects of coding, such as single-file code generation or repository issue debugging, falling short of measuring the full spectrum of challenges raised by real-world programming activities. In this case study, we explore the performance of LLMs across the entire software development lifecycle with DevEval, encompassing stages including software design, environment setup, implementation, acceptance testing, and unit testing. DevEval features four programming languages, multiple domains, high-quality data collection, and carefully designed and verified metrics for each task. Empirical studies show that current LLMs, including GPT-4, fail to solve the challenges presented within DevEval. Our findings offer actionable insights for the future development of LLMs toward real-world programming applications.
Motivation & Objective
- To address the lack of holistic benchmarks that evaluate LLMs across all stages of real-world software development, including design, environment setup, and testing.
- To create a comprehensive, multi-stage benchmark that mirrors the full Waterfall software development lifecycle using real-world repositories and detailed specifications.
- To identify and diagnose fundamental limitations of current LLMs in handling complex programming tasks such as dependency management, compilation, and advanced OOP concepts.
- To provide a standardized, extensible evaluation framework with high-quality data, verified metrics, and execution feedback for future LLM development in software engineering.
- To enable systematic evaluation of LLMs not just on code generation, but on how their outputs affect downstream tasks in a realistic software pipeline.
Proposed method
- DevBench is structured around a modular, multi-stage evaluation protocol based on the Waterfall model, with tasks spanning product requirement documents (PRDs) to final testing.
- For each task—design, environment setup, implementation, acceptance testing, and unit testing—the input is derived from reference artifacts (e.g., PRDs, UML diagrams, architecture designs), ensuring consistency and traceability.
- The benchmark uses execution feedback and oracle testing to validate correctness, with metrics including pass rate on usage examples, test coverage, and oracle test success.
- LLM-as-a-Judge is employed for subjective evaluation of design quality, with high agreement to human annotations.
- External information and execution feedback in prompting significantly improve model performance, especially in debugging and configuration tasks.
- The dataset comprises 22 curated, real-world repositories across four languages and domains, with carefully collected and verified inputs and outputs.
Experimental results
Research questions
- RQ1Can current LLMs successfully complete a full software development lifecycle, including design, environment setup, implementation, and testing, using only natural language specifications?
- RQ2How do LLMs perform on complex, multi-stage software engineering tasks that require understanding of repository structure, dependencies, and compilation tools?
- RQ3To what extent do LLMs struggle with advanced programming concepts such as function argument configuration, object-oriented principles, and build systems like Makefile and Gradle?
- RQ4How does the inclusion of execution feedback and external information in prompting affect LLM performance across different stages of development?
- RQ5Can LLM-generated test code achieve high coverage even when it fails to pass oracle tests, and what does this imply about model reasoning and correctness?
Key findings
- GPT-4-Turbo, the strongest model evaluated, achieved less than 10% pass rate on the repository-level implementation task, indicating severe limitations in end-to-end software construction.
- Models struggled significantly with Makefile and Gradle configuration, with compilation and execution errors attributable to missing or incorrect components in 90% of C/C++ and Java repositories.
- Function argument misconfiguration occurred in 20% of repositories with GPT-4-Turbo and 30% with CodeLlama-34B-Instruct, and could not be corrected via review or feedback processes.
- Models demonstrated poor understanding of advanced programming concepts such as method access modifiers, pointer usage, and method overloading, with 20% of repositories showing fundamental misunderstandings.
- Despite low oracle test pass rates (below 40%), generated test code achieved up to 79.4% coverage when executable, indicating potential for improvement with better feedback mechanisms.
- Only prompts enriched with external information and execution feedback yielded consistent and notable performance improvements, highlighting the importance of interactive, feedback-driven development in LLM-based software engineering.
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.