Definition · AI basics
Judge model
A judge model is a language model that grades the output of other models. It selects the better of two answers, or it gives one answer a score. Teams use them to test chat assistants and to train models from AI feedback. Judge models have biases. Attacker text in one answer can make some judges select it.
Last reviewed
Key points
- A judge model compares two answers, scores one answer, or grades an answer against a reference answer (Zheng et al., 2023).
- On MT-bench, GPT-4 as a judge agreed with human experts on 85% of non-tied votes. Humans agreed with each other on 81%.
- Judge models can prefer the first answer they see, longer answers, and possibly their own answers.
- Text in an answer can control the judge. JudgeDeceiver made a Mistral-7B judge select the answer of the attacker in 90.8% of tests on MT-bench.
- A judge model is a second model, not a proof. Use its result as one signal and test it against human grades.
How a judge model grades
A judge model is a language model with a grading prompt. Zheng and colleagues name three types:
| Type | Input | Output | Weak point |
|---|---|---|---|
| Pairwise compare | A question and two answers | A, B or tie | The number of pairs increases quickly with more models |
| Single answer grade | A question and one answer | A score | Small differences are not found. Scores move when the judge changes |
| Reference-guided grade | A question, an answer and a reference answer | A score or a selection | You must have a reference answer |
The judge can also write the cause for its grade. Zheng and colleagues give “scalability and explainability” as the two benefits.
Why judge models are a security problem
A judge model reads text that other persons write. Thus each answer is untrusted input to the judge.
- Prompt injection. JudgeDeceiver adds optimised text to one answer. A Mistral-7B judge then selected that answer in 90.8% of tests on MT-bench (Shi et al., 2024).
- One token. Zhao and colleagues (2025) found that “.” or “:” can get an incorrect positive grade. They name GPT-o1 and Claude-4 in the systems with this problem.
- Reward hacking. Zhao and colleagues use this term for the problem. A model in training can get high rewards from the judge with no real work.
Three biases of judge models
Zheng and colleagues measured the first two biases on MT-bench in 2023. The third is less sure.
| Bias | What the judge does | Result |
|---|---|---|
| Position | Prefers an answer because of its position | GPT-4 gave the same result after a swap in 65.0% of tests. Claude-v1 selected the first answer in 75.0%. |
| Verbosity | Prefers the longer answer | A padded list fooled Claude-v1 and GPT-3.5 on 91.3% of 23 answers. It fooled GPT-4 on 8.7%. |
| Self-preference | Prefers its own answers | Zheng and colleagues did not find proof. Panickssery and colleagues (2024) link it to how a model recognises its own text. |
Wang and colleagues (2023) found the same position effect. With ChatGPT as the judge, Vicuna-13B beat ChatGPT on 66 of 80 queries when the sequence changed.
Judges also make mistakes on math. An incorrect answer misled GPT-4 on a problem that GPT-4 can solve alone.
Where teams use judge models
- Tests of chat assistants. Human grades are “costly and laborious”. Word match scores such as BLEU do not work on open questions.
- Training from AI feedback. In Constitutional AI, a model selects the better of two samples. These selections train the reward signal, called RLAIF. See preference alignment.
- Search and agents. Shi and colleagues name LLM-powered search and tool selection as uses of a judge.
In practice
These steps come from the studies above. Each step has a cost.
- Swap the answers. Send the pair to the judge two times, in the two sequences. Count a win only when the two results agree. If not, count a tie.
- Give a reference answer. On 10 math questions, this decreased the failure rate from 70% to 15% (Zheng et al., 2023).
- Add examples to the prompt. Few-shot examples increased GPT-4 consistency from 65.0% to 77.5%. Calls cost 4 times more. Zheng and colleagues add that “high consistency may not imply high accuracy”.
- Test the judge against human grades. The 85% agreement is for one benchmark and one judge. It is not a result for your task.
- Keep answers untrusted. Do not let a judge result start a high risk step alone.
Open judge models are available. Prometheus, a 13B model, got a Pearson correlation of 0.897 with human graders on 45 custom rubrics. It had reference materials. GPT-4 got 0.882 (Kim et al., 2023).
Questions and answers
How precise is a judge model?
The precision changes with the judge, the task and the prompt. On MT-bench in 2023, GPT-4 agreed with human experts on 85% of non-tied votes. Humans agreed with each other on 81%. On 10 math questions, a reference answer cut the failure rate of the judge from 70% to 15%. The judge continued to fail on some questions.
Can an attacker control a judge model?
Yes, if the attacker can write one of the answers that the judge reads. JudgeDeceiver adds optimised text to one answer. A Mistral-7B judge then selected that answer in 90.8% of tests on MT-bench. Zhao and colleagues found that one token such as ":" can get an incorrect positive grade.
What is the difference between a judge model and a verifier?
A verifier checks an answer against a fixed test, such as a known result. A judge model gives an opinion, frequently on open questions with no fixed test. Zheng and colleagues gave the judge a reference answer for math questions, which makes it more like a verifier.
Sources
- Judging LLM-as-a-Judge with MT-Bench and Chatbot ArenaarXiv (Zheng et al.), 9 Jun 2023
- Large Language Models are not Fair EvaluatorsarXiv (Wang et al.), 29 May 2023
- LLM Evaluators Recognize and Favor Their Own GenerationsarXiv (Panickssery et al.), 15 Apr 2024
- Constitutional AI: Harmlessness from AI FeedbackarXiv (Bai et al., Anthropic), 15 Dec 2022
- Optimization-based Prompt Injection Attack to LLM-as-a-JudgearXiv (Shi et al.), 26 Mar 2024
- One Token to Fool LLM-as-a-JudgearXiv (Zhao et al.), 11 Jul 2025
- Prometheus: Inducing Fine-grained Evaluation Capability in Language ModelsarXiv (Kim et al.), 12 Oct 2023
Guides that use this term
Related topics
In the news
- ZoomInfo finds its AI judge was right only 65% of the time
- AI agents found 146 unknown flaws in Windows kernel files in a test
- Oxford study finds that lies work best on AI reviewers
- Audit finds 22.4% of 49 coding tasks accept an incorrect patch
- GPT-6.2 Astra gives answers with 40% less text and less uncertainty
- All 8 AI routers get a score less than GPT-6.1 Sol in a test
- 55.2% of correct AI diagnoses came after a dangerous step
- AutoPI finds more methods to break AI agents than other test tools
- ATI lifts attack containment for agents across companies to 84%
- A new checker cuts the score of one agent from 63.4% to 5.6%
- The top AI coding agent fully solves only 26.4% of tasks
- An incorrect message changes as many as 40% of correct AI verdicts
- AI finance assistants answer a different question with data numbers
- The top AI coding agent solves 38.9% of AI infrastructure tasks
- A hint moves AI novelty judges by more than 50 points
- A rerun of an AI judge changed the verdict on 21.2% of prompts
- Debate helps human judges but not weak AI model judges
- The best AI agent setup plans 78% of tasks offline and 40% online
- Arize shows how to test an AI agent with traces and judges
- Langfuse says AI agents can be incorrect while system metrics stay green
- Researchers decrease the cost of a check on AI answers
- Prompt-injection gates sent more than 91.8% of inputs to a reviewer