Generating Planning Feedback for Open-Ended Programming Exercises with LLMs
Not on the map. Why?
Abstract (arXiv)
To complete an open-ended programming exercise, students need to both plan a high-level solution and implement it using the appropriate syntax. However, these problems are often autograded on the correctness of the final submission through test cases, and students cannot get feedback on their planning process. Large language models (LLM) may be able to generate this feedback by detecting the overall code structure even for submissions with syntax errors. To this end, we propose an approach that detects which high-level goals and patterns (i.e. programming plans) exist in a student program with LLMs. We show that both the full GPT-4o model and a small variant (GPT-4o-mini) can detect these plans with remarkable accuracy, outperforming baselines inspired by conventional approaches to code analysis. We further show that the smaller, cost-effective variant (GPT-4o-mini) achieves results on par with state-of-the-art (GPT-4o) after fine-tuning, creating promising implications for smaller models for real-time grading. These smaller models can be incorporated into autograders for open-ended code-writing exercises to provide feedback for students' implicit planning skills, even when their program is syntactically incorrect. Furthermore, LLMs may be useful in providing feedback for problems in other domains where students start with a set of high-level solution steps and iteratively compute the output, such as math and physics problems.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 14 of its 53 references that are in the map. First posted on arXiv 11 Apr 2025.
Builds on
14 of 53 references.
References · 14
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024GPT-4o System Cardcited by 4,588
- 2022Survey of Hallucination in Natural Language Generationcited by 2,075
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2023Comparing Code Explanations Created by Students and Large Language Modelscited by 64
- 2023Fine-tuning ChatGPT for Automatic Scoringcited by 51
- 2019Program Synthesis and Semantic Parsing with Learned Code Idiomscited by 34
- 2014Mining Idioms from Source Codecited by 19
- 2023Matching Exemplar as Next Sentence Prediction (MeNSP): Zero-shot Prompt Learning for Automatic Scoring in Science Educationcited by 18
- 2023Exploring the Role of AI Assistants in Computer Science Education: Methods, Implications, and Instructor Perspectivescited by 12
- 2024Automating Autograding: Large Language Models as Test Suite Generators for Introductory Programmingcited by 6
2 more
- 2021Mining Idioms in the Wildcited by 2
- 2024Handwritten Code Recognition for Pen-and-Paper CS Educationcited by 1
Built on by
Citing papers per year: 2025: 3; 2026: 1.
4 papers.
- 2025Enhancing Diversity of LLM-Generated Educational Taskscited by 2
- 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigmscited by 1
- 2025Designing and Evaluating Chain-of-Hints for Scientific Question Answeringcited by 0
- 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquercited by 0
- 2026Solver-Aware Decompositions for Programming-by-Example: When Dividing Requires Knowing how to Conquer4 Aug 2026
- 2025Enhancing Diversity of LLM-Generated Educational Tasks29 Dec 2025
- 2025Designing and Evaluating Chain-of-Hints for Scientific Question Answering24 Oct 2025
- 2025Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigms20 May 2025