[论文解读] SWE-Lancer: Can Frontier LLMs Earn $1 Million from Real-World Freelance Software Engineering?
SWE-Lancer 是一个包含 1,488 个真实 Upwork 软件工程任务、总价值 100 万美元的基准,使用端到端测试评估前沿大模型在独立编码与管理任务决策上的表现;结果显示当前模型远未达到完整 payout 水平。
We introduce SWE-Lancer, a benchmark of over 1,400 freelance software engineering tasks from Upwork, valued at \$1 million USD total in real-world payouts. SWE-Lancer encompasses both independent engineering tasks--ranging from \$50 bug fixes to \$32,000 feature implementations--and managerial tasks, where models choose between technical implementation proposals. Independent tasks are graded with end-to-end tests triple-verified by experienced software engineers, while managerial decisions are assessed against the choices of the original hired engineering managers. We evaluate model performance and find that frontier models are still unable to solve the majority of tasks. To facilitate future research, we open-source a unified Docker image and a public evaluation split, SWE-Lancer Diamond (https://github.com/openai/SWELancer-Benchmark). By mapping model performance to monetary value, we hope SWE-Lancer enables greater research into the economic impact of AI model development.
研究动机与目标
- 衡量前沿大模型在真实世界自由职业 SWE 任务中的能力,涉及实际货币支付。
- 同时评估独立贡献者 SWE 任务与需要提案评估的 SWE 管理者任务。
- 提供端到端、三重验证的测试,以评估全栈工程能力。
- 开源统一评估环境与公开的评估拆分,以促进可重复性与研究增长。
提出的方法
- 从 Expensify 收集 1,488 个真实 Upwork 任务,实际支付总额为 100 万美元。
- 将任务分成 IC SWE(764 任务)和 SWE Manager(724 任务)两类。
- 对 IC 任务使用端到端的 Playwright 基于测试,由工程师进行三重核验。
- 让模型在受限的 Docker 环境中工作,具有本地代码库访问权限且无互联网;除非另有说明,模型仅通过一次(pass@1)。
- 启用一个用户工具,允许模型浏览并与本地应用交互,输出将被记录用于评估。
实验结果
研究问题
- RQ1前沿大模型是否能够在完整的代码库中自动修复真实世界的软件缺陷并实现功能?
- RQ2模型是否能够像 SWE 管理者一样,从真实的自由职业者提交中选择最佳实现方案?
- RQ3模型性能如何映射到在不同难度和领域中的实际 Upwork 支付?
- RQ4工具使用与测试时的计算资源对复杂 SWE 任务中模型成功率有何影响?
主要发现
- 表现最佳的模型(Claude 3.5 Sonnet)在 SWE-Lancer Diamond 上获得 208,000 美元(IC SWE 任务解决率 26.2%),在全数据集上超过 40 万美元;但大多数解决方案不正确。
- 在 IC SWE 任务中,所有模型的 pass@1 和收益率都低于 30%;SWE Manager 任务的成功率更高,Sonnet 3.5 在 Diamond Manager 任务上达到 44.9%–45.0%。
- 增加尝试次数(pass@k)或测试时的计算量可以提高通过率,尤其是对更强的模型;例如 Sonnet 3.5 在 Diamond IC 的 pass@1 达到 26.2%,更高的推理努力将 IC 的 pass@1 从 9.3% 提升至 16.5%。
- 使用用户工具能提升顶尖模型的表现;若移除工具,对更强的模型的影响更大,表明有效的工具使用是成功的关键。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。