Lune

EMNLP Findings2023

Execution-Based Evaluation for Open-Domain Code Generation

Zhiruo Wang, Shuyan Zhou, Daniel Fried, Graham Neubig

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 humanwritten test cases for execution. 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 topperforming code language models (LM). While CODEX achieves better overall results, CODE-GEN improves effectively via scaling -CODE-GEN 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. 1 Dataset Samples Domain Executable? Avg. Test Cases Data Source NL JuICe (Agashe et al., 2019) 1,981 open ✗ -GitHub Notebooks en HumanEval (Chen et al., 2021) 164 4 ✓ 7.7 Hand-written en MBPP (Austin et al., 2021) 974 8 ✓ 3.0 Hand-written en APPS (Hendrycks et al., 2021) 10,000 0 ✓ 13.2 Competitions en DSP (Chandel et al., 2022) 1,119 16 ✓ 2.1 Github Notebooks en MTPB (Nijkamp et al., 2023) 115 8 ✓ 5.0 Hand-written en Exe-DS (Huang et al., 2022) 534 28 ✓ -GitHub Notebooks en DS-1000 (Lai et al., 2022) 1,000 7 ✓ 1.6 StackOverflow en CoNaLa (Yin et al., 2018) 2,879 open ✗ -StackOverflow en MCoNaLa (Wang et al., 2023) 896 open ✗ -StackOverflow es, ja, ru ODEX 945 79 ✓ 1.8 StackOverflow en, es, ja, ru Hand-Written Rajas Agashe, Srinivasan Iyer, and Luke Zettlemoyer. 2019. Juice: A large scale distantly supervised dataset for open domain context-based code generation. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), pages 5436-5446.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

33 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • OctoPack: Instruction Tuning Code Large Language Models cites CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
  • OctoPack: Instruction Tuning Code Large Language Models cites CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Models
  • OctoPack: Instruction Tuning Code Large Language Models cites DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
  • CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis cites The Curious Case of Neural Text Degeneration
  • CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Models cites Language Models Can Teach Themselves to Program Better
  • CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Models cites DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
  • CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Models cites The Curious Case of Neural Text Degeneration
  • SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites OctoPack: Instruction Tuning Code Large Language Models
  • SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained Models
  • SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering cites DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
  • CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution cites CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesis
  • CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution cites Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributions
  • CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution cites Language Models Can Teach Themselves to Program Better
  • CRUXEval: A Benchmark for Code Reasoning, Understanding and Execution cites DS-1000: A Natural and Reliable Benchmark for Data Science Code Generation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers33

  1. SWE-agent: Agent-Computer Interfaces Enable Automated Software EngineeringJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret et al.NeurIPS 2024 · 2,059 citations
  2. WebArena: A Realistic Web Environment for Building Autonomous AgentsShuyan Zhou, Frank F. Xu, Hao Zhu, Xuhui Zhou et al.ICLR 2024 · 1,197 citations
  3. CRUXEval: A Benchmark for Code Reasoning, Understanding and ExecutionAlex Gu, Baptiste Rozière, Hugh James Leather, Armando Solar-Lezama et al.ICML 2024 · 270 citations
  4. OctoPack: Instruction Tuning Code Large Language ModelsNiklas Muennighoff, Qian Liu, Armel Randy Zebaze, Qinkai Zheng et al.ICLR 2024 · 203 citations
  5. CoderEval: A Benchmark of Pragmatic Code Generation with Generative Pre-trained ModelsHao Yu, Bo Shen, Dezhi Ran, Jiaxin Zhang et al.ICSE 2024 · 107 citations

Builds on5

  1. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes et al.ICLR 2020 · 4,112 citations
  2. Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code ContributionsHammond Pearce, Baleegh Ahmad, Benjamin Tan, Brendan Dolan-Gavitt et al.S&P 2022 · 725 citations
  3. DS-1000: A Natural and Reliable Benchmark for Data Science Code GenerationYuhang Lai, Chengxi Li, Yiming Wang, Tianyi Zhang et al.ICML 2023 · 504 citations
  4. CodeGen: An Open Large Language Model for Code with Multi-Turn Program SynthesisErik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu et al.ICLR 2023 · 234 citations
  5. Language Models Can Teach Themselves to Program BetterPatrick Haluptzok, Matthew Bowers, Adam Tauman KalaiICLR 2023 · 17 citations

Related papers

  1. NaturalCodeBench: Examining Coding Performance Mismatch on HumanEval and Natural User QueriesShudan Zhang, Hanlin Zhao, Xiao Liu, Qinkai Zheng et al.ACL Findings 2024 · 11 citations
  2. API Pack: A Massive Multi-Programming Language Dataset for API Call GenerationZhen Guo, Adriana Meza Soria, Wei Sun, Yikang Shen et al.ICLR 2025
  3. Learning Performance-Improving Code EditsAlexander Shypula, Aman Madaan, Yimeng Zeng, Uri Alon et al.ICLR 2024 · 141 citations
  4. AutoCodeBench: Large Language Models are Automatic Code Benchmark GeneratorsChangzhi Zhou, Ao Liu, Yuchi Deng, Zhiying Zeng et al.ICLR 2026 · 27 citations
  5. DocPrompting: Generating Code by Retrieving the DocsShuyan Zhou, Uri Alon, Frank F. Xu, Zhengbao Jiang et al.ICLR 2023 · 18 citations
Dusk over the sea between two cliffs drawn in fine vertical lines