Execution-Based Evaluation for Open-Domain Code Generation

Zhiruo Wang, Shuyan Zhou, Daniel Fried, Graham Neubig
12/20/2022
cs.SEcs.AIcs.CL

Official code: zorazrw/odex (49 stars, Python, CC-BY-SA-4.0, last commit 2023-12-22).

Abstract

To extend the scope of coding queries to more realistic settings, we propose ODEX, the first Open-Domain EXecution-based natural language (NL) to Python code generation dataset. ODEX has 945 NL-Code pairs spanning 79 diverse libraries, along with 1,707 human-written test cases for execution.

Show full abstract

Our NL-Code pairs are harvested from StackOverflow forums to encourage natural and practical coding queries. Moreover, ODEX supports four natural languages as intents, in English, Spanish, Japanese, and Russian. ODEX unveils intriguing behavioral differences among top-performing code language models (LM). While CODEX achieves better overall results, CODEGEN improves effectively via scaling -- CODEGEN 6.1B performs comparably with CODEX 12B. Both models show substantial gaps between open and closed domains, but CODEGEN gaps tend to decrease with model size while CODEX gaps increase. We release ODEX to facilitate research into open-domain problems for the code generation community.

View on arXivView PDF

Code Implementations(1)

zorazrw/odexOfficial100%
CC-BY-SA-4.0

[EMNLP'23] Execution-Based Evaluation for Open Domain Code Generation

496Python, Jupyter NotebookDec 20, 20222 years agoCC-BY-SA-4.0
code-generationevaluationexecutionopen-domain

Similar Papers

Cite this paper

@article{wang2022executionbased,
  title  = {Execution-Based Evaluation for Open-Domain Code Generation},
  author = {Zhiruo Wang and Shuyan Zhou and Daniel Fried and Graham Neubig},
  year   = {2022},
  eprint = {2212.10481},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10481}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.10481.svg)](https://codeofpaper.com/paper/2212.10481)

Discussion