# HumanEval

- **Canonical URL:** https://getaimath.com/dictionary/humaneval/
- **Topics:** [AI Evaluation & Performance Metrics](https://getaimath.com/dictionary/category/ai-evaluation-and-performance-metrics/)
- **Last updated:** 2026-11-25

## What is HumanEval?

**In one sentence:** HumanEval is a coding benchmark of 164 programming problems where models must write Python functions that pass tests.

Each problem gives a function description, and the model's code is checked by running hidden tests. It is usually scored with pass@k.

![Measuring AI Quality: The Smoke Detector Trade-Off — Simple cartoon comparing Precision and Recall using a kitchen smoke detector: Low Precision screams at burnt toast (False Alarms), Low Recall sleeps through a real fire (Missed Cases), and Good Evals test both on real-world examples.](https://getaimath.com/diagrams/ai-evaluation-and-performance-metrics.png)
*Napkin Diagram (AI Evaluation & Performance Metrics): Precision means "no false alarms when it speaks up"; Recall means "don’t miss the real problem when it happens."*

## What is an example of HumanEval?

"Write a function that returns True if a string is a palindrome" is the kind of problem in HumanEval.

## Why does HumanEval matter?

It was a standard early test of AI coding ability.

## Related Concepts

- [MMLU](https://getaimath.com/dictionary/mmlu/): MMLU, or Massive Multitask Language Understanding, is a benchmark with about 16,000 multiple-choice questions across 57 subjects.
- [SWE-bench](https://getaimath.com/dictionary/swe-bench/): SWE-bench is a benchmark that tests whether AI can fix real bugs in real open-source software projects.
- [Pass@K](https://getaimath.com/dictionary/pass-k/): Pass@K measures the chance that at least one of K attempts by a model solves a problem correctly, often used for coding.
- [GPQA](https://getaimath.com/dictionary/gpqa/): GPQA is a benchmark of very hard, graduate-level science questions that are difficult to answer even with web search.
- [Exact Match](https://getaimath.com/dictionary/exact-match/): Exact match is a simple metric that counts an answer as correct only if it matches the expected answer exactly.
- [Arena Elo](https://getaimath.com/dictionary/arena-elo/): Arena Elo is a rating system that ranks AI models based on people voting for the better answer in head-to-head comparisons.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/humaneval/)
