arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.22323cs.SE
收藏

提升代码注释可靠性:生成式AI在注释质量评估模型中的作用

Enhancing Code Annotation Reliability: Generative AI's Role in Comment Quality Assessment Models

Seetharam Killivalavan, Durairaj Thenmozhi

AI总结:

本研究提出利用生成式AI扩充代码注释数据集的方法,将新生成的1437对标注样本加入C语言数据集后,显著提升了SVM和ANN模型的代码注释质量分类性能,为软件工程领域的模型优化提供了新思路。

摘要:

本文探索了一种增强用于评估代码注释质量的二分类模型的新方法,该方法利用生成式人工智能提升模型性能。我们将1437对新生成的、标注为“有用”或“无用”且来自多个GitHub仓库的代码-注释对,整合到一个已有的包含9048对样本的C语言数据集中,证明了模型性能得到显著提升。通过使用先进的大语言模型,我们的方法使支持向量机(SVM)模型的精确率提升了5.78%,从0.79提升至0.8478;使人工神经网络(ANN)模型的召回率提升了2.17%,从0.731提升至0.7527。这些结果凸显了生成式AI在改进代码注释分类模型方面的价值,为提升软件开发与质量控制的准确性提供了巨大潜力。本研究展现了将生成技术融入实际软件工程场景以优化机器学习模型的广阔前景。

英文摘要:

This paper explores a novel method for enhancing binary classification models that assess code comment quality, leveraging Generative Artificial Intelligence to elevate model performance. By integrating 1,437 newly generated code-comment pairs, labeled as "Useful" or "Not Useful" and sourced from various GitHub repositories, into an existing C-language dataset of 9,048 pairs, we demonstrate substantial model improvements. Using an advanced Large Language Model, our approach yields a 5.78% precision increase in the Support Vector Machine (SVM) model, improving from 0.79 to 0.8478, and a 2.17% recall boost in the Artificial Neural Network (ANN) model, rising from 0.731 to 0.7527. These results underscore Generative AI's value in advancing code comment classification models, offering significant potential for enhanced accuracy in software development and quality control. This study provides a promising outlook on the integration of generative techniques for refining machine learning models in practical software engineering settings.

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

↑