mlsanityData to 14 Oct 2026

Curiosity by Design: An LLM-based Coding Assistant Asking Clarification Questions

arXiv 2507.21285 ↗First posted 28 Jul 2025cs.AIcited by 4

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

  1. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
  2. 2022Grounded Copilot: How Programmers Interact with Code-Generating Modelscited by 218
  3. 2024STaR-GATE: Teaching Language Models to Ask Clarifying Questionscited by 104
  4. 2023The Programmer's Assistant: Conversational Interaction with a Large Language Model for Software Developmentcited by 96
  5. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 93
  6. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 68
  7. 2023A Survey on Large Language Models for Software Engineeringcited by 59
  8. 2020ConvAI3: Generating Clarifying Questions for Open-Domain Dialogue Systems (ClariQ)cited by 58
  9. 2023Can Large Language Models Transform Natural Language Intent into Formal Method Postconditions?cited by 57
  10. 2023How Novices Use LLM-Based Code Generators to Solve CS1 Coding Tasks in a Self-Paced Learning Environmentcited by 56
  11. 2024LLM-Based Test-Driven Interactive Code Generation: User Study and Empirical Evaluationcited by 49
  12. 2024Using AI-Based Coding Assistants in Practice: State of Affairs, Perceptions, and Ways Forwardcited by 45
20 more
  1. 2024Need Help? Designing Proactive AI Assistants for Programmingcited by 43
  2. 2023Is Stack Overflow Obsolete? An Empirical Study of the Characteristics of ChatGPT Answers to Stack Overflow Questionscited by 42
  3. 2024Test-Driven Development for Code Generationcited by 34
  4. 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
  5. 2020ClarQ: A large-scale and diverse dataset for Clarification Question Generationcited by 31
  6. 2024How Beginning Programmers and Code LLMs (Mis)read Each Othercited by 31
  7. 2023A Survey on Asking Clarification Questions Datasets in Conversational Systemscited by 28
  8. 2024Beyond Code Generation: An Observational Study of ChatGPT Usage in Software Engineering Practicecited by 25
  9. 2023How Do Data Analysts Respond to AI Assistance? A Wizard-of-Oz Studycited by 24
  10. 2024ClarQ-LLM: A Benchmark for Models Clarifying and Requesting Information in Task-Oriented Dialogcited by 24
  11. 2024LLMs in Web Development: Evaluating LLM-Generated PHP Code Unveiling Vulnerabilities and Limitationscited by 22
  12. 2024A Pair Programming Framework for Code Generation via Multi-Plan Exploration and Feedback-Driven Refinementcited by 21
  13. 2024Can We Trust Large Language Models Generated Code? A Framework for In-Context Learning, Security Patterns, and Code Evaluations Across Diverse LLMscited by 19
  14. 2024Challenges in Trustworthy Human Evaluation of Chatbotscited by 14
  15. 2024Can ChatGPT Support Developers? An Empirical Evaluation of Large Language Models for Code Generationcited by 11
  16. 2023On the Effectiveness of Creating Conversational Agent Personalities Through Promptingcited by 10
  17. 2024Understanding the Human-LLM Dynamic: A Literature Survey of LLM Use in Programming Taskscited by 9
  18. 2024In-IDE Human-AI Experience in the Era of Large Language Models; A Literature Reviewcited by 6
  19. 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinementcited by 6
  20. 2024Chain of Targeted Verification Questions to Improve the Reliability of Code Generated by LLMscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 3.

4 papers.