Skip to main content
QUICK REVIEW

[Paper Review] The Widening Gap: The Benefits and Harms of Generative AI for Novice Programmers

James Prather, Brent N. Reeves|arXiv (Cornell University)|May 28, 2024
Artificial Intelligence in Healthcare and EducationMedicine5 citations
TL;DR

The study replicates a prior novice-programming metacognition study by adding GenAI tools, finding that GenAI can both help and hinder novices, with new metacognitive difficulties and a widening digital divide between higher- and lower-performing students.

ABSTRACT

Novice programmers often struggle through programming problem solving due to a lack of metacognitive awareness and strategies. Previous research has shown that novices can encounter multiple metacognitive difficulties while programming. Novices are typically unaware of how these difficulties are hindering their progress. Meanwhile, many novices are now programming with generative AI (GenAI), which can provide complete solutions to most introductory programming problems, code suggestions, hints for next steps when stuck, and explain cryptic error messages. Its impact on novice metacognition has only started to be explored. Here we replicate a previous study that examined novice programming problem solving behavior and extend it by incorporating GenAI tools. Through 21 lab sessions consisting of participant observation, interview, and eye tracking, we explore how novices are coding with GenAI tools. Although 20 of 21 students completed the assigned programming problem, our findings show an unfortunate divide in the use of GenAI tools between students who accelerated and students who struggled. Students who accelerated were able to use GenAI to create code they already intended to make and were able to ignore unhelpful or incorrect inline code suggestions. But for students who struggled, our findings indicate that previously known metacognitive difficulties persist, and that GenAI unfortunately can compound them and even introduce new metacognitive difficulties. Furthermore, struggling students often expressed cognitive dissonance about their problem solving ability, thought they performed better than they did, and finished with an illusion of competence. Based on our observations from both groups, we propose ways to scaffold the novice GenAI experience and make suggestions for future work.

Motivation & Objective

  • Investigate how GenAI tools affect novice programmers solving a programming problem.
  • Examine whether GenAI exacerbates previously identified metacognitive difficulties.
  • Identify any new metacognitive difficulties arising from GenAI use.
  • Assess how GenAI use relates to student performance and self-efficacy.

Proposed method

  • Replicates a prior laboratory study using the same problem and automated assessment tool (Athene) integrated into Canvas.
  • In a CS1 course, students used VSCode with GitHub Copilot and ChatGPT during problem solving.
  • Collects data via participant observation, think-aloud protocols, eye-tracking (Tobii), interviews, and self-efficacy measures.
  • Codes data against a predefined codebook of metacognitive stages and difficulties, adding new codes for GenAI-specific issues.
  • Analyzes correlations between metacognitive difficulties, time-on-task, grades, and self-efficacy.
Figure 1. Problem description from Athene
Figure 1. Problem description from Athene

Experimental results

Research questions

  • RQ1RQ1: What benefits do novice programmers receive from using GenAI tools to solve programming problems?
  • RQ2RQ2: What difficulties do novice programmers face while using GenAI tools to solve programming problems.

Key findings

  • GenAI use allowed some students to accelerate toward a solution, while others showed persistent metacognitive difficulties.
  • New GenAI-specific metacognitive difficulties emerged, including Interruption, Mislead, and Progression, in addition to existing ones.
  • Students with higher grades and self-efficacy tended to use GenAI to accelerate, whereas lower-performing students exhibited an illusion of competence.
  • Students experiencing metacognitive difficulties tended to accept Copilot suggestions more often, sometimes reworking or discarding them later.
  • The study observed both benefits and harms of GenAI, with signs that GenAI can widen the achievement gap and reinforce preexisting challenges for struggling students.
Figure 2. Sample Feedback from Athene
Figure 2. Sample Feedback from Athene

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.