Stanford CS336 Language Modeling from Scratch | Spring 2026 | Lecture 12: Evaluation
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 | Applications, Coding AI
Vercel founder Guillermo Rauch explains how AI coding agents have expanded the software development market by 10-100x, driving a fundamental shift from traditional web services to 'agentic infrastructure' where tokens replace pixels as the primary commodity and deployment becomes the critical value creator.
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.
AI in Healthcare Series: Inside the Rise of AI in Healthcare, Open Evidence and Cyber Risks
Former U.S. Chief Data Scientist DJ Patil warns that healthcare systems are dangerously unprepared for AI-enabled cyberattacks from nation states, while simultaneously seeing rapid democratization of medical knowledge through tools like Open Evidence that are fundamentally reshaping the doctor-patient relationship.
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.