Abstract
Recently, large language models (LLM) based generative AI has been gaining momentum for their impressive high-quality performances in multiple domains, particularly after the release of the ChatGPT. Many believe that they have the potential to perform general-purpose problem-solving in software development and replace human software developers. Nevertheless, there are in a lack of serious investigation into the capability of these LLM techniques in fulfilling software development tasks. In a controlled 2 x 2 between-subject experiment with 109 participants, we examined whether and to what degree working with ChatGPT was helpful in the coding task and typical software development task and how people work with ChatGPT. We found that while ChatGPT performed well in solving simple coding problems, its performance in supporting typical software development tasks was not that good. We also observed the interactions between participants and ChatGPT and found the relations between the interactions and the outcomes. Our study thus provides first-hand insights into using ChatGPT to fulfill software engineering tasks with real-world developers and motivates the need for novel interaction mechanisms that help developers effectively work with large language models to achieve desired outcomes.
Introduction
The software engineering landscape is currently dominated by discussions regarding the potential for Large Language Models (LLMs) to automate or replace human developers. These claims are often supported by the ability of models like ChatGPT to solve isolated algorithmic challenges or pass technical interviews. However, "coding"—the act of writing syntax for specific algorithms—represents only a fraction of professional software development.
In practice, approximately 81% of software engineering involves maintaining and modifying existing, complex codebases. This "typical development" requires a deep conceptual understanding of system interactions rather than just syntactic fluency. This study investigates the "perception gap" between AI benchmarks and human-centric reality, testing whether ChatGPT provides tangible benefits in real-world engineering scenarios.
Methodology
The researchers employed a controlled 2 × 2 between-subject experiment involving 109 participants, primarily graduate students with professional internship experience. Participants were randomly assigned to groups based on two primary variables: the type of task and the availability of ChatGPT (GPT-3.5).
Tasks and Datasets
- Coding Puzzles: Participants solved five algorithmic puzzles from the PTA (Programming Teaching Assistant) platform, focusing on medium-difficulty logic like barcode verification.
- Typical Development Task: Participants worked with a real-world Python application (
wechat_friends) from GitHub. The task required fixing two documented bugs within the existing codebase, simulating the "messy" reality of professional development.
The study measured several key variables to assess performance and experience, including efficiency, solution quality, and subjective perception.
Results and Key Insights
The experiment revealed a stark contrast between the utility of LLMs in isolated coding versus integrated development.
Efficiency and Quality
For Coding Puzzles, ChatGPT significantly improved efficiency, reducing average completion time from 2692 seconds to 2196 seconds. However, for the Typical Development Task, the improvement in speed was negligible and statistically insignificant. Surprisingly, the use of ChatGPT did not lead to higher solution quality in either category; while it helped participants finish puzzles faster, it did not necessarily result in more correct or robust code.
The Perception Gap and Task Load
A significant finding was the "perception gap." Participants using ChatGPT for development tasks reported high productivity scores, even though their objective metrics (speed and quality) showed no significant improvement over the control group. Furthermore, ChatGPT did not significantly reduce the "Mental Demand" or "Effort" as measured by the NASA-TLX index. In development tasks, the cognitive load required to verify and integrate AI-generated suggestions often offset the time saved in drafting code.
Interaction Archetypes
Qualitative analysis of screen recordings identified two distinct user behaviors:
- The "Life-saver" (Passive): These users treated the AI as a black box, providing the entire problem description and hoping for a direct copy-paste solution. This approach often failed when the AI provided generic or incorrect advice.
- The "Colleague" (Active): These users maintained their own conceptual model of the problem, using the AI to explain specific code snippets or brainstorm sub-problems. This active engagement led to much higher success rates.
Discussion and Conclusion
The results echo Fred Brooks’ classic distinction between "accidents" (syntax, clerical errors) and "essence" (conceptual modeling). ChatGPT excels at the accidents of coding but struggles with the essence of software development.
While newer models may offer improved performance, the fundamental challenge remains: the need for interaction mechanisms that support a developer's conceptual workflow rather than just providing a chat interface. Future research should explore how LLMs can assist in higher-level tasks such as architectural design and requirement elicitation across more diverse developer demographics.
Summary updated