techlist.io

Ai Benchmarking

2 posts

OpenAI2024-08-124 min readCurated summary

Introducing SWE-bench Verified

OpenAI found that SWE-bench, a popular benchmark for AI coding agents, underestimates model capabilities because many of its tasks are underspecified, have overly narrow unit tests, or have unreliable environments that reject valid solutions. To fix this, they worked with the benchmark's authors and 93 Python developers to manually screen samples and released SWE-bench Verified, a 500-sample subset. GPT-4o's best score more than doubled on the new benchmark, from 16% to 33.2%, which supports the view that the original scores were too low. ## How SWE-bench Works - Each sample comes from a resolved GitHub issue in one of 12 open-source Python repositories and is tied to a pull request. - FAIL_TO_PASS tests fail before the PR's code is added and pass after, confirming the issue is fixed. - PASS_TO_PASS tests pass both before and after, checking that unrelated functionality still works. - Agents see only the issue text and the codebase, not the tests, and must produce a patch that passes both sets. ## Three Sources of Underestimation - **Overly specific tests:** Unit tests sometimes check details unrelated to the issue, rejecting correct solutions. - **Underspecified issues:** Some issue descriptions leave the problem or the expected fix ambiguous. - **Unreliable environments:** Some development setups cause tests to fail regardless of the solution. - **Example (scikit-learn-14520):** The issue reports that the `copy` parameter in `TfidfVectorizer` is ignored. The test requires a specific `DeprecationWarning` with an exact message that was agreed on in PR discussion and never appears in the issue, so the task is nearly impossible to solve. ## Building SWE-bench Verified - Annotators labeled 1,699 random test samples on two criteria: whether the issue description is underspecified and whether the FAIL_TO_PASS tests unfairly reject valid solutions. - Each criterion uses a 0–3 severity scale. Scores of 2 or 3 mean the sample should be discarded. - Each sample was labeled by three annotators, and the highest severity was kept. This is conservative and removes some valid samples, but it raises confidence in the remaining ones. - Annotators also estimated fix difficulty and could flag other major problems in free text. - Samples were removed if they had a severe label or any flagged issue. About 38.3% were flagged for underspecification, 61.1% for unfair tests, and 68.3% were filtered out overall. - The final 500 samples favor longer tasks (1–4 hours and over 4 hours), and the rest were sampled randomly. - The release includes all annotations, which allow slicing by difficulty: 196 "easy" tasks under 15 minutes and 45 "hard" tasks over an hour. - A new Docker-based evaluation harness makes runs more reproducible. ## Performance Results - GPT-4o (gpt-4o-2024-05-13) with the best open-source scaffold, Agentless, scored 33.2% on SWE-bench Verified, versus 16% on the original. - Scores rose within each difficulty bucket, not just because the dataset shifted toward easier tasks. This suggests impossible samples were removed while genuinely hard ones stayed. The effect was clearest in the two easiest buckets, which hold the most samples. - The gain from SWE-bench Lite was smaller because Lite was already subsampled to be easier. ## Implications for Preparedness Evaluations - **Scrutinize benchmarks:** Evaluations used for risk tracking must be validated, since SWE-bench underestimated capability. - **Account for scaffolding:** GPT-4's score on SWE-bench Lite ranged from 2.7% with an early RAG scaffold to 28.3% with CodeR. Evaluations should run continually, including after training and when models are connected to external systems. - **Recognize limits:** The benchmark is a static dataset built from public GitHub scrapes, so pre-trained models may have seen the tasks. It also covers only a narrow part of the Medium autonomy risk level and needs supplementing with other evaluations.

OpenAI2018-08-222 min readCurated summary

The International 2018: Results

# OpenAI Five's Second Showing at The International 2018 OpenAI Five lost two games to top professional Dota 2 players at The International in Vancouver, but it held a real chance of winning for the first 20 to 35 minutes of both matches. The games were far more competitive than the Benchmark series 17 days earlier, which was one-sided. The results show that Five's self-taught playstyle can compete with the best players in the world, even if it has not yet beaten them. ## What Changed Since the Benchmark - The opponents were significantly stronger professional teams. - Hero lineups were supplied by a third party rather than drafted by Five against humans. - The last major restriction from "Real Dota" gameplay was removed. ## The Matches - **Game 1 (vs. paiN Gaming):** Lasted about 51 minutes, compared with a typical 45. The humans started strong, Five recovered ground in the mid-game, and then lost to a series of high-level strategic pushes. paiN's players average about $350,000 in career tournament earnings. - **Game 2 (vs. a team of Chinese superstar players):** Featured back-and-forth teamfights and lasted 45 minutes before Five lost. The players average about $1 million in tournament earnings each. ## The Courier Rule Change - The Benchmark gave each hero its own invulnerable courier, which let Five keep attacking by constantly delivering regeneration items. This produced its signature high-pressure style, but many observers felt it did not resemble "Real Dota." - Training switched to a single, mortal, scripted team courier six days before The International. The team expected this to temporarily reduce performance, but community feedback suggested the single-courier games would be more exciting. ## Next Steps - OpenAI does not believe the courier change caused the losses. It plans more training, bug fixes, and removal of the remaining scripted logic in the model. - Beyond Dota, the team sees the project as a safe sandbox for building AI systems that can later support more advanced applications.