Execution-based Evaluation for Data Science Code Generation Models

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

43 citations recorded by the source corpus.

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.

Subfields: Computer Networks and Communications, Information Systems, Information Systems and Management, Code Generation & Program Synthesis

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Computer Networks and Communications

  1. Graham Neubig
  2. Michele Catasta
  3. Kensen Shi
  4. Oleksandr Polozov
  5. Shafiq R. Joty
  6. Charles Sutton
  7. Uri Alon

In Information Systems

  1. Uri Alon
  2. Graham Neubig
  3. Shuyan Zhou
  4. Kensen Shi
  5. Zhiruo Wang
  6. Henryk Michalewski
  7. Charles Sutton
  8. Michele Catasta

In Information Systems and Management

  1. Graham Neubig
  2. Michele Catasta
  3. Charles Sutton

In Code Generation & Program Synthesis

  1. Graham Neubig
  2. Uri Alon
  3. Shuyan Zhou
  4. Zhiruo Wang
  5. Charles Sutton
  6. Pengcheng Yin
  7. Kensen Shi
  8. Michele Catasta

Citations in the corpus