---
title: "LLM as a judge pattern for AI agents | Agentic Pattern Language"
description: "One model call grades another model’s output against written criteria. Sourced from Zheng et al., Anthropic, and Spotify."
url: https://agenticpatternlanguage.com/patterns/llm-as-a-judge/
---

17 [One call](https://agenticpatternlanguage.com/#one-call)

# LLM as a judge

One model call grades another model’s output against written criteria.

Also called LLM-evaluator, Model grader, LLM-based grading

HH EY Zheng et al., Anthropic, Spotify, OpenAI, LangChain, Hamel Husain, Eugene Yan

[How to read this](https://agenticpatternlanguage.com/notation/)

## Part of

* [Evaluator and optimizer](https://agenticpatternlanguage.com/patterns/evaluator-optimizer/)
* [Multi-agent debate](https://agenticpatternlanguage.com/patterns/multi-agent-debate/)

## The problem

Human review is slow and costly, and free-form outputs have no single correct answer to check.

> While human evaluation is the gold standard for assessing human preferences, it is exceptionally slow and costly.

Zheng et al. [Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena](https://arxiv.org/abs/2306.05685)

> Research outputs are difficult to evaluate programmatically, since they are free-form text and rarely have a single correct answer.

Anthropic [How we built our multi-agent research system](https://www.anthropic.com/engineering/multi-agent-research-system) Jun 13, 2025

## Therefore

> Using a model grader means prompting a separate model to grade the outputs of the model you’re evaluating.

OpenAI [Graders](https://developers.openai.com/api/docs/guides/graders)

> LLM-as-judge evaluators use LLMs to score application outputs. The grading rules and criteria are typically encoded in the LLM prompt.

LangChain [Evaluation concepts](https://docs.langchain.com/langsmith/evaluation-concepts)

> LLM-as-a-judge is a scalable and explainable way to approximate human preferences, which are otherwise very expensive to obtain.

Zheng et al. [Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena](https://arxiv.org/abs/2306.05685)

## In use

Claude Research

> We experimented with multiple judges to evaluate each component, but found that a single LLM call with a single prompt outputting scores from 0.0-1.0 and a pass-fail grade was the most consistent and aligned with human judgements.

Anthropic [How we built our multi-agent research system](https://www.anthropic.com/engineering/multi-agent-research-system) Jun 13, 2025

Spotify’s Honk coding agent

> we added another layer of protection: an LLM as a judge.

Spotify [Background Coding Agents: Predictable Results Through Strong Feedback Loops (Honk, Part 3)](https://engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3) Dec 9, 2025

Hamel Husain

> I would go as far as saying that creating a LLM judge is a nice “hack” I use to trick people into carefully looking at their data!

HH Hamel Husain [Using LLM-as-a-Judge For Evaluation: A Complete Guide](https://hamel.dev/blog/posts/llm-judge/) Oct 29, 2024

## Where it breaks

Judges prefer certain positions, longer answers and their own outputs, and high agreement can hide missed errors.

> We examine several potential limitations of the LLM-as-a-judge approach including position bias, verbosity bias, self-enhancement bias, and limited reasoning ability.

Zheng et al. [Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena](https://arxiv.org/abs/2306.05685)

> if an error occurs in 5% of examples, a judge that always predicts Pass still has 95% agreement while detecting none of the errors.

HH Hamel Husain [Using LLM-as-a-Judge For Evaluation: A Complete Guide](https://hamel.dev/blog/posts/llm-judge/) Oct 29, 2024

> During pairwise comparisons, LLM-evaluators tend to prefer the response in one position over others.

EY Eugene Yan [Evaluating the Effectiveness of LLM-Evaluators (aka LLM-as-Judge)](https://eugeneyan.com/writing/llm-evaluators/)

## Sources

1. [Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena](https://arxiv.org/abs/2306.05685) Lianmin Zheng, Wei-Lin Chiang, Ying Sheng, Siyuan Zhuang, Zhanghao Wu, Yonghao Zhuang, Zi Lin, Zhuohan Li, Dacheng Li, Eric P. Xing, Hao Zhang, Joseph E. Gonzalez, Ion Stoica, Zheng et al.
2. [How we built our multi-agent research system](https://www.anthropic.com/engineering/multi-agent-research-system) Jeremy Hadfield, Barry Zhang, Kenneth Lien, Florian Scholz, Jeremy Fox, and Daniel Ford, Anthropic, Jun 13, 2025
3. [Background Coding Agents: Predictable Results Through Strong Feedback Loops (Honk, Part 3)](https://engineering.atspotify.com/2025/12/feedback-loops-background-coding-agents-part-3) Max Charas, Marc Bruggmann, Spotify, Dec 9, 2025
4. [Graders](https://developers.openai.com/api/docs/guides/graders) OpenAI
5. [Evaluation concepts](https://docs.langchain.com/langsmith/evaluation-concepts) LangChain
6. [Define success criteria and build evaluations](https://platform.claude.com/docs/en/test-and-evaluate/develop-tests) Anthropic
   > LLM-based grading: Fast and flexible, scalable and suitable for complex judgment.
7. [Using LLM-as-a-Judge For Evaluation: A Complete Guide](https://hamel.dev/blog/posts/llm-judge/) Hamel Husain, Oct 29, 2024
8. [Evaluating the Effectiveness of LLM-Evaluators (aka LLM-as-Judge)](https://eugeneyan.com/writing/llm-evaluators/) Eugene Yan
   > LLM-evaluators, also known as “LLM-as-a-Judge”, are large language models (LLMs) that evaluate the quality of another LLM’s response to an instruction or query.

Added Nov 14, 2026
