CodeTailor:基于 LLM 的个性化 Parsons 谜题,在学习编程时提供吸引人的支持
CodeTailor: LLM-Powered Personalized Parsons Puzzles for Engaging Support While Learning Programming
AI总结:
本文提出 CodeTailor 系统,利用 LLM 为编程学习者生成个性化 Parsons 谜题,在提供支持的同时保持认知参与度,实验表明其比直接给出代码方案更能提升学习效果和参与度。
摘要:
学习编程可能具有挑战性,且大规模提供高质量和及时的支持很困难。生成式 AI 及其产品(如 ChatGPT)可以为大多数入门级编程问题创建解决方案。然而,学生可能仅使用这些工具生成代码,导致参与度降低和学习受限。本文提出 CodeTailor,一个利用大语言模型(LLM)为学生提供个性化帮助同时仍鼓励认知参与的系统。CodeTailor 提供个性化 Parsons 谜题以支持遇到困难的学生。在 Parsons 谜题中,学生将打乱的代码块按正确顺序排列以解决问题。使用以往错误的学生代码片段进行的技术评估表明,CodeTailor 能基于其错误代码提供高质量(正确、个性化且简洁)的 Parsons 谜题。我们对 18 名新手程序员进行了被试内研究。参与者认为 CodeTailor 比仅接收 LLM 生成的解决方案(基线条件)更具吸引力。此外,与基线相比,使用 CodeTailor 时参与者在后测中应用了更多来自支架式练习的支持元素。总体而言,大多数参与者更倾向于使用 CodeTailor 而非仅接收 LLM 生成的代码进行学习。定性观察和访谈也为 CodeTailor 的益处提供了证据,包括更多思考解决方案构建、促进学习连续性、促进反思以及提升信心。我们建议未来的设计思路,以利用生成式 AI 技术促进主动学习机会。
英文摘要:
Learning to program can be challenging, and providing high-quality and timely support at scale is hard. Generative AI and its products, like ChatGPT, can create a solution for most intro-level programming problems. However, students might use these tools to just generate code for them, resulting in reduced engagement and limited learning. In this paper, we present CodeTailor, a system that leverages a large language model (LLM) to provide personalized help to students while still encouraging cognitive engagement. CodeTailor provides a personalized Parsons puzzle to support struggling students. In a Parsons puzzle, students place mixed-up code blocks in the correct order to solve a problem. A technical evaluation with previous incorrect student code snippets demonstrated that CodeTailor could deliver high-quality (correct, personalized, and concise) Parsons puzzles based on their incorrect code. We conducted a within-subjects study with 18 novice programmers. Participants perceived CodeTailor as more engaging than just receiving an LLM-generated solution (the baseline condition). In addition, participants applied more supported elements from the scaffolded practice to the posttest when using CodeTailor than baseline. Overall, most participants preferred using CodeTailor versus just receiving the LLM-generated code for learning. Qualitative observations and interviews also provided evidence for the benefits of CodeTailor, including thinking more about solution construction, fostering continuity in learning, promoting reflection, and boosting confidence. We suggest future design ideas to facilitate active learning opportunities with generative AI techniques.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。