LLM Evaluation = the systematic, repeatable measurement of an LLM/app's quality, correctness, reliability, safety, and production-readiness — using datasets, rubrics, and metrics instead of guesswork.
Build → Evaluate → Fix → Deploy → Monitor (continuous loop)
Judging quality from a handful of manual prompts + gut feel. No metrics, not reproducible, misses edge cases. OK for toy projects; unsafe at production scale.
Lesson: hallucination + jailbreak + zero evaluation = legal, financial, and reputational risk.
| Traditional Software | LLM Applications |
|---|---|
| Same input → same output | Same input → variable output (sampling/temperature) |
| Exact pass/fail assertions | No single "correct" string — needs judgment-based scoring |
| Fixed test suites | Statistical, distribution-aware evaluation |
Tests the raw foundation model via public benchmarks (MMLU, GSM8K, HumanEval…). Done by frontier labs, third parties, and teams comparing models.
Tests the system built on top (chatbot, RAG, agent) for a specific use case: task success, safety, latency, cost.
Correctness · Factuality · Groundedness · Faithfulness · Relevance · Completeness · Conciseness · Fluency · Tone · Safety · Bias · Robustness · Latency · Cost · User Satisfaction
Groundedness = supported by retrieved context. Faithfulness = doesn't contradict the source. Factuality = objectively true regardless of source.
Exact-match, regex, Recall@K / Precision@K. Fast & cheap; only works for verifiable outputs.
Direct rating, red-teaming, A/B testing, golden-dataset creation, human-in-the-loop. Gold standard, but slow/expensive — use a rubric + multiple raters.
A strong LLM scores outputs vs a rubric. Scalable for open-ended text; the judge itself must be validated (MAE vs human scores) — cheaper than humans, can drift or be biased.
Reference-based needs a gold answer Reference-free judges quality without one
Define task & target → Define success criteria → Build golden dataset → Choose eval method → Run model → Evaluate results → Analyze results → Improve system → Repeat evaluation → Deploy → Monitor → Update golden dataset ↺
Offline — pre-deployment, golden dataset. Used for release gating, version comparison, regression testing. Misses: unanticipated inputs, emergent failures, drift.
Online — post-deployment on real traffic. Captured signals (👍/👎, retries) + computed signals (latency, refusal rate). Goal: detect abnormality, not just incorrectness.
Reason 1 — Multiple failure points: retriever ≠ generator ≠ workflow ≠ whole app; each layer needs its own eval.
Reason 2 — Multiple risk categories: Quality, Safety, and Operations each need a dedicated pipeline.
Knowledge & Reasoning · Coding & Software Engineering · Mathematics · Long Context · Vision & Multimodal · Agentic & Tool Use · Safety & Alignment · Instruction Following
| Benchmark | Year | Focus | Status |
|---|---|---|---|
| MMLU | 2020 | 57-subject general knowledge, MCQ | Saturated |
| TruthfulQA | 2021 | Truthfulness vs misconceptions | Saturated |
| AGIEval | 2023 | Real exams (SAT/LSAT/Gaokao) | Saturated |
| GPQA | 2023 | Grad-level "Google-proof" science | Near-saturated |
| MMLU-Pro | 2024 | Harder MMLU, 10-option, CoT-heavy | Active |
| SimpleQA | 2024 | Closed-book recall + calibration | Active |
| HLE | 2025 | 100+ fields, expert-written, ~2.5k Qs | Active |
Building an LLM application is only half the job. Evaluating, securing, monitoring, and continuously improving it is the other half — that's what separates a prototype from a production AI system.