Date
Publisher
arXiv
Generating hints for incorrect code is a cognitively demanding task that fosters learning and metacognitive development. This study investigates three designs for personalized, scalable, and reflective hint-writing activities within a data science course: (i) writing a hint independently, (ii) writing a hint with on-demand AI assistance, and (iii) deferred AI assistance, in which students first write a hint independently and then revise it with the help of an AI-generated one. We examine how AI support can scaffold the learning process without diminishing students' productive cognitive effort. Through a randomized controlled experiment with graduate-level students (N=97), we found that deferring AI assistance leads to the highest-quality hints. Further, this design helps students identify a wide range of mistakes they otherwise struggle to identify without any AI assistance. Students valued these activities as opportunities to practice debugging and critically engage with AI outputs--skills that are now critical for learners to acquire as programming becomes increasingly automated and the use of AI for learning grows. Our findings also highlight key considerations for designing student-AI collaborative learning experiences to sustain student engagement, maintain appropriate cognitive load, and mitigate negative effects of AI, such as introducing redundancies and extraneous information into student work.
Study at a glance
- Question: How does deferring AI assistance affect students' hint writing quality, learning outcomes, and perceptions during code evaluation tasks?
- Setting and data: Online graduate-level Data Manipulation course at University of Michigan, September 2023, 97 enrolled students.
- Method: Randomized controlled trial comparing independent work, on-demand AI assistance, and deferred AI assistance, supplemented with mixed methods analysis.
Why it matters
Students risk relying on AI as a crutch rather than a scaffold, bypassing effortful cognitive processes needed for durable learning. Finding effective ways to integrate AI assistance into complex educational tasks can prevent overreliance and encourage critical thinking.
Key findings
- Deferred AI assistance led to significantly higher quality hints and better identification of programming mistakes than writing hints independently without AI support.
- No statistically significant differences in learning outcomes were observed across the three hint-writing conditions on the post-test.
- Around 39% of students with deferred assistance made revisions that introduced AI-related redundancies or prematurely revealed full solutions in their final hints.
Summary drafted with AI from the full paper and may contain errors. See the full paper for details.
What is the application?
Who is the user?
Who age?
Why use AI?
