HumanEval
Asking whether generated code is good by comparing it word-for-word against a reference solution is a poor test — two correct programs can share almost no text. HumanEval settled the question differently: run the code and see whether it passes the tests. Released by OpenAI with the Codex paper in 2021, it is the benchmark most model cards still quote first for programming ability.
What is in itHumanEval is 164 hand-written Python problems, deliberately authored from scratch so they could not already be sitting in a training set scraped from GitHub. Each problem gives the model a function signature and a docstring describing the behaviour, and holds back a handful of unit tests. The model writes the body; the grader executes it in a sandbox against those tests.
The pass@k metricThe headline number is pass@k: the probability that at least one of k sampled completions passes every test. It is estimated from a larger pool of samples rather than measured literally, which keeps the figure stable. The gap between pass@1 and pass@10 is informative in itself — it says how much of a model's apparent skill depends on being allowed several attempts, which is exactly the situation of a developer regenerating a suggestion.
Its limitsThe problems are short, self-contained and Python-only, so a high score says nothing about navigating a large codebase. After years of quotation the set is also thoroughly contaminated, which is why HumanEval+ adds far more rigorous tests and MultiPL-E ports the problems to other languages.
HumanEval is a benchmark of 164 hand-written Python problems, each specified by a function signature and docstring and graded by executing the generated body against held-out unit tests. It measures functional correctness rather than textual similarity to a reference solution, reported as pass@k — the chance that one of k samples passes. It remains the standard first citation for a model's coding ability, though its short, self-contained tasks and heavy contamination limit what a high score proves.
Most school exams are marked by comparing your answer against the answer key. That works badly for programming, because two completely different programs can both be right. HumanEval marks the way a workplace would: it hands the AI 164 small programming tasks described in plain English, takes whatever code comes back, and actually runs it against a set of hidden tests. Either it works or it does not. The tasks were written by hand so the AI could not have memorised them from the internet — though after years of everyone quoting the results, that protection has worn thin.