Research map / Large language models / Agents, code and math
ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?
Siddhant Waghjale, Vishruth Veerendranath, Zora Zhiruo Wang, Daniel Fried
Carnegie Mellon University
Read the paperPlace an idea next to itCheck your own paper ↗
14measured effects
8improved
6hurt
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.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use execution feedback (exec-refine) instead of NL feedback | iterative refinement, all models · history-based editing | pass@1: 3.4-38.8 points more than the other two methods | Improved |
| add NL feedback (self-refine, nl+exec refine) | iterative refinement · history-based editing | speedup: e.g. DeepseekCoder 2.11 -> 3.54 (nl+exec) | Improved |
| apply iterative refinement (self-refine) | GPT-4o · history-based editing | pass@1: 66.6 -> 47.8 | Hurt |
| apply few-shot in-context examples | CodeLLaMa · history-based editing | pass@1: 57.5 -> 22.5 | Hurt |
| add trajectory-conditioned fine-tuning | DeepseekCoder · history-based editing | pass@1: 35.2 (few-shot) -> 69.8 | Improved |
| add execution conditioning to vanilla fine-tuning (ablation) | DeepseekCoder · history-based editing | pass@1: 42.1 -> 43.0 | Improved |
| fine-tune with LoRA | DeepseekCoder · NL-instructed generation | pass@1: 18.8 -> 16.7 | Hurt |
| fine-tune with LoRA | CodeLLaMa-7B · NL-instructed generation | runtime%: 36.74 -> 46.81 | Improved |
| use base instead of instruct version for in-context learning | CodeLlama · history-based editing | pass@1: 22.5 -> 46.4 | Improved |
| use base instead of instruct version | StarCoder2 · history-based editing | pass@1: 49.8 -> 41.5 | Hurt |
| increase number of refinement iterations (1-4) | iterative refinement · history-based editing | pass@1 | Hurt |
| use exec-refine instead of self-refine | CodeLlama · ECCO-Fix | pass@1: 7.6 -> 36.9 | Improved |
Open problems this paper states
- “Benchmark includes only Python problems.” → Evaluated on Python or one other language only. (an open problem in execution-based code verification)
- “Benchmark focuses on competitive programming problems, not real-world software engineering scenarios.” → Benchmarks are small or simple and far from real software. (an open problem in execution-based code verification)
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
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.90)
- EffiBench-X: A Multi-Language Benchmark for Measuring Efficiency of LLM-Generated Code (NeurIPS 2025 · similarity 0.90)
- Mercury: A Code Efficiency Benchmark for Code Large Language Models (NeurIPS 2024 · similarity 0.89)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.89)
- Unsupervised Evaluation of Code LLMs with Round-Trip Correctness (ICML 2024 · similarity 0.88)
- BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (ICLR 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.