Research map / Large language models / Language, safety and interpretability
Talking to Itself While Coding: What Makes Comments Help Code Generation?
Dangfeng Pan, Zhensu Sun, Cenyuan Zhang, David Lo, Xiaoning Du
Monash University · Singapore Management University
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
4improved
4no clear effect
4hurt
1mixed
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 changed | Where | Measured | Effect |
|---|---|---|---|
| prefill comment block from a source solution that passes tests | weaker recipient models · LiveCodeBench | pass@1: +17.2% average over 12 pairs | Improved |
| prefill comment block from a failing source solution (ablation) | weaker recipient models · LiveCodeBench | pass@1 | No clear effect |
| prefill comment block written for a different problem (ablation) | weaker recipient models · LiveCodeBench | pass@1: -20.8% across 12 cells | Hurt |
| prefill length-matched random text (ablation) | weaker recipient models · LiveCodeBench | pass@1: -17.9% on average | Hurt |
| shuffle line order of correct comment block (ablation) | recipient models · LiveCodeBench | pass@1: +11.7% vs +17.2% | Improved |
| corrupt one step of a correct comment (ablation) | recipient models · LiveCodeBench source-pass subset | pass@1: e.g. Qwen3-8B 70.8 -> 48.2 | Hurt |
| prefill correct comments from Claude-Opus-4.7 | recipient models · RepoClassBench Java | pass@1: 41 problems gained vs 16 lost | Improved |
| prefill correct comments | recipient models · RepoClassBench C# | pass@1 | No clear effect |
| ask recipient to write dense comments (ablation) | Qwen3-8B · LiveCodeBench | pass@1: 37.0 -> 41.3 | Improved |
| ask recipient not to write comments (ablation) | Gemma-4-E4B-IT · LiveCodeBench | pass@1: 53.7 -> 39.2 | Hurt |
| add self-planning prompt or two-stage plan pipeline (ablation) | Gemini-3.1-Flash-Lite, GPT-OSS-120B · LiveCodeBench | pass@1: +1.6, +1.9, -0.6, +0.9 | No clear effect |
| vary comment volume, intent, and format via 10 prompts (ablation) | 14 models · LiveCodeBench | pass@1 | Mixed |
Closest papers by meaning
- ConvCodeWorld: Benchmarking Conversational Code Generation in Reproducible Feedback Environments (ICLR 2025 · similarity 0.87)
- What Makes Large Language Models Reason in (Multi-Turn) Code Generation? (ICLR 2025 · similarity 0.85)
- CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing (ICLR 2024 · similarity 0.84)
- Hot or Cold? Adaptive Temperature Sampling for Code Generation with Large Language Models (AAAI 2024 · similarity 0.84)
- To Code or Not To Code? Exploring Impact of Code in Pre-training (ICLR 2025 · similarity 0.84)
- Can LLM Replace Stack Overflow? A Study on Robustness and Reliability of Large Language Model Code Generation (AAAI 2024 · similarity 0.83)
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.
