Not the Silver Bullet: LLM-enhanced Programming Error Messages are Ineffective in Practice
Not on the map. Why?
Abstract (arXiv)
The sudden emergence of large language models (LLMs) such as ChatGPT has had a disruptive impact throughout the computing education community. LLMs have been shown to excel at producing correct code to CS1 and CS2 problems, and can even act as friendly assistants to students learning how to code. Recent work shows that LLMs demonstrate unequivocally superior results in being able to explain and resolve compiler error messages -- for decades, one of the most frustrating parts of learning how to code. However, LLM-generated error message explanations have only been assessed by expert programmers in artificial conditions. This work sought to understand how novice programmers resolve programming error messages (PEMs) in a more realistic scenario. We ran a within-subjects study with n = 106 participants in which students were tasked to fix six buggy C programs. For each program, participants were randomly assigned to fix the problem using either a stock compiler error message, an expert-handwritten error message, or an error message explanation generated by GPT-4. Despite promising evidence on synthetic benchmarks, we found that GPT-4 generated error messages outperformed conventional compiler error messages in only 1 of the 6 tasks, measured by students' time-to-fix each problem. Handwritten explanations still outperform LLM and conventional error messages, both on objective and subjective measures.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 9 of its 52 references that are in the map. First posted on arXiv 27 Sep 2024.
Builds on
9 of 52 references.
References · 9
- 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 97
- 2022Reading Between the Lines: Modeling User Behavior and Costs in AI-Assisted Programmingcited by 91
- 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
- 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 62
- 2023Prompt Problems: A New Programming Exercise for the Generative AI Eracited by 31
- 2024How Beginning Programmers and Code LLMs (Mis)read Each Othercited by 31
- 2024The RealHumanEval: Evaluating Large Language Models' Abilities to Support Programmerscited by 28
- 2024Ironies of Generative AI: Understanding and mitigating productivity loss in human-AI interactionscited by 20
- 2024"ChatGPT Is Here to Help, Not to Replace Anybody" -- An Evaluation of Students' Opinions On Integrating ChatGPT In CS Coursescited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 1.
2 papers.