arXiv Open Access 2022

Execution-based Evaluation for Data Science Code Generation Models

Junjie Huang Chenglong Wang Jipeng Zhang Cong Yan Haotian Cui +4 lainnya
Lihat Sumber

Abstrak

Code generation models can benefit data scientists' productivity by automatically generating code from context and text descriptions. An important measure of the modeling progress is whether a model can generate code that can correctly execute to solve the task. However, due to the lack of an evaluation dataset that directly supports execution-based model evaluation, existing work relies on code surface form similarity metrics (e.g., BLEU, CodeBLEU) for model selection, which can be inaccurate. To remedy this, we introduce ExeDS, an evaluation dataset for execution evaluation for data science code generation tasks. ExeDS contains a set of 534 problems from Jupyter Notebooks, each consisting of code context, task description, reference program, and the desired execution output. With ExeDS, we evaluate the execution performance of five state-of-the-art code generation models that have achieved high surface-form evaluation scores. Our experiments show that models with high surface-form scores do not necessarily perform well on execution metrics, and execution-based metrics can better capture model code generation errors. Source code and data can be found at https://github.com/Jun-jie-Huang/ExeDS

Topik & Kata Kunci

Penulis (9)

J

Junjie Huang

C

Chenglong Wang

J

Jipeng Zhang

C

Cong Yan

H

Haotian Cui

J

Jeevana Priya Inala

C

Colin Clement

N

Nan Duan

J

Jianfeng Gao

Format Sitasi

Huang, J., Wang, C., Zhang, J., Yan, C., Cui, H., Inala, J.P. et al. (2022). Execution-based Evaluation for Data Science Code Generation Models. https://arxiv.org/abs/2211.09374

Akses Cepat

Lihat di Sumber
Informasi Jurnal
Tahun Terbit
2022
Bahasa
en
Sumber Database
arXiv
Akses
Open Access ✓