What is SWE-bench?
In Turkish: SWE-bench · Topic: Data and evaluation
A benchmark that measures how well AI models can resolve bugs and feature requests in real software projects. Its tasks come from the GitHub records of popular open-source Python projects.
How does it work?
In each task, the model receives a project's code repository and an issue report filed on GitHub. It produces a code change, called a patch, that is meant to resolve the issue. The patch is applied and the project's own tests are run, and if they pass, the task counts as solved. The score is the share of tasks solved. The benchmark was introduced in 2023 by a team that included researchers from Princeton University, and a human-reviewed subset called 'Verified' is widely used.
Why does it matter?
Coding assistants and 'software engineer agents' appear often in the news, and SWE-bench is one of the best-known ways to test such claims on real projects. Because the work is more realistic than writing a single function, it is valuable for showing agent capabilities. Results can vary with the setup and tools used, so scores should be compared with care.
Example
A bug report on an open-source library saying 'the program crashes on this input' could serve as a SWE-bench task in which the model is asked to write the fix.
FAQ
What is SWE-bench Verified?
It is a subset of tasks that humans reviewed to confirm they are solvable and clearly specified. It aims to reduce the effect of ambiguous or flawed tasks on scores.
How does SWE-bench differ from HumanEval?
HumanEval contains short, single-function problems. SWE-bench requires understanding and changing multiple files in a large codebase.