Research map / Large language models / Agents, code and math
Self-Edit: Fault-Aware Code Editor for Code Generation
Kechi Zhang, Zhuo Li, Jia Li, Ge Li, Zhi Jin
Peking University
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
9improved
2no clear effect
1hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
On benchmark leaderboards
- HumanEval leaderboard pass@1 39.63 · rank 192 of 261 papers
- APPS leaderboard pass@1 8.94 · rank 12 of 14 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add fault-aware editor | nine code LLMs · APPS-dev | average pass@1: 6.17% -> 11.67% | Improved |
| add fault-aware editor | GPT-J-6B finetuned · APPS-test | pass@1: 0.70 -> 1.40 | Improved |
| add fault-aware editor | CodeGen-2B zero-shot · HumanEval | pass@10: 34.15 -> 34.15 | No clear effect |
| add fault-aware editor | text-davinci-002 · APPS-test | pass@1: 7.48 -> 7.94 | Improved |
| use editor instead of CodeRanker reranking | GPT-Neo-1.3B finetuned · APPS-test | pass@1: 0.3 -> 0.68 | Improved |
| use editor instead of CodeRanker reranking | GPT-Neo-1.3B finetuned · APPS-dev | pass@1: 8.0 -> 10.5 | Improved |
| add supplementary execution comments to editor input (ablation) | Self-Edit (PyCodeGPT-110M) · APPS-dev | pass@1: 9.4 -> 11.4 | Improved |
| add supplementary execution comments to editor input (ablation) | Self-Edit (PyCodeGPT-110M) · APPS-test | pass@1: 0.3 -> 0.6 | Improved |
| add a second editing round (ablation) | Self-Edit (PyCodeGPT-110M) · APPS-dev | pass@1: 11.4 -> 11.7 | Improved |
| add a second editing round (ablation) | Self-Edit (PyCodeGPT-110M) · APPS-test | pass@1: 0.6 -> 0.4 | Hurt |
| add in-context self-edit with text-davinci-002 as editor | text-davinci-002 · HumanEval | pass@1: 34.76 -> 39.63 | Improved |
| add editor on problems by difficulty | GPT-J-6B finetuned · APPS-test Competition | pass@1: 0.10 -> 0.10 | No clear effect |
Open problems in execution-based code verification
Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?
- Evaluated on Python or one other language only. · 17 papers state it
- Only a few models were tested, and larger ones were left out. · 16 papers state it
- Passing the tests does not show the code is correct. · 15 papers state it
Closest papers by meaning
- Training Language Models on Synthetic Edit Sequences Improves Code Synthesis (ICLR 2025 · similarity 0.89)
- LLM-Assisted Code Cleaning For Training Accurate Code Generators (ICLR 2024 · similarity 0.89)
- Teaching Large Language Models to Self-Debug (ICLR 2024 · similarity 0.89)
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits (ICML 2025 · similarity 0.88)
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents (NeurIPS 2024 · similarity 0.88)
- Training Language Models to Generate Quality Code with Program Analysis Feedback (NeurIPS 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.