arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 2401.11166cs.HC
收藏

课堂中的ChatGPT:探索其在函数式编程课程中的潜力与局限

ChatGPT in the classroom. Exploring its potential and limitations in a Functional Programming course

Dan-Matei Popovici

AI总结:

本研究针对学生使用生成式AI完成作业的现象,测试了ChatGPT在函数式编程课程中的表现,发现其解题正确率68%但仅半数答案对学生有帮助,且代码审查能力优异,进而探讨了其在教育中的利弊。

摘要:

2022年11月,OpenAI推出了ChatGPT——一款基于监督学习与强化学习的聊天机器人。它不仅能模拟人类的回答方式回应问题,还能从零生成代码,或是补全用户提供的代码模板。ChatGPT生成的回答具有独特性,这使得所有传统反剽窃工具都失去了作用。它的发布引发了关于其在学术界、尤其是学生群体中使用情况的激烈讨论。我们意外地发现,布加勒斯特理工大学(POLITEHNICA University of Bucharest,UPB)的学生使用生成式AI工具(ChatGPT及其前身)完成作业的时间至少已有6个月。因此,我们着手探索ChatGPT的能力,评估其在教育场景中的价值。我们用它解答了UPB函数式编程课程本学期的所有编程作业。研究发现,尽管ChatGPT在68%的情况下能给出正确答案,但其中仅约一半是清晰易懂、能在某种程度上对学生有帮助的解答。另一方面,ChatGPT在对学生编程作业进行代码审查方面表现出了极佳的能力。基于这些发现,我们讨论了ChatGPT在教育领域的优缺点。

英文摘要:

In November 2022, OpenAI has introduced ChatGPT, a chatbot based on supervised and reinforcement learning. Not only can it answer questions emulating human-like responses, but it can also generate code from scratch or complete coding templates provided by the user. ChatGPT can generate unique responses which render any traditional anti-plagiarism tool useless. Its release has ignited a heated debate about its usage in academia, especially by students. We have found, to our surprise, that our students at POLITEHNICA University of Bucharest (UPB) have been using generative AI tools (ChatGPT and its predecessors) for solving homework, for at least 6 months. We therefore set out to explore the capabilities of ChatGPT and assess its value for educational purposes. We solved all our coding assignments for the semester from our UPB Functional Programming course. We discovered that, although ChatGPT provides correct answers in 68% of the cases, only around half of those are legible solutions which can benefit students in some form. On the other hand, ChatGPT has a very good ability to perform code review on student programming homework. Based on these findings, we discuss the pros and cons of ChatGPT in education.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑