arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.21095cs.CLcs.AIcs.HC
收藏

SWE-WhatIf:基于记录会话模拟编码智能体的真实用户

SWE-WhatIf: Simulating Real Users of Coding Agents from Recorded Session

KAIST(韩国科学技术院);SkillBench;Carnegie Mellon University(卡内基梅隆大学)

Tae Soo Kim, Tongshuang Wu, Juho Kim

AI总结:

本研究提出SWE-WhatIf方法,通过建模用户意图等实现用新智能体重放编码会话,在89个会话测试中表现优异,且在避免用户反对动作时胜率达66.3%,还为编码智能体排名提供了有效工具。

摘要:

用户与编码智能体之间的记录会话为评估智能体完成真实任务及与用户交互的能力提供了途径。然而,这些会话无法直接用新智能体重放,因为当智能体采取不同轨迹时,记录的用户回复可能不再适用。本文提出SWE-WhatIf,该方法通过对用户意图、满足意图的标准及意图产生的条件进行建模,实现用新智能体重放记录会话。基于此模型,用户模拟器生成的回复可适应未见过的智能体轮次,同时保持与记录的一致性。在89个真实会话中,SWE-WhatIf生成的回复与真实用户回复最为相似,且在重写会话时匹配最强基线。为测试适应性,我们用被指示避免或重复记录用户反对动作的智能体重放会话,SWE-WhatIf在避免这些动作时的胜率最高(66.3%),显著高于随机水平。我们进一步验证其实用性:将5个大语言模型(LLM)作为编码智能体进行排名,最高排名的模型取决于用户指定和开发意图的方式;针对16名用户的研究显示,重放他们自己的会话改变了14名参与者的排名,并为其未来使用智能体提供了参考。

英文摘要:

Recorded sessions between users and coding agents offer a way to evaluate how agents complete real-world tasks and interact with users. However, these sessions cannot simply be replayed with new agents, because recorded user replies may no longer apply when an agent takes a different trajectory. We introduce SWE-WhatIf, which replays recorded sessions with new agents by modeling the user's intents, the criteria for satisfying them, and the conditions under which they arise. Using this model, a user simulator generates replies that adapt to unseen agent turns while remaining grounded in the recording. Across 89 real-world sessions, SWE-WhatIf generated the replies most similar to those of real users and matched the strongest baseline when sessions were rewritten. To test adaptation, we replay sessions with agents instructed to avoid or repeat actions that the recorded user pushed back on. SWE-WhatIf produced the highest win rate for avoiding these actions (66.3%), significantly above chance. We further demonstrate its utility by ranking five LLMs as coding agents, where the highest-ranked model depended on how users specified and developed their intents, and a study with 16 users, where replaying their own sessions changed 14 participants' rankings and informed their future agent use.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑