Skip to main navigation Skip to search Skip to main content

Execution-based Evaluation for Data Science Code Generation Models

  • Junjie Huang
  • , Colin Clement
  • , Nan Duan
  • , Jianfeng Gao
  • , Jeevana Priya Inala
  • , Chenglong Wang
  • , Cong Yan
  • , Haotian Cui
  • , Jipeng Zhang

Research output: Contribution to conferenceConference Paperpeer-review

Abstract

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. All the code and data will be released upon acceptance.
Original languageEnglish
Pages28-36
Publication statusPublished - Feb 2022
EventProceedings of the Fourth Workshop on Data Science with Human-in-the-Loop (Language Advances) -
Duration: 1 Feb 20221 Feb 2022

Conference

ConferenceProceedings of the Fourth Workshop on Data Science with Human-in-the-Loop (Language Advances)
Period1/02/221/02/22

Fingerprint

Dive into the research topics of 'Execution-based Evaluation for Data Science Code Generation Models'. Together they form a unique fingerprint.

Cite this