arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.05360cs.SEcs.AIcs.CL
收藏

揭开巨人的面纱:对ChatGPT在算法与数据结构编程能力上的全面评估

Unmasking the giant: A comprehensive evaluation of ChatGPT's proficiency in coding algorithms and data structures

Texas Tech University(德克萨斯理工大学)

Sayed Erfan Arefin, Tasnia Ashrafi Heya, Hasan Al-Qudah, Ynes Ineza, Abdul Serwadda

AI总结:

本文基于最大规模编程挑战数据集,全面评估ChatGPT在算法与数据结构上的编码能力,涵盖正确性、代码质量、运行时错误及记忆效应,并对比GPT-3.5与GPT-4及人类表现。

摘要:

大型语言模型(LLMs)的变革性影响正深刻重塑人工智能(AI)技术领域。值得注意的是,ChatGPT在这些模型中脱颖而出,在多轮对话中表现出色,并在一系列编程语言中展现出代码能力。在本文中,我们基于迄今为止最大的编程挑战数据集,对ChatGPT的编码能力进行了全面评估。我们重点关注Python编程语言以及以数据结构和算法为中心的问题,这两者是计算机科学的基础主题。我们评估了ChatGPT生成正确解决方案的能力、其代码质量以及其代码产生的运行时错误的性质。当ChatGPT代码成功执行但未能解决手头问题时,我们分析其通过的测试用例模式,以深入了解ChatGPT代码在这些情况下的错误程度。为了推断ChatGPT是否可能直接记忆了用于训练的部分数据,我们系统地设计了一个实验来调查这一现象。在可行的情况下与人类表现进行比较,我们从其底层学习模型(GPT-3.5和GPT-4)的背景下,在主要主题内的广泛子主题上,以及在不同难度的问题上,调查了上述所有问题。

英文摘要:

The transformative influence of Large Language Models (LLMs) is profoundly reshaping the Artificial Intelligence (AI) technology domain. Notably, ChatGPT distinguishes itself within these models, demonstrating remarkable performance in multi-turn conversations and exhibiting code proficiency across an array of languages. In this paper, we carry out a comprehensive evaluation of ChatGPT's coding capabilities based on what is to date the largest catalog of coding challenges. Our focus is on the python programming language and problems centered on data structures and algorithms, two topics at the very foundations of Computer Science. We evaluate ChatGPT for its ability to generate correct solutions to the problems fed to it, its code quality, and nature of run-time errors thrown by its code. Where ChatGPT code successfully executes, but fails to solve the problem at hand, we look into patterns in the test cases passed in order to gain some insights into how wrong ChatGPT code is in these kinds of situations. To infer whether ChatGPT might have directly memorized some of the data that was used to train it, we methodically design an experiment to investigate this phenomena. Making comparisons with human performance whenever feasible, we investigate all the above questions from the context of both its underlying learning models (GPT-3.5 and GPT-4), on a vast array sub-topics within the main topics, and on problems having varying degrees of difficulty.

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

↑