כתבה
arXiv cs.AI ·
מדוע הערות בקוד תורמות להפקת קוד?
Talking to Itself While Coding: What Makes Comments Help Code Generation?
הערות בקוד תורמות להפקת קוד על ידי ספקת תוכן של פתרון נכון שאין לגרום לו בפקודה.
תקציר מקורי באנגליתarXiv:2609.09242v1 Announce Type: cross Abstract: Large Language Models (LLMs) often generate natural-language comments while writing code, and these comments become part of the context used to generate the code that follows. However, it remains unclear which properties of comments affect code-generation performance. We study this question through observational analyses and controlled interventions. On LiveCodeBench, neither comment frequency nor broad comment intent reliably predicts pass@1. We then prefill weaker recipient models with comment blocks written by stronger source models, allowing us to separate comment surface form from the solution content they convey. Comments from source solutions that pass the tests raise recipient pass@1 by 17.2% on average. In contrast, comments descri
קרא במקור המקורי
arxiv.org
פתח כתבה מקורית