Not the Silver Bullet: LLM-enhanced Programming Error Messages are Ineffective in Practice
Santos, Eddie Antonio, Becker, Brett A.
–arXiv.org Artificial Intelligence
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.
arXiv.org Artificial Intelligence
Sep-27-2024
- Country:
- Asia
- Europe
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Monaco (0.04)
- Sweden > Uppsala County
- Uppsala (0.04)
- United Kingdom
- England > Greater Manchester
- Manchester (0.05)
- Scotland > City of Aberdeen
- Aberdeen (0.04)
- England > Greater Manchester
- Ireland > Leinster
- North America
- Canada
- British Columbia (0.04)
- Ontario > Toronto (0.04)
- United States
- District of Columbia > Washington (0.04)
- Illinois > Cook County
- Chicago (0.04)
- Maryland > Baltimore (0.04)
- New York > New York County
- New York City (0.06)
- North Carolina (0.04)
- Oregon > Multnomah County
- Portland (0.04)
- Tennessee
- Davidson County > Nashville (0.04)
- Shelby County > Memphis (0.04)
- Washington > King County
- Seattle (0.04)
- Canada
- Oceania > Australia
- Genre:
- Research Report
- Experimental Study (0.86)
- New Finding (1.00)
- Research Report
- Industry:
- Education (1.00)
- Technology: