Jia Li, Ge Li, Kechi Zhang, Zhi Jin, Zhuo Li
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
Large language models (LLMs) have demonstrated an impressive ability to generate codes on competitive programming tasks. However, with limited sample numbers, LLMs still suffer from poor accuracy. Inspired by the process of human programming, we propose a generateand-edit approach named Self-Edit that utilizes execution results of the generated code from LLMs to improve the code quality on the competitive programming task. We execute the generated code on the example test case provided in the question and wrap execution results into a supplementary comment. Utilizing this comment as guidance, our fault-aware code editor is employed to correct errors in the generated code. We perform extensive evaluations across two competitive programming datasets with nine different LLMs. Compared to directly generating from LLMs, our approach can improve the average of pass@1 by 89% on APPS-dev, 31% on APPS-test, and 48% on HumanEval over nine popular code generation LLMs with parameter sizes ranging from 110M to 175B. Compared to other post-processing methods, our method demonstrates superior accuracy and efficiency.
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2305.04087")
get_code_for_paper("2305.04087")
have("2305.04087")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2305.04087.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2305.04087)
Connect an agent — have() is free.