How we teach LLMs to judge each other and how it helped us improve Cotype

1 Apr 2025

Problem

MWS AI trains Cotype, a Russian-language business LLM, and must compare every release with the previous one and with competitors. Reference answers do not fit a chat model, and expert rating is slow. An LLM judge is cheaper but can disagree with experts or favor whichever answer comes first. The team needed a judge whose agreement with experts is measured, not assumed.

Example from the article: a fine-tuned Qwen2.5-32B-Instruct (the candidate) is compared with GPT-4o (the baseline) on 2,396 Russian instructions, and each LLM judge is scored against expert verdicts.

Solution in brief

Compare answers pair by pair with four verdicts (A candidate better, B baseline better, C both good, D both bad). Judge each pair twice, in forward and reverse answer order. Score each candidate judge by its correlation with expert verdicts and by its consistency across the two orders. Tune the prompt and pick the judge with the best quality per cost.

Questions this case answers
  • How to replace repeated expert rating of pairwise model comparisons with an LLM judge while measuring its agreement with the experts
  • How to reduce the order effect in a pairwise LLM judge without extra human labeling
  • How to calibrate an LLM judge against human expert verdicts when comparing two models side by side?
  • How to reduce position bias of an LLM judge that compares two answers?

Tools and methods

  • Side-by-side evaluation — an independent judge sees two anonymized answers and picks one of four verdicts
  • LLM-as-a-judge — Claude, DeepSeek-R1-distill-Llama-70b, Llama 3.3 70B, GPT-4o and others tested as judges
  • Prompt engineering — short, detailed, reasoning and fact-based prompt variants
  • Multi-agent debate — soft and hard two-agent schemes before the final verdict
  • Hugging Face — leaderboard and code to reproduce the evaluation
Continue reading — it's free

Google or a one-time email code. No password.