Can asking for clarification recover lost software engineering performance?
When AI agents encounter vague coding instructions, can they recover lost performance by asking clarifying questions? This explores whether interaction is a reliable way to close the gap between underspecified and complete task specifications.
Ambig-SWE is introduced as "an underspecified variant of SWE-Bench Verified, specifically designed to evaluate agent behavior under ambiguity and interaction," built on the OpenHands agentic framework and tested on Claude Sonnet 3.5, Claude Sonnet 4, Claude Haiku 3.5, Qwen 3 Coder, Deepseek, and Llama across the 500 issues of SWE-Bench Verified. The paper compares three settings — Full (complete task spec, no interaction), Hidden (summarized task, no interaction), and Interaction (summarized task, agent can query a GPT-4o user proxy that holds the full spec) — and reports that "when models interact for underspecified inputs, they effectively obtain vital information from the user leading to significant improvements in performance, up to 74% over the non-interactive settings." For the proprietary family tested across generations, the gain is larger still: "Proprietary models such as Claude Sonnet 3.5 and Haiku 3.5 effectively leverage interaction, recovering up to 80% of the performance gap."
The gain is conditional on the model choosing to interact at all, and the paper's sharpest finding is that this choice is not automatic: "models default to non-interactive behavior unless explicitly prompted, yet prompt engineering alone proves insufficient for reliable underspecificity detection." Even Qwen 3 Coder showed "complete non-responsiveness to interaction prompts (100% FNR)." The authors attribute this to training rather than capability: interaction improves task success as capability scales, but "it does not yield efficiency gains... indicating that current training practices insufficiently optimize for effective integration of interactive feedback" — the model can extract the missing information once asked, but the training objective, tuned toward task completion, does not reward asking for it in the first place.
This sits alongside Why do language models fail in gradually revealed conversations? as a sharper, more optimistic data point on the same failure mode: where that paper's agent-like mitigations recovered only 15-20% of the multi-turn performance drop, Ambig-SWE's interaction setting recovers up to 74-80% — the difference being that Ambig-SWE's intervention is a live, targeted clarification exchange rather than a static recovery strategy. It also corroborates Do LLMs recognize ambiguity but ignore it anyway?: in an agentic coding setting as in open QA, models default to answering over asking, and prompting alone does not reliably flip that default. And it extends Why do language models lose performance in longer conversations? by showing the same reframing — the gap is interaction-recoverable rather than a hard capability ceiling — holds specifically for software engineering agents operating with tools in a sandboxed environment.
The excerpt does not report what fraction of underspecified issues each model actually chose to query about, nor absolute resolve rates per model beyond the qualitative discussion; it also flags its own limitation that "underspecificity detection is measured only within the first three turns," so later-turn detection failures are not distinguished from recoverable ones. The user proxy is simulated (GPT-4o answering only from the issue text) rather than a real developer, which the authors note may be more cooperative than a real user. The implication, at the strength the excerpt supports, is that training pipelines have room to target the decision to interact specifically, not just the extraction of information once an exchange has started.
Inquiring lines that read this note 16
This note is a source for these research framings, grouped by the broader line of inquiry each explores. Scan the bold lines of inquiry; follow any specific question forward.
Do AI coding tools meaningfully improve developer productivity and quality?- How do programmers alternate between acceleration and exploration modes with AI?
- Do misconceptions about AI context actually degrade code suggestion quality?
- Why do long multi-line code suggestions disrupt programmer flow?
- Do programmers prefer partial hints or complete code solutions from AI?
- What signals predict whether clarification will actually help users?
- Do clarifying questions work better when they ask for specific details?
- Does fine-grained supervision help recover grounding acts like clarification questions?
- Do clarifying questions actually help users move from vague to clear information needs?
- How do clarifying questions help users formulate what they want to ask?
Related concepts in this collection 6
This note in its neighbourhood — explore the map, then jump to a related concept in the list below.
Click a node to walk · click center to open · click Open in graph to see this note in the full knowledge graph
-
Why do language models fail in gradually revealed conversations?
Explores why LLMs perform 39% worse when instructions arrive incrementally rather than upfront, and whether they can recover from early mistakes in multi-turn dialogue.
contrast: Ambig-SWE's live clarification recovers up to 74-80% vs. this paper's static mitigations recovering only 15-20%
-
Do LLMs recognize ambiguity but ignore it anyway?
When LLMs are explicitly asked to judge ambiguity, they often detect it—yet they default to answering ambiguous questions directly. This explores why awareness doesn't translate into clarifying behavior, and how retrieved context affects that gap.
same default-to-answering-over-asking pattern, confirmed in an agentic coding setting
-
Why do language models lose performance in longer conversations?
Does multi-turn degradation stem from fundamental model limitations, or from misalignment between what users mean and what models assume? Understanding the root cause could guide better solutions.
shares the reframing that the gap is interaction-recoverable, not a capability ceiling
-
How do models balance asking many questions with asking the right ones?
When AI agents ask clarifying questions about ambiguous tasks, do they benefit from asking more questions, exploring the problem first, or matching user expertise? This matters because raw question volume may not predict task success.
same source, qualitative breakdown of how the interaction driving this recovery is actually conducted
-
Do LLMs ask clarifying questions or answer prematurely in ambiguous dialogue?
Explores whether large language models recognize when user intent is unclear and request clarification, or whether they tend to answer despite ambiguity. This matters because premature answering in multi-turn conversations can lead to unhelpful or irrelevant responses.
Evidence for: across ten LLMs, under-clarification bias worsens with dialogue depth, supporting Ambig-SWE's finding that models default to non-interactive behavior
-
Why can't advanced AI models take initiative in conversation?
Despite extraordinary capability in answering and reasoning, LLMs fundamentally cannot initiate, redirect, or guide exchanges. Understanding this gap—and whether it's fixable—matters for building AI that truly collaborates rather than merely responds.
Extends: explains Ambig-SWE's passivity finding structurally — next-turn reward optimization causes models to not initiate clarification unless prompted or retrained
Related papers in this collection 8
Papers most semantically related to this note, ranked by cosine similarity in the embedding space.
- Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering
- Assistance or Disruption? Exploring and Evaluating the Design and Trade-offs of Proactive AI Programming Support
- Intent Mismatch Causes LLMs to Get Lost in Multi-Turn Conversation
- HumanAgencyBench: Scalable Evaluation of Human Agency Support in AI Assistants
- Clarify When Necessary: Resolving Ambiguity Through Interaction with LMs
- ClarifyMT-Bench: Benchmarking and Improving Multi-Turn Clarification for Conversational Large Language Models
- Referential ambiguity and clarification requests: comparing human and LLM behaviour
- Knowing but Not Showing: LLMs Recognize Ambiguity but Rarely Ask Clarifying Questions
Original note title
interactive clarification recovers up to 74% of performance lost to underspecified software engineering instructions — but models rarely ask unprompted