mlsanityData to 7 Oct 2026

Automating Autograding: Large Language Models as Test Suite Generators for Introductory Programming

arXiv 2411.09261 ↗First posted 14 Nov 2024cs.CY cs.AIcited by 6

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

  1. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  2. 2023Teaching Large Language Models to Self-Debugcited by 963
  3. 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
  4. 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 163
  5. 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 124
  6. 2023The Robots are Here: Navigating the Generative AI Revolution in Computing Educationcited by 85
  7. 2023CodeHelp: Using Large Language Models with Guardrails for Scalable Support in Programming Classescited by 71
  8. 2022Using Large Language Models to Enhance Programming Error Messagescited by 67
  9. 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
  10. 2023Computing Education in the Era of Generative AIcited by 50
  11. 2023A Comparative Study of AI-Generated (GPT-4) and Human-crafted MCQs in Programming Educationcited by 34
  12. 2023Prompt Problems: A New Programming Exercise for the Generative AI Eracited by 31
2 more
  1. 2023AI-enhanced Auto-correction of Programming Exercises: How Effective is GPT-3.5?cited by 8
  2. 2023Learnersourcing in the Age of AI: Student, Educator and Machine Partnerships for Content Creationcited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 5; 2026: 1.

6 papers.