Skip to content
Stanford CME295 Transformers & LLMs | Autumn 2025 | Lecture 8 - LLM Evaluation
This video isn’t embeddableWatch on YouTube →
Stanford OnlineStanford Online

Stanford CME295 Transformers & LLMs | Autumn 2025 | Lecture 8 - LLM Evaluation

November 21, 2025

Dec 2, 20251h 49mWatch on YouTube

Summaries, chapters, transcripts, and FAQs on this page are made by uListen, not YouTube.

At a glance

WHAT IT’S REALLY ABOUT

Practical methods to evaluate LLM outputs, judges, agents, and benchmarks

  1. The lecture defines LLM evaluation broadly but focuses on quantifying output quality for free-form model responses across many formats.
  2. Human rating is presented as the ideal evaluator yet limited by subjectivity, inter-rater inconsistency, cost, and speed; agreement metrics help monitor rater consistency.
  3. Reference-based rule metrics such as METEOR, BLEU, and ROUGE are introduced as reusable comparisons to fixed references, but they struggle with paraphrase variation and imperfect correlation with human judgments.
  4. LLM-as-a-judge is presented as a practical alternative that can score and explain outputs using criteria, but it requires careful prompting, structured outputs, and bias mitigation.
  5. The lecture extends evaluation to factuality via claim extraction and verification, and to agents and model comparison via diagnosing tool-use failure modes and using standardized benchmarks (knowledge, reasoning, coding, safety, agents) while accounting for contamination and Goodhart’s law.

IDEAS WORTH REMEMBERING

5 ideas

Evaluation is broader than output quality, but this lecture centers on measuring response quality.

The lecturer notes that “evaluation” can include output quality (coherence, factuality), but also system metrics like latency, uptime, and pricing; this lecture primarily targets output quality and how to quantify it across diverse free-form outputs (natural language, code, math).

Human evaluation is valuable but slow, expensive, and subject to rater disagreement—so agreement should be measured and managed.

Human ratings are considered an ideal but costly baseline, and they can be inconsistent when criteria are subjective; the lecture introduces inter-rater agreement tracking (beyond raw agreement rate) and mentions alignment sessions to improve consistency.

Rule-based reference metrics enable iteration against fixed targets but often miss “equally good” alternate phrasings.

The lecture describes reference-based metrics (METEOR, BLEU, ROUGE) that compare model outputs to fixed references, explaining that they can be brittle to paraphrase/stylistic variation and may correlate imperfectly with human judgments.

LLM-as-a-judge trades reference texts for criteria-driven scoring with interpretable rationales, and structured outputs make it operational.

The “LLM-as-a-judge” setup uses another LLM to score responses given the original prompt and explicit criteria, and it can also produce a rationale; the lecture emphasizes that structured output / constraint-guided decoding can make the judge’s output reliably parseable.

LLM judging can be systematically biased, so you must design prompts and procedures to detect and reduce bias.

The lecture highlights common biases in LLM judging: position bias (preferring the first option), verbosity bias (preferring longer answers), and self-enhancement bias (favoring outputs from the same model), plus mitigations like swapping order with majority vote, guideline emphasis, examples, length penalties, and using a different (often larger) judge model.

WORDS WORTH SAVING

5 quotes

I think this class is probably one of the most important classes of this, uh, quarter because the idea is if we don't know how to measure the performance of our LLM, we don't really know what to improve.

— Unattributed

What that means is if we're just letting our raters rate these things in a random way with some probability, you know, P of a, P of b, we would already have an agreement rate of fifty percent just by pure random chance.

— Unattributed

The answer is no. You're not guaranteed to have, um, a rationale and a score that you can parse because this model has some probabilistic nature to it with the sampling process, and it's not something that you can really control.

— Unattributed

The general guideline here is to typically not use the same model that you use for generation and for judges.

— Unattributed

One thing about these benchmarks is that they are as good as the assumption of whether you have seen the actual benchmark results or not.

— Unattributed

Read the available transcript
Definition and scope of evaluationHuman ratings and inter-rater agreementCohen’s kappa and related agreement metricsReference-based metrics: METEOR, BLEU, ROUGELLM-as-a-judge setup and promptingStructured outputs / constraint-guided decodingJudge biases: position, verbosity, self-enhancement; mitigations and best practices (binary scales, low temperature, calibration)

High quality AI-generated summary created from speaker-labeled transcript.

Get more out of YouTube videos.

Read along on your phone, search it beside the video, or ask your favorite AI app what was said.