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

AIGCodeSet:一个用于AI生成代码检测的新标注数据集

AIGCodeSet: A New Annotated Dataset for AI Generated Code Detection

TOBB University of Economics and Technology(托布卡大学经济与技术学院);Qatar University(卡塔尔大学)

Basak Demirok, Mucahid Kutlu

AI总结:

针对AI生成代码可能引发的伦理问题,本文提出新标注数据集AIGCodeSet,包含2,828个AI生成和4,755个人类编写的Python代码,实验表明贝叶斯分类器在检测中表现最优。

摘要:

虽然大型语言模型为软件开发带来了极大的便利,但它们可能在求职面试和学生作业中引发伦理问题。因此,确定一段代码是由人类编写还是由人工智能(AI)模型生成是一个关键问题。在本研究中,我们提出了AIGCodeSet,该数据集包含2,828个AI生成的Python代码和4,755个人类编写的Python代码,这些代码是使用CodeLlama 34B、Codestral 22B和Gemini 1.5 Flash创建的。此外,我们分享了使用基线检测方法进行的实验结果。我们的实验表明,贝叶斯分类器的性能优于其他模型。

英文摘要:

While large language models provide significant convenience for software development, they can lead to ethical issues in job interviews and student assignments. Therefore, determining whether a piece of code is written by a human or generated by an artificial intelligence (AI) model is a critical issue. In this study, we present AIGCodeSet, which consists of 2.828 AI-generated and 4.755 human-written Python codes, created using CodeLlama 34B, Codestral 22B, and Gemini 1.5 Flash. In addition, we share the results of our experiments conducted with baseline detection methods. Our experiments show that a Bayesian classifier outperforms the other models.

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

↑