AI Paper Atlas

Research map / Large language models / Agents, code and math

Rethinking Code Refinement: Learning to Judge Code Efficiency

Minju Seo, Jinheon Baek, Sung Ju Hwang

EMNLP 2024Large language models › Agents, code and mathapproach: Execution-based code verification4 citations (OpenAlex)

Korea Advanced Institute of Science and Technology · DeepAuto

Read the paperPlace an idea next to itCheck your own paper ↗

11measured effects
5improved
3no clear effect
1hurt
2mixed

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.

This paper tried a common change: Chain-of-thought prompting

add Chain-of-Thought prompting · Efficiency judgment, All (Python & C++) · accuracy: 46.55 -> 51.39 No clear effect

What 1,817 accepted papers report for this change

See this change in detailMatched by the wording of each paper's own result, read by AI from the full text. Papers report gains more often than failures, so this shows what gets published, not the chance a change works.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train a code LM to judge efficiency (vs zero-shot prompting)DeepSeek-Coder-Instruct-1.3B · Efficiency judgment, All (Python)accuracy: 50.87 -> 72.49Improved
trained 1.3B judge vs GPT-4ojudge model · Efficiency judgment, All (Python & C++)accuracy: 57.75 -> 64.42Improved
add Chain-of-Thought promptingLLM prompting · Efficiency judgment, All (Python & C++)accuracy: 46.55 -> 51.39No clear effect
restrict to easy pairs (efficiency difference over 10%)Ours · Efficiency judgment (Python)accuracy: 72.49 -> 77.65Improved
train on Python and C++ instead of Python only (ablation)Ours · Efficiency judgment, All (Python & C++)accuracy: 61.52 -> 64.42Improved
train on Python only, test on C++ (ablation)Ours · Efficiency judgment (C++)accuracy: 58.26 vs 62.08Mixed
evaluate on Ruby, Perl, Rust after training on Python and C++Ours · Efficiency judgment, All (Ruby, Perl, Rust)accuracy: 51.08 -> 58.32Improved
use larger 7B base modelOurs · Efficiency judgment, All (Python & C++)accuracy: 64.42 -> 65.27No clear effect
flip order of code pair in input (ablation)Ours · Efficiency judgment, All (Python)accuracy: 72.49 -> 71.67No clear effect
judge efficiency of human-human vs machine-machine refinementsOurs · Breakdown by scenario (Python)accuracy: 80.43 (H-H) vs 60.77 (M-M)Mixed
use three classes instead of two with regression model (ablation)Ours (regression) · Efficiency judgment (Python)accuracy: 76.38 -> 65.40Hurt

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