AI Paper Atlas

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

EMNLP 2026Large language models › Language, safety and interpretabilityapproach: Controlled text generation1 citations (OpenAlex)

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 changedWhereMeasuredEffect
prefill comment block from a source solution that passes testsweaker recipient models · LiveCodeBenchpass@1: +17.2% average over 12 pairsImproved
prefill comment block from a failing source solution (ablation)weaker recipient models · LiveCodeBenchpass@1No clear effect
prefill comment block written for a different problem (ablation)weaker recipient models · LiveCodeBenchpass@1: -20.8% across 12 cellsHurt
prefill length-matched random text (ablation)weaker recipient models · LiveCodeBenchpass@1: -17.9% on averageHurt
shuffle line order of correct comment block (ablation)recipient models · LiveCodeBenchpass@1: +11.7% vs +17.2%Improved
corrupt one step of a correct comment (ablation)recipient models · LiveCodeBench source-pass subsetpass@1: e.g. Qwen3-8B 70.8 -> 48.2Hurt
prefill correct comments from Claude-Opus-4.7recipient models · RepoClassBench Javapass@1: 41 problems gained vs 16 lostImproved
prefill correct commentsrecipient models · RepoClassBench C#pass@1No clear effect
ask recipient to write dense comments (ablation)Qwen3-8B · LiveCodeBenchpass@1: 37.0 -> 41.3Improved
ask recipient not to write comments (ablation)Gemma-4-E4B-IT · LiveCodeBenchpass@1: 53.7 -> 39.2Hurt
add self-planning prompt or two-stage plan pipeline (ablation)Gemini-3.1-Flash-Lite, GPT-OSS-120B · LiveCodeBenchpass@1: +1.6, +1.9, -0.6, +0.9No clear effect
vary comment volume, intent, and format via 10 prompts (ablation)14 models · LiveCodeBenchpass@1Mixed

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