Skip to main content
QUICK REVIEW

[论文解读] Generative AI for Programming Education: Benchmarking ChatGPT, GPT-4, and Human Tutors

Tung Phung, Victor-Alexandru Pădurean|arXiv (Cornell University)|Jun 29, 2023
Online Learning and AnalyticsComputer Science被引用 14
一句话总结

GPT-4 在多种编程教育场景中显著优于 GPT-3.5 ChatGPT,并在接近人类导师水平,但在评估反馈和任务综合等任务上仍有欠缺。

ABSTRACT

Generative AI and large language models hold great promise in enhancing computing education by powering next-generation educational technologies for introductory programming. Recent works have studied these models for different scenarios relevant to programming education; however, these works are limited for several reasons, as they typically consider already outdated models or only specific scenario(s). Consequently, there is a lack of a systematic study that benchmarks state-of-the-art models for a comprehensive set of programming education scenarios. In our work, we systematically evaluate two models, ChatGPT (based on GPT-3.5) and GPT-4, and compare their performance with human tutors for a variety of scenarios. We evaluate using five introductory Python programming problems and real-world buggy programs from an online platform, and assess performance using expert-based annotations. Our results show that GPT-4 drastically outperforms ChatGPT (based on GPT-3.5) and comes close to human tutors' performance for several scenarios. These results also highlight settings where GPT-4 still struggles, providing exciting future directions on developing techniques to improve the performance of these models.

研究动机与目标

  • 评估最先进的大语言模型(ChatGPT 和 GPT-4)在初级编程教育中的表现,覆盖多种角色(导师、助手、同伴)。
  • 使用基于专家注释的对现实 buggy 程序的标注,将 LLM 的表现与人类导师进行比较。
  • 识别 GPT-4 擅长的场景及仍有困难之处,以指导未来改进。

提出的方法

  • 定义六个编程教育场景:程序修复、提示生成、评分反馈、结对编程、情境化解释和任务综合。
  • 使用来自 geeksforgeeks.org 的五个入门 Python 问题以及真实的有缺陷程序,涵盖多种错误类型。
  • 通过网页平台与 ChatGPT(GPT-3.5)和 GPT-4 互动以生成输出;并使用两位人类导师进行比较。
  • 用基于专家的注释进行评估(两名评估者),每个场景 25 个实例(5 个问题 × 5 个有缺陷的程序)。
  • 报告场景特定指标(二元正确性、编辑距离等),并以均值和标准误差汇总结果。

实验结果

研究问题

  • RQ1在六个编程教育场景中,ChatGPT(GPT-3.5)和 GPT-4 相对于人类导师的表现如何?
  • RQ2在程序修复、提示、评分、结对编程、情境化解释和任务综合等方面,GPT-4 相对于 GPT-3.5 和人类导师的优点与不足是什么?
  • RQ3LLMs 在这五个基准问题上的解决程度如何,和专家级导师的表现相差多远?

主要发现

  • GPT-4 在大多数场景中显著优于 GPT-3.5,在若干场景接近人类导师。
  • GPT-4 解决所有五个基准问题,而 ChatGPT 解决四个(Fibonacci 对 ChatGPT 仍然有挑战)。
  • 在程序修复中,GPT-4 在 Correct 指标接近导师(88.0 对 100.0),但编辑次数更多(EditTokens 36.6 对 Tutor 的 19.0)。
  • 在提示生成中,GPT-4 相较于 ChatGPT 有所提升但仍落后于导师,总分约为 66.0 对 92.0(导师)。
  • 在评分反馈方面,GPT-4 与导师的差距缩小,但在边缘情况评分(D-CorrectEdge)和整体准确性上差异较大。
  • 在结对编程方面,GPT-4 相较于 ChatGPT 有较大提升,但在 Overall 和 ContextKept 指标上仍落后于导师。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。