arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.06254cs.SEcs.ET
收藏

大语言模型仍无法规避instanceof问题:关于GPT-3.5、GPT-4与Bard处理面向对象编程作业能力的调查

LLMs Still Can't Avoid Instanceof: An Investigation Into GPT-3.5, GPT-4 and Bard's Capacity to Handle Object-Oriented Programming Assignments

Bruno Pereira Cipriano, Pedro Alves

AI总结:

本研究针对大语言模型在面向对象编程场景的表现空白,测试GPT-3.5、GPT-4、Bard解答教学用OOP习题的能力,发现模型虽能生成基本可用代码但常忽略OOP最佳实践,GPT-4表现最优,提出教学中需重视代码质量并结合自动评估工具监督使用。

摘要:

大语言模型(LLMs)已成为辅助学生完成编程作业的潜力工具。然而,面向对象编程(OOP)因涉及实体识别、关系梳理与职责划分的固有复杂性,尚未被这些工具完全掌握。与入门级编程练习不同,目前针对LLMs在OOP场景下表现的研究仍存在空白。本研究选取三款主流LLM——GPT-3.5、GPT-4和Bard开展实验,让它们解答教学场景中使用的真实OOP练习题,随后使用自动评估工具(Automatic Assessment Tool, AAT)验证其解决方案。结果显示,尽管这些模型通常能生成基本可运行的习题解答,但往往会忽略OOP的最佳实践。其中GPT-4表现最为出色,GPT-3.5次之,Bard排名最后。我们提倡在使用这些模型时需重新重视代码质量,并探讨了在教学场景中将LLMs与AAT结合使用的潜力。结论指出,尽管GPT-4展现出一定前景,但在OOP教育中部署这些模型仍需加以监督。

英文摘要:

Large Language Models (LLMs) have emerged as promising tools to assist students while solving programming assignments. However, object-oriented programming (OOP), with its inherent complexity involving the identification of entities, relationships, and responsibilities, is not yet mastered by these tools. Contrary to introductory programming exercises, there exists a research gap with regard to the behavior of LLMs in OOP contexts. In this study, we experimented with three prominent LLMs - GPT-3.5, GPT-4, and Bard - to solve real-world OOP exercises used in educational settings, subsequently validating their solutions using an Automatic Assessment Tool (AAT). The findings revealed that while the models frequently achieved mostly working solutions to the exercises, they often overlooked the best practices of OOP. GPT-4 stood out as the most proficient, followed by GPT-3.5, with Bard trailing last. We advocate for a renewed emphasis on code quality when employing these models and explore the potential of pairing LLMs with AATs in pedagogical settings. In conclusion, while GPT-4 showcases promise, the deployment of these models in OOP education still mandates supervision.

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

↑