为何止步于一个错误?将LLMs作为数据科学代码调试器处理多跳和多Bug错误的基准测试
Why Stop at One Error? Benchmarking LLMs as Data Science Code Debuggers for Multi-Hop and Multi-Bug Errors
AI总结:
本文提出DSDBench,首个评估LLMs在数据科学代码调试中处理多跳错误追踪和多Bug检测的基准,包含1,117个标注样本,评估显示现有模型在调试逻辑运行时错误方面存在显著性能差距。
摘要:
LLMs正在变革软件开发,然而当前的代码生成和代码修复基准主要评估简单、单错误情况下的语法和功能正确性。LLMs自主查找和修复复杂数据科学代码中运行时逻辑错误的能力在很大程度上仍未被探索。为了填补这一空白,我们引入了DSDBench:数据科学调试基准,这是首个系统评估LLMs在数据科学代码调试中进行多跳错误追踪和多Bug检测的基准。DSDBench改编自现有数据科学任务基准(如DABench和MatPlotBench)的数据集,包含真实的数据科学调试任务,并带有自动合成的多跳、多Bug代码片段。DSDBench包含1,117个标注样本、741对因果错误对以及运行时错误信息。对最先进LLMs在DSDBench上的评估显示出显著的性能差距,突显了在数据科学代码中调试逻辑运行时错误的挑战。DSDBench为评估和改进LLMs的调试与推理能力提供了关键资源,助力未来实现更可靠的AI辅助数据科学。DSDBench已在github.com/KevinCL16/DSDBench公开发布。
英文摘要:
LLMs are transforming software development, yet current code generation and code repair benchmarks mainly assess syntactic and functional correctness in simple, single-error cases. LLMs' capabilities to autonomously find and fix runtime logical errors in complex data science code remain largely unexplored. To address this gap, we introduce DSDBench: the Data Science Debugging Benchmark, the first benchmark for systematic evaluation of LLMs on multi-hop error tracing and multi-bug detection in data science code debugging. DSDBench adapts datasets from existing data science task benchmarks, such as DABench and MatPlotBench, featuring realistic data science debugging tasks with automatically synthesized multi-hop, multi-bug code snippets. DSDBench includes 1,117 annotated samples with 741 cause-effect error pairs and runtime error messages. Evaluations of state-of-the-art LLMs on DSDBench show significant performance gaps, highlighting challenges in debugging logical runtime errors in data science code. DSDBench offers a crucial resource to evaluate and improve LLMs' debugging and reasoning capabilities, enabling more reliable AI-assisted data science in the future. DSDBench is publicly available at github.com/KevinCL16/DSDBench.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。