Skip to main content
QUICK REVIEW

[Paper Review] Can ChatGPT Play the Role of a Teaching Assistant in an Introductory Programming Course?

Anishka, Atharva Mehta|arXiv (Cornell University)|Dec 12, 2023
Online Learning and AnalyticsComputer Science6 citations
TL;DR

This study evaluates ChatGPT as a virtual teaching assistant in an introductory programming course, assessing its ability to grade student code and provide feedback. While ChatGPT shows strong potential in improving code quality and offering structured feedback, it lacks consistency and reliability in grading correctness and quality compared to human TAs and automated tools, indicating limited readiness for full deployment in educational settings without further refinement.

ABSTRACT

The emergence of Large language models (LLMs) is expected to have a major impact on education. This paper explores the potential of using ChatGPT, an LLM, as a virtual Teaching Assistant (TA) in an Introductory Programming Course. We evaluate ChatGPT's capabilities by comparing its performance with that of human TAs in some of the important TA functions. The TA functions which we focus on include (1) grading student code submissions, and (2) providing feedback to undergraduate students in an introductory programming course. Firstly, we assess ChatGPT's proficiency in grading student code submissions using a given grading rubric and compare its performance with the grades assigned by human TAs. Secondly, we analyze the quality and relevance of the feedback provided by ChatGPT. This evaluation considers how well ChatGPT addresses mistakes and offers suggestions for improvement in student solutions from both code correctness and code quality perspectives. We conclude with a discussion on the implications of integrating ChatGPT into computing education for automated grading, personalized learning experiences, and instructional support.

Motivation & Objective

  • To investigate whether ChatGPT can effectively perform core teaching assistant functions in an introductory programming course.
  • To compare ChatGPT’s code grading performance with human TAs on correctness and code quality metrics.
  • To evaluate the quality, relevance, and helpfulness of feedback provided by ChatGPT for student code improvements.
  • To explore the feasibility of using LLMs like ChatGPT to enhance automated grading and personalized learning in computing education.
  • To identify limitations and future directions for developing a reliable, consistent, and personalized LLM-powered virtual teaching assistant.

Proposed method

  • Conducted two experiments using three programming assignments from a CS1 course with ~650 students, using Python.
  • Compared ChatGPT’s grading of code correctness against human TA scores using a standardized rubric.
  • Evaluated code quality using both ChatGPT’s assessment and the Radon library to measure metrics like maintainability, complexity, and LLOC.
  • Collected and analyzed feedback from ChatGPT on student code, focusing on error identification and improvement suggestions.
  • Used expert reviewers (former TAs and high-performing students) to assess the quality and helpfulness of ChatGPT’s feedback.
  • Employed prompt engineering to standardize inputs and assess response consistency across repeated queries.

Experimental results

Research questions

  • RQ1RQ1: In terms of grading the student code submissions, how does ChatGPT’s evaluation compare with the evaluation done by human TAs?
  • RQ2RQ2: How effective is ChatGPT in giving feedback to students in terms of identifying mistakes in their code and possible code improvements?
  • RQ3RQ3: How consistent are ChatGPT’s responses across repeated prompts for the same code submission?
  • RQ4RQ4: To what extent does ChatGPT’s feedback improve code quality without compromising correctness?
  • RQ5RQ5: Can ChatGPT be used to deliver personalized, bias-free feedback at scale in large programming courses?

Key findings

  • ChatGPT’s code correctness scores showed moderate alignment with human TA evaluations, but significant discrepancies were observed, indicating inconsistent reliability in functional grading.
  • ChatGPT demonstrated strong capability in identifying and suggesting improvements for code quality, particularly in enhancing modularity and readability, even when correctness remained unchanged.
  • Code quality assessments by ChatGPT correlated positively with Radon-generated metrics, suggesting it can reliably detect structural improvements.
  • Feedback from ChatGPT was consistently helpful in identifying logical flaws and suggesting refactoring, though suggestions were often minor and focused on style and structure rather than logic errors.
  • ChatGPT exhibited high variability in responses to identical prompts, with inconsistent feedback and grading across repeated trials, limiting its reproducibility.
  • Despite its strengths, ChatGPT lacks personalization and historical context, reducing its ability to tailor feedback to individual student learning patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.