Lune

ICLR2026Top-tier venue

Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering

Sanidhya Vijayvargiya, Xuhui Zhou, Akhila Yerukola, Maarten Sap, Graham Neubig

Abstract

AI agents are increasingly being deployed to automate tasks, often based on underspecified user instructions. Making unwarranted assumptions to compensate for the missing information and failing to ask clarifying questions can lead to suboptimal outcomes, safety risks due to tool misuse, and wasted computational resources. In this work, we study the ability of LLM agents to handle underspecified instructions in interactive code generation settings by evaluating proprietary and open-weight models on their performance across three key steps: (a) detecting underspecificity, (b) asking targeted clarification questions, and (c) leveraging the interaction to improve performance in underspecified scenarios. We introduce Ambig-SWE, an underspecified variant of SWE-Bench Verified, specifically designed to evaluate agent behavior under ambiguity and interaction. Our findings reveal that models struggle to distinguish between well-specified and underspecified instructions. However, 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, underscoring the value of effective interaction. Our study highlights critical gaps in how current state-of-the-art models handle missing information in complex software engineering tasks and structures the evaluation into distinct steps to enable targeted improvements 1 . 1 Code and data can be accessed at https://github.com/sani903/InteractiveSWEAgents

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • When Benign Inputs Lead to Severe Harms: Eliciting Unsafe Unintended Behaviors of Computer-Use Agents cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • Code with Me or for Me? How Increasing AI Automation Transforms Developer Workflows cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • Code with Me or for Me? How Increasing AI Automation Transforms Developer Workflows cites Morae: Proactively Pausing UI Agents for User Choices
  • TOM-SWE: User Mental Modeling For Software Engineering Agents cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • How can we assess human-agent interactions? Case studies in software agent design cites Code with Me or for Me? How Increasing AI Automation Transforms Developer Workflows
  • How can we assess human-agent interactions? Case studies in software agent design cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. TOM-SWE: User Mental Modeling For Software Engineering AgentsXuhui Zhou, Valerie Chen, Zhiruo Wang, Graham Neubig et al.ICML 2026 · 12 citations
  2. When Benign Inputs Lead to Severe Harms: Eliciting Unsafe Unintended Behaviors of Computer-Use AgentsJaylen Jones, Zhehao Zhang, Yuting Ning, Eric Fosler-Lussier et al.ICML 2026 · 9 citations
  3. Morae: Proactively Pausing UI Agents for User ChoicesYi-Hao Peng, Dingzeyu Li, Jeffrey P. Bigham, Amy PavelUIST 2025 · 4 citations
  4. Code with Me or for Me? How Increasing AI Automation Transforms Developer WorkflowsValerie Chen, Ameet Talwalkar, Robert Brennan, Graham NeubigCHI 2026 · 2 citations
  5. How can we assess human-agent interactions? Case studies in software agent designValerie Chen, Rohit Malhotra, Xingyao Wang, Juan Michelini et al.ICML 2026

Builds on10

  1. SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
  2. SOTOPIA: Interactive Evaluation for Social Intelligence in Language AgentsXuhui Zhou, Hao Zhu, Leena Mathur, Ruohong Zhang et al.ICLR 2024 · 288 citations
  3. MediQ: Question-Asking LLMs and a Benchmark for Reliable Interactive Clinical ReasoningShuyue Stella Li, Vidhisha Balachandran, Shangbin Feng, Jonathan Ilgen et al.NeurIPS 2024 · 215 citations
  4. Goal Driven Discovery of Distributional Differences via Language DescriptionsRuiqi Zhong, Peter Zhang, Steve Li, Jinwoo Ahn et al.NeurIPS 2023 · 81 citations
  5. Large Language Model-based Human-Agent Collaboration for Complex Task SolvingXueyang Feng, Zhiyuan Chen, Yujia Qin, Yankai Lin et al.EMNLP Findings 2024 · 24 citations

Related papers

  1. SWE-agent: Agent-Computer Interfaces Enable Automated Software EngineeringJohn Yang, Carlos E. Jimenez, Alexander Wettig, Kilian Lieret et al.NeurIPS 2024 · 2,059 citations
  2. Active Task Disambiguation with LLMsKasia Kobalczyk, Nicolás Astorga, Tennison Liu, Mihaela van der SchaarICLR 2025
  3. Beyond Final Code: A Process-Oriented Error Analysis of Software Development Agents in Real-World GitHub ScenariosZhi Chen, Wei Ma, Lingxiao JiangICSE 2026
  4. Uncertainty-Aware Clarification in LLM Agents with Information GainMengyi DENG, Zhiwei Li, Xin Li, Tingyu ZHU et al.ICML 2026 · 1 citation
  5. SWE-Dev: Building Software Engineering Agents with Training and Inference ScalingHaoran Wang, Zhenyu Hou, Yao Wei, Jie Tang et al.ACL Findings 2025 · 3 citations
Dusk over the sea between two cliffs drawn in fine vertical lines