We Iterate on Models. We Can Iterate on Evals, Too: Building automated evals doesn’t need to be a huge investment. Start with a few quick-and-dirty examples and iterate!
Open the sourceAndrew Ng argues that GenAI teams delay automated evals too long because they see them as a large up-front investment. He teaches that evals can be built iteratively, starting quick-and-dirty with a few examples and partial metrics, then improved over time to match human judgment, using an error-analysis mindset applied to the evals themselves.
- Many GenAI teams rely on manual human review longer than they should because building evals seems like a massive up-front cost. - He encourages starting with a small eval set, such as 5 examples, and adding or removing examples over time. - Early evals may measure only a subset of performance dimensions or narrow cues, as long as they correlate with overall performance. - Development runs two parallel loops: improving the system and improving the evals to better match human judgment. - A good eval ranks systems the way a skilled human judge would, scoring a better system significantly higher and similar systems similarly. - When an eval misranks two systems, that is an eval 'error' to fix, similar to error analysis in machine learning.
Based on Andrew Ng's public content. Not affiliated with or endorsed by Andrew Ng.
Supports these rules
Quotes from this video
“It’s okay to start with a quick-and-dirty implementation (say, 5 examples with unoptimized metrics) and then iterate and improve over time.”
“I encourage teams to think of building evals as an iterative process.”
“So long as the output of the evals correlates with overall performance, it’s fine to measure only a subset of things you care about when starting.”
“They can be a complement to, rather than replacement for, manual evaluations.”
“This allows you to gradually shift the burden of evaluations away from humans and toward automated evals.”
“If A works significantly better than B according to a skilled human judge, the eval should give A a significantly higher score than”
“If A and B have similar performance, their eval scores should be similar.”
“Whenever a pair of systems A and B contradicts these criteria, that is a sign the eval is in “error” and we should tweak it to make it rank A and B correctly.”
“or subtract them if you find that some examples are too easy or too hard, and not useful for distinguishing between the performance of different versions of your system.”