Generative AI as a Tool or Leader? Exploring AI-Augmented Thinking in Student Programming Tasks

Tianlong Zhong, Gaoxia Zhu, Kang You Lim, Yew Soon OngarXiv 2024 · OpenReview

TL;DR

This study investigates how university students interact with Generative AI (GAI) tools like ChatGPT during programming tasks. It reveals that students who actively lead the interaction (human-led) spend more time developing and refining solutions, while those who passively receive answers (AI-led) rely more on direct GAI outputs. This highlights the crucial role of student agency in effectively leveraging GAI for learning.

What Problem Does This Paper Address?

The rapid integration of Generative AI (GAI) tools into education raises questions about their impact on students' thinking processes and agency. Specifically, in programming education, while GAI can assist with tasks and provide guidance, it's unclear how students' cognitive processes are shaped by these interactions. The authors aim to understand the nuances of "AI-augmented thinking" in programming, differentiating between students who actively guide the AI versus those who are primarily led by it, and to identify factors influencing these interactions.

Methods

The researchers developed a novel "AI-augmented thinking coding scheme" with four dimensions: Question Formulation, Solution Development, Solution Analysis and Evaluation, and Solution Refinement. They analyzed screen recordings of 20 university students interacting with GAI during a one-hour programming session. Participants were categorized into "human-led" and "AI-led" groups based on the proportion of time they spent generating their own code versus copying from GAI. Statistical analyses, including t-tests and sequential pattern mining, were used to compare the thinking processes of these two groups. Additionally, Pearson correlation analyses were conducted to examine the relationship between students' attitudes towards AI, critical thinking, programming self-efficacy, and their AI-augmented thinking patterns.

Datasets

Not discussed in the paper. The study utilized screen recordings and reflection reports from 20 university students.

Key Insights and Ideas

  • Human-led vs. AI-led: A clear distinction emerged between students who actively directed GAI (human-led) and those who primarily received answers (AI-led). This distinction is crucial for understanding how GAI is integrated into learning.
  • Agency is Key: The findings strongly suggest that when students take the lead in their interaction with GAI, they engage more deeply in critical evaluation and refinement, leveraging GAI as a supportive tool rather than a substitute for thinking.
  • GAI as a "Bestie" vs. a "Superintelligence": Human-led students showed a more strategic and critical use of GAI, even expressing socio-emotional interactions like gratitude. AI-led students, conversely, treated GAI as a "superintelligence," relying on it for direct answers and potentially diminishing their own cognitive engagement.
  • Thinking Process Stages: The study identified four key stages in AI-augmented thinking: Question Formulation, Solution Development, Solution Analysis and Evaluation, and Solution Refinement, providing a framework for understanding this process.
  • Factors Influencing Interaction: Positive attitudes towards AI, critical thinking, and programming self-efficacy are associated with more effective AI-augmented thinking, particularly in the initial stages of formulating questions.

Key Results

  • Time Allocation: Human-led students spent significantly more time on Solution Development and Solution Refinement compared to AI-led students (p < .05).
  • Sequential Patterns:
    • Human-led participants frequently followed sequences like [Checking outcomes, Reading answers from GAI, Refining source code manually], indicating a critical approach to GAI outputs.
  • AI-led participants often exhibited sequences like [GAI generating answers, Copying source code from GAI] and [Copying source code from GAI, Running source code], demonstrating reliance on direct GAI solutions.
  • Correlations:
    • Positive attitudes towards AI correlated positively with Question Formulation (r = 0.32).
  • Critical thinking positively correlated with Question Formulation (r = 0.33) and Solution Refinement (r = 0.47).
  • Programming self-efficacy positively correlated with Question Formulation (r = 0.39) but negatively with Solution Analysis and Evaluation (r = -0.54).

Limitations and Future Work

The authors acknowledge the relatively small sample size (20 students) as a limitation. While the use of events as the unit of analysis increased the effective sample size for sequential pattern mining, they suggest future research with larger sample sizes and in different disciplines. They also note that the study did not experimentally test GAI's effectiveness on programming performance, focusing instead on naturalistic thinking processes. Future work could include pre- and post-tests of programming knowledge, experimental conditions, and the integration of multimodal data (e.g., eye-tracking, EEG) to gain deeper insights into AI-augmented thinking. The study also suggests considering factors like prior knowledge and motivation in future research.

Summary updated

Abstract

The increasing use of Generative Artificial Intelligence (GAI) tools in education highlights the need to understand their influence on individuals' thinking processes and agency. This research explored 20 university students' interaction with GAI during programming. Participants completed surveys, recorded their screens during an hour-long programming session, and reflected on their GAI use. To analyse the data, we developed an AI-augmented thinking coding scheme with four dimensions: Question Formulation, Solution Development, Solution Analysis and Evaluation, and Solution Refinement. Participants were categorised into human-led and AI-led groups based on the time ratio of human-generating source code versus copying source code from GAI. T-tests indicated that the human-led group spent significantly more time on Solution Development and Solution Refinement than the AI-led group. Sequential pattern mining revealed distinct patterns of the two groups: the human-led group often refined GAI outputs, while the AI-led group frequently relied on direct answers from GAI. Correlation analyses found that positive attitudes towards AI, critical thinking, and programming self-efficacy positively correlated with Question Formulation; critical thinking was positively related to Solution Refinement; and programming self-efficacy was negatively associated with Solution Analysis and Evaluation. This study enhances understanding of the thinking process in GAI-supported programming.
BibTeX
@misc{zhong2024generative,
  author = {Tianlong Zhong and Gaoxia Zhu and Kang You Lim and Yew Soon Ong},
  title = {{Generative AI as a Tool or Leader? Exploring AI-Augmented Thinking in Student Programming Tasks}},
  year = {2024},
  eprint = {2411.19490},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.19490},
}
Figure