Pass@k
Quick definition
A code-generation evaluation metric estimating whether at least one of k generated candidate solutions passes tests.
A code-generation evaluation metric estimating whether at least one of k generated candidate solutions passes tests.
Higher k gives a model more attempts, so pass@k values should not be compared across different sample counts without care.
Example: A coding model earns pass@5 success when one of its five generated functions passes all unit tests.
Common use cases: Code-model benchmarking, sampling strategies, and programming assistants.
Examples
- A coding model earns pass@5 success when one of its five generated functions passes all unit tests.
Use cases
- Code-model benchmarking, sampling strategies, and programming assistants.
Frequently asked questions
What is Pass@k?
A code-generation evaluation metric estimating whether at least one of k generated candidate solutions passes tests.
What should I know about Pass@k?
Higher k gives a model more attempts, so pass@k values should not be compared across different sample counts without care.