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

Umar Alkafaween, Ibrahim Albluwi, Paul Denny
11/14/2024
cs.CYcs.AI

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{alkafaween2024automating,
  title  = {Automating Autograding: Large Language Models as Test Suite Generators for Introductory Programming},
  author = {Umar Alkafaween and Ibrahim Albluwi and Paul Denny},
  year   = {2024},
  eprint = {2411.09261},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.09261v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.09261.svg)](https://codeofpaper.com/paper/2411.09261)

Discussion