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

Deep-Bench:用于代码生成的深度学习基准数据集

Deep-Bench: Deep Learning Benchmark Dataset for Code Generation

York University(约克大学)

Alireza Daghighfarsoodeh, Chung-Yu Wang, Hamed Taherkhani, Melika Sepidband, Mohammad Abdollahi, Hadi Hemmati, Hung Viet Pham

AI总结:

DeepBench是一个用于函数级深度学习代码生成的新型基准数据集,按阶段、任务和数据类型分类,实验显示LLMs在其上准确率远低于DS-1000,并揭示了性能差异和独特挑战。

摘要:

深度学习(DL)已彻底改变了计算机视觉、自然语言处理等领域。然而,由于深度学习工作流程的复杂性,开发深度学习系统具有挑战性。大型语言模型(LLMs),如GPT、Claude、Llama、Mistral等,已成为辅助深度学习代码生成的有前景的工具,为这些挑战提供了潜在解决方案。尽管如此,现有基准如DS-1000存在局限性,它们主要关注与预处理/后处理任务相关的小型深度学习代码片段,缺乏对完整深度学习流水线的全面覆盖,包括不同的深度学习阶段和输入数据类型。为解决这一问题,我们引入了DeepBench,一个专为函数级深度学习代码生成设计的新型基准数据集。DeepBench根据三个关键方面对深度学习问题进行归类:阶段(如预处理、模型构建和训练)、任务(包括分类、回归和推荐)以及输入数据类型(如表格、图像和文本)。GPT-4o——最先进的大型语言模型——在DeepBench上达到了31%的准确率,显著低于其在DS-1000上的60%。我们观察到其他LLMs也有类似的难度(例如,Claude为28%对54%,LLaMA为21%对41%,Mistral为15%对20%)。这一结果强调了DeepBench的更高复杂性。我们还构建了LLM生成的深度学习代码中问题和错误的分类体系,突出了LLM在生成深度学习代码时与生成通用代码相比面临的独特挑战。此外,我们的分析还揭示了各类别之间的显著性能差异,阶段间差异高达7%,任务间差异高达37%。这些差异表明,DeepBench为LLMs在深度学习领域的性能及潜在改进领域提供了有价值的见解。

英文摘要:

Deep learning (DL) has revolutionized areas such as computer vision, natural language processing, and more. However, developing DL systems is challenging due to the complexity of DL workflows. Large Language Models (LLMs), such as GPT, Claude, Llama, Mistral, etc., have emerged as promising tools to assist in DL code generation, offering potential solutions to these challenges. Despite this, existing benchmarks such as DS-1000 are limited, as they primarily focus on small DL code snippets related to pre/post-processing tasks and lack a comprehensive coverage of the full DL pipeline, including different DL phases and input data types. To address this, we introduce DeepBench, a novel benchmark dataset designed for function-level DL code generation. DeepBench categorizes DL problems based on three key aspects: phases such as pre-processing, model construction, and training; tasks, including classification, regression, and recommendation; and input data types such as tabular, image, and text. GPT-4o -- the state-of-the-art LLM -- achieved 31% accuracy on DeepBench, significantly lower than its 60% on DS-1000. We observed similar difficulty for other LLMs (e.g., 28% vs. 54% for Claude, 21% vs. 41% for LLaMA, and 15% vs. 20% for Mistral). This result underscores DeepBench's greater complexity. We also construct a taxonomy of issues and bugs found in LLM-generated DL code, which highlights the distinct challenges that LLMs face when generating DL code compared to general code. Furthermore, our analysis also reveals substantial performance variations across categories, with differences of up to 7% among phases and 37% among tasks. These disparities suggest that DeepBench offers valuable insights into the LLMs' performance and areas for potential improvement in the DL domain.

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

↑