Metraipolis › archive › dc_0d7f86760dc9
ClarifyCodeBench: Evaluating LLMs on Clarifying Ambiguous Requirements for Code Generation — arXiv:2607.00711
- Source
- arXiv
- Original
- https://arxiv.org/abs/2607.00711
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-05T22:49:48.441Z
- SHA-256 of the archived text
de9761b1eb5a8b24cd19ba1a821942ba7d7cf528d7efa51e877c4ed8074025f8- Stable URL of this page
https://metraipolis.com/documento/dc_0d7f86760dc9
How to cite
ClarifyCodeBench: Evaluating LLMs on Clarifying Ambiguous Requirements for Code Generation — arXiv:2607.00711 — arXiv, https://arxiv.org/abs/2607.00711 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0d7f86760dc9 (Metraipolis archive dc_0d7f86760dc9, sha256 de9761b1eb5a8b24cd19ba1a821942ba7d7cf528d7efa51e877c4ed8074025f8)
BibTeX
@misc{dc0d7f86760dc9,
title = {ClarifyCodeBench: Evaluating LLMs on Clarifying Ambiguous Requirements for Code Generation — arXiv:2607.00711},
howpublished = {arXiv},
url = {https://arxiv.org/abs/2607.00711},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0d7f86760dc9; sha256 de9761b1eb5a8b24cd19ba1a821942ba7d7cf528d7efa51e877c4ed8074025f8},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2607.00711. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large Language Models have emerged as programming assistants. However, the efficacy of code generation is constrained by the quality of input requirements, which are frequently ambiguous, incomplete, or underspecified. While LLMs excel at one-shot code synthesis, their ability to proactively clarify intent remains underexplored, as a critical trait for robust software engineering. Existing benchmarks largely overlook this interactive bottleneck, assuming perfectly specified prompts that do not reflect the iterative nature of requirement elicitation. To bridge this gap, we introduce ClarifyCodeBench, a novel interactive benchmark for evaluating LLMs' capability in resolving requirement ambiguity. Constructed from real-world programming tasks, ClarifyCodeBench features high-quality manual annotations, including N unique ambiguity types, associated clarification questions, and corresponding ground-truth answers. Furthermore, we formalize two rigorous metrics to assess the interaction quality: Turn-discounted Key Question Rate, which penalizes inefficient questioning, and Optimal Round Adherence, which measures the precision of the elicitation process. We conduct a systematic evaluation of six state-of-the-art LLMs using ClarifyCodeBench. Our empirical results yield three critical insights: 1) Capability Decoupling: Strong code generation performance does not inherently translate to effective requirement clarification; 2) The Reasoning Paradox: While increased computational thinking enhances code correctness, it yields marginal gains in identifying ambiguities; 3) The Multi-ambiguity Ceiling: LLMs' clarification performance degrades sharply as the density of ambiguities increases, revealing a significant bottleneck in handling complex, real-world specifications. Our work underscores the necessity for future AI4SE research to transition from static synthesis to interactive elicitation. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2607.00711 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-05T22:45:55.721Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).