Stanford CS336 Language Modeling from Scratch | Spring 2026 | Lecture 12: Evaluation

| Podcasts | May 19, 2026 | 3.49 Thousand views | 1:18:34

TL;DR

This lecture explores how to evaluate language models, examining different definitions of "good" from benchmark scores to economic usage, diving deep into perplexity as a foundational metric and its limitations, and tracing the evolution of exam-based benchmarks like MMLU from novel challenges to saturated metrics.

🏆 Defining "Good" in Language Models 3 insights

Benchmarks versus cost efficiency

While Artificial Analysis ranks models by intelligence index, cost matters—expensive models don't always justify their price premium when plotted against inference costs.

Human preference rankings

Arena AI (formerly Chatbot Arena) ranks models based on blind user preferences, capturing subjective quality that pure accuracy metrics fail to measure.

Economic usage signals

Open Router statistics reveal which models people actually pay to use, offering a market-driven lens of practical value beyond technical benchmarks.

📊 Perplexity and Distribution Matching 4 insights

Zero-shot evaluation paradigm

GPT-2 shifted from in-distribution testing to zero-shot evaluation on standard datasets, establishing the modern practice of measuring generalization rather than memorization.

The scaling hypothesis

The belief that "perplexity is all you need" drives scaling laws research, arguing that minimizing perplexity toward the true distribution's entropy inevitably unlocks AGI capabilities.

Conditional perplexity

Researchers can focus on specific tokens by measuring conditional perplexity given prompts, weighting important predictions like answers over incidental words like articles.

Leaderboard trust issues

Perplexity competitions require trusting submitted probabilities sum to one, unlike downstream tasks where black-box models can be evaluated objectively via outputs.

📝 Exam Benchmarks and MMLU 3 insights

Controlled academic testing

Exam-style benchmarks provide carefully controlled difficulty and unambiguous correct answers, making them ideal for automated grading of knowledge and reasoning.

MMLU's evolution

The Massive Multitask Language Understanding benchmark originally showed GPT-3 barely above random chance on 57 subjects using few-shot prompting, but has since saturated into the 90s.

Benchmark lifecycles

Successful benchmarks follow a predictable arc from novel challenges demonstrating emergent capabilities to trivial tasks that require creating harder successors.

Bottom Line

Evaluation metrics fundamentally shape AI development, so choosing between intrinsic measures like perplexity and extrinsic benchmarks like MMLU determines which capabilities researchers prioritize and optimize for.

More from Stanford Online

View all
Stanford MS&E435 Economics of the AI Supercycle | Spring 2026 | Building AI Factories
49:48
Stanford Online Stanford Online

Stanford MS&E435 Economics of the AI Supercycle | Spring 2026 | Building AI Factories

Crusoe Energy CEO Chase Lockmiller explains how AI data centers represent history's second-largest infrastructure investment, driven by the economic potential of scalable 'digital labor.' He reveals Crusoe's strategy of building massive AI factories in stranded-power locations like Abilene, Texas, to overcome the industry's critical bottleneck: energized data center capacity.

20 days ago · 9 points
Stanford CS153 Frontier Systems | Scale, AGI, and the Future of Everything
41:10
Stanford Online Stanford Online

Stanford CS153 Frontier Systems | Scale, AGI, and the Future of Everything

Sam Altman explains how AI has fundamentally altered startup economics, enabling small teams to achieve unprecedented scale, while sharing OpenAI's journey from research lab to product company and arguing that pushing systems beyond conventional scaling limits often reveals emergent properties that consensus thinking misses.

22 days ago · 10 points