Research map / Large language models / Language, safety and interpretability
Code Needs Comments: Enhancing Code LLMs with Comment Augmentation
Demin Song, Honglin Guo, Yunhua Zhou, Shuhao Xing, Yudong Wang, Zifan Song, Wenwei Zhang, Qipeng Guo, Hang Yan, Xipeng Qiu, Dahua Lin
Shanghai AI Laboratory · Fudan University · The Chinese University of Hong Kong
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 49.39 · rank 173 of 261 papers
- MBPP leaderboard pass@1 47.8 · rank 114 of 165 papers
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add generated comments (CP/Remove vs SP/Absent data, density 38.23% vs 0) (ablation) | Llama2-7b further training · HumanEval | pass@1: 16.46 -> 23.17 | Improved |
| add generated comments (CP/Restore vs SP/Absent) (ablation) | Llama2-7b further training · MBPP | pass@1: 19.00 -> 29.20 | Improved |
| remove filtered samples instead of restoring original code (SP vs SP/Remove) (ablation) | CodeLlama-7b further training · HumanEval | pass@1: 32.32 -> 33.54 | Improved |
| add comments with filtering removal (CP/Remove vs CP/Restore) (ablation) | CodeLlama-7b further training · HumanEval | pass@1: 32.32 -> 39.02 | Improved |
| add comments (CP/Remove vs SP) | CodeLlama-7b further training · MBPP | pass@1: 45.00 -> 43.00 | No clear effect |
| add comments (CP/Remove vs SP) | InternLM2-7b-base further training · HumanEval | pass@1: 35.98 -> 40.20 | Improved |
| add comments (CP/Remove vs SP) | InternLM2-7b further training · HumanEval | pass@1: 42.70 -> 49.39 | Improved |
| add comments (CP/Remove vs SP) | InternLM2-7b further training · MBPP | pass@1: 42.60 -> 47.80 | Improved |
| add comment-augmented further training before instruction tuning (CP/Remove vs none) | CodeLlama-7b instruction tuning · MBPP | pass@1: 53.20 -> 58.60 | Improved |
| CP/Remove vs SP before instruction tuning | CodeLlama-7b instruction tuning · HumanEval | pass@1: 66.46 -> 65.85 | Hurt |
| further training on original SP data | CodeLlama-7b · HumanEval | pass@5: 45.75 -> 43.70 | Hurt |
Open problems in multilingual LLM data and culture
Which languages, model sizes and evaluation methods are still missing from multilingual LLM and translation studies?
- Only a few languages are covered and low-resource ones are mostly missing. · 42 papers state it
- Only small models are tested, and larger ones are left untested. · 21 papers state it
- Data is machine-translated or LLM-generated and may carry artifacts. · 15 papers state it
Closest papers by meaning
- InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instruct (AAAI 2025 · similarity 0.89)
- To Code or Not To Code? Exploring Impact of Code in Pre-training (ICLR 2025 · similarity 0.88)
- AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Data (NeurIPS 2024 · similarity 0.88)
- StackEval: Benchmarking LLMs in Coding Assistance (NeurIPS 2024 · similarity 0.88)
- Fixing It in Post: A Comparative Study of LLM Post-Training Data Quality and Model Performance (NeurIPS 2025 · similarity 0.88)
- LLM Augmented LLMs: Expanding Capabilities through Composition (ICLR 2024 · 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.