Evaluation Methodology
Evaluation Methodology
Failures We Have Already Seen
Airline Chatbot Misled a Passenger
The Biggest Hurdle
As teams rush to adopt AI, many quickly realize that the biggest hurdle to bringing AI applications to reality is evaluation. For some applications, figuring out evaluation can take up the majority of the development effort.
Two Chapters on Evaluation
Due to the importance and complexity of evaluation, this book has two chapters on it.
This Chapter — Methods
Next Chapter — Application
Evaluation in the Context of a Whole System
While I discuss evaluation in its own chapters, evaluation has to be considered in the context of a whole system, not in isolation.
Evaluation aims to mitigate risks and uncover opportunities.
Mitigate Risks
Uncover Opportunities
Why People Skip Systematic Evaluation
Before diving into evaluation methods, it's important to acknowledge the challenges of evaluating foundation models. Because evaluation is difficult, many people settle for word of mouth (e.g., someone says that the model X is good) or eyeballing the results.
Word of Mouth
Eyeballing the Results
Language Modeling Metrics
Since many foundation models have a language model component, this chapter will provide a quick overview of the metrics used to evaluate language models, including cross entropy and perplexity.
Cross Entropy
Perplexity
Open-Ended Models Need Different Practices
Evaluating foundation models is especially challenging because they are open-ended, and I'll cover best practices for how to tackle these.
Human Evaluators
Automatic Evaluation
AI as a Judge
The rising star of subjective evaluation is AI as a judge — the approach of using AI to evaluate AI responses.
Rapid Traction
Intense Opposition
What This Chapter Covers
Challenges of Evaluating Foundation Models
Why evaluating foundation models is hard, including the limits of word of mouth and vibe checks, and best practices for open-ended models.
Understanding Language Modeling Metrics
A quick overview of cross entropy and perplexity — metrics essential for training, finetuning, and many evaluation methods.
Exact Evaluation
One half of automatic evaluation: exact methods, alongside subjective evaluation.
AI as a Judge
The rising star of subjective evaluation — using AI to evaluate AI responses, including why it is taking off and why it is contested.
Ranking Models with Comparative Evaluation
Ranking models with comparative evaluation.
Summary
A recap of how training data, modeling choices, post-training, and sampling shape foundation model behavior.
Challenges of Evaluating Foundation Models
Why evaluating foundation models is harder than traditional ML — intelligence, open-ended outputs, black boxes, saturating benchmarks, and expanding scope.