Can GPT-4 Replicate Empirical Software Engineering Research?
Not on the map. Why?
Abstract (arXiv)
Empirical software engineering research on production systems has brought forth a better understanding of the software engineering process for practitioners and researchers alike. However, only a small subset of production systems is studied, limiting the impact of this research. While software engineering practitioners could benefit from replicating research on their own data, this poses its own set of challenges, since performing replications requires a deep understanding of research methodologies and subtle nuances in software engineering data. Given that large language models (LLMs), such as GPT-4, show promise in tackling both software engineering- and science-related tasks, these models could help replicate and thus democratize empirical software engineering research. In this paper, we examine GPT-4's abilities to perform replications of empirical software engineering research on new data. We study their ability to surface assumptions made in empirical software engineering research methodologies, as well as their ability to plan and generate code for analysis pipelines on seven empirical software engineering papers. We perform a user study with 14 participants with software engineering research expertise, who evaluate GPT-4-generated assumptions and analysis plans (i.e., a list of module specifications) from the papers. We find that GPT-4 is able to surface correct assumptions, but struggles to generate ones that apply common knowledge about software engineering data. In a manual analysis of the generated code, we find that the GPT-4-generated code contains correct high-level logic, given a subset of the methodology. However, the code contains many small implementation-level errors, reflecting a lack of software engineering knowledge. Our findings have implications for leveraging LLMs for software engineering research as well as practitioner data scientists in software teams.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 32 of its 72 references that are in the map. First posted on arXiv 3 Oct 2023.
Builds on
32 of 72 references.
References · 32
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2023PaLM 2 Technical Reportcited by 1,162
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,139
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 399
20 more
- 2022A Systematic Evaluation of Large Language Models of Codecited by 363
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
- 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
- 2022Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programmingcited by 91
- 2023Supporting Qualitative Analysis with Large Language Models: Combining Codebook with GPT-3 for Deductive Codingcited by 82
- 2023A Large-Scale Survey on the Usability of AI Programming Assistants: Successes and Challengescited by 75
- 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
- 2023LLMs as Workers in Human-Computational Algorithms? Replicating Crowdsourcing Pipelines with LLMscited by 27
- 2023How Do Data Analysts Respond to AI Assistance? A Wizard-of-Oz Studycited by 24
- 2022What Makes a Good Commit Message?cited by 20
- 2023Large Language Models Based Automatic Synthesis of Software Specificationscited by 13
- 2021Flakify: A Black-Box, Language Model-based Predictor for Flaky Testscited by 11
- 2022Understanding Skills for OSS Communities on GitHubcited by 9
- 2019Tea: A High-level Language and Runtime System for Automating Statistical Analysiscited by 8
- 2023A Qualitative Study on the Implementation Design Decisions of Developerscited by 7
- 2018Towards a Theory of Software Development Expertisecited by 5
- 2022Tisane: Authoring Statistical Models via Formal Reasoning from Conceptual and Data Relationshipscited by 5
- 2020A Tale of Two Cities: Software Developers Working from Home During the COVID-19 Pandemiccited by 2
- 2022First Come First Served: The Impact of File Position on Code Reviewcited by 2
- 2020Questions for Data Scientists in Software Engineering: A Replicationcited by 1
Built on by
Citing papers per year: 2024: 3; 2025: 2; 2026: 2.
7 papers.
- 2024Can LLMs Replace Manual Annotation of Software Engineering Artifacts?cited by 42
- 2024The RealHumanEval: Evaluating Large Language Models' Abilities to Support Programmerscited by 30
- 2024Beyond pip install: Evaluating LLM Agents for the Automated Installation of Python Projectscited by 21
- 2026Are Coding Agents Generating Over-Mocked Tests? An Empirical Studycited by 6
- 2025Feature-Guided Analysis of Neural Networks: A Replication Studycited by 2
- 2025Context-Aware Visual Prompting: Automating Geospatial Web Dashboards with Large Language Models and Agent Self-Validation for Decision Supportcited by 0
- 2026PELLI: Framework to effectively integrate LLMs for quality software generationcited by 0
- 2026PELLI: Framework to effectively integrate LLMs for quality software generation11 Feb 2026
- 2026Are Coding Agents Generating Over-Mocked Tests? An Empirical Study30 Jan 2026
- 2025Feature-Guided Analysis of Neural Networks: A Replication Study28 Oct 2025
- 2025Context-Aware Visual Prompting: Automating Geospatial Web Dashboards with Large Language Models and Agent Self-Validation for Decision Support10 Oct 2025
- 2024Beyond pip install: Evaluating LLM Agents for the Automated Installation of Python Projects9 Dec 2024
- 2024Can LLMs Replace Manual Annotation of Software Engineering Artifacts?10 Aug 2024
- 2024The RealHumanEval: Evaluating Large Language Models' Abilities to Support Programmers3 Apr 2024