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
Beijing Jiaotong University · Tencent
Read the paperPlace an idea next to itCheck your own paper ↗
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 54.59 · rank 163 of 261 papers
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
- 1,683 improved
- 270 no clear effect
- 109 mixed
- 613 hurt
- AudioChat: Unified Audio Storytelling, Editing, and Understanding with Transfusion Forcing ICML 2026 · add structured chain-of-thought reasoning to the diffusion LLM · StoryGen-Eval editing · delta multiFLAM: 27.8 -> 11.7Improved
- Vision Language Models Cannot Reason About Physical Transformation ICML 2026 · add CoT prompt instead of Direct prompt · Number & Length · accuracy: F(3, 333) = 18.28Hurt
- VideoSEG-O3: A Multi-turn Reinforcement Learning Framework for Reasoning Video Object Segmentation ICML 2026 · Add CoT cold-start stage on top of SFT · Long-RVOS · J&F: 47.12 -> 51.82Improved
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 changed | Where | Measured | Effect |
|---|---|---|---|
| add LCP prompt and comment contrastive loss (MANGO) | StarCoder-7B SFT · HumanEval | pass@10: 63.01 -> 70.53 | Improved |
| add LCP prompt and comment contrastive loss (MANGO) | WizardCoder-7B SFT · MBPP | pass@10: 62.33 -> 67.87 | Improved |
| add LCP prompt and contrastive loss (MANGO) | WizardCoder-7B SFT · HumanEval | pass@10: 74.59 -> 78.66 | Improved |
| add zero-shot CoT prompt (ablation) | SFT code LLMs · HumanEval/MBPP | pass@1: WizardCoder-3B HumanEval 33.37 -> 17.28 | Hurt |
| add LCP prompt only (ablation) | StarCoder-7B SFT · HumanEval | pass@10: 63.01 -> 70.12 | Improved |
| add contrastive loss on top of LCP (ablation) | WizardCoder-3B · HumanEval | pass@10: 63.82 -> 61.99 | Hurt |
| add LCP prompt only (ablation) | WizardCoder-7B SFT · HumanEval | pass@10: 74.59 -> 75.81 | Improved |
| add contrastive loss only (ablation) | WizardCoder-7B SFT · HumanEval | pass@10: 74.59 -> 76.02 | Improved |
| reduce margin to 0.03 (ablation) | MANGO WizardCoder-7B · HumanEval | pass@10: 78.66 (m=0.10) -> 75.20 | Hurt |
| use LCP instead of CoT-pre prompts (ablation) | WizardCoder-7B · HumanEval | pass@1 mean over 15 prompts: 33.24 -> 48.65 | Improved |
| apply contrastive loss before CoT prompts that do not use comments (ablation) | WizardCoder-3B · HumanEval (CoT3) | pass@10: 51.83 -> 45.33 | Hurt |
| apply contrastive loss before comment-style CoT prompt (CoT1) (ablation) | WizardCoder-7B · HumanEval | pass@1: 47.64 -> 50.43 | Improved |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- Talking to Itself While Coding: What Makes Comments Help Code Generation? (EMNLP 2026 · similarity 0.89)
- DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories (ACL 2024 · similarity 0.88)
- Code Needs Comments: Enhancing Code LLMs with Comment Augmentation (ACL 2024 · similarity 0.88)
- ConvCodeWorld: Benchmarking Conversational Code Generation in Reproducible Feedback Environments (ICLR 2025 · similarity 0.88)
- Revisiting Chain-of-Thought in Code Generation: Do Language Models Need to Learn Reasoning before Coding? (ICML 2025 · similarity 0.88)
- Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Models (AAAI 2024 · similarity 0.87)
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.