Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models in Introductory Programming Education: ChatGPT's Performance and Implications for Assessments

Natalie Kiesler, Daniel Schiffner|arXiv (Cornell University)|Aug 15, 2023
Artificial Intelligence in Healthcare and EducationMedicine19 citations
TL;DR

The paper evaluates ChatGPT-3.5 and GPT-4 on 72 CodingBat Python tasks, finding ~94.4–95.8% correctness and widespread availability of explanations and code, then discusses didactic and assessment implications.

ABSTRACT

This paper investigates the performance of the Large Language Models (LLMs) ChatGPT-3.5 and GPT-4 in solving introductory programming tasks. Based on the performance, implications for didactic scenarios and assessment formats utilizing LLMs are derived. For the analysis, 72 Python tasks for novice programmers were selected from the free site CodingBat. Full task descriptions were used as input to the LLMs, while the generated replies were evaluated using CodingBat's unit tests. In addition, the general availability of textual explanations and program code was analyzed. The results show high scores of 94.4 to 95.8% correct responses and reliable availability of textual explanations and program code, which opens new ways to incorporate LLMs into programming education and assessment.

Motivation & Objective

  • Assess the capability of ChatGPT-3.5 and GPT-4 to generate correct, executable Python code for novice programming tasks.
  • Analyze whether outputs include textual explanations and code, and their reliability.
  • Discuss didactic scenarios and assessment formats leveraging LLMs in introductory programming education.

Proposed method

  • Use CodingBat Python tasks (72 tasks across 8 areas) as input to ChatGPT-3.5 and GPT-4.
  • Present full task descriptions to the LLMs and evaluate their outputs via CodingBat unit tests.
  • Record whether responses include code, explanations, and whether code passes unit tests; iterate prompts if needed.
  • Analyze limitations such as task clarity, constraints (no libraries, function signatures), and overconfidence of LLMs.

Experimental results

Research questions

  • RQ1How do ChatGPT-3.5 and GPT-4 perform on introductory programming tasks in terms of correctness?
  • RQ2What is the extent of textual explanations and code provided by these models?
  • RQ3What are the implications for didactic designs and assessments in introductory programming education?

Key findings

  • ChatGPT-3.5 solved 69 of 72 tasks correctly (95.8%).
  • GPT-4 solved 68 of 72 tasks correctly (94.4%).
  • Both models provide Python code in initial responses and offer textual explanations in the majority of cases (GPT-3.5: 70/72 explanations; GPT-4: 70/72 explanations).
  • Code often includes comments and sometimes extra sample output.
  • Eight-task area breakdown shows very high correctness across most areas, with minor variances by task.
  • Authors discuss strategic use of prompts to improve or refine outputs and emphasize caution due to potential ambiguity and overconfidence.

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.