СледваСледващо ръководство
IFEval и бенчмаркове за следване на инструкции
технически
Техническо РЪКОВОДСТВО
SWE-bench е бенчмарк, който тества дали AI система може да разреши реални GitHub проблеми чрез редактиране на Python кодова база, така че собствените тестове на проекта да преминат.
Чуйте това ръководствоAI-разказан · ~3 min
Това е важно, защото е една от най-цитираните мерки за агенти за програмиране, а резултатите ѝ лесно могат да бъдат интерпретирани погрешно, без да се знае как работят задачите, рамките за агенти и тестовите проверки.
SWE-bench was introduced by Carlos Jimenez and colleagues at Princeton in 2023 and published at ICLR 2024. It contains 2,294 task instances drawn from 12 widely used Python repositories, including Django, scikit-learn, sympy, matplotlib and requests. Each instance pairs a real GitHub issue with the pull request that fixed it. The system under test receives the issue text and the repository as it was before the fix, and must produce a patch. Scoring uses the tests from the original pull request. FAIL_TO_PASS tests failed before the human fix and passed after it, so they check that the issue is solved. PASS_TO_PASS tests passed both before and after, so they check that nothing else broke. An instance counts as resolved only if all of these pass, and the headline number is the percentage resolved. At launch, the best models resolved only a few percent of tasks. Two subsets matter. SWE-bench Lite has 300 instances chosen to be cheaper and more self-contained. SWE-bench Verified, released in 2024 by OpenAI with the SWE-bench authors, has 500 instances that human engineers screened to remove vague issue descriptions or tests that would reject valid solutions. Verified is now the most commonly quoted split. Scores reflect a model plus its scaffold, the program that lets it browse files, run commands and edit code. SWE-agent from Princeton and the Agentless pipeline, which localizes, repairs and validates without an open-ended agent loop, are well-known examples. The same model can score very differently in different scaffolds. Common misreadings: the original set is Python-only and covers a dozen repositories; passing tests does not guarantee maintainable code; the repositories and fixes are public, so contamination is possible; and multi-attempt results are not comparable to single-attempt ones. Related benchmarks such as SWE-bench Multilingual, SWE-Lancer and Terminal-Bench probe other languages, freelance tasks and command-line work.
Задачата предоставя на агент проблем в Django, описващ неправилно поведение, заедно с изтеглена версия на хранилището при комита преди поправката; агентът трябва да напише пач, който след това се оценява чрез тестове, които оригиналната поправка от човек е преминала.
Доставчик докладва резултат от SWE-bench Verified, използвайки собствена рамка за агенти и няколко опита на задача; купувачът трябва да потвърди дали това е резултат от един опит, преди да го сравни с числото на друг доставчик.
Инженерен екип изгражда вътрешен набор от типа SWE-bench от собствени частни хранилища и решени тикети, за да провери дали агент, който се класира добре публично, действително работи върху техния код.
Изследователите използват SWE-bench Multimodal, където проблемите идват от JavaScript фронт-енд проекти и често включват екранни снимки на визуални бъгове, за да тестват умения, които оригиналният Python-only бенчмарк не може да измери.
As top scores on SWE-bench Verified rise, the benchmark separates leading systems less clearly, and attention is moving toward newer task sets with fresher issues, more programming languages, longer multi-step work and reporting of cost and reliability. Contamination is a lasting concern because the source repositories are public, which favors benchmarks that add recent tasks. For teams choosing tools, public leaderboards are a starting point; testing agents on their own codebases and tickets remains the most reliable signal.
Безплатен бюлетин
Три проверени AI истории всяка делнична сутрин, написани на достъпен език. Безплатно завинаги, без реклами.
Един имейл всеки делничен ден. Отписване с едно кликване. Никога не продаваме и не споделяме вашия имейл адрес.
Тествайте себе си
Незабавна обратна връзка за всеки отговор и сертификат за споделяне с подлежащ на проверка идентификационен номер, след като преминете курс.
Подкрепете безплатното AI образование. AI Understanding е 501(c)(3) с нестопанска цел — без реклами, без платен достъп, никога. Направете дарение
SWE-bench is a benchmark that tests whether an AI system can resolve real GitHub issues by editing a Python codebase so that the project's own tests pass. It matters because it is one of the most cited measures of coding agents, and its scores are easy to over-read without knowing how tasks, agent scaffolds and test checks work.
Each instance pairs a real issue with a repository snapshot, and the system must generate a code patch that fixes it.
They confirm the issue is actually resolved, since they only pass when the fix is in place.
They passed before and after the human fix, so they guard against regressions introduced by the agent's patch.
Verified was released in 2024 by OpenAI with the SWE-bench authors, filtering out tasks that were underspecified or had tests rejecting valid solutions.
Lite is a 300-instance subset chosen to be cheaper and more self-contained.
Продължавай да учиш
Още ръководства, избрани за тази тема
СледваСледващо ръководство
IFEval и бенчмаркове за следване на инструкции
технически