mlsanityData to 7 Oct 2026

Generating Feedback-Ladders for Logical Errors in Programming using Large Language Models

arXiv 2405.00302 ↗First posted 1 May 2024cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

In feedback generation for logical errors in programming assignments, large language model (LLM)-based methods have shown great promise. These methods ask the LLM to generate feedback given the problem statement and a student's (buggy) submission. There are several issues with these types of methods. First, the generated feedback messages are often too direct in revealing the error in the submission and thus diminish valuable opportunities for the student to learn. Second, they do not consider the student's learning context, i.e., their previous submissions, current knowledge, etc. Third, they are not layered since existing methods use a single, shared prompt for all student submissions. In this paper, we explore using LLMs to generate a "feedback-ladder", i.e., multiple levels of feedback for the same problem-submission pair. We evaluate the quality of the generated feedback-ladder via a user study with students, educators, and researchers. We have observed diminishing effectiveness for higher-level feedback and higher-scoring submissions overall in the study. In practice, our method enables teachers to select an appropriate level of feedback to show to a student based on their personal learning context, or in a progressive manner to go more detailed if a higher-level feedback fails to correct the student's error.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 14 of its 21 references that are in the map. First posted on arXiv 1 May 2024.

Builds on

14 of 21 references.

References · 14

  1. 2023Large Language Modelscited by 774
  2. 2020Graph-based, Self-Supervised Program Repair from Diagnostic Feedbackcited by 93
  3. 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
  4. 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
  5. 2023Generative AI for Programming Education: Benchmarking ChatGPT, GPT-4, and Human Tutorscited by 38
  6. 2023Generating High-Precision Feedback for Programming Syntax Errors using Large Language Modelscited by 34
  7. 2023Large Language Models (GPT) for automating feedback on programming assignmentscited by 32
  8. 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
  9. 2015Learning Program Embeddings to Propagate Feedback on Student Codecited by 19
  10. 2020Automated Personalized Feedback Improves Learning Gains in an Intelligent Tutoring Systemcited by 16
  11. 2024Improving Socratic Question Generation using Data Augmentation and Preference Optimizationcited by 15
  12. 2023Patterns of Student Help-Seeking When Using a Large Language Model-Powered Programming Assistantcited by 13
2 more
  1. 2017The Continuous Hint Factory - Providing Hints in Vast and Sparsely Populated Edit Distance Spacescited by 12
  2. 2024Using Large Language Models for Student-Code Guided Test Case Generation in Computer Science Educationcited by 4

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.