WhoBuilt

Judge the Judge: Building LLM Evaluators That Actually Work with GEPA

Apr 10, 2026· 41 min· 8.7K views·Watch on YouTube

Speaker

Mahmoud Mabrouk, co-founder and CEO of Agenta AI, explains how to build and calibrate LLM judges using GEPA, in a practical customer support example presented on the AI Engineer channel.

Why calibrate LLM judges

Mabrouk argues that a generic hallucination judge can produce a fast but useless evaluation signal if it does not match human judgment. Calibrated judges can speed up both offline testing and production monitoring, helping teams catch changes in data and user behavior.

Design metrics and annotate examples

Using the airline customer support agent from τ-bench, Mabrouk focuses on policy adherence and four error types: policy, response style, information delivery, and tool use. He recommends separate binary evaluators for specific metrics, with human annotations that explain why a trace passed or failed. He says the dataset has 599 traces and notes that its quality and distribution are imperfect.

Optimize the judge with GEPA

GEPA starts with a seed prompt, generates candidates through mutation or merging, evaluates them on data batches, and keeps a diverse set using a Pareto frontier. Mabrouk uses the Optimize Anything API with an evaluator that supplies trajectories, annotations, verdicts, and reasoning to guide prompt refinement. He says the run took about an hour.

Results and practical lessons

The initial judge assumed the agent was compliant unless there was specific evidence otherwise; on validation data, it reached 61% accuracy and marked 98% of cases compliant. Mabrouk reports that optimization improved validation accuracy from 69% to 74%, while the Pareto frontier reached 100% per task, showing that merging strong candidates into one prompt remained difficult. He stresses that the result was still far from 95% accuracy, and says experiments cost around $200 to $300 in tokens.

Debug with small iterations

Mabrouk recommends inspecting judge reasoning and generated candidates before scaling experiments, then adjusting the reflection prompt, seed prompt, and parameters such as batch size. In this example, smaller models often struggled, while Gemini worked well for reflection and Grok for judging. He also found that a seed without the agent policy did better than one that included it, and suggests checking whether optimization cost pays off in later evaluation.

Takeaways

  • Define evaluator metrics with subject matter experts and tie them to the business use case.
  • Use focused binary judges for distinct failure types instead of one broad score.
  • Include human explanations with labels so prompt optimization has clues about why a judgment is wrong.
  • Inspect candidates and reasoning in small runs before increasing GEPA’s sampling or compute budget.
  • Track validation performance and token costs; a strong Pareto frontier does not guarantee one prompt handles every case.

Mentioned in this talk

Search inside this talk

What was claimed 8

  • founded
    “I'm the co-founder and CEO of Agenta.”
    YouTube
    Verified4 sources· Talk, Web· archived
  • built
    “τ-bench, a benchmark and large dataset built by Sierra”
    YouTube
    Verified4 sources· Talk, Job posting· archived
  • uses
    “We're going to use GEPA, a good algorithm for optimizing prompts.”
    YouTube
    Unverified1 source· Talk
  • feature
    Agenta: Open-source LLMOps platform providing observability, prompt management, and evaluation tools
    “Agenta is an open-source LLMOps platform, providing tools for observability, prompt management, and evaluation”
    YouTube
    Unverified1 source· Talk
  • ceo of
    CEO
    “I'm the co-founder and CEO of Agenta.”
    YouTube
    Unverified1 source· Talk
  • feature
    GEPA: Optimizes prompts through candidate sampling, evaluation, and filtering using mutation, merging, and a Pareto frontier
    “There are three steps: sample new candidates, evaluate them ... then filter them using this kind of Pareto frontier.”
    YouTube
    Unverified1 source· Talk
  • metric
    LLM-as-a-judge: Validation accuracy improved from 69% to 74%
    “accuracy increased from 69% to 74%.”
    YouTube
    Unverified1 source· Talk
  • metric
    LLM-as-a-judge: Validation accuracy remained below 95%
    “it's still quite far from 95% accuracy”
    YouTube
    Unverified1 source· Talk

Related talks