paperbot · PL 论文追踪

全部论文 待读 收藏

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

LLM 仍无法避免 instanceof:GPT-3.5、GPT-4 与 Bard 处理面向对象编程作业能力研究
ICSE Proceedings of the 46th International Conference on Software Engineering: Software Engineering Education and Training2024匹配度 1/10 · 该论文主要评估 GPT-3.5、GPT-4 和 Bard 在 OOP 作业上的生成能力与代码质量,属于 LLM 在教育场景中的能力评测,不涉及静态分析、形式化验证、浮点程序分析或贝叶斯程序分析,也未将 LLM 作为改进程序分析的工具。引用 27 inbox
Bruno Pereira Cipriano, Pedro Alves
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:通过自动评估工具测试 GPT-3.5、GPT-4 和 Bard 解决 OOP 作业的能力,发现可生成基本可用代码但常违背 OOP 最佳实践。

大语言模型虽被视为编程学习助手,但其在具有实体、关系与职责识别复杂性的面向对象编程(OOP)任务中的表现尚缺研究。本文选取教育场景中的真实 OOP 练习,让 GPT-3.5、GPT-4 和 Bard 求解,并用自动评估工具(AAT)验证解答。结果显示,模型常能给出基本可运行的方案,却频繁忽视 OOP 最佳实践;GPT-4 表现最佳,GPT-3.5 次之,Bard 最差。作者主张在使用这些模型时重新强调代码质量,并探索将 LLM 与 AAT 结合用于教学;结论认为,即便 GPT-4 展现潜力,部署到 OOP 教育中仍需人工监督。

问题
LLM 已用于辅助学生完成编程作业,但在面向对象编程中,实体、关系与职责识别等固有复杂性使其表现尚不明确,且相关研究存在空白。
方法
研究让 GPT-3.5、GPT-4、Bard 解决真实教育场景中的 OOP 练习,并用自动评估工具验证其解答。
评估
评估关注解答是否可运行及是否符合 OOP 最佳实践,发现模型常生成基本可用方案却忽略 OOP 规范,其中 GPT-4 最佳、GPT-3.5 次之、Bard 最差。
原文摘要(Abstract)

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 show-cases promise, the deployment of these models in OOP education still mandates supervision.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{CiprianoA24,
  title = {LLMs Still Can't Avoid Instanceof: An Investigation Into GPT-3.5, GPT-4 and Bard's Capacity to Handle Object-Oriented Programming Assignments},
  author = {Bruno Pereira Cipriano and Pedro Alves},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3639474.3640052}
}