q-rz/enamel

Dataset

See also:

0

34 commits

4 linked in READMEs

updated Feb 18, 2025

See the code

README

See also: Our paper at ICLR 2025 Our paper on arXiv Our code repo on GitHub Our Python library on PyPI

What is ENAMEL?

ENAMEL is a rigorous and high-standard benchmark for evaluating the capability of large language models (LLMs) in generating efficient code. We provide:

  • A new metric eff@k characterizing the relationship between code efficiency and sample size k;
  • A problem set consisting of 142 high-quality problems selected from OpenAI HumanEval;
  • Expert-written efficient reference solutions, setting a high-standard for efficiency evaluation;
  • Expert-written strong test case generators, enabling a rigorous evaluation of both correctness and efficiency;
  • A Python library enam for easily evaluating the efficiency of LLM-generated code.

If you are interested in our work, please feel free to check our paper for detail.

Illustration of ENAMEL

Getting Started

For instructions on using this dataset, please check our GitHub repo.

LLM Leaderboard

The following table is a leaderboard of 30 LLMs (under greedy decoding) as well as HumanEval/HumanEval+ canonical solutions. Results show that LLMs fall short of generating expert-level efficient code. For more results, please refer to our paper.

We welcome LLM developers to submit their results to enrich this leaderboard. If you would like to submit your results, please organize your generated code samples into a .json file as described above and contact Ruizhong Qiu (rq5 AT illinois DOT edu).

No.Nameeff@1pass@1
1HumanEval+0.5170.958
2GPT-4 Turbo (Nov 2023)0.4700.796
3HumanEval0.4580.908
4GPT-4 (Jun 2023)0.4540.831
5Llama 3 70B Instruct0.4210.746
6Mixtral 8x22B Instruct0.4080.746
7Claude 3 Opus0.4010.789
8Phind Code Llama V20.3940.683
9Claude 3 Haiku0.3860.739
10ChatGPT0.3640.683
11Claude 3 Sonnet0.3450.662
12Llama 3 8B Instruct0.3440.592
13Code Llama 34B Python0.2680.458
14Mixtral 8x7B Instruct0.2660.444
15Code Llama 70B Python0.2640.500
16Code Llama 7B Python0.2470.373
17Code Llama 13B Python0.2160.408
18StarCoder0.1950.352
19CodeGen 6B0.1930.296
20CodeGen 16B0.1690.310
21CodeT5+ 16B0.1600.317
22CodeGen 2B0.1530.254
23Mistral 7B0.1520.275
24Vicuna 13B0.1230.176
25SantaCoder0.1000.141
26Incoder 6B0.0910.127
27GPT-J0.0830.106
28Incoder 1B0.0660.092
29Vicuna 7B0.0610.099
30GPT-Neo 2B0.0430.056
31PolyCoder0.0370.049
32StableLM 7B0.0200.021

Acknowledgements

code
code-generation

Contributors

RQ
Ruizhong Qiu

19 commits

q-rz

15 commits

q-rz/enamel

Dataset

See also:

0

34 commits

4 linked in READMEs

updated Feb 18, 2025

See the code

README

See also: Our paper at ICLR 2025 Our paper on arXiv Our code repo on GitHub Our Python library on PyPI

What is ENAMEL?

ENAMEL is a rigorous and high-standard benchmark for evaluating the capability of large language models (LLMs) in generating efficient code. We provide:

  • A new metric eff@k characterizing the relationship between code efficiency and sample size k;
  • A problem set consisting of 142 high-quality problems selected from OpenAI HumanEval;
  • Expert-written efficient reference solutions, setting a high-standard for efficiency evaluation;
  • Expert-written strong test case generators, enabling a rigorous evaluation of both correctness and efficiency;
  • A Python library enam for easily evaluating the efficiency of LLM-generated code.

If you are interested in our work, please feel free to check our paper for detail.

Illustration of ENAMEL

Getting Started

For instructions on using this dataset, please check our GitHub repo.

LLM Leaderboard

The following table is a leaderboard of 30 LLMs (under greedy decoding) as well as HumanEval/HumanEval+ canonical solutions. Results show that LLMs fall short of generating expert-level efficient code. For more results, please refer to our paper.

We welcome LLM developers to submit their results to enrich this leaderboard. If you would like to submit your results, please organize your generated code samples into a .json file as described above and contact Ruizhong Qiu (rq5 AT illinois DOT edu).

No.Nameeff@1pass@1
1HumanEval+0.5170.958
2GPT-4 Turbo (Nov 2023)0.4700.796
3HumanEval0.4580.908
4GPT-4 (Jun 2023)0.4540.831
5Llama 3 70B Instruct0.4210.746
6Mixtral 8x22B Instruct0.4080.746
7Claude 3 Opus0.4010.789
8Phind Code Llama V20.3940.683
9Claude 3 Haiku0.3860.739
10ChatGPT0.3640.683
11Claude 3 Sonnet0.3450.662
12Llama 3 8B Instruct0.3440.592
13Code Llama 34B Python0.2680.458
14Mixtral 8x7B Instruct0.2660.444
15Code Llama 70B Python0.2640.500
16Code Llama 7B Python0.2470.373
17Code Llama 13B Python0.2160.408
18StarCoder0.1950.352
19CodeGen 6B0.1930.296
20CodeGen 16B0.1690.310
21CodeT5+ 16B0.1600.317
22CodeGen 2B0.1530.254
23Mistral 7B0.1520.275
24Vicuna 13B0.1230.176
25SantaCoder0.1000.141
26Incoder 6B0.0910.127
27GPT-J0.0830.106
28Incoder 1B0.0660.092
29Vicuna 7B0.0610.099
30GPT-Neo 2B0.0430.056
31PolyCoder0.0370.049
32StableLM 7B0.0200.021

Acknowledgements

code
code-generation

Contributors

RQ
Ruizhong Qiu

19 commits

q-rz

15 commits