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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Vijayvargiya, Sanidhya, Zhou, Xuhui, Yerukola, Akhila, Sap, Maarten, Neubig, Graham
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912916640366592
author Vijayvargiya, Sanidhya
Zhou, Xuhui
Yerukola, Akhila
Sap, Maarten
Neubig, Graham
author_facet Vijayvargiya, Sanidhya
Zhou, Xuhui
Yerukola, Akhila
Sap, Maarten
Neubig, Graham
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_13069
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering
Vijayvargiya, Sanidhya
Zhou, Xuhui
Yerukola, Akhila
Sap, Maarten
Neubig, Graham
Artificial Intelligence
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.
title Ambig-SWE: Interactive Agents to Overcome Underspecificity in Software Engineering
topic Artificial Intelligence
url https://arxiv.org/abs/2502.13069