Language models have outpaced our ability to evaluate them effectively, but for their future development it is essential to study the frontier of their capabilities. We find real-world software engineering to be a rich, sustainable, and challenging testbed for evaluating the next generation of language models. To this end, we introduce SWE-bench, an evaluation framework consisting of $2,294$ software engineering problems drawn from real GitHub issues and corresponding pull requests across $12$ popular Python repositories. Given a codebase along with a description of an issue to be resolved, a language model is tasked with editing the codebase to address the issue. Resolving issues in SWE-bench frequently requires understanding and coordinating changes across multiple functions, classes, and even files simultaneously, calling for models to interact with execution environments, process extremely long contexts and perform complex reasoning that goes far beyond traditional code generation tasks. Our evaluations show that both state-of-the-art proprietary models and our fine-tuned model SWE-Llama can resolve only the simplest issues. The best-performing model, Claude 2, is able to solve a mere $1.96$% of the issues. Advances on SWE-bench represent steps towards LMs that are more practical, intelligent, and autonomous.
SWE-Edit: Rethinking Code Editing for Efficient SWE-Agent
Microsoft(微软);Department of Computer Sciences, University of Wisconsin–Madison(威斯康星大学麦迪逊分校计算机科学系);Stanford Institute for Human-Centered Artificial Intelligence (HAI), Stanford University(斯坦福大学人机交互研究所)
SWE-Bench ProMax: Benchmarking Agents on Large-Scale Multilingual Code Refactoring
Shanghai Jiao Tong University(上海交通大学);Peking University(北京大学);The Hong Kong University of Science and Technology(香港科技大学);Douyin Group(抖音集团);University of Chinese Academy of Sciences(中国科学院大学);National University of Singapore(新加坡国立大学);Monash University(莫纳什大学)
BugPilot: Complex Bug Generation for Efficient Learning of SWE Skills
Cornell University(康奈尔大学);University of California San Diego(加州大学圣地亚哥分校);University of North Carolina at Chapel Hill(北卡罗来纳大学教堂山分校);Microsoft Research(微软研究院)
HE-SNR: Uncovering Latent Logic via Entropy for Guiding Mid-Training on SWE-bench
School of Mathematical Sciences, Peking University, Beijing, China(北京大学数学科学学院);Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China(中国科学院计算技术研究所)
Satori-SWE: Evolutionary Test-Time Scaling for Sample-Efficient Software Engineering
Singapore University of Technology and Design(新加坡科技设计大学);MIT(麻省理工学院);UMass Amherst(马萨诸塞大学阿默斯特分校);Harvard(哈佛大学);MIT-IBM Watson AI Lab(MIT-IBM沃森人工智能实验室);IBM Research(IBM研究院)
SWE-MISBEHAVIOR: Benchmarking and Mitigating Boundary Violations in Software Coding Agents
National University of Singapore(新加坡国立大学);Vietnam National University, Hanoi(越南国家大学河内);University of Virginia, USA(弗吉尼亚大学);Agency for Science, Technology and Research (A*STAR), Singapore(新加坡科技研究局);Tufts University, USA(塔夫茨大学);Virginia Tech, USA(弗吉尼亚理工大学);Salesforce AI Research, USA(Salesforce AI 研究)