Confirmed · 1 videos

Use evaluations and targeted error analysis

Drive improvement through a disciplined process of evals and error analysis: start quick and dirty, trace each step, and fix the measured weaknesses, including in the data.

He names this discipline as the biggest predictor of whether a team builds AI systems well. The same approach runs from his data-centric AI work on label consistency and targeted data collection to trace-based analysis of agentic workflows.

Based on Andrew Ng's public content. Not affiliated with or endorsed by Andrew Ng.

What following it looks like

  • Builds a small eval in about 20 minutes and iterates on it
  • Reads traces step by step against human-level performance
  • Counts which component causes errors before choosing what to fix
  • Makes labels consistent and collects data for the categories where the model fails

Evidence · 12 quotes from 1 video

Each quote was matched word for word against the transcript. Tap the time to hear it.

“finding the right data to flow back is, I think, critical to monitor and flow the right data back is critical for monitoring and maintaining your system when it is in production.”

36:34degradation, and then find the right types of data to flow back to the earliest stages of the
36:41machine learning project life cycle to regularly retrain and update the model, right? So it's
36:46engaging continuous learning. And so once again, finding the right data to flow back is, I think,
36:54critical to monitor and flow the right data back is critical for monitoring and maintaining your
36:59system when it is in production. Now, you've heard me mention many times how to make this

“get more of the data you need, which is more data with speech with car noise, rather than just more speech data in general,”

35:25not helpful or it's not nearly as efficient to just say, let's collect a lot more speech data.
35:30So having the tools and processes to do the error analysis so that you can then much more targeted
35:36and efficient way, get more of the data you need, which is more data with speech with car noise,
35:41rather than just more speech data in general, that turns out to be really important for being
35:47efficient in how we improve the performance of our systems. All right, let me move on to

“And doing that, I found is critical to have processes and tools to make sure you have a clean and consistent data set.”

26:22I can get a learning algorithm to work with like 40 images or 100 images,
26:26or just a very small data sets.
26:29And doing that, I found is critical to have processes and tools
26:34to make sure you have a clean and consistent data set.
26:38Let me share with you what the theory says.

“I think MLOps most important task, make high quality data available through all stages of machine learning project lifecycle.”

46:00ideas and shaping them for over a year with some of my collaborators. But if you think these ideas
46:05are useful, please help me spread the word and help ship people to a data centric AI. But takeaways,
46:11I think MLOps most important task, make high quality data available through all stages of
46:15machine learning project lifecycle. If we just do this, you know, there's a lot of great models,
46:20there's a lot of great models, open source models, you can download off GitHub, right,

“the most important task of ML Ops is to ensure consistently high quality data throughout the entire lifecycle of machine learning project.”

59:18leader in ML Ops early? I think it's very early. You know, the sector I'm excited about,
59:23but I think there are lots of teams trying to figure this out. But if you can have a few,
59:27take a data-centric approach to ML Ops. And just remember, I think the most important task of ML
59:32Ops is to ensure consistently high quality data throughout the entire lifecycle of machine
59:36learning project. If we can build tools to make that happen in different domains, it'll be different

“one of the most important questions you have to ask is, is the data labeled consistently?”

11:21So decide to do that.
11:23Next step is to collect data.
11:26So in what I'm calling a data centric approach to AI, one of the most important questions
11:33you have to ask is, is the data labeled consistently?
11:35So if it's not just do you have enough data, but also is the data high quality?

“what I'm finding is that for a lot of problems, it'd be useful to shift our mindset toward not just improving the code, but in a more systematic way, improving the data to then help us get the performance you want your learning algorithm to have.”

1:43has been driven by teams downloading and trying to do better on standard benchmark datasets.
1:48And so we spend a lot of time improving the code or the model or the algorithms.
1:52And what I'm finding is that for a lot of problems, it'd be useful to shift our mindset
1:57toward not just improving the code, but in a more systematic way, improving the data
2:03to then help us get the performance you want your learning algorithm to have.

“And then for classes or the categories of data where the labelers disagree, revise the labeling instruction until they become consistent.”

15:45tools and metrics to focus your attention on the right parts of the inconsistency turns
15:50out to accelerate machine learning development.
15:53And then for classes or the categories of data where the labelers disagree, revise the
15:57labeling instruction until they become consistent.
16:01There is a nascent field called MLOps, machine learning operations, that is trying to make

“when you deploy in production, well, when you deploy in production, you should celebrate that, congratulations. And you may be halfway done with your machine learning project.”

35:54deploy to production deployment. So when, you know, today there are some teams that think that
36:02when you finally deploy a project in production that you're at the finish line. And I actually
36:07tell teams, no, sadly, when you deploy in production, well, when you deploy in production,
36:12you should celebrate that, congratulations. And you may be halfway done with your machine learning
36:18project. Because when you deploy a system in production, you know, the world will change,

“So it's engaging continuous learning.”

36:29build tools to systematically check for concept drift or data drift that can result in performance
36:34degradation, and then find the right types of data to flow back to the earliest stages of the
36:41machine learning project life cycle to regularly retrain and update the model, right? So it's
36:46engaging continuous learning. And so once again, finding the right data to flow back is, I think,
36:54critical to monitor and flow the right data back is critical for monitoring and maintaining your

“So you either get more of that data by data augmentation, data generation, data collection, collect more data, or give a more consistent definition for the labels if they were found to be ambiguous.”

34:44the algorithm does poorly on, such as speech with car noise. And then we would, you know,
34:49brainstorm or sometimes even more systematic ways will then ask what type of additional data do you
34:55need to improve the performance on that category of data? So you either get more of that data
35:01by data augmentation, data generation, data collection, collect more data, or give a more
35:06consistent definition for the labels if they were found to be ambiguous. And it turns out that

“train a model and then do error analysis to identify the types of data the algorithm does poorly on, such as speech with car noise.”

34:25just, you know, an individual engineer hacking around that spots the problem of car noise and
34:29decides to go and collect more data with car noise. So to make it systematic, this is what I tend to
34:36do today, which is train a model and then do error analysis to identify the types of data
34:44the algorithm does poorly on, such as speech with car noise. And then we would, you know,
34:49brainstorm or sometimes even more systematic ways will then ask what type of additional data do you

Linked topics