Learn AI Math

Topic 18 of 20 · 35 words

AI Evaluation & Performance Metrics

How to tell real capability from benchmark hype: MMLU, SWE-bench, Elo arenas, precision/recall, latency, faithfulness, and evals.

✎ Napkin Diagram · Topic 18Measuring AI Quality: The Smoke Detector Trade-Off
PNG ↗
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. PRECISION = NO FALSE ALARMS🔔 Too Jumpy DetectorScreams every time youmake morning toast!High Precision means:"Flags spam only when it IS spam"RECALL = DON’T MISS REAL ONES😴 Too Sleepy DetectorNever gives a false alarm…but sleeps through a real fire!High Recall means:"Catches 99% of real problems"BENCHMARKS vs. YOUR TESTS🎯 Test on YOUR WorkModels can memorize publicschool tests ("Contamination")Always grade on 50 real examplesfrom your own daily tasks! getaimath.com
Precision means "no false alarms when it speaks up"; Recall means "don’t miss the real problem when it happens."

The 35 words, in learning order

Start at 1. Each word builds on the ones before it.

  1. BenchmarkA benchmark is a standard test used to measure and compare how well different AI models perform.
  2. Benchmark DatasetA benchmark dataset is a fixed collection of test questions or tasks used to score and compare AI models.
  3. EvaluationEvaluation is the process of testing an AI model to see how well it works, how safe it is, and where it fails.
  4. Human EvaluationHuman evaluation is when people judge the quality of AI outputs, such as rating answers for helpfulness or accuracy.
  5. Automated EvaluationAutomated evaluation scores AI outputs with programs or other models instead of people.
  6. LLM-as-a-JudgeLLM-as-a-Judge means using a language model to grade other AI outputs.
  7. AccuracyAccuracy is the share of answers a model gets right, out of all the answers it gives.
  8. PrecisionPrecision tells you, of all the times the model said "yes," how often it was actually right.
  9. RecallRecall tells you, of all the real "yes" cases, how many the model managed to find.
  10. F1 ScoreThe F1 score combines precision and recall into one number, rewarding models that are good at both.
  11. PerplexityPerplexity measures how surprised a language model is by a piece of text; lower perplexity means the model predicted it better.
  12. BLEUBLEU is a score that measures how closely a machine translation matches human reference translations, by counting shared word sequences.
  13. ROUGEROUGE is a set of scores that measure how much a generated summary overlaps with reference summaries.
  14. Exact MatchExact match is a simple metric that counts an answer as correct only if it matches the expected answer exactly.
  15. Pass@KPass@K measures the chance that at least one of K attempts by a model solves a problem correctly, often used for coding.
  16. MMLUMMLU, or Massive Multitask Language Understanding, is a benchmark with about 16,000 multiple-choice questions across 57 subjects.
  17. HumanEvalHumanEval is a coding benchmark of 164 programming problems where models must write Python functions that pass tests.
  18. SWE-benchSWE-bench is a benchmark that tests whether AI can fix real bugs in real open-source software projects.
  19. GPQAGPQA is a benchmark of very hard, graduate-level science questions that are difficult to answer even with web search.
  20. Arena EloArena Elo is a rating system that ranks AI models based on people voting for the better answer in head-to-head comparisons.
  21. Win RateWin rate is the percentage of comparisons a model wins against another model or a baseline.
  22. LatencyLatency is the delay between asking for something and getting a response.
  23. ThroughputThroughput is the total amount of work a system completes over time, like the number of tokens or requests per second across all users.
  24. Tokens Per Second (TPS)Tokens per second is how many tokens a model produces, or processes, every second.
  25. Time to First Token (TTFT)Time to First Token is how long you wait between sending a request and seeing the first token of the answer.
  26. Time Per Output Token (TPOT)Time Per Output Token is the average time it takes to generate each new token after the first one.
  27. Cost Per TokenCost per token is the price of processing or generating one token, usually quoted per million tokens.
  28. Energy EfficiencyEnergy efficiency is how much useful AI work is done per unit of energy used.
  29. FaithfulnessFaithfulness is how accurately an AI's output reflects its source information or its actual reasoning, without adding things that are not supported.
  30. GroundednessGroundedness is how well an AI's answer is supported by provided sources or verifiable evidence.
  31. HelpfulnessHelpfulness is how useful an AI's response is for what the user actually needed.
  32. Instruction FollowingInstruction following is how well an AI does exactly what it was asked, including format, length and constraints.
  33. RobustnessRobustness is how well an AI keeps working correctly when inputs are unusual, noisy or deliberately tricky.
  34. CalibrationCalibration in quantization means running sample data through a model to learn the typical range of its values before compressing it.
  35. Data ContaminationData contamination is when test or benchmark questions accidentally end up in a model's training data.

How AI Evaluation & Performance Metrics fits together

Every week a new model claims top leaderboard scores, yet feels mediocre on your actual tasks. Public benchmarks like MMLU, GPQA, and SWE-bench test broad knowledge and coding, while blind human preference arenas (Arena Elo) measure conversational polish—and both can suffer from benchmark contamination if test questions leak into training sets.

The most valuable skill in applied AI is building your own task-specific evals: measuring accuracy, faithfulness/groundedness, latency (TTFT/TPOT), and cost per successful task on real examples from your workflow.