We use a few cookies

Essential cookies keep the library working. With your permission, we'd also like to use analytics to see what's useful and improve the experience. Read our Privacy Policy or Cookie Policy.

Skip to main content
Home/e-Resources/Data Science & Analytics/DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
Conference ProceedingsData Science & Analytics

DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation

2023

Checking your access to this record.

Abstract & Overview

We introduce DS-1000, a code generation benchmark with a thousand data science problems spanning seven Python libraries, such as NumPy and Pandas. Compared to prior works, DS-1000 incorporates three core features. First, our problems reflect diverse, realistic, and practical use cases since we collected them from StackOverflow. Second, our automatic evaluation is highly specific (reliable) -- across all Codex-002-predicted solutions that our evaluation accept, only 1.8% of them are incorrect; we achieve this with multi-criteria metrics, checking both functional correctness by running test cases and surface-form constraints by restricting API usages or keywords. Finally, we proactively defend against memorization by slightly modifying our problems to be different from the original StackOverflow source; consequently, models cannot answer them correctly by memorizing the solutions from pre-training. The current best public system (Codex-002) achieves 43.3% accuracy, leaving ample room for improvement. We release our benchmark at https://ds1000-code-gen.github.io.

Cite this record

Yuhang Lai, Li Chengxi, Yiming Wang, Zhang, Tianyi, Ruiqi Zhong, Luke Zettlemoyer, et al. (2023). DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation. International Conference on Machine Learning. https://doi.org/10.48550/arxiv.2211.11501

Copy in another style

Lai, Y., Chengxi, L., Wang, Y., Tianyi, Z., Zhong, R., Zettlemoyer, L., Yih, S., Fried, D., Wang, S. I., & Yu, C. (2023). DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation. International Conference on Machine Learning. https://doi.org/10.48550/arxiv.2211.11501
Author names are used as deposited, so check their order before you submit.

Metadata is harvested from open-access indexes and can be incomplete. Check a citation against the published version before relying on it — see our open access & attribution policy.