Update README.md
Browse files
README.md
CHANGED
|
@@ -76,6 +76,38 @@ configs:
|
|
| 76 |
- split: test
|
| 77 |
path: generate_eval/test-*
|
| 78 |
---
|
| 79 |
-
#
|
| 80 |
|
| 81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
- split: test
|
| 77 |
path: generate_eval/test-*
|
| 78 |
---
|
| 79 |
+
# ECCO
|
| 80 |
|
| 81 |
+
Dataset from the paper "ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?"
|
| 82 |
+
|
| 83 |
+

|
| 84 |
+
|
| 85 |
+
The dataset consists of 2 subsets `edit` and `generate` each with 3 splits (`train`, `val` and `test`).
|
| 86 |
+
|
| 87 |
+
Code repository: [https://github.com/CodeEff/ECCO](https://github.com/CodeEff/ECCO)
|
| 88 |
+
|
| 89 |
+
### Loading the dataset / benchmark
|
| 90 |
+
```python
|
| 91 |
+
dataset = load_dataset('CodeEff/ECCO', 'edit') # For history-based editing setting
|
| 92 |
+
dataset = load_dataset('CodeEff/ECCO', 'generate') # For nl-instructed generation setting
|
| 93 |
+
```
|
| 94 |
+
These are used to generate code by each model across the 2 paradigms. We use the `test` split for the evaluation/results and the `train` and `val` splits for finetuning and few-shot prompting.
|
| 95 |
+
|
| 96 |
+
### Evaluation dataset
|
| 97 |
+
The dataset also consists of an additional 3rd subset `generate_eval` which consists of the spectrum of user solutions for each problem in the `test` split.
|
| 98 |
+
This is used for the percentile evaluation of the **NL-instructed generation** paradigm.
|
| 99 |
+
|
| 100 |
+
### Data Sources
|
| 101 |
+
Dataset is sourced from [IBM CodeNet](https://github.com/IBM/Project_CodeNet) which consists of primarily competetive programming solutions.
|
| 102 |
+
This is further filtered for efficiency and correctness as described in our paper.
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
### Citation
|
| 106 |
+
```
|
| 107 |
+
@article{waghjale2024ecco,
|
| 108 |
+
title={ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?},
|
| 109 |
+
author={Waghjale, Siddhant and Veerendranath, Vishruth and Wang, Zora Zhiruo and Fried, Daniel},
|
| 110 |
+
journal={arXiv preprint arXiv:2407.14044},
|
| 111 |
+
year={2024}
|
| 112 |
+
}
|
| 113 |
+
```
|