Learn / Lessons

Coding benchmarks: SWE-bench and more

Coding benchmarks. What is SWE bench? SWE is short for software engineering.

Chapters

  1. 0:00Introduction
  2. 0:14Where this fits: The AI stack
  3. 0:18First: What is a benchmark?
  4. 0:28On a model card: One box each
  5. 0:37SWE-bench: Resolve a real issue
  6. 0:50The family: Lite and Verified
  7. 1:00A warning: Can it have seen it?
  8. 1:12SWE-bench Pro: Bigger, harder jobs
  9. 1:24Check the version: Pro version 2
  10. 1:36Terminal-Bench: Work in a terminal
  11. 1:47Reading a score: Four questions
  12. 1:56Wrap up
Read the transcript

Introduction

Coding benchmarks. What is SWE bench? SWE is short for software engineering. It's a test of whether a model can resolve real issues in real code. Model cards often quote it.

Where this fits: The AI stack

We're at the top: checking whether it works.

First: What is a benchmark?

A benchmark is a standard test, used to compare how well models do a task. A high score on one doesn't promise the model is good at your job.

On a model card: One box each

One recent chart shows sixteen tests as boxes. SWE-bench isn't one; three more videos explain them.

SWE-bench: Resolve a real issue

The model gets a real issue from a Python project, often a bug report. It has to change the project's code. Then hidden tests run. The issue must be resolved, and what worked before must still work.

The family: Lite and Verified

The score is the share of tasks solved. Lite is a set of 300 simpler tasks. Verified is 500 tasks that people checked.

A warning: Can it have seen it?

In February, OpenAI stopped reporting Verified. It found faulty tests among often-failed tasks it checked, and signs that models had seen answers in training.

SWE-bench Pro: Bigger, harder jobs

SWE bench Pro, from Scale AI, uses longer jobs, often across several files. Some code is public. Some is kept private, so it's less likely to have been learned.

Check the version: Pro version 2

In July, OpenAI estimated about thirty percent of Pro's tasks were broken. Scale released version two in September. So check which version a score used.

Terminal-Bench: Work in a terminal

Terminal Bench gives the model a command line and a real job. A checker grades the result. Its versions change, so don't compare scores across them.

Reading a score: Four questions

Before trusting a score, ask which version, and who ran it with what tools. Could the model have seen the answers? And is it anything like your work?

Wrap up

Best of all, try it on your own code.

Sources

More lessons