mlsanityData to 7 Oct 2026

Using Large Language Models to Enhance Programming Error Messages

arXiv 2210.11630 ↗First posted 20 Oct 2022cs.HC cs.AI cs.CLcited by 67

Not on the map. Why?

Abstract (arXiv)

A key part of learning to program is learning to understand programming error messages. They can be hard to interpret and identifying the cause of errors can be time-consuming. One factor in this challenge is that the messages are typically intended for an audience that already knows how to program, or even for programming environments that then use the information to highlight areas in code. Researchers have been working on making these errors more novice friendly since the 1960s, however progress has been slow. The present work contributes to this stream of research by using large language models to enhance programming error messages with explanations of the errors and suggestions on how to fix the error. Large language models can be used to create useful and novice-friendly enhancements to programming error messages that sometimes surpass the original programming error messages in interpretability and actionability. These results provide further evidence of the benefits of large language models for computing educators, highlighting their use in areas known to be challenging for students. We further discuss the benefits and downsides of large language models and highlight future streams of research for enhancing programming error messages.

Key facts. Cited by 67 papers in the map (data through 7 Oct 2026). Builds on 4 of its 46 references that are in the map. First posted on arXiv 20 Oct 2022.

Builds on

4 of 46 references.

References · 4

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  3. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  4. 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 124

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 1; 2023: 24; 2024: 29; 2025: 10; 2026: 3.

67 papers.

Sort:

By area:

  1. 2022Programming Is Hard -- Or at Least It Used to Be: Educational Opportunities And Challenges of AI Code Generationcited by 97
  2. 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 85
  3. 2024CodeAid: Evaluating a Classroom Deployment of an LLM-based Programming Assistant that Balances Student and Educator Needscited by 81
  4. 2023Comparing Code Explanations Created by Students and Large Language Modelscited by 63
  5. 2023"It's Weird That it Knows What I Want": Usability and Interactions with Copilot for Novice Programmerscited by 62
  6. 2023Computing Education in the Era of Generative AIcited by 50
  7. 2024The Widening Gap: The Benefits and Harms of Generative AI for Novice Programmerscited by 46
  8. 2023Exploring the Responses of Large Language Models to Beginner Programmers' Help Requestscited by 44
  9. 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Coursescited by 38
  10. 2023Generative AI for Programming Education: Benchmarking ChatGPT, GPT-4, and Human Tutorscited by 38
  11. 2023Generating High-Precision Feedback for Programming Syntax Errors using Large Language Modelscited by 34
  12. 2023StudentEval: A Benchmark of Student-Written Prompts for Large Language Models of Codecited by 32
38 more
  1. 2023Automating Human Tutor-Style Programming Feedback: Leveraging GPT-4 Tutor Model for Hint Generation and GPT-3.5 Student Model for Hint Validationcited by 29
  2. 2023Exploring the Potential of Large Language Models to Generate Formative Programming Feedbackcited by 28
  3. 2023Next-Step Hint Generation for Introductory Programming Using Large Language Modelscited by 20
  4. 2024Open Source Language Models Can Provide Feedback: Evaluating LLMs' Ability to Help Students Using GPT-4-As-A-Judgecited by 19
  5. 2023Promptly: Using Prompt Problems to Teach Learners How to Effectively Utilize AI Code Generatorscited by 16
  6. 2023Can Language Models Employ the Socratic Method? Experiments with Code Debuggingcited by 14
  7. 2024Feedback-Generation for Programming Exercises With GPT-4cited by 14
  8. 2024Large Language Model-Enabled Multi-Agent Manufacturing Systemscited by 14
  9. 2023ChatGPT in the Classroom: An Analysis of Its Strengths and Weaknesses for Solving Undergraduate Computer Science Questionscited by 13
  10. 2023Neural Task Synthesis for Visual Programmingcited by 13
  11. 2023Evaluating ChatGPT and GPT-4 for Visual Programmingcited by 13
  12. 2024Evaluating Contextually Personalized Programming Exercises Created with Generative AIcited by 13
  13. 2024Beyond the Hype: A Comprehensive Review of Current Trends in Generative AI Research, Teaching Practices, and Toolscited by 13
  14. 2023Dcc --help: Generating Context-Aware Compiler Error Explanations with Large Language Modelscited by 11
  15. 2024How Novice Programmers Use and Experience ChatGPT when Solving Programming Exercises in an Introductory Coursecited by 11
  16. 2024Generative AI in Education: A Study of Educators' Awareness, Sentiments, and Influencing Factorscited by 10
  17. 2023"It's not like Jarvis, but it's pretty close!" -- Examining ChatGPT's Usage among Undergraduate Students in Computer Sciencecited by 9
  18. 2023AI-enhanced Auto-correction of Programming Exercises: How Effective is GPT-3.5?cited by 8
  19. 2024Analyzing Chat Protocols of Novice Programmers Solving Introductory Programming Tasks with ChatGPTcited by 8
  20. 2024Evaluating Language Models for Generating and Judging Programming Feedbackcited by 8
  21. 2024Exploring LLM-Driven Explanations for Quantum Algorithmscited by 7
  22. 2023Decoding Logic Errors: A Comparative Study on Bug Detection by Students and Large Language Modelscited by 6
  23. 2023Can ChatGPT Play the Role of a Teaching Assistant in an Introductory Programming Course?cited by 6
  24. 2024Synthetic Students: A Comparative Study of Bug Distribution Between Large Language Models and Computing Studentscited by 6
  25. 2024Automating Autograding: Large Language Models as Test Suite Generators for Introductory Programmingcited by 6
  26. 2023Scratch Copilot Evaluation: Assessing AI-Assisted Creative Coding for Familiescited by 5
  27. 2024"Like a Nesting Doll": Analyzing Recursion Analogies Generated by CS Students using Large Language Modelscited by 5
  28. 2024Improving LLM Classification of Logical Errors by Integrating Error Relationship into Promptscited by 5
  29. 2024BugSpotter: Automated Generation of Code Debugging Exercisescited by 5
  30. 2025The Code Barrier: What LLMs Actually Understand?cited by 5
  31. 2024Enhancing Programming Error Messages in Real Time with Generative AIcited by 3
  32. 2024Generating Feedback-Ladders for Logical Errors in Programming using Large Language Modelscited by 3
  33. 2025Synthesizing High-Quality Programming Tasks with LLM-based Expert and Student Agentscited by 3
  34. 2024LLMs in the Heart of Differential Testing: A Case Study on a Medical Rule Enginecited by 2
  35. 2024Not the Silver Bullet: LLM-enhanced Programming Error Messages are Ineffective in Practicecited by 2
  36. 2024Breaking the Programming Language Barrier: Multilingual Prompting to Empower Non-Native English Learnerscited by 2
  37. 2025Use Me Wisely: AI-Driven Assessment for LLM Prompting Skills Developmentcited by 2
  38. 2023"With Great Power Comes Great Responsibility!": Student and Instructor Perspectives on the influence of LLMs on Undergraduate Engineering Educationcited by 1

50 most cited of 67 All 67 (JSON)