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

CodeInsight:来自 Stack Overflow 的实用编码解决方案精选数据集

CodeInsight: A Curated Dataset of Practical Coding Solutions from Stack Overflow

Université de Paris(巴黎大学);CNRS(法国国家科学研究中心);onepoint

Nathanaël Beau, Benoît Crabbé

AI总结:

本文提出一个源自Stack Overflow的代码生成数据集CodeInsight,包含3409个由专家制作的示例,涵盖多种Python库及平均三个单元测试,用于模型微调与评估,并通过分类分析及多模型测试验证其低数据污染特性。

摘要:

我们引入了一个为代码生成量身定制的新颖数据集,旨在帮助开发者完成常见任务。我们的数据集提供的示例包含明确的意图、相关的代码片段,以及平均三个相关的单元测试。它涵盖了一系列库,如 Pandas、Numpy 和 Regex,以及源自 Stack Overflow 的 Python 代码中超过 70 个标准库。我们的数据集由 Python 专家精心制作了 3,409 个示例,旨在用于模型微调和独立评估。为了完成单元测试评估,我们对示例进行分类以进行更细粒度的分析,从而增强对模型在特定编码任务中的优势和弱点的理解。这些示例经过优化以减少数据污染,这一过程通过三个领先模型的性能得到证实:Mistral 7B、CodeLLaMa 13B 和 Starcoder 15B。我们进一步调查了数据污染测试,评估了 GPT-4 在我们数据集一部分上的性能。该基准可在 https://github.com/NathanaelBeau/CodeInsight 获取。

英文摘要:

We introduce a novel dataset tailored for code generation, aimed at aiding developers in common tasks. Our dataset provides examples that include a clarified intent, code snippets associated, and an average of three related unit tests. It encompasses a range of libraries such as \texttt{Pandas}, \texttt{Numpy}, and \texttt{Regex}, along with more than 70 standard libraries in Python code derived from Stack Overflow. Comprising 3,409 crafted examples by Python experts, our dataset is designed for both model finetuning and standalone evaluation. To complete unit tests evaluation, we categorize examples in order to get more fine grained analysis, enhancing the understanding of models' strengths and weaknesses in specific coding tasks. The examples have been refined to reduce data contamination, a process confirmed by the performance of three leading models: Mistral 7B, CodeLLaMa 13B, and Starcoder 15B. We further investigate data-contamination testing GPT-4 performance on a part of our dataset. The benchmark can be accessed at \url{https://github.com/NathanaelBeau/CodeInsight}.

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

↑