Not the Silver Bullet: LLM-enhanced Programming Error Messages are Ineffective in Practice
Eddie Antonio Santos, Brett A. Becker

TL;DR
This study evaluates the effectiveness of LLM-generated programming error messages in real-world scenarios, finding they are generally less effective than expert explanations and traditional compiler messages for novice programmers.
Contribution
It provides empirical evidence on the limited practical effectiveness of LLM-generated error explanations compared to expert and compiler messages in novice programming tasks.
Findings
LLM-generated error messages outperform compiler messages in only 1 of 6 tasks.
Handwritten explanations outperform both LLM and compiler messages.
LLMs show promise but are not yet reliable for novice debugging assistance.
Abstract
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 = 106 participants in which students were tasked to fix six buggy C programs. For each program,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsAttention Is All You Need · Linear Layer · Multi-Head Attention · Layer Normalization · Dense Connections · Adam · Residual Connection · Position-Wise Feed-Forward Layer · Label Smoothing · Byte Pair Encoding
