LLM evaluation · Guide

How to Evaluate Large Language Models

Public leaderboards tell you how a model performs on someone else's problems. Here is a practical framework for evaluating LLMs on yours — combining automated metrics with expert human judgment.

11 min read November 18, 2026
SR
Salyvian Research TeamApplied researchers and data operations leads at Salyvian AI.

Why LLM evaluation is hard

Traditional ML evaluation compares predictions to a fixed label. LLM outputs are open-ended: there are many good answers to most prompts, and many subtly wrong ones that look good. Four problems make evaluation difficult:

  • Open-endedness. String-matching metrics penalize valid paraphrases and reward superficially similar wrong answers.
  • Contamination. Public benchmark items may have leaked into training data, inflating scores.
  • Saturation. As models improve, popular benchmarks stop discriminating between them.
  • Domain gap. General benchmarks rarely reflect the specific tasks, users and risks of your application.

The answer isn't one perfect metric. It's a layered evaluation system.

The four evaluation layers

LayerWhat it isStrengthLimitation
Public benchmarksStandardized test sets for knowledge, reasoning, codingComparabilityContamination, saturation, domain gap
Automated metricsExact match, unit tests, programmatic checksCheap, fast, reproducibleOnly works where correctness is checkable
LLM-as-a-judgeA model scores or compares outputs using a rubricScales open-ended evaluationJudge bias; must be validated by humans
Expert human evaluationQualified people score or compare outputsHighest validity for nuanced, specialized tasksCost and time — requires careful design

Most teams use all four. Human evaluation anchors the system: it defines what "good" means, validates automated judges and covers the cases automation can't. Read more in RLHF vs RLAIF.

What to measure

Define evaluation dimensions from your use case. Common ones include:

  • Correctness and factuality — are claims true and verifiable? See how to measure hallucinations.
  • Reasoning quality — are intermediate steps valid, or did the model reach the right answer by luck?
  • Instruction following — were all constraints (format, length, scope) respected?
  • Helpfulness and completeness — does the answer solve the user's actual problem?
  • Safety and policy compliance — refusals where appropriate, no over-refusal where not. See AI red teaming.
  • Calibration — does the model express uncertainty honestly?
  • Domain-specific criteria — clinical safety, legal citation accuracy, financial calculation correctness.

Designing human evaluation

Choose the right format

  • Pairwise comparison (A vs B) — the most reliable format for relative quality and for comparing model versions. Results are often reported as win rates.
  • Rubric scoring — absolute ratings (e.g. 1–5) on each dimension, useful for diagnosing why a model fails.
  • Binary checks — pass/fail against specific criteria, such as "contains an unsupported claim".

Run it blind

Evaluators shouldn't know which model produced which output, and response order should be randomized. In Salyvian Studio, blind comparison is the default.

Write precise rubrics

Each score level needs a definition and worked examples. "Helpful: 4" is ambiguous; "addresses all parts of the request, with at most one minor omission" is not.

Match evaluators to the task

A generalist can judge tone; only an engineer can judge whether a code change introduces a race condition. Use domain experts where correctness requires expertise.

Measuring reliability

Human evaluation is only useful if it's reliable. Track:

  • Inter-annotator agreement — Cohen's kappa for two raters, Fleiss' kappa for more, Krippendorff's alpha for ordinal scales or missing data. Low agreement signals ambiguous guidelines or under-qualified evaluators.
  • Gold-standard accuracy — seed items with known answers to monitor individual evaluator quality.
  • Confidence intervals — a two-point win-rate difference on a small sample may not be meaningful. Report uncertainty and size samples accordingly.
  • Judge–human agreement — if you use LLM-as-a-judge, measure its agreement with expert labels per category.

Disagreement is information. Instead of averaging it away, route genuine disagreements to senior adjudicators and feed the resolution back into the guidelines.

A 6-step LLM evaluation process

  1. Define success. Translate product goals and risks into evaluation dimensions and thresholds.
  2. Build a private test set. Representative and adversarial prompts from your domain, kept out of training data.
  3. Create gold labels. Experts produce reference judgments on a subset.
  4. Automate what you can. Programmatic checks and validated LLM judges for high-volume regression testing.
  5. Run expert human evaluation on releases, hard cases and anything high-stakes.
  6. Close the loop. Turn failure analysis into new training data — preference pairs, SFT examples, red-team prompts.

Salyvian Evaluate supports every step, from custom benchmark creation to expert human evaluation and hallucination detection.

Evaluating agents and tool use

As models increasingly act — calling tools, browsing, writing and running code, completing multi-step workflows — evaluation has to move beyond single responses. Agentic evaluation adds several challenges:

  • Trajectories, not answers. Two agents may reach the same final state through very different paths: one efficient and safe, the other wasteful or risky. Evaluators need to review the full trace, including tool calls and intermediate reasoning.
  • Partial credit. Long tasks rarely succeed or fail cleanly. Rubrics should define milestones so you can see where agents get stuck.
  • Environment-based checks. Where possible, verify outcomes programmatically — did the tests pass, was the record updated, was the file created — and reserve human judgment for quality, safety and appropriateness.
  • Safety of actions. An agent that completes a task by taking an unsafe or irreversible action has failed, even if the outcome looks correct. Include explicit safety criteria, and use red teaming to probe them.

Reviewing agent trajectories is one of the most expertise-intensive forms of evaluation: judging whether a sequence of shell commands or code edits was sound requires experienced engineers. Plan for longer review times per item and smaller, more carefully chosen samples, and invest in tooling that makes traces easy to read.

Frequently asked questions

What is the best way to evaluate an LLM?

Combine automated checks and validated LLM judges for scale with expert human evaluation for validity, on a private test set that reflects your real use case.

Are public benchmarks enough?

They are useful for broad comparison but suffer from contamination, saturation and domain gap. Production decisions need custom evaluation.

How many human evaluations do I need?

Enough to detect the differences you care about with acceptable confidence. Smaller differences between models require larger samples; compute confidence intervals rather than relying on point estimates.

What is LLM-as-a-judge?

Using a language model to score or compare outputs against a rubric. It scales well but must be validated against expert human judgments and checked for biases such as position and length preference.

Start with a pilot

More data won't make your AI smarter. Better human feedback will.

Tell us about your model, your failure modes and your timeline. We'll scope a pilot with clear quality thresholds before any production work begins.

Technical consultation · Scoped pilot · Production delivery