Seedlabs
Source research

Generative artificial intelligence-supported programming education: Effects on learning performance, self-efficacy and processes

Siran Li, Jiangyue Liu, Qianyan Dong · 2025 · 82 citationsRead the paper

Recent advancements in generative artificial intelligence (GenAI) have drawn significant attention from educators and researchers. However, its effects on learners’ programming performance, self-efficacy and learning processes remain inconclusive, while the mechanisms underlying its efficiency-enhancing potential are underexplored. This study addresses these gaps through a quasi-experiment comparing an experimental group using GenAI for self-directed programming learning with a control group relying on alternative tools. Additionally, the experimental group was divided into high- and low-performance subgroups to examine the relationship between learning behaviour patterns and academic outcomes using process mining techniques. The findings reveal that (a) GenAI demonstrates strong potential to enhance learning outcomes and self-efficacy but negatively affects long-term knowledge transfer; (b) excessive reliance on GenAI and cognitive outsourcing impede effective knowledge acquisition; (c) high-performing learners exhibit greater epistemic agency, actively critiquing and engaging with AI-generated content to construct knowledge proactively. This study underscores the risks of over-reliance on GenAI and the detrimental effects of cognitive offloading, highlighting the critical role of cognitive engagement and epistemic agency in fostering hybrid intelligence. It provides empirical and theoretical insights to inform the design of GenAI-supported programming education strategies and interventions. Implications for practice or policy: Instructors can enhance programming self-efficacy by integrating GenAI tools like ChatGPT into self-learning activities, particularly for reinforcing academic performance. Course leaders should emphasise GenAI use in programming courses to support student engagement, though they should also prepare students for problem-solving without external resources. Educational institutions may consider developing guidelines for balanced GenAI usage to maximise learning benefits while addressing potential limitations in problem-solving skills.

What the full text shows

Shown in the lab
  • GenAI significantly improved immediate academic performance during the practice phase compared to the control group. — Median score 22.3 vs 18.75 (p < 0.001) (Self-directed learning of Python Turtle library)
  • Immediate performance gains from GenAI did not persist in the testing phase when external resources were removed. — No significant difference (p = 0.538) (Post-test without external resources)
  • GenAI use significantly increased students' programming self-efficacy in self-regulation and complex tasks. — Self-regulation (p = 0.008), Complex tasks (p = 0.014) (Post-test comparison between experimental and control groups)
  • Experimental group showed significantly higher frequencies of information retrieval and copying compared to the control group. — Information Retrieval (p < 0.001), Copying (p < 0.001) (Behavioral tracking during self-directed learning)
  • Experimental group exhibited a distinct learning process pattern characterized by a cycle of reviewing GenAI content and copying/applying code. (Process mining using Heuristic Miner algorithm)
Setup
55 undergraduate Physics Education students from a public university in China; 120-minute self-learning session followed by a 40-minute resource-free test.
How
A quasi-experiment comparing a GenAI-supported group (GPT-3.5-turbo) against a control group using general internet resources. Data was analyzed using Mann-Whitney tests for performance, t-tests for self-efficacy, and process mining (ProM Lite 1.4) for behavioral patterns.
Limitations
Small sample size · Short experimental duration · Limited to a specific student demographic (Chinese undergraduate Physics Education students) · Focused exclusively on programming education

Summarized by Gemma 4 from the open-access full text · 23 Nov 2026. Read it