RealSWE:真实用户请求下编码代理的组合评估

·

研究论文 · 2026/09/03

编码代理通常在SWE-bench基准上评估,该基准基于结构化的GitHub问题。然而,真实用户请求通常更短且结构更少。本文定义了六类信息分类和四维语言风格,应用于真实提示和基准问题,发现88%的真实提示仅包含问题陈述,而基准中仅7%;87%的真实提示为随意风格,而基准中94%为正式风格。基于此,作者提出RealSWE,包含381个多变体任务族,源自SWE-bench Verified和Pro,变体间仅信息组成和语言风格不同。评估七个LLM发现:真实输入使解决率平均降低6.4个百分点,并可能改变排名;包含期望行为和动机显著影响性能,而环境信息和复现步骤无益;语言风格影响较小且依赖模型。这些发现表明,明确陈述期望行为和动机(真实提示常省略)能显著提升LLM的软件工程性能。

该论文通过实证分析揭示了编码代理评估中真实用户请求与基准任务之间的差距,并提出了新的基准RealSWE,为改进评估方法和提升LLM性能提供了可操作的指导。

Coding agents are now commonly evaluated on the SWE-bench family of benchmarks, whose tasks are built from curated GitHub issues: long, structured, and information-rich. Real user requests, however, are typically far shorter and less structured. To characterize this gap, we define a six-category information taxonomy and four dimensions of linguistic style, and apply them to real user prompts from SWE-chat and problem statements from SWE-bench Verified and Pro. We find that requests carrying only a problem statement, alone or with limited additional context, account for 88% of real prompts but just 7% of benchmark problems. Furthermore, 87% of real prompts are casually written whereas 94% of benchmark problems are formal. Guided by these observations, we introduce RealSWE, 381 multi-variant task families derived from SWE-bench Verified and Pro. Variants within each family share the same underlying task and gold patch while differing only in information composition and linguistic style. Evaluating seven contemporary LLMs with RealSWE, we find that i) realistic inputs reduce resolution rates by 6.4 pp on average and can change model rankings. Controlled analysis further shows that ii) including Desired Behavior and Motivation significantly affects performance, whereas Environment Information and Reproduction Steps merely add tokens without measurable benefit; iii) linguistic style has only small, model-dependent effects. These findings provide actionable guidance for users and agents: explicitly stating the desired behavior and motivation, which most real prompts omit, substantially improves the LLM's software engineering performance.

阅读原文

参与讨论