Automating Autograding: Large Language Models as Test Suite Generators for Introductory Programming
Not on the map. Why?
Abstract (arXiv)
Automatically graded programming assignments provide instant feedback to students and significantly reduce manual grading time for instructors. However, creating comprehensive suites of test cases for programming problems within automatic graders can be time-consuming and complex. The effort needed to define test suites may deter some instructors from creating additional problems or lead to inadequate test coverage, potentially resulting in misleading feedback on student solutions. Such limitations may reduce student access to the well-documented benefits of timely feedback when learning programming. In this work, we evaluate the effectiveness of using Large Language Models (LLMs), as part of a larger workflow, to automatically generate test suites for CS1-level programming problems. Each problem's statement and reference solution are provided to GPT-4 to produce a test suite that can be used by an autograder. We evaluate our proposed approach using a sample of 26 problems, and more than 25,000 attempted solutions to those problems, submitted by students in an introductory programming course. We compare the performance of the LLM-generated test suites against the instructor-created test suites for each problem. Our findings reveal that LLM-generated test suites can correctly identify most valid solutions, and for most problems are at least as comprehensive as the instructor test suites. Additionally, the LLM-generated test suites exposed ambiguities in some problem statements, underscoring their potential to improve both autograding and instructional design.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 14 of its 48 references that are in the map. First posted on arXiv 14 Nov 2024.
Builds on
14 of 48 references.
References · 14
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 163
- 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 124
- 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 85
- 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classescited by 71
- 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
- 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
- 2023Computing Education in the Era of Generative AIcited by 50
- 2023A Comparative Study of AI-Generated (GPT-4) and Human-crafted MCQs in Programming Educationcited by 34
- 2023Prompt Problems: A New Programming Exercise for the Generative AI Eracited by 31
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025Rubric Is All You Need: Enhancing LLM-based Code Evaluation With Question-Specific Rubricscited by 29
- 2025Generating Planning Feedback for Open-Ended Programming Exercises with LLMscited by 4
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standardscited by 1
- 2025Bridging LMS and generative AI: dynamic course content integration (DCCI) for enhancing student satisfaction and engagement via the ask ME assistantcited by 0
- 2025From Pilots to Practices: A Scoping Review of GenAI-Enabled Personalization in Computer Science Educationcited by 0
- 2026LLMs as Teaching Assistants for Mathematics Exam Grading: Reliability, and Practical Usabilitycited by 0
- 2026LLMs as Teaching Assistants for Mathematics Exam Grading: Reliability, and Practical Usability1 Jun 2026
- 2025From Pilots to Practices: A Scoping Review of GenAI-Enabled Personalization in Computer Science Education23 Dec 2025
- 2025A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established Standards19 May 2025
- 2025Generating Planning Feedback for Open-Ended Programming Exercises with LLMs11 Apr 2025
- 2025Bridging LMS and generative AI: dynamic course content integration (DCCI) for enhancing student satisfaction and engagement via the ask ME assistant4 Apr 2025
- 2025Rubric Is All You Need: Enhancing LLM-based Code Evaluation With Question-Specific Rubrics31 Mar 2025