Update README.md
Browse files
README.md
CHANGED
@@ -57,6 +57,23 @@ configs:
|
|
57 |
- split: test
|
58 |
path: data/test-*
|
59 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
```
|
61 |
|
62 |
"instance_id": Instance ID in REPOCOD
|
|
|
57 |
- split: test
|
58 |
path: data/test-*
|
59 |
---
|
60 |
+
# Can Language Models Replace Programmers? REPOCOD Says 'Not Yet'
|
61 |
+
|
62 |
+
Large language models (LLMs) have achieved high accuracy, i.e., more than 90 pass@1, in solving Python coding problems in HumanEval and MBPP. Thus, a natural question is, whether LLMs achieve comparable code completion performance compared to human developers? Unfortunately, one cannot answer this question using existing manual crafted or simple (e.g., single-line) code generation benchmarks, since such tasks fail to represent real-world software development tasks. In addition, existing benchmarks often use poor code correctness metrics, providing misleading conclusions.
|
63 |
+
|
64 |
+
To address these challenges, we create REPOCOD, a code generation benchmark with 980 problems collected from 11 popular real-world projects, with more than 58% of them requiring file-level or repository-level context information. In addition, REPOCOD has the longest average canonical solution length (331.6 tokens) and the highest average cyclomatic complexity (9.00) compared to existing benchmarks. Each task in REPOCOD includes 313.5 developer-written test cases on average for better correctness evaluation. In our evaluations on ten LLMs, none of the models achieves more than 30 pass@1 on REPOCOD, disclosing the necessity of building stronger LLMs that can help developers in real-world software development.
|
65 |
+
|
66 |
+
For easier evaluation, we sample 200 of the hardest problems in REPOCOD to create REPOCOD-Lite, using the product of the prompt length and canonical solution length (in terms of line count) as an indicator of difficulty. From the three categories of questions—self-contained, file-level, and repo-level—we select 66, 67, and 67 samples respectively in descending order of the scores.
|
67 |
+
|
68 |
+
REPOCOD_Lite_Unified is a variation of REPOCOD-Lite that has a similar format as [SWE-Bench](https://www.swebench.com/) for easier integration into the established inference pipelines.
|
69 |
+
|
70 |
+
* For more details on data collection and evaluation results, please refer to our arxiv [preprint](https://arxiv.org/abs/2410.21647).
|
71 |
+
|
72 |
+
* Examples code for downloading repositories, preparing repository snapshot, and running test cases for evaluation are propived at [code](https://github.com/lt-asset/REPOCOD)
|
73 |
+
|
74 |
+
* Check our [Leaderboard](https://lt-asset.github.io/REPOCOD/) for preliminary results using SOTA LLMs with RAG.
|
75 |
+
|
76 |
+
*
|
77 |
```
|
78 |
|
79 |
"instance_id": Instance ID in REPOCOD
|