[KongchangAI]
ConceptPass@1 / Pass@n

Pass@k

A standardized metric for evaluating the code generation capability of language models, introduced by OpenAI in the HumanEval benchmark. Pass@k measures the probability that at least one correct solution is generated among k sampled attempts, and has been widely adopted in the evaluation of Agent systems.

Core Facts

Timeline (last 90 days)

Nov 16

In E2E evals, Pass@k assumes the k attempts are independent, so the probability of succeeding at least once is 1−(1−p)^k; Pass^k requires all k attempts to succeed, with probability p^k.

Unverified50%
Nov 16

Pass@k values extrapolated from small samples should be treated as an upper bound rather than a promise, because multiple attempts by an LLM under the same prompt are often correlated, and the true Pass@k may be lower than estimates based on the independence assumption.

Unverified50%
Nov 16

For high-frequency scenarios where failure is costly (such as daily coffee ordering), Pass^k should be the optimization target; for coding agents where failures can be retried, Pass@k is more suitable; for low-cost failures like email drafts, success rate alone is sufficient.

Unverified50%
Nov 12

When three out of five trials pass, the success rate is 60%, Pass@5 is about 99%, and Pass^5 is about 8%.

Unverified50%
Sep 18

Pass@k is a standardized metric for evaluating the code generation capability of language models, introduced by OpenAI in the HumanEval benchmark.

Unverified50%
Sep 18

Pass@1 represents the probability that the model generates a correct result in a single sampling, while Pass@k represents the probability of at least one correct result in k samplings.

Verified75%

All Facts (7)

Source Articles