scimeatlas

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

Comments as Natural Logic Pivots: Improve Code Generation via Comment Perspective

Yijie Chen, Yijin Liu, Fandong Meng, Yufeng Chen, Jinan Xu, Jie Zhou

ACL 2024Large language models › Agents, code and mathapproach: Code generation benchmarksopen problems in this approach14 citations (OpenAlex)

Beijing Jiaotong University · Tencent

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

13measured effects
9improved
4hurt

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

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

add zero-shot CoT prompt · HumanEval/MBPP · pass@1: WizardCoder-3B HumanEval 33.37 -> 17.28 Hurt

What 2,675 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
add LCP prompt and comment contrastive loss (MANGO)StarCoder-7B SFT · HumanEvalpass@10: 63.01 -> 70.53Improved
add LCP prompt and comment contrastive loss (MANGO)WizardCoder-7B SFT · MBPPpass@10: 62.33 -> 67.87Improved
add LCP prompt and contrastive loss (MANGO)WizardCoder-7B SFT · HumanEvalpass@10: 74.59 -> 78.66Improved
add zero-shot CoT prompt (ablation)SFT code LLMs · HumanEval/MBPPpass@1: WizardCoder-3B HumanEval 33.37 -> 17.28Hurt
add LCP prompt only (ablation)StarCoder-7B SFT · HumanEvalpass@10: 63.01 -> 70.12Improved
add contrastive loss on top of LCP (ablation)WizardCoder-3B · HumanEvalpass@10: 63.82 -> 61.99Hurt
add LCP prompt only (ablation)WizardCoder-7B SFT · HumanEvalpass@10: 74.59 -> 75.81Improved
add contrastive loss only (ablation)WizardCoder-7B SFT · HumanEvalpass@10: 74.59 -> 76.02Improved
reduce margin to 0.03 (ablation)MANGO WizardCoder-7B · HumanEvalpass@10: 78.66 (m=0.10) -> 75.20Hurt
use LCP instead of CoT-pre prompts (ablation)WizardCoder-7B · HumanEvalpass@1 mean over 15 prompts: 33.24 -> 48.65Improved
apply contrastive loss before CoT prompts that do not use comments (ablation)WizardCoder-3B · HumanEval (CoT3)pass@10: 51.83 -> 45.33Hurt
apply contrastive loss before comment-style CoT prompt (CoT1) (ablation)WizardCoder-7B · HumanEvalpass@1: 47.64 -> 50.43Improved

Open problems in code generation benchmarks

Do code benchmarks and methods hold beyond Python, small test sets and leaked data?

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