scimeatlas

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

EMNLP 2024Large language models › Agents, code and mathapproach: Execution-based code verificationopen problems in this approach67 citations (OpenAlex)

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 changedWhereMeasuredEffect
use execution feedback (exec-refine) instead of NL feedbackiterative refinement, all models · history-based editingpass@1: 3.4-38.8 points more than the other two methodsImproved
add NL feedback (self-refine, nl+exec refine)iterative refinement · history-based editingspeedup: e.g. DeepseekCoder 2.11 -> 3.54 (nl+exec)Improved
apply iterative refinement (self-refine)GPT-4o · history-based editingpass@1: 66.6 -> 47.8Hurt
apply few-shot in-context examplesCodeLLaMa · history-based editingpass@1: 57.5 -> 22.5Hurt
add trajectory-conditioned fine-tuningDeepseekCoder · history-based editingpass@1: 35.2 (few-shot) -> 69.8Improved
add execution conditioning to vanilla fine-tuning (ablation)DeepseekCoder · history-based editingpass@1: 42.1 -> 43.0Improved
fine-tune with LoRADeepseekCoder · NL-instructed generationpass@1: 18.8 -> 16.7Hurt
fine-tune with LoRACodeLLaMa-7B · NL-instructed generationruntime%: 36.74 -> 46.81Improved
use base instead of instruct version for in-context learningCodeLlama · history-based editingpass@1: 22.5 -> 46.4Improved
use base instead of instruct versionStarCoder2 · history-based editingpass@1: 49.8 -> 41.5Hurt
increase number of refinement iterations (1-4)iterative refinement · history-based editingpass@1Hurt
use exec-refine instead of self-refineCodeLlama · ECCO-Fixpass@1: 7.6 -> 36.9Improved

Open problems this paper states

Open problems in execution-based code verification

Can execution-based code verification be trusted beyond Python, small benchmarks and the tests it relies on?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy