What is LLM-as-a-judge?
LLM-as-a-judge is the use of a language model as an evaluator to score or compare another model's answers against predefined criteria such as accuracy, faithfulness or tone.
It differs from human evaluation in scale: human experts score a few answers in depth, while a judge model can score many quickly. Its score is not proof of correctness on its own; judge models have biases and need calibrating against human evaluation.
- Topic
- Evaluation and quality
- Also known as
- LLM judge, LLM evaluator
- Origin
- 2023, Zheng et al.
How LLM-as-a-judge works
- The question, the answer to assess, any source context and explicit scoring criteria (a rubric) go to the judge model as a prompt.
- The judge scores one answer or compares two against the criteria and writes its reasoning.
- Against position bias, comparisons are repeated with the answers swapped.
- A sample of results is compared with human evaluation to measure agreement.
In more detail
Evaluation modes and reasoning-first or probability-based scoring
LLM judges are typically deployed in three modes: pointwise scoring (rating one output against a 1 to 5 or pass or fail rubric), pairwise comparison (choosing the better of two outputs) and reference-guided grading. Requiring the judge to generate chain-of-thought reasoning before outputting the final score (or computing expected scores via log-probabilities as in G-Eval) can improve rubric adherence.
Human calibration metrics and statistical bias correction
Human calibration should be quantified using inter-annotator agreement metrics such as Cohen's kappa, Krippendorff's alpha or Spearman rank correlation rather than raw percentage agreement alone. When judge bias cannot be fully removed, statistical debiasing methods adjust estimated win rates using the judge's measured false-positive and false-negative rates on a human-labelled calibration set.
Further bias types, prompt injection against judges and small judge models
Beyond position, verbosity and self-enhancement biases, judges are vulnerable to authority or citation bias (trusting outputs with fabricated citations), format bias (preferring bulleted Markdown) and adversarial prompt injection embedded inside the evaluated answer to manipulate the score. Organisations increasingly train dedicated lightweight on-premise judges (such as Prometheus-style models or reasoning-distilled evaluators) to reduce both GPU cost and self-bias.
Commonly confused terms
| Term | How it differs |
|---|---|
| Reference-based metrics | Reference-based metrics (BLEU, ROUGE, BERTScore) compare generated text against fixed reference answers using n-gram or embedding similarity, whereas LLM-as-a-judge evaluates open-ended reasoning, adherence to complex rubrics and faithfulness without necessarily needing a gold reference. |
| Reward model | Reward models in RLHF are specialised regression or classification heads trained to output a scalar preference score for alignment training, whereas LLM-as-a-judge prompts or fine-tunes a generative LLM to produce rubric-based verdicts with natural-language explanations. |
| Runtime guardrails | Guardrail classifiers check inputs and outputs in real time on every production request to block unsafe content or policy violations, whereas LLM-as-a-judge typically runs offline in CI/CD or asynchronously on production samples for quality measurement. |
Why LLM-as-a-judge matters for on-premises AI
Reading hundreds of answers by hand after every model, prompt or retrieval change is impossible, so it makes continuous evaluation practical. Known biases include position bias, favouring longer answers and favouring answers resembling its own output. So criteria are written explicitly, order is swapped and human sampling continues. When the judge model also runs in-house, evaluated documents and answers stay inside.
Before releasing a new version of its policy assistant, an insurer compares old and new versions on the same question set with an in-house judge model; experts also read edge cases.
Common questions
Can LLM-as-a-judge fully replace human evaluation?
No. It gives fast, scalable first-pass evaluation but has biases. Human sampling and expert review should continue.
How are judge model biases reduced?
Criteria are explicit and detailed, order is swapped in comparisons, a judge different from the evaluated model is used where possible and results are calibrated against human scores.
Related terms
- Human evaluation
- Model evaluation
- Faithfulness
- Evaluation dataset
- Answer relevance
- RAG evaluation metrics
Sources
- Zheng et al., Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena, NeurIPS 2023
- Liu et al., G-Eval: NLG Evaluation using GPT-4 with Better Human Alignment, 2023
In the glossary: Glossary, E to L