Objective
The main goal of this study was to evaluate the effectiveness of incorporating a large language model (LLM) into programming debugging training for K-12 students, specifically examining its impact on students' programming debugging abilities, computational thinking, and self-efficacy compared to conventional teaching methods.
Methods
The researchers conducted a quasi-experiment with 80 sixth-grade students from an elementary school in China, who were randomly assigned to either an experimental group (40 students) using LLM-based programming debugging training or a control group (40 students) using conventional debugging methods. The study lasted four weeks, during which both groups participated in eight sessions focusing on debugging variables, control structures, loop structures, and program functions. Assessment was conducted at three time points: before intervention (T0), immediately after intervention (T1), and one month post-intervention (T2). Evaluation measures included programming debugging tests, computational thinking assessments, self-efficacy questionnaires, and semi-structured interviews. Data was analyzed using linear mixed-effects modeling to examine changes in student performance over time.
Key Findings
- Students in the LLM group showed significantly greater improvement in programming debugging ability compared to the control group, especially at the one-month follow-up assessment (2.587 units higher than the control group, p=.007).
- The LLM group demonstrated significantly improved computational thinking on the delayed test (T2), with scores 8.46 units higher than the control group (p=.039), while the control group showed no significant improvement in computational thinking.
- Programming self-efficacy increased significantly in the LLM group immediately after intervention (0.41 units higher than the control group, p=.034), but this advantage diminished by the one-month follow-up.
- Interviews revealed that students in the LLM group reported deeper understanding of programming concepts, improved problem-solving skills, increased learning interest, and appreciated the immediate feedback provided by the LLM.
- Control group students frequently mentioned lack of guidance, boredom, and challenges with debugging due to limited syntax knowledge.
Implications
The findings show that using LLMs in programming classes can make teaching and learning better for new programmers in K-12 schools. Talking with the LLM gives students feedback right away, which helps them understand programming ideas, find mistakes, and learn how to solve problems. This approach matches Vygotsky's Zone of Proximal Development theory. Here, the LLM acts as a support to help students reach a deeper understanding. The study adds to the growing research on AI in education by giving real-world evidence that LLMs work well as teaching tools, especially in programming classes where quick and personal feedback is needed for learning hard ideas.
Limitations
The study acknowledges several limitations. The sample size was restricted to one grade level in a single elementary school in China, potentially limiting the generalizability of findings. Additionally, there was a relative lack of process data that could provide deeper insight into how the LLM specifically affected the programming debugging process. The researchers also noted that the effects on programming self-efficacy appeared to be transient, suggesting that maintaining long-term motivation remains a challenge even with LLM support.
Future Directions
The researchers suggest several avenues for future research:
- Examining a more diverse sample of beginning students across different grade levels and regions to explore the impact of LLM-based programming debugging methods on various demographics.
- Collecting and analyzing more detailed process data during the learning experience to better understand how LLMs influence specific aspects of programming debugging.
- Recording student behavioral data to identify and address issues with the platform through user feedback and usage data analysis.
- Incorporating the latest AI technologies to improve the LLM's interaction capabilities and response accuracy for more personalized debugging recommendations.
- Establishing ongoing online learning communities where students can share experiences and support each other to maintain long-term self-efficacy and engagement.
- Ensuring alignment with established learning theories like constructivism and self-efficacy theory when applying LLMs in programming education.
The bottom line: In a four-week experiment with 80 sixth-graders, chatting with an AI helper during debugging practice went with larger gains in debugging and computational thinking. One school, and the self-efficacy boost seemed short-lived.
Comments 0
No comments yet. Be the first to share a thought.
Get new research summaries by email
Every new summary, daily at 8:00 AM Eastern (or weekly if you prefer). Unsubscribe in one click.