Evaluation of Enhanced Programming Error Messages Generated by Large Language Models from Instructors' Point of View

Enhanced Programming Error Messages are one type of feedback that may be useful during the learning process of novice programmers. One way to improve such messages is by using the context given by an auto-grader from students' errors when solving programming exercises in those environments. We investigate how Large Language Models (LLM) may be used to provide additional feedback beyond simple compiler or interpreter error messages by garnering input from a programming exercise description, the student's code to solve that exercise, and the error generated by a Python interpreter and generating an LLM prompt from that given information. In an experiment, we asked instructors to evaluate the prompt text generated by an LLM from a variety of exercises and the students' errors. Our results show a high rate of adequate feedback by means of explanations and code examples to fix the errors without providing a full code solution. However, some cons have also been noticed, such as vague explanations, hallucinations, and dissociation from explanations and examples. The results suggest that LLM feedback is a promising approach to provide feedback to novice programmers by means of enhanced programming error messages.

Authors

Institutions

Publication Details

Published
2025-04-22
DOI
https://doi.org/10.1109/educon62633.2025.11016595
Primary Topic
Software Engineering Techniques and Practices
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Evaluation of Enhanced Programming Error Messages Generated by Large Language Models from Instructors' Point of View

Roberto A. Bittencourt, Luis Gustavo de Jesus Araujo, Christina Chávez
Software Engineering Techniques and Practices
article

Evaluation of Enhanced Programming Error Messages Generated by Large Language Models from Instructors' Point of View

Roberto A. Bittencourt, Luis Gustavo de Jesus Araujo, Christina Chávez
article en

Abstract

Enhanced Programming Error Messages are one type of feedback that may be useful during the learning process of novice programmers. One way to improve such messages is by using the context given by an auto-grader from students' errors when solving programming exercises in those environments. We investigate how Large Language Models (LLM) may be used to provide additional feedback beyond simple compiler or interpreter error messages by garnering input from a programming exercise description, the student's code to solve that exercise, and the error generated by a Python interpreter and generating an LLM prompt from that given information. In an experiment, we asked instructors to evaluate the prompt text generated by an LLM from a variety of exercises and the students' errors. Our results show a high rate of adequate feedback by means of explanations and code examples to fix the errors without providing a full code solution. However, some cons have also been noticed, such as vague explanations, hallucinations, and dissociation from explanations and examples. The results suggest that LLM feedback is a promising approach to provide feedback to novice programmers by means of enhanced programming error messages.

Universidade Federal da Bahia (BR), University of Victoria (CA)
Quality Education
Openalex Percentile: Top 83%
Software Engineering Techniques and Practices
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.