Clarifysdk benchmark helps coding assistants ask questions to fix unclear tasks
ClarifySDK: A Benchmark and Development Kit for Coding Assistants that Ask Questions
Software Engineering
Summary
Sometimes computer programs are hard to write because the instructions are unclear or missing important details. The authors created ClarifySDK, a tool and test set that checks how well coding assistants can spot unclear parts and ask the right questions before coding. Instead of focusing on how hard the program itself is, this tool measures how well assistants get the information they need to write correct code. This helps make coding assistants smarter and more helpful when instructions are incomplete or confusing.
What this means in practice
- •For software development teams: Evaluate and improve coding assistants to ask targeted questions that clarify ambiguous or incomplete requirements before implementation.
- •For automated code generation providers: Develop smarter code generation tools that interactively request missing requirements to produce more accurate code outputs.$Commercial implications: Enables creating paid coding assistants with improved clarification capabilities that reduce errors caused by unclear user input.
Authors
Cedric Richter, Joshana Shakya, Amal Akli, Jie JW Wu, Mike Papadakis
Abstract
We present ClarifySDK, a benchmark and development kit for developing and evaluating coding assistants that detect and clarify defective task description by asking questions. ClarifySDK extends popular coding benchmarks such as HumanEval and MBPP with task description variants that omit critical requirements, introduce ambiguities, or contain inconsistent specifications. In addition, we introduce a newly constructed private test set comprising 206 coding tasks and 1,414 task description variants, covering ambiguous, incomplete, contradictory, and combined specifications alongside their related well-specified versions. To resolve these uncertainties, assistants can interact with simulated users by asking clarification questions before producing their implementations. Rather than emphasizing the difficulty of the underlying programming tasks, the benchmark challenges assistants to recognize problematic re- quirements and ask targeted questions that elicit the information needed to produce the intended (correct) implementations. The development kit provides a standardized interactive environment for implementing and evaluating different clarification strate- gies. ClarifySDK evaluates assistants in terms of the functional correctness of their implementations and the efficiency of their clarification interactions. ClarifySDK serves as a benchmark for developing and evaluating clarification-aware assistants that must effectively acquire missing information while successfully accomplishing the target task.