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

Sanidhya Vijayvargiya, Xuhui Zhou, Akhila Yerukola, Maarten Sap, Graham Neubig
2/18/2025
cs.AI

No official code found. Best implementation: sani903/InteractiveSWEAgents (12 stars, MIT, last commit 2025-04-03).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Evaluating Agents under Ambiguous settings for SWE tasks

124CSS, HTMLFeb 7, 20251 years agoMIT

Similar Papers

Cite this paper

@article{vijayvargiya2025ambigswe,
  title  = {Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering},
  author = {Sanidhya Vijayvargiya and Xuhui Zhou and Akhila Yerukola and Maarten Sap and Graham Neubig},
  year   = {2025},
  eprint = {2502.13069},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.13069v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.13069.svg)](https://codeofpaper.com/paper/2502.13069)

Discussion