Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questions
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are increasingly used as coding assistants. However, the ambiguity of the developer's prompt often leads to incorrect code generation, as current models struggle to infer user intent without extensive prompt engineering or external context. This work aims to build an LLM-based coding assistant that mimics the human code review process by asking clarification questions when faced with ambiguous or under-specified queries. Our end-to-end system includes (1) a query classifier trained to detect unclear programming-related queries and (2) a fine-tuned LLM that generates clarification questions. Our evaluation shows that the fine-tuned LLM outperforms standard zero-shot prompting in generating useful clarification questions. Furthermore, our user study indicates that users find the clarification questions generated by our model to outperform the baseline, demonstrating that our coding assistant produces more accurate and helpful code responses compared to baseline coding assistants.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 32 of its 48 references that are in the map. First posted on arXiv 28 Jul 2025.
Builds on
32 of 48 references.
References · 32
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
- 2024STaR-GATE: Teaching Language Models to Ask Clarifying Questionscited by 104
- 2023The Programmer's Assistant: Conversational Interaction with a Large Language Model for Software Developmentcited by 96
- 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
- 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
- 2023A Survey on Large Language Models for Software Engineeringcited by 59
- 2020ConvAI3: Generating Clarifying Questions for Open-Domain Dialogue Systems (ClariQ)cited by 58
- 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 57
- 2023How Novices Use LLM-Based Code Generators to Solve CS1 Coding Tasks in a Self-Paced Learning Environmentcited by 56
- 2024LLM-Based Test-Driven Interactive Code Generation: User Study and Empirical Evaluationcited by 49
- 2024Using AI-Based Coding Assistants in Practice: State of Affairs, Perceptions, and Ways Forwardcited by 45
20 more
- 2024Need Help? Designing Proactive AI Assistants for Programmingcited by 43
- 2023Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questionscited by 42
- 2024Test-Driven Development for Code Generationcited by 34
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2020ClarQ: A large-scale and diverse dataset for Clarification Question Generationcited by 31
- 2024How Beginning Programmers and Code LLMs (Mis)read Each Othercited by 31
- 2023A Survey on Asking Clarification Questions Datasets in Conversational Systemscited by 28
- 2024Beyond Code Generation: An Observational Study of ChatGPT Usage in Software Engineering Practicecited by 25
- 2023How Do Data Analysts Respond to AI Assistance? A Wizard-of-Oz Studycited by 24
- 2024ClarQ-LLM: A Benchmark for Models Clarifying and Requesting Information in Task-Oriented Dialogcited by 24
- 2024LLMs in Web Development: Evaluating LLM-Generated PHP Code Unveiling Vulnerabilities and Limitationscited by 22
- 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
- 2024Can We Trust Large Language Models Generated Code? A Framework for In-Context Learning, Security Patterns, and Code Evaluations Across Diverse LLMscited by 19
- 2024Challenges in Trustworthy Human Evaluation of Chatbotscited by 14
- 2024Can ChatGPT Support Developers? An Empirical Evaluation of Large Language Models for Code Generationcited by 11
- 2023On the Effectiveness of Creating Conversational Agent Personalities Through Promptingcited by 10
- 2024Understanding the Human-LLM Dynamic: A Literature Survey of LLM Use in Programming Taskscited by 9
- 2024In-IDE Human-AI Experience in the Era of Large Language Models; A Literature Reviewcited by 6
- 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinementcited by 6
- 2024Chain of Targeted Verification Questions to Improve the Reliability of Code Generated by LLMscited by 3
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2026Ask or Assume? Uncertainty-Aware Clarification-Seeking in Coding Agentscited by 19
- 2026Asking What Matters: Reward-Driven Clarification for Software Engineering Taskscited by 4
- 2025Closing the Expression Gap in LLM Instructions via Socratic Questioningcited by 0
- 2026Pareto-Dominant Clarification: Post-Training Coding LLMs via PPO-Lagrangian Budget Constraintscited by 0
- 2026Pareto-Dominant Clarification: Post-Training Coding LLMs via PPO-Lagrangian Budget Constraints2 Oct 2026
- 2026Asking What Matters: Reward-Driven Clarification for Software Engineering Tasks16 Apr 2026
- 2026Ask or Assume? Uncertainty-Aware Clarification-Seeking in Coding Agents27 Mar 2026
- 2025Closing the Expression Gap in LLM Instructions via Socratic Questioning31 Oct 2025