TOM-SWE:软件工程代理的用户心理建模
TOM-SWE: User Mental Modeling For Software Engineering Agents
AI总结:
TOM-SWE通过双代理架构实现用户心理建模,提升软件工程代理的任务成功率和用户满意度。
摘要:
近期在编码代理方面的进展使它们能够规划、编辑、运行和测试复杂的代码库。尽管在编码任务中能力不断增强,这些系统仍难以推断和跟踪用户意图,尤其是在指令不明确或依赖上下文时。为弥合这一差距,我们引入了ToM-SWE,一种双代理架构,它将一个主要的软件工程(SWE)代理与一个轻量级的理论-心理(ToM)伙伴代理配对,后者专门用于建模用户的心理状态。ToM代理从指令和交互历史中推断用户的意图、约束和偏好,维护用户的持久记忆,并为SWE代理提供与用户相关的建议。在两个软件工程基准(模糊SWE-bench和状态ful SWE-bench)中,ToM-SWE提高了任务成功率和用户满意度。值得注意的是,在新的评估中,该评估为代理提供用户模拟器和先前的交互历史,ToM-SWE在状态ful SWE基准上实现了59.7%的任务成功率,远高于OpenHands(当前最先进的SWE代理)的18.1%。此外,在为期三周的研究中,专业开发者在日常工作中使用ToM-SWE,参与者发现它有用的时间占86%,这凸显了状态ful用户建模对实际编码代理的价值。
英文摘要:
Recent advances in coding agents have made them capable of planning, editing, running, and testing complex code bases. Despite their growing ability in coding tasks, these systems still struggle to infer and track user intent, especially when instructions are underspecified or context-dependent. To bridge this gap, we introduce ToM-SWE, a dual-agent architecture that pairs a primary software-engineering (SWE) agent with a lightweight theory-of-mind (ToM) partner agent dedicated to modeling the user's mental state. The ToM agent infers user goals, constraints, and preferences from instructions and interaction history, maintains a \textbf{persistent memory} of the user, and provides user-related suggestions to the SWE agent. In two software engineering benchmarks (ambiguous SWE-bench and stateful SWE-bench), ToM-SWE improves task success rates and user satisfaction. Notably, on the stateful SWE benchmark, a newly introduced evaluation that provides agents with a user simulator along with previous interaction histories, ToM-SWE achieves a substantially higher task success rate of 59.7\% compared to 18.1\% for OpenHands, a state-of-the-art SWE agent. Furthermore, in a three-week study with professional developers using ToM-SWE in their daily work, participants found it useful 86\% of the time, underscoring the value of stateful user modeling for practical coding agents.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。