Latest / Agentic Conversations (formally mlops.community) / Cleanlab: Labeled Datasets that Correct Themselves Automatically // Curtis Northcutt // MLOps Coffee Sessions #105
Transcript
- 0:00My style is whatever coffee is available.
- 0:02If I'm tired and I need to be awake.
- 0:06Thank you so much for joining us.
- 0:08This is an episode. We've been doing waiting to do
- 0:10for a while and we're very excited to have you.
- 0:13Join us on the MLS podcast? Thanks.
- 0:16Yeah, glad to be here. You know, I think the first
- 0:19place I want to start and Demetrios.
- 0:21I want to get you going on this too because I know you have a
- 0:24lot of thoughts on data-centric. AI is, you know, I know you
- 0:29gotta A lot of thoughts. My first question is, what is
- 0:33the difference between ml Ops and data-centric a, I like just
- 0:37starting right there like what is the difference between those
- 0:40two terms just so we can start this conversation from a clear
- 0:43Point? Yeah well I think the terms are
- 0:45still being, you know made up but I'll give you my take and
- 0:49and based a lot on where we are today clean them.
- 0:52So I think of ml Ops is is what you expect anything that's in ml
- 0:56operations and that can involve the model, right?
- 0:58Because in ml Have both the model and the data.
- 1:01So I think of ml Ops is a superset.
- 1:04Also, data-centric is kind of a different thing.
- 1:06Mmm, Ops is more of like an industry standard type term.
- 1:09There's some papers and Academia now that'll reference ml Ops and
- 1:12I think there was just a paper that came out that was like
- 1:14here's you know, the landscape of ml ups but that's kind of new
- 1:18and the the academic realm. Most of data Centric, AI is
- 1:22going to be more on that academic realm and Industry.
- 1:24And I think that's because folks, like, Andrew being are
- 1:26pushing it and they're both in Academia and industry.
- 1:29But, Animal opposites, like more industry pushing it.
- 1:32So you're going to get different flavors there.
- 1:35Another big thing in danger, Datacenter Ki, that's yet to be
- 1:38done, but speaking more to the Future, because I think the
- 1:40future will determine how these two terms separate themselves
- 1:43out, isn't data-centric AI. There's a lot of work yet to be
- 1:46done to show. Theoretically, why is using data
- 1:49in some circumstances and focusing on improving data,
- 1:52actually? A more effective solution for
- 1:54approaching some machine learning problems.
- 1:56And I'm happy to chat more about that.
- 1:58But one example, that may surprise People is that you can
- 2:00actually show for doing machine learning with noisy data and
- 2:04noisy labels. You can actually show that
- 2:06several methods that work by altering the data but not the
- 2:10model actually outperformed methods where you alter the
- 2:13model and happy to chat more about that.
- 2:15But there's a bunch of I would think of just data Centric, AI
- 2:18is more of, how do you fix up the data in order to improve the
- 2:20AI Pipeline and then m/l offices?
- 2:22You can do anything. You can change the model.
- 2:24You can have better infrastructure better,
- 2:26paralyzation, Etc. That's definitely the clearest
- 2:29answer I've gotten to date. What do you think Demetrius?
- 2:32How am I supposed to follow that one?
- 2:34That was so good. I was just going to talk some
- 2:36shit on people saying like, oh well data Centric AI.
- 2:40It's the new marketing buzz word that you hear all about because
- 2:43people want to talk about how it falls in line with this idea of
- 2:49data scientist spend too much time, cleaning their data, they
- 2:52need to look at the data more. We need to focus on our data
- 2:54more and it for me data-centric a Just one of those things that
- 2:59is more of a buzzword, but when I hear Curtis say that I I'm
- 3:06like, yeah I go along with data-centric a I know.
- 3:10All right. Yeah, I can get down with that.
- 3:12It sounds really good when you put it like that.
- 3:16What what I like about what you just said there Curtis is I
- 3:21think it's this idea of data Centric.
- 3:23AI is really really pleasure as your words is about How data
- 3:28solves machine, learning problems, right.
- 3:31Not just thinking of it as like an incidental, sort of component
- 3:35of a machine-learning pipeline which is been the way that I
- 3:38think a lot of work maybe from like 2015 2020 really thought
- 3:41about data. But now thinking about it as
- 3:43like very much a starting point for the solution and you know
- 3:47that has coincided with, you know, in the ml Ops World, a lot
- 3:52of attention to data pipelining how to setup data pipelines, and
- 3:57how to set them. Up in a way that, you know, kind
- 4:01of respects the quality of data and focuses on that.
- 4:04And so, starting with that point, what I'd like to ask is,
- 4:09how did you realize this problem of data, quality in machine
- 4:13learning manifesting, what was your personal experience or your
- 4:16War story that made you want to get into this realm around data
- 4:20quality? Yeah.
- 4:22For sure. A quick tidbit on your first,
- 4:25your first comment and just one way for folks who are new to
- 4:28data-centric AI to think about the field and how to think about
- 4:31what it would like, how do I get started?
- 4:33Like, what is data-centric AI, what are we even talking about?
- 4:36Just to get started you can just think about something really
- 4:38simple like a mirror its neighbors.
- 4:40So if you're from the ml space, if you've ever done k-nearest
- 4:43neighbors that's really just data-centric AI.
- 4:45I mean there's no there's no actual like big model, right?
- 4:48And you have to store some representation of distances
- 4:50between to make things more. But you could also not you can
- 4:53literally just have a data set and and that's all you've got.
- 4:56And then you have some new point and you're just like, what's the
- 4:58data near me? What's the label of that predict
- 5:00that? And that's like a very
- 5:01data-centric approach. So just to sort of help ground,
- 5:06you know, how you can think about how the two are similar
- 5:08and different with that, in mind.
- 5:11One thing to like jump in real, fast is with data-centric a i
- 5:16for some reason in my head it was always associated with like
- 5:21her vision problems. Am I the only one who thinks
- 5:24that or is that something that is precedent?
- 5:29Like is it not more a computer vision thing or does
- 5:33data-centric a I cover all of it?
- 5:35Because I guess it does and especially the way that you're
- 5:38explaining it, it totally does. Yeah, covers all of data.
- 5:43If it's data, it's it can fit in data-centric Ai and a one-way
- 5:48Under the Umbrella of the day. Yeah.
- 5:52Okay, okay, let me don't let me derail you from business.
- 5:55Great question, with my ridiculous ones.
- 5:58Go ahead. Yeah, I'll say one thing and
- 6:01then maybe just a reminder of the question both for myself and
- 6:04for the audience, but the sort of one final important way to
- 6:07think, I think, at least for me what helps me is there is no
- 6:10learning. Without some way to learn and
- 6:13something to learn. So there is no machine Learning
- 6:17Without both a model and data, there is no human Learning
- 6:20Without, You know, a brain and some information to learn from.
- 6:24So all learning exists in the contest, context of both, a
- 6:27learning model and also data. And so you know that the the
- 6:30both fields are going to be highly important to the field of
- 6:33machine learning. I think we just got our quote
- 6:36Demetrios. There's a the quote for this
- 6:39episode of you already coming in hot Curtis, there is no way to
- 6:42learn without something to learn and some way to learn.
- 6:46And I think that's a great summary of what we do in machine
- 6:50learning overall, is really think about those two pieces to
- 6:54go back to my question, it was really about what experience or
- 6:59War Story. Got you into this field of data
- 7:03quality testing, Eccentric. AI was it that made?
- 7:07You want to focus more on that? Yeah, you bet.
- 7:12So from the beginning so that this immediate team short answer
- 7:16is I built the cheating detection system for MIT and
- 7:20Harvard in particular for their online courses.
- 7:23You can look it up, it's called The Cameo see améo Cameo
- 7:27cheating detection system and we observe something and then what
- 7:31we observed was that people on edx courses were creating
- 7:34multiple People accounts. And on one account, they were
- 7:38just clicking show answer. And then on another account,
- 7:41they were clicking, you know, submit answer and they were
- 7:44doing it on these two accounts with the same IP address within,
- 7:47like 3, S 3 minutes of each other sometimes, within three
- 7:50seconds of each other, and they were doing it over and over and
- 7:53over and earning certificates. And so, when I first started at
- 7:57MIT, I'll rewind, how did we get there?
- 7:59So why was I building that? Why, is that okay?
- 8:02You know, who cares? So, I'm from Earl Kentucky.
- 8:05I grew up in Kentucky. My dad was a mailman.
- 8:08His dad was a mailman, his dad was a mailman.
- 8:12So if I had been, you know, a mailman, I would be a fourth
- 8:15generation mailman. My mom is, she works in a call
- 8:18center and don't imagine like a big farm.
- 8:21Imagine you know what, you got, what you might expect from rural
- 8:24Kentucky, like, you know, small Stone House at its problems and
- 8:28all that. And so this is sort of how I
- 8:30grew up and there wasn't a lot of opportunity.
- 8:32But one way that I created a lot of opportunity and the US was we
- 8:37have the best educational system at least how should, I know, I
- 8:40didn't grow up anywhere else, right, but I thought it was
- 8:42awesome because I have a really nice life today and I didn't
- 8:44when I was growing up and the way I did that was just to do
- 8:47well in school. So just imagine that motivation,
- 8:49that's where I'm coming from. Okay.
- 8:51And now I, finally get to MIT and it's been, you know, this
- 8:54big exciting Journey getting there and every day was better
- 8:57than the day before and there's always more opportunity as more
- 8:59getting more and more exciting. And finally I know what I'm
- 9:01going to do for my PhD I'm going to use machine learning and AI
- 9:04to help people. And education and most
- 9:06importantly to democratize education to make it available
- 9:09to everyone in the world by being the first researcher at
- 9:12edx. And that's what I was.
- 9:14I was at MIT and I was working with Isaac, shuang and Sanjay
- 9:17Sarma. He's the vice-president of open
- 9:19learning MIT and Isaac strong, was the senior associate
- 9:22director of of edx and open learning.
- 9:25And so I'm working with these guys, and how do we make
- 9:27certificates? How do we first?
- 9:29Get them to be accepted by the world.
- 9:31So everybody in the world, can, you know, get an education from
- 9:34MIT or Harvard? Word even if you're from you
- 9:36know some small place in Africa if as long as you have an
- 9:39internet connection so that was the goal and then you find out
- 9:42you make a discovery you're going through all the tracking
- 9:44logs of you know literally millions of students and you
- 9:47find that people are just cheating to get these
- 9:49certificates and then you find out that they're taking a
- 9:51certificate that they cheated on.
- 9:53And and it says, now that they have seven certificates from MIT
- 9:57and they go in, they get a job and then they, they can't do the
- 10:01job because they cheated to earn the certificates.
- 10:03And now someone else who's from, where I'm from I'm safe from
- 10:05rural, Kentucky or safe from, you know some poor place in
- 10:08Africa, they apply for the same job, you know, six months later
- 10:11and they don't get it and they don't get it because even though
- 10:14they actually earn those seven certificates, someone else
- 10:16cheated and ruined it for them. And that to me was like the
- 10:19worst thing ever, like, think about my background and how much
- 10:21opportunity means to me, and we're trying to create this.
- 10:23And now, it's you just ruined that for someone.
- 10:25And so I was very, very motivated to solve this problem
- 10:28of cheating detection. Now, what does that have to do
- 10:30with your question? What has to do with your
- 10:31question? Is that cheating detection is
- 10:33literally just a noisy label. It's literally just an error and
- 10:36data. If you think about data, as you
- 10:38have a bunch of certificates, the question is, which of those
- 10:41certificates are the errors, which of those certificates, are
- 10:44the ones where someone cheated. So, first, I wrote some very
- 10:47simple pipelines, like filters. Like I mentioned, same IP
- 10:49address, you know, a bunch of filters to get data, right?
- 10:53But my data was noisy, I missed people.
- 10:55And I had lots of false negatives people.
- 10:57I just didn't get because I had very tight thresholds.
- 10:59We don't want to accuse someone of cheating if they didn't
- 11:01cheat. Right.
- 11:02That's a very bad thing. So I had to have tons of false
- 11:04negatives. I think people who I just wasn't
- 11:06catching. So then I was like, okay how do
- 11:08we solve this? Well, I was a PhD student in
- 11:10machine learning so I naturally I'm going to try to take Ai and
- 11:13machine learning approaches. And at this time, it was 2014
- 11:16and there was no multi-class solution for machine learning in
- 11:19noise with noisy. Labels, it just didn't exist.
- 11:22And so I start applying machine learning, algorithms and
- 11:24training them on this noisy data and nothing worked.
- 11:27And I there literally wasn't a solution.
- 11:29And so this was very frustrating because I have this problem, I'm
- 11:31very motivated to solve and I've, you know, shared why it's
- 11:34really important. Important for the world and I
- 11:35just can't solve it with machine learning and a sudden I had a
- 11:38big realization and the realization was if you want to
- 11:41actually train AI machine learning models on really messy
- 11:44noisy. They labeled data, especially
- 11:46for human-centric problems problems, where you really want
- 11:49to help people. And it's for people people's
- 11:51data is messy and people's data is really noisy.
- 11:54And so, we needed a framework in machine learning to be able to
- 11:57deal with messy and noisy data. And I spent the next six years
- 12:00doing it and I can share more about where what we did at
- 12:03various companies. Like Google and Amazon along the
- 12:06way before clean life existed? Yes, please.
- 12:10How was what? What a story man?
- 12:13Yeah, I know bringing it all the way from Kentucky to edx do now
- 12:19like, what Google and Amazon are doing.
- 12:22I love that. Like, keep it coming.
- 12:24I just I'm just gonna sit here and listen, even I I really
- 12:30appreciate you. Taking us through your story.
- 12:31There, the one, you know, Demetrius what, this kind of
- 12:34reminds As me of is that Cody Cody Coleman's episode that we
- 12:37did like a couple months ago, it was it's like very similar in
- 12:41the sense that you guys have these amazing personal stories
- 12:44that you channeled into motivation that then turns into
- 12:47solutions to problems that a lot of people face.
- 12:50So it's obvious what you want to know, something crazy you cry
- 12:54just with Cody. I just I just went on a walk
- 12:57with him two days ago. No way.
- 12:59All right. Yeah.
- 13:02He's one of my best friend's. He's absolutely.
- 13:05Fantastic guy. Yes of course this shit up.
- 13:08It's like, you know. Yeah, look about her movie until
- 13:10you can't believe it, right? We were roommates at MIT.
- 13:14We were also lab mates at MIT and he's one of my best friends
- 13:17from MIT, amazing gadgets that not surprise me.
- 13:20Why does that? It doesn't surprise me at all.
- 13:23And I'm going to get the, I want to option the movie script for
- 13:26this. I want to do when you guys, when
- 13:28you guys to sell both of your companies for billions of
- 13:31dollars or merge them or whatever.
- 13:32I'm going to option that movie script and Just it's going to be
- 13:36FYI. Curtis Vishnu talks about
- 13:38writing blog posts and he hasn't gotten around to doing it so
- 13:42optioning scripts. I mean that is it's now it's a
- 13:47lot but we'll see. Well I'll believe it when I see
- 13:49it but anyway you were talking about how you saw through and so
- 13:55this like you had the vision and then basically what happened
- 14:00from over those last six years. Yeah what?
- 14:03Yes What did that look like? Yeah.
- 14:07Totally and Vishnu is that work for you, too?
- 14:10I saw you, you looked ready to let something, okay.
- 14:14Let's hear all your stories, your take on the last six years.
- 14:16And how you went from people cheating at Harvard on this test
- 14:20and noisy labels to where you are now.
- 14:22I like, is that people cheating it at Harvard?
- 14:25They also cheated else elsewhere but I don't mind how that was
- 14:29praised and I say I say that as a I say that as a someone with
- 14:33MIT Roots were always, you know, having a good time in each other
- 14:36down the street. There, lots of great, great
- 14:39people at both places, but anyway, so so yeah.
- 14:44So so the first problem was, how do you detect false, negatives
- 14:49and data? So that's something called pu
- 14:51learning and that stands for Positive unlabeled learning and
- 14:55what the idea of that is, you you have data and some of it is
- 14:59positive, positively labeled. So call that someone say and a
- 15:04cheating detection data set, that would be someone who
- 15:06cheated. So, you know, for sure somebody
- 15:08is a positive but you don't know for sure that someone didn't
- 15:12cheat and that's actually, if you think about our Judicial
- 15:14System that's how it works, right?
- 15:16If you know, if you're on the stand, your assumed innocent
- 15:19until proven guilty, the idea is that you never know for sure.
- 15:22Sure that someone didn't do something.
- 15:25So we can't assume that they did something.
- 15:28We assume that they didn't do something.
- 15:29And that's actually, if you think about it, a very logical
- 15:32reason, for why we assume innocence until guilt, you have
- 15:35to provide enough proof to substantiate that.
- 15:38Someone is indeed guilty and so, you can only do that in One
- 15:41Direction. And the idea of that is, you
- 15:43never really truly have the labels of Innocence, which is
- 15:47kind of interesting to think thing to think about, especially
- 15:50for people who work in machine learning in the legal space, He
- 15:52difficult to train a machine learning algorithm to know if
- 15:55someone's guilty or not. That's why we don't, we haven't
- 15:57replaced judges and it's unlikely that we replace the
- 16:00Supreme Court with a i anytime soon.
- 16:02And and this is a very logical explanation for why that's
- 16:05difficult but given that. So we'll the first thing that we
- 16:08did is we had to solve this P, learn from P learning problem
- 16:11and that requires estimating a single noise rate, what is the
- 16:14probability of a false negative? And that's just one noise rate.
- 16:16There's another noise rate, the probability of a false positive
- 16:19and so we then generalized our solution there.
- 16:22To the full binary case of identifying false negatives and
- 16:26false positives just for binary multi classification and I'm
- 16:30presented some of that stuff at you.
- 16:31I the papers call drink pruning, and you can check it out.
- 16:33It's pretty theoretical it was early days of grad school.
- 16:36And I had to, you know, go pretty deep in the math, but I
- 16:38think it's, well, formulated for people who are in the field
- 16:42Beyond then, it was a similar time to that when I went to
- 16:45Facebook and I was working in Ian, lagoons group, folks, might
- 16:49recognize him. I saw him like four times.
- 16:53I barely worked with them, I think on paper, he was my
- 16:55manager. But my real manager was Elon
- 16:57burrow and absolutely fantastic person in the early days.
- 17:01She was one of the first female research scientists at fair and
- 17:05this is Facebook are research not Facebook engineering and we
- 17:09were in the New York office and they had a really interesting
- 17:12problem. The problem was, how do you
- 17:15avoid bias in up and down votes on comment rankings?
- 17:20So if you have imagined that Donald um, post something
- 17:24that's, you know, highly offensive.
- 17:27But because you're you're affiliated with a similar
- 17:31political. You say, you're a republican,
- 17:33you might want to upload it just because like, you want to
- 17:35support your party, which is a very reasonable thing to do.
- 17:38Even though the actual content of the message might be
- 17:41offensive. So, how do you that's an issue,
- 17:43right? Because now, you have people who
- 17:44are upvoting content, that's actually not content that they
- 17:47would have vote if not for some bias.
- 17:50And so what we ended up doing is, is Of it almost as a label
- 17:54error. Right?
- 17:55So how do you detect these sort of biases?
- 17:57And I started to realize, like, whoa, I mean, this is what I'm
- 17:59doing and cheating detection but now we have a gigantic
- 18:02corporation that needs to do this on petabytes of data, like
- 18:06literally trillions of data points at scale and there's no
- 18:08solution for this. So what do they do?
- 18:10They hired an MIT PhD student to do an internship on it, right?
- 18:15And I was like, wait a minute, this is, you know, this is what
- 18:16I'm doing like as my as my PhD, but this is clearly a problem
- 18:20that needs to be solved. Well, the next summer I interned
- 18:22Ended up going to Amazon. And I did the exact same thing
- 18:25at Amazon. They had an issue with the Alexa
- 18:27devices where they have no idea when they wake up, or when they
- 18:31don't wake up. So how would you know?
- 18:32For example, if your say your Amazon and you've got your Alexa
- 18:36dice, a devices all over the world, like, hundreds of
- 18:38millions of them, and people are saying, you know, the keyword to
- 18:41get it to wake up and they just don't wake up because they don't
- 18:43hear the keyword. Then how would you ever get that
- 18:45data? Amazon doesn't have that data.
- 18:48They don't have it. So how do they know what their
- 18:51device is false? Rates are they have no way to
- 18:54estimate that and and so it doesn't make does the problem
- 18:58make sense. It makes total sense.
- 18:59And I'm just, I'm just literally sitting there being like that
- 19:02literally sounds like an impossible problem because
- 19:04there's no way you'd know something didn't wake up,
- 19:06because there's no way you'd get the log from the device.
- 19:10So, how did you do that? Like, is there such a thing?
- 19:13Like, what do you do? We solve that problem using
- 19:16clean lab. So this is very early days of
- 19:18clean lab. And at this point, I had
- 19:19starting, I started building out the open source repo.
- 19:21Fun fact the The only reason why I originally did clean lab is
- 19:24open source. I think open source has a great
- 19:26model and obviously I have a business around it.
- 19:28So I clearly really love open-source.
- 19:30I think it's a good idea. But the initial reason I got
- 19:33into open source was not because I was like a soup in super open
- 19:36source Guru. I actually knew very little
- 19:37about it at the time I got into it because people didn't believe
- 19:40that you could actually just have data find errors and
- 19:43itself. Like the idea of that seemed
- 19:45like black magic to people. So how do you convince people?
- 19:48You make it runnable in one line of Code online and then people
- 19:51start to believe you. You see, that's what that's why
- 19:54I did it. Literally people were just like,
- 19:55what is this nonsense? Like, I've never heard of this,
- 19:57it's a new field. How are you just going to invent
- 19:59a new field? As a grad student, like that's
- 20:01total nonsense and I got a lot of pushback.
- 20:03And so we started just releasing everything online and then the
- 20:06push back, you know, quieted and we got a lot different reaction.
- 20:10So the reason I share that is because I'm building out this
- 20:12open source package. Meanwhile, I was doing an
- 20:15internship at Amazon and the open-source package, what it
- 20:18did. Is it, estimated these noise
- 20:20rates that I mentioned earlier, right?
- 20:22So a It's false positive and false negative rate and
- 20:25specifically what that is is it's you have data and it's
- 20:28labeled as 0 but it actually should have been labeled a one
- 20:31or you have table that's data. That's labeled 21.
- 20:33But it should have been labeled a zero.
- 20:35And one thing that we do is, you know, I clean lab is we tell
- 20:37you, what's the fraction of data.
- 20:39And we do that by estimating this joint Matrix of noisy
- 20:42labels and true labels. And that's just going to be if
- 20:45it's binary a 2d Matrix. And then, you know, the off,
- 20:48diagonals of that will be the flipping rates and the diagonal
- 20:51of that Matrix will. Be sort of your consistency
- 20:54rates which are like the things that are labeled one and they
- 20:57actually should be and then the things are labeled zero and
- 21:00should be. So that's kind of hard in an
- 21:01audio you know, environment that to see it.
- 21:04But just imagine you got a 2d Matrix in your head and you're
- 21:07trying to estimate those off diagonals, because that's your
- 21:09noise rates, your false - false positive, okay?
- 21:11So to the Amazon problem, so at Amazon, that they don't what
- 21:15they don't have and they need to estimate is they need to
- 21:17estimate the probability that something was labeled a 0 but it
- 21:22should have Been a one. Okay, so the rice got it real
- 21:27quick so you just said their consistency rate and flipping
- 21:30rate, right? And that's the way to think
- 21:32about a noisy data set, is like those two factors.
- 21:35Let's say, adding up to one or something like that and just
- 21:38like the loosest way to think about it, right?
- 21:40And what you're trying to do with those with the Alexa
- 21:45examples is try to estimate. Like, what's the actual flipping
- 21:48rate of the data being wrong? Is that correct?
- 21:50Yeah, totally. And the only caveat to what You
- 21:52said is that the in this Matrix the whole Matrix sums to 1.
- 21:56So it's like a joint distribution and then if just a
- 22:00fun fact of how to think about the problem, if the diagonal of
- 22:03that Matrix sums to 1, then you have no air at all in your data.
- 22:09God meaning that all the off. Diagonals are zero which means
- 22:12all the noise rates are zero, which means nothing's flipped,
- 22:14so no air in your data. Got it.
- 22:18Okay, interesting. And another thing to keep in
- 22:21mind is that this is only one formulation of the problem.
- 22:24We do several and I've spent time on several, this
- 22:27formulation is one called class conditional noise, and it
- 22:31assumes that every, you know, any class can be flipped any
- 22:35other class at some set constant rate and you're trying to
- 22:38estimate that concentrate. And that's, that's really useful
- 22:40because like the probability of a, if you see you have an image
- 22:43data, set of a bathtub being flipped, to a lion is very low.
- 22:47Like, you're not going to have many images that are images of
- 22:49bathtubs with the label line that's really unlikely.
- 22:53But you are, it is very likely that you have images that are
- 22:56labeled tub, you know, you know, there's all sorts of tubs.
- 22:59There's like buckets, that's a tub and but it might be labeled
- 23:02bathtub or vice versa or a lion might be mislabeled as tiger.
- 23:07That's highly likely but it's highly unlikely.
- 23:09That microphone is mislabeled as vegetable or something and so
- 23:13you can see how these flipping rates emerge And then there's a
- 23:18sense. Yeah, and there's also like all
- 23:21sorts of other noise where you have instance, called instance,
- 23:24dependent. So that would mean, depending on
- 23:26the image. You so say you had an image and
- 23:28it has a very cat-like dog then because it's a cat like dog.
- 23:32You would say what the probability of it being
- 23:34mislabeled as cat even though it's a dog and that's another
- 23:37approach and then there's also just data noise in the data that
- 23:40has nothing to do with the labels like out of distribution
- 23:43all stuff we do but let's focus on the solution for Amazon so
- 23:46the way that we were able to approach that yeah and By the
- 23:49way, one of the reasons we couldn't publish this as if it's
- 23:51kind of funny, it's really hard to convince the massive company
- 23:55to publish its noise rate in a like, you know, a device that's
- 24:00sold to to hundreds of millions of people to, you know, to
- 24:04openly public. No, that's not great.
- 24:07So it's not easy to convince Administration to say, hey yeah,
- 24:11let's post. Let's let's publicly share how
- 24:14wrong our devices are so. But we, here's how we estimate
- 24:18the noise rate we use Clean lab to find the one of the
- 24:21diagonals, okay? And then we also use clean lot.
- 24:24If you can find errors with something, you can also find
- 24:26good data with something. There's always some ranking
- 24:29metric. So what we do is we can find a
- 24:30quality score for every example and then you can find examples
- 24:33examples that are high quality and that gives you an idea of
- 24:36giving out of the things that are labeled one and the things
- 24:39are labeled zero. What fraction of those are
- 24:41likely labeled correctly as well.
- 24:43And so now you have three numbers, you have the false, you
- 24:45have the false positive rate, the true positive rate, the true
- 24:49Great. And that's all you need to
- 24:51compute the last one, which is the false - false negative rate.
- 24:54So if you have three things that you can estimate because you can
- 24:56observe them and in total that Matrix, some someone then you
- 25:00can always estimate the fourth. And so that's how you can
- 25:02estimate something that you actually just don't have
- 25:05because, you know, all the other cases of how the model performs
- 25:09on the data. And so even without the data,
- 25:12you can estimate how the model would have performed.
- 25:14And that's, that's kind of, its kind of brilliant.
- 25:16And so that was the approach that we took.
- 25:17We just couldn't share how bad You know, thanks performed
- 25:20publicly. That was, that was a downside of
- 25:22the research. So just so I understand because
- 25:27this is kind of blowing my mind here right now and I'm sure it's
- 25:29blowing the mind of a lot of our listeners right now.
- 25:31I don't know about you Demetrius, but you're saying
- 25:36that when you talk about doing it in one line of code, right?
- 25:40I want I want to go to that example.
- 25:42Right there. Or now, that you've been working
- 25:44on clean lab and maybe this is a clean transition clean clean.
- 25:50If I have, let's say, I have, you know, data set that I've
- 25:54worked with which is chest x-rays, right?
- 25:58And the chest x-ray data set 2014 from the NIH.
- 26:00It's filled with data errors, right?
- 26:04And I was tired trained, a machine learning model on it and
- 26:08there are a couple classes in there for different diseases.
- 26:11And you know, let's say it's pneumonia and some other lung
- 26:14disease and I have some results where I've trained the model and
- 26:18I want to use clean lab in this example, how can clean lab know
- 26:22just based on the models performance that particular
- 26:26examples are more likely to be You know, falsely labeled or
- 26:32incorrectly labeled? The can you walk me through how
- 26:34clean lab implements that? Yeah, totally then, and this is
- 26:39a good thing about having a company.
- 26:40That's, you know, half open source, have SAS product, is
- 26:43that I can share things and that was pretty necessary for us.
- 26:46We have three is three co-founders that have been
- 26:48mighty. We all did our phds there and we
- 26:51care a lot about being able to educate and share.
- 26:54So part of the idea of founding a company that has roots in open
- 26:57source, is it gives us the ability to just talk and answer
- 27:00questions like This instead of most CEOs in this position would
- 27:03have to give you some kind of and Ira, truly don't mean this
- 27:06in an offensive way they have to do their job but they would give
- 27:09you a BS answer. They wouldn't actually tell you
- 27:11how their product works, right? That's terrifying but we can
- 27:14actually do that. And so here's a cool.
- 27:17So I'll just share so very briefly one in sight.
- 27:20We there's obviously more advanced things that we do in
- 27:22this as product and I'll leave those where they like.
- 27:24But here's a really simple intuition, you have a model and
- 27:29it has produced a predicted bility.
- 27:31Okay, you've trained on your data set and now you're going to
- 27:33run an inference passed on a new example.
- 27:36You have some new example some test set or something or some
- 27:38held out data and you run your model on the it's been trained
- 27:41on your training data which has noise in it by the way and now
- 27:45you run a new example through it and that example is a mislabeled
- 27:49example so you have a real label for it it's held out data so you
- 27:52actually have labels don't think of it as test data you do have
- 27:55labels for this and it's held out and now you run a new.
- 27:58You run example through your model that's been trained.
- 28:01Noisy data set and it produces a probability distribution and the
- 28:04probability. Let's say that it says for say,
- 28:06the thing is labeled dog, but it says, like, with 1.0 confidence.
- 28:12Okay? So it's like a soft Max with,
- 28:13you know, literally all of the weight on cat.
- 28:16Okay, then you and your head, you might just be thinking like,
- 28:20that seems surprising, right? Like, this thing is, I have a
- 28:24label for it and the labels dog, and I threw it into my model and
- 28:28my model spit out, 100% probability.
- 28:30A of being cat, you know? Like if this model learned
- 28:33anything at all, then something is amiss.
- 28:36And so that's just like, a really easy way to think about
- 28:38how you might find an error. Like, literally, that's seems
- 28:41pretty like one line of code, right?
- 28:43You just did it in friends pass. And then you just measure is the
- 28:47probability of the given label like way off, you know, is it
- 28:50way different than the probability of the ARG Max?
- 28:53So that's one way you can think about it.
- 28:54The question is and this is where it gets more complicated.
- 28:57How do you know what the threshold is?
- 28:59And what I mean specifically is okay.
- 29:01What if it's .5 dog .5 cat, what if it's .3 cat .72 up?
- 29:07Like how how do you know the threshold?
- 29:09And so there's a lot of proaches to that and a lot of smart
- 29:11things you can do. One way is you just can look at,
- 29:15you know, random the 90th percentile of all your cat
- 29:18examples and other ways to take the mean.
- 29:20Another way is to take an approach that's entirely
- 29:22different and like fully model the entire joint distribution,
- 29:25and then you can, you know, sum up the diagonals and do all
- 29:28sorts of fancy stuff. But that just gives you like a
- 29:30really clear idea, you have a data set, you can pass it
- 29:33through a model that's been trained on it.
- 29:35And then you can take the, you know, whatever the probabilities
- 29:38are and say, hey, look, this this thing is labeled dog.
- 29:40But like the probability of dog is really low and they're
- 29:42probably of casually High. It might be a cat.
- 29:45And that's just an easy way to think about finding the players
- 29:47with a model, I see. So it's looking.
- 29:50So it's really looking at where models make mistakes and using
- 29:54that to understand what that false positive false negative
- 29:58rate is, is that First airing, this is Skyler.
- 30:01I lead machine learning and health rhythms if you want to
- 30:03stay on top of everything happening in ml.
- 30:06Ops, subscribe to this podcast. Almost it's a super Fair summary
- 30:11but there's one really important caveat.
- 30:12It's not just where models make mistakes.
- 30:14This is the, this is the model Centre point of view.
- 30:17It's also where the data make mistakes, where the data made
- 30:20mistakes, and the way that you can think about this in the
- 30:23model is embedded, two things, one is noise because the model
- 30:28is not good enough and the world.
- 30:29You can think about that noise is its noise where if you had
- 30:33perfect data and you train them all, you still wouldn't get 100%
- 30:35accuracy on all test data. If you did, that would be
- 30:39incredible for your problem and great for you, you've just, you
- 30:42know, you have a business and you should probably build that.
- 30:45But, in general, most people don't get 100% test accuracy.
- 30:49And so, whatever the noise is, right?
- 30:51So say you get 95%, then your model has like five percent
- 30:54inherent, you know, their words for this, I lied.
- 30:59Tarek. If you've heard of Elliott's
- 31:00work and epistemic uncertainties, Alia torque is
- 31:03like label noise, and epistemic is like model noise.
- 31:06So that's as epistemic. This is, this is intrinsic noise
- 31:10in the model but then there's also a noise from your data so
- 31:13things that are mislabeled and bad data.
- 31:15And the model is going to learn that to you trained on that
- 31:17data, it's going to learn that noise.
- 31:19So if say 5% of your, you know, cat examples are mislabeled as
- 31:23dog. Then that means that when your
- 31:24model is producing predictions, 5% of the, if it's a good model,
- 31:28five percent of the time, It's going to produce wrong
- 31:31predictions. It's going to produce, you know
- 31:33the wrong label for those dog examples and so you can
- 31:36literally think of it that way your models making mistakes on
- 31:38its own intrinsically. That's called epistemic
- 31:41uncertainty, epistemic noise. And it also is modeling because
- 31:45it's trained on noisy data. It inherently models that to it
- 31:48models the noise as well so that's called epistemic
- 31:50uncertainty. Now the kicker the trick is you
- 31:54have to disambiguate epistemic and aleatory uncertainty out of
- 31:58one single model. And you cannot do that without
- 32:01assumptions because the models prediction, you know, it's
- 32:04literally just making a prediction.
- 32:05So you have to make some assumption and then use that
- 32:07assumption to disambiguate. And if you remember earlier, I
- 32:09talked about my Matrix, where you'll get the flipping rates of
- 32:12every class to every other class that's an assumption.
- 32:15And you can use that assumption that to fully solve this problem
- 32:18and fully characterize label Noise.
- 32:20We also make some other assumptions like out of
- 32:22distribution assumptions and also you can do instant space
- 32:25assumptions where you say like there are groups of are.
- 32:27There's a, you can go crazy here.
- 32:29Crazy for a podcast but you get the idea.
- 32:33No, that's a brilliant, brilliant, extra explanation of
- 32:37where I may have glossed over the crucial detail.
- 32:40And I love that point about the difference between epistemic and
- 32:43Alia tarek uncertainty that really helped me understand what
- 32:46it is, what conceptional you're trying to do and now I
- 32:50understand what makes clean lap, particularly powerful is that
- 32:53you've embedded a lot of the ways of working with these
- 32:56Concepts into code, so that people can start Art to do this
- 33:00with their models and their data and by making it open source,
- 33:04the code can get even better, right?
- 33:06And people can contribute and help you guys.
- 33:08Expand your functionality, is that a fair thing to say?
- 33:12Yeah, for sure. Okay, yeah, there is definitely
- 33:14the idea of what it looks like and can you just break us break
- 33:19it down? Like what do we have?
- 33:22Is it some kind of python wrapper?
- 33:24Or is it something I need to install?
- 33:27How does it actually plays? With my environment.
- 33:32Yeah, for sure. So, you have some data set, it
- 33:34can be represented, however, it doesn't matter.
- 33:37So here's some fun facts. So, clean lab works with any
- 33:40model and it works with any data as long as you can, run a model
- 33:44on it. So as long as it's like ml data,
- 33:46let's say so it works with any ml data and then it works with
- 33:50any model and that's cool, right?
- 33:53So that means if we invent. So right now Transformers are
- 33:55hot. LS teams were hot 10 years ago,
- 33:59so, So if you built a whole company around Ellis TMS, your
- 34:02company might be in a really bad spot, you know in 2020 if you
- 34:07built it in 2010 and so it's the same idea, right?
- 34:11You don't want to. So you know we built a company
- 34:14around this. We don't want to make we don't
- 34:16want to be in a bad spot and 2030.
- 34:18And so one way we can guarantee that is by building a company
- 34:20that works no matter what the model is that's invented in the
- 34:23future. So if something much better than
- 34:25Transformers comes out, we want to make sure we work with that
- 34:28too and Way that we do that is we work with the outputs of a
- 34:32model but we don't care which model generated them, it's
- 34:36different than a markovian assumption, but you can think of
- 34:38it like a markovian assumption. We don't care where it came
- 34:41from. We only care about the now what
- 34:43are the models predictions? It doesn't matter what the model
- 34:46is and it doesn't even matter what the data is and reality.
- 34:49There's actually a lot of data like very specific data
- 34:51assumptions and it different data distributions are totally
- 34:54different and there's all sorts of weird stuff that happens.
- 34:56But if you have an appropriate model for that data set, You can
- 34:59abstract that away make it more of an engineering prong problem
- 35:02and less of a theoretical problem and just take those
- 35:04model outputs. Okay, so the answer your
- 35:06question concretely. Now you have these model outputs
- 35:08their predicted probabilities and you have your labels some
- 35:12noisy labels and then you're going to input those two things
- 35:15into one line of code and it's going to spit out things for
- 35:18you. Like, what are all the label
- 35:19issues? You know, in that data set and
- 35:23or it'll it'll spit out, we do a bunch of stuff that's there's a
- 35:25that's one, there's a package called clean learning says, A
- 35:29cute if you do machine learning but you want it to be clean,
- 35:34right? You want to train on cleans data
- 35:36machine? Learning with clean data, we
- 35:38call it clean learning and that's a class and you can
- 35:40actually just pass in like a, you know, sklearn model directly
- 35:44into that class and pass in your data and it will just work or
- 35:48you can use the function at the functions directly where you can
- 35:52just pass in like your model outputs and that way you can
- 35:54work with any model at all. But yeah, that's mainly how it
- 35:57works. I love that summary.
- 36:00I think that's a great question Demetrios because it got us to
- 36:03the nitty-gritty of what it actually feels like, which is so
- 36:06important with I think tooling right now in machine learning.
- 36:11Right? This stuff is moving very
- 36:13quickly. You know, the fact that we are,
- 36:16the fact that you're talking about the concepts that you are
- 36:18around, how to think about data feel very different than the way
- 36:21that we taught about data and modeling like five years ago,
- 36:24right? And with the speed at which
- 36:25things move having tools, that feel easy and Well with your
- 36:29existing workflow without too much like you know I guess you
- 36:32could say friction is really important and it certainly
- 36:34sounds like clean lab is that way.
- 36:38I think one of the questions I had coming out of this is you
- 36:42know as you can probably tell I've worked a lot in them in the
- 36:47medical context, right? Where noisy errors are both
- 36:51incredibly costly and Incredibly common.
- 36:53Right? Nose noisily labeled data sets.
- 36:55We have a lot of variance in the way that medical professionals
- 36:58are trained. You and on this data quality
- 37:03question, did a quality problem. I kind of have a question around
- 37:06like how ml engineer should think about it.
- 37:09And my question is, is this something that can be just
- 37:13solved by a tool or a framework or some kind of, you know, new
- 37:19widget like clean lab not necessarily to to denigrate it?
- 37:23But just like a tool like that or is this something that I you
- 37:26think ml engineer should take more of a Systems level approach
- 37:29to and kind of say like, hey, you know, the same way that you
- 37:33think about like, you know, web systems architecture or
- 37:36something like that. In a different software,
- 37:38engineering field machine learning Engineers should start
- 37:40to specialize in thinking about Clean Machine Learning Systems.
- 37:46Let me know if that question made sense because it's just
- 37:48makes perfect sense. Okay, cool.
- 37:50Yeah, it makes so much sense that our entire business model
- 37:52is the answer to your question. Alright, don't hit me nice.
- 37:56Yeah. So, Let's let's first, let's
- 38:00start. Here's a good thing to think
- 38:02about. If somebody says that they have
- 38:04built a something that works 100, it does everything.
- 38:08We do a lot of things automatically, so we can find
- 38:11label issues for you automatically.
- 38:12It's pretty cool. And we can even provide
- 38:14suggestions for Solutions automatically, but that's not
- 38:16where it ends. It's not just 100% everything
- 38:19automatic. You press one button and that's
- 38:21it. You're done.
- 38:22If you have someone, whether their academic or they're in
- 38:25business or their entrepreneur, you know, and they say I have
- 38:28built in AI solution and it just does everything and no human
- 38:33ever needs to be involved. Well then the question is, why
- 38:36are you involved, right? Why don't you just let the a I
- 38:39run off and you know, and just do everything all on its own.
- 38:41Like, why do you even need to be involved?
- 38:43The reality is there are very few AI solutions that don't
- 38:46still require some kind of human input.
- 38:49Like if you look at, you know, Dolly, it's incredible, it's
- 38:52really incredible, G PT 3, it's incredible.
- 38:54But also why do they need a team of like 150 people?
- 38:58Build those things, that's where the human is involved.
- 39:02So it's not like these things are building themselves or
- 39:04they're just like and now there's even bigger teams that
- 39:06are working on these things because they've been shown to
- 39:08have viable business model. So there's always a human in the
- 39:11loop. So, that's just the most
- 39:12important thing to remember. It's easy to forget, you know?
- 39:14Yeah. These models are doing a lot of
- 39:16really cool things. I think there was like, some
- 39:18article yesterday about somebody who is working at Meadow or
- 39:21something and they created the accidentally created.
- 39:24You know, I'm talking about Vishnu, is this the one, the
- 39:26one, the guy, where the goo Engineer was saying that the AI
- 39:31is sentient. Is that the one you want?
- 39:32Yeah. He looked like, he was like
- 39:34yeah, yeah, and I like got fired or quit his job or something
- 39:38terrible happened because of this, but he was like, oh no.
- 39:40I am working with an AI and it's sentient and everyone's like,
- 39:43this is this is a lot. Yeah, yeah.
- 39:46And exactly talking about, right.
- 39:48Yeah, and I think what we can create, we eventually can create
- 39:51things that give the appearance of sentience and maybe even
- 39:54indistinguishably. But just keep in mind that it
- 39:57was created by a person. And that person created
- 39:59constraints. And the, the more you constrain
- 40:01something, the easier it is to make it appear sentient within
- 40:04the context of those constraints and that's just kind of a rule
- 40:07of thumb. Okay, so with that in mind so to
- 40:09answer your questions. So your question is about, you
- 40:12know, can you can you just have something like clean lab just
- 40:15you know, fix everything and then it ends there.
- 40:17And and so that's, that's really important to think about.
- 40:20So what the open-source does is it will, it's prescriptive,
- 40:24okay, just like a doctor, it tells you but it doesn't make it
- 40:27all go away. You know, it tells you hey, you
- 40:30need to take this medicine, you need to do this but it doesn't
- 40:33like take the medicine for your data, okay?
- 40:35So it'll tell you what the issues are.
- 40:37It'll tell you the quality of your data set, it's really
- 40:39helpful but it's just prescriptive.
- 40:41It's it doesn't change the data set.
- 40:43If you want something that will automatically fix your entire
- 40:45data set for you, with one button, click, good luck.
- 40:48But we'll get you really close. Okay, so we have something
- 40:51called clean Lab Studio. That's our SAS product.
- 40:54It builds on top of the open source.
- 40:55Adds a bunch of fancy infrastructure.
- 40:57Trains the model. For you and makes it so that
- 40:59it's a no code solution. Now, I just sound like, you
- 41:01know, a CEO pitching but like check it out, it's actually
- 41:03really awesome. But here's why it's useful and
- 41:06white answers your question. What the what it does is it also
- 41:09helps you fix the data set where as the open source helps you
- 41:12find. So the open source is
- 41:13prescriptive and then our whole SAS business model is like, hey
- 41:18people have seen that clean LAB Works but now they want to, you
- 41:21know, very quickly and easily be able to actually just fix the
- 41:23whole data set, not just know what's wrong with it and so to
- 41:26do that, you do need a human in the loop.
- 41:28You need To take a look. We provide suggestions of what
- 41:31we think all the corrections are and we provide, we have an AI
- 41:34and it runs and then it checks in.
- 41:36It it guesses. Okay, this is what I think.
- 41:38All the true labels are, here's what all the errors are, every
- 41:40all the data is ranked and we do all this for you automatically
- 41:43and that's really cool. But we still suggest, you know,
- 41:45you should have someone take a look.
- 41:46And so one of the ways that we help you is we take data
- 41:49Centric, AI approaches to make things more human Centric.
- 41:54And so the way that works is if you know which data point is the
- 41:57most likely to be a A problem. Then you want to show that to a
- 42:00person first so you don't waste their time and then you can know
- 42:03the second most likely problem and you show that to a person s.
- 42:06And so the cool thing that are SAS product does is it lets you
- 42:08very quickly go through only the most important stuff that might
- 42:12be wrong with your data set and we also will give you an idea of
- 42:14what we think. The right answer so you do as
- 42:16little work as possible and that so that answers your question,
- 42:19the question being, you know do we still need people to be
- 42:22involved in the answers? You know, definitely if you want
- 42:25the highest quality for many solutions and that's An example
- 42:29of how you can use data Centric, Ai and data Centric approaches.
- 42:32So that when you do involve people, you make it as easy as
- 42:35you can for them, they still should be involved.
- 42:37But what we can do, is use Smart methods to make it so that you
- 42:40only spend like, you know, an hour cleaning a dataset, that
- 42:43normally would have taken ten thousand hours and that's the
- 42:46goal and that's what we do. Brilliant.
- 42:49So there's there's something that There's something that you
- 42:55said when it comes to Quantum Computing and how one of the
- 43:01investors is or one of clean Labs advisors and investors is
- 43:08dealing with Quantum Computing. What does that have to do with
- 43:11anything? Yeah, totally.
- 43:14So I will just rephrase and when you say dealing with Quantum
- 43:18Computing so so we're talking about Ike, he's known as I But
- 43:24formally, Isaac shuang. And he was the first person to
- 43:28realize meaning, to actually have a physical on Earth, man of
- 43:32manifestation to build the first quantum computer.
- 43:36So, this guy built the first working quantum.
- 43:38Computer singles are not just dealing with it.
- 43:41He's the guy behind. Yeah, so he wanted Computing,
- 43:45it's fair to say, he invented the first real realization of a
- 43:48quantum computer on planet Earth.
- 43:51And there were a few groups doing it simultaneously.
- 43:53And And so let's give credit to everybody but he was one of
- 43:56those groups and maybe maybe this is within, they're all
- 44:00within a week but he's credited that way and and rightly.
- 44:03So he's been doing really, really top-notch research in
- 44:06Quantum Computing at MIT for the last like 20 years.
- 44:09He also wrote the book on Quantum Computing.
- 44:13Isaac Tong, if you just look him up, you'll figure that out
- 44:15pretty quickly. So why is that relevant?
- 44:18And this is really cool. So the way as relevant as they
- 44:21approach in particular, that was used to summon.
- 44:23Held in Mr. Quantum Computing. And we don't have to like, get
- 44:28into the details, but the way that you do Quantum Computing is
- 44:30you have a noisy, you have noisy information, and then you're
- 44:33trying to do some sort of computation on it where you are
- 44:37in physically inferring, what is the true signal from some noisy,
- 44:41you know, non-binary, 01 signal? Where you have to observe
- 44:45something hit with a laser and then you have all.
- 44:47There's a lot of air in that process.
- 44:49And so one of the key Solutions, and if you just look up in Mr,
- 44:53computing In Quantum Computing online and you'll you'll see
- 44:57that the biggest problem actually with the field is as
- 44:59you have more qubits it's harder and harder to understand what is
- 45:03the noise and what's actually what are you interpreting
- 45:06versus? What's the reality of what's
- 45:07happening on the machine. And so the way that you solve
- 45:09this, as you estimate was called a noisy channel, the noisy
- 45:12channel is what perturbs the actual computation to What You
- 45:16observe. And if you can estimate the
- 45:18noisy Channel, then you can see. Okay, what did I observe?
- 45:21And then I can use the noisy Channel and I can actually
- 45:23reverse Engineer and find out what really was the computation
- 45:26that happened, and that's how you do Quantum Computing.
- 45:28That's like the key to being able to do Quantum Computing.
- 45:31Is you have to be able to understand what's really
- 45:33happening versus What You observe and observability.
- 45:36Okay, so this this all sounds like crazy, you know, you see
- 45:39where it's going. Alright?
- 45:40So so it sounds like, you know, just a little bit wild at first
- 45:43but then, you know, here's where it's going.
- 45:45So we said, all right, let's take the whole model of how
- 45:48Quantum Computing is done and let's apply it to a data set.
- 45:51A data set has What You observe. That's just the Data, right?
- 45:54You observe that data but the real question is, what would the
- 45:57data have been if it didn't have out of distribution examples?
- 46:00If it didn't have label errors, if it didn't have all this
- 46:03noise, that's causing you to not be able to train your model.
- 46:05Well, right? And so that's the question and
- 46:08so what we do is we compute that same noisy Channel and we have
- 46:12our observation of the data and we can use that noisy Channel.
- 46:15Meaning, what was the noise process that created this noisy
- 46:18data to unveil to uncover what the true data was and then you
- 46:22train on that true stuff? And that's how you get like a
- 46:24better model or that's how you find out, which of your
- 46:27annotators is making the most mistakes or whatever you want to
- 46:29do, and that's how it works. So you can actually use the same
- 46:32ideas from information theory in order to solve this data problem
- 46:36and me and Ike work together to invent what's called competent
- 46:39learning, which was this field that underlies clean lab and we
- 46:42worked on at MIT together on this for about six years.
- 46:47I guess the question that I wanted to ask after that is, you
- 46:51know, going back to where you're talking about Alexa and the work
- 46:56that you were doing and Amazon and Facebook like just work
- 46:59around confident learning. What was the result that made
- 47:02you realize that you really had something that worked right?
- 47:07Like I'm kind of curious. What your aha moment was there.
- 47:09Yeah it was. There were a few so they were
- 47:13they were Stepping Stones. I thought I would be faculty.
- 47:16I was doing a PhD, we were building a new field, it was
- 47:19really cool. I had some good contacts at the
- 47:21media lab that you know, Likely would have been fruitful or
- 47:25let's say may have been fruitful and I thought that would be a
- 47:27cool cool thing to do in the next step of my life.
- 47:30I had some really good friends who I had been working with
- 47:32along the way, Jonas, Mueller, and Anisha.
- 47:34That all ye who had been publishing papers with.
- 47:36We had, we were nominated for the best paper in Europe's for
- 47:40our work with clean lab. We if you go to label airs.com
- 47:44you'll see the 10 most commonly cited machine learning data sets
- 47:49and actually the test sets that we Benchmark on and they're all
- 47:52the errors in them. And this is groundbreaking
- 47:55because like truly, because now you could actually see that all
- 47:58the test sets of the field of machine learning that we
- 47:59Benchmark on, they're all broken.
- 48:02And so basically we had a lot of results, a lot of excitement.
- 48:05So why did we, why do we choose to do a business and what was
- 48:09sort of the key stepping stones that convinced us?
- 48:12We really need to do this. This is a viable business and
- 48:14it's a good idea. So I'm rephrasing your question,
- 48:17but that's because it sets me up and it sets me up for the
- 48:19answer. And so the answer is at first
- 48:22I'm at MIT and I'm building this Detection system and I realized
- 48:25am. The only way I can do this is to
- 48:27fix the data set because I don't even know like any of my false
- 48:31negatives. I, you know, I have tons of them
- 48:33and how do I estimate those? So then I'm like, okay, if I
- 48:36want to build an AI am L solution that like really helps
- 48:39people, I have to do this. Confident learning thing, I have
- 48:41to have something like clean lab so then I'm like, okay, clean
- 48:44lab seems pretty useful. Well, then, I went to Facebook
- 48:46and I was like, okay, now we're doing the same thing on
- 48:48petabytes of data, like literally trillions of data
- 48:50points and clean lab is really useful.
- 48:53And then I went and then I but still, like I didn't realize I
- 48:56didn't think of it as a business because I was so focused on the
- 48:58problems and then I was in the theory.
- 48:59I was a grad student, my head was down, I got to get a PhD.
- 49:03Then after that, I went to Amazon and I mentioned that use
- 49:06case after Amazon, I went to Oculus research, I spent two and
- 49:09a half years with oculus research, part time, I worked
- 49:11with Richard Newcomb, who's the director of science for, for, I
- 49:15guess, now, whatever metas new version is of oculus research
- 49:20and it keeps changing, but Richard Newcomb is a Ask that
- 49:23guy. He was one of the creators of
- 49:25Slam in terms of making slam, operational and useful.
- 49:28Generally a he made a startup That Was Then acquired by Oculus
- 49:32and that's how he became director suit, he's like this
- 49:34British guy super fun, super smart guy also to work with
- 49:36bikes, like 100 miles a week. Just a really cool guy and I
- 49:40worked with him for two and a half years and that was pretty.
- 49:42It was pretty instructive and my career and seeing how does
- 49:46someone direct a very large AI team?
- 49:49Not just being on the researcher, but how do you build
- 49:50these things? And how do you build a team?
- 49:53And that was helpful and pivotable from me, pivotal
- 49:56pivotal for me. Then what do we do there?
- 49:59We use clean lab to be able to clean and create some of their
- 50:02data sets. And so that was like what this
- 50:04is really useful again now for Oculus.
- 50:06Well the next summer I went to Google and this is when I
- 50:09started to really realize, okay, I need to I just needs to be a
- 50:12business at this point. Clean lab open source, was
- 50:14getting pretty fleshed out. It was useful.
- 50:16You could run things in one line of code and I ended up
- 50:19implementing a version of clean lab a simpler version in I'd of
- 50:24Google. And if anybody works at Google
- 50:25and they're listening to this, you can still see it.
- 50:27It /. Google 3, / 3rd Dash party /,
- 50:30clean lab. And you can that's and we use
- 50:32this at Google to fix the OK, Google and hey, Google data
- 50:37sets. So if you've ever said that to
- 50:38an Android device the way we. Yeah, that's how we clean that
- 50:41data set. Yeah, he's clean lab.
- 50:44And so, then I'm like wait a minute.
- 50:45So that's another gigantic data set across like 50 million
- 50:48examples and then we got some testimonials from Google, some
- 50:51of their Engineers, you know, they sent us.
- 50:53Testimonials and they were like, hey if you guys, you know, have
- 50:55a company around this like we here's a successful pilot.
- 50:59Meanwhile, we got some reach out from other companies in the
- 51:02labeling space saying, hey, would you like to join our team?
- 51:04You know, can we acquire this thing?
- 51:06And I'm starting to realize, okay, you know, this is their
- 51:08people paying attention and not just from an academic
- 51:10perspective, this is a problem that pretty much every major
- 51:13tech industry needs to solve. If you don't know three trillion
- 51:17dollars is the estimated cost of the us alone of bad data.
- 51:20And we have a tool that we have shown and Worked out performs
- 51:24other tools to find bad data. And so it's like well this is a
- 51:28gigantic market and we have a solution for that market and
- 51:31then more and more people started reaching out.
- 51:33And then before we had the team that was happening, organically
- 51:36from the research at MIT and then we had a best paper
- 51:39nomination that nerves which brought more folks.
- 51:41And then we did well in the data Centric, AI competition and they
- 51:44just there was more momentum. And then it was it was something
- 51:46I actually could not do and I was doing another startup, it
- 51:49was really cool started, but used clean lab to clean emotion
- 51:52data so that you could Train an emotion detection algorithm and
- 51:55that way, if you're doing like a sales call or a hiring call, you
- 51:58could actually say what's the metadata for every frame in
- 52:01terms of their emotions? That's really useful for doing
- 52:03sales, it's extremely useful, but it's very hard to train
- 52:06because emotion data is noisy. So we use clean lab for that and
- 52:10then I was like, what? Why am I building a startup that
- 52:13uses clean lab clean lab is the startup and that was sort of
- 52:17the, the final pivotal transition.
- 52:20And we yeah, that was the plot twist.
- 52:22Yeah. Dude, so that's one thing.
- 52:26Oh, go ahead. It was there solid on the finish
- 52:28with, It's the final. It was gonna, I was gonna do
- 52:31like a j.r. Tolkien final sentence.
- 52:33That was how it came to be. So there's one thing that stands
- 52:40out to me, though, in all of the history of clean lab is you've
- 52:44been working with huge companies?
- 52:47I mean, the biggest companies around, right?
- 52:49Especially in Tech. Does this still have?
- 52:53Have as much utility for the small data sets as it does for
- 52:59the Googles and the Amazons. Yeah it totally.
- 53:02It works for any data set. So it's the reason why we wanted
- 53:06to work with big companies from the start is because nobody else
- 53:09could do that. And so, if you're building
- 53:11something, if you're entering a market, it's a good idea to say,
- 53:14like what can you do that? Other people can't do.
- 53:17If you look right now, if you just search online data quality
- 53:19for AI, it's like 100 companies like everyone is branding
- 53:23themselves. Equality for AI.
- 53:25But where show me, show me a company that does label quality
- 53:29and it's just like, not a thing. Well, that's what we do at clean
- 53:31lab will show me a company that can do label quality for data
- 53:35that's already been labeled at massive scale like that.
- 53:39These aren't keywords that you see as often and so we realized
- 53:41that was a differentiator for us.
- 53:43And so we wanted to work with key Pilots where we were fixing
- 53:47labels, specifically. We can also do tons of stuff in
- 53:49the data space out of distribution.
- 53:50A distribution examples, but we wanted to focus on thing that
- 53:53differentiates Us and something where we do extremely well,
- 53:56where we know we have one of the best Solutions and that was just
- 53:58the main reason but it works for any dataset.
- 54:00So you've inevitably had to have seen some really exciting things
- 54:07happen since clean lab launched. I guess what are some huge
- 54:13success stories or just things that you didn't think we're
- 54:17possible that potentially became possible or things that you
- 54:23stay. With you because it's been so
- 54:26astounding. Hmm, that's a good question.
- 54:32I would say the whole journey in a sense, this is feels that way.
- 54:36If you, if you just I I take a big bird's eye view for
- 54:39questions like this. So I just think about where were
- 54:41we ten years ago? So, I, when I was sitting in
- 54:46when 2016, I'm an intern. I'm a very green.
- 54:50Eyed excited in turn on like 20, 24, or 25 or something at this
- 54:55time. And I'm sitting inside of And an
- 54:59office room with Geoff, Hinton and Ian, laocoon and some other
- 55:03Facebook AI researchers. And I really didn't even realize
- 55:07at the time just how, how much of an experience that was
- 55:11because I was pretty young and I'd read a few papers, but I
- 55:13didn't know like, you know, these are some of the biggest
- 55:16minds of our time. I didn't know they were about to
- 55:17win the Turing award or the Nobel Prize for computer
- 55:20science. And so, this is an experience I
- 55:23was in and then Geoff, Geoff Hinton, he shared with us one.
- 55:28Label error. Okay, so we're 2016 just to give
- 55:31you an idea of the time and space and he shared with us.
- 55:35One label are and Ian mcewan's data set and he was actually he
- 55:38was genuinely excited about that a because he's you know, proving
- 55:41a friend, you know, their friends and he's like, hey haha
- 55:45I found an error in your data set but also be I think that
- 55:48that, you know, that's just representative if you have one
- 55:50of the greatest minds of our time, in our field, who's
- 55:53excited about one error in a dataset.
- 55:56And now we're finding, you know, millions of these things.
- 55:58Scale and we can do them generally.
- 56:01That is exciting. When I just take a bird's eye
- 56:03view and I'm like, okay, we've built now a business around
- 56:05this. That actually does this at scale
- 56:06for anybody, and if you just go to label airs.com, you can
- 56:09literally see millions of them. Many of them in the same data
- 56:12set that. Geoff Hinton was finding an air
- 56:14and that's that's pretty cool. Hell yeah, that's incredible.
- 56:21Well, I want to end with some rapid fire questions for you if
- 56:24you don't mind. Sure.
- 56:26First one is what? What was the last book you read?
- 56:31Last book I read was the bizarre and the cathedral which is it's
- 56:37an Open Source book. It's from some of the original
- 56:40folks who created if, you know, Linus Torvalds who created Linux
- 56:45and it's the perspective of why open source as a business, can
- 56:49be a good model. We do both SAS and open source,
- 56:52but it's a pretty cool book and I highly recommend it for anyone
- 56:54who's interested in open source. Okay, I like that and as they
- 57:00say, Big fan of open-source. I am going to have to check that
- 57:03out. Next one, I've got for you is
- 57:09What was the last bug that you smashed?
- 57:12I know you were up lat late last night was that smashing bugs or
- 57:17no numbers slashing. We had a, some, some good
- 57:22opportunities and they were good enough.
- 57:24I wanted to stay up for him, but let me think the last bug I
- 57:28smash, you know, last night there was a there was I so I
- 57:32mean I'm in California sometimes you'll open the door and there
- 57:34will be some flies that come in, you know, and it was a nice day
- 57:38and Wow, buzzing around. You know that experience?
- 57:42You're like trying to do your work and there's some fly
- 57:44buzzing, it doesn't matter. It doesn't matter where you are,
- 57:45you can be in a penthouse or you can be.
- 57:47And, you know, tent somewhere. There's always going to be flies
- 57:51and it's one thing that unites us, no matter, no matter what
- 57:53your position in life, you all have to everyone has to deal
- 57:56with flies so I totally smashed that fly.
- 57:59All right. I like you took that one a
- 58:03little bit different direction than I was expecting but I like
- 58:06it. So, You as a business owner,
- 58:11that is selling into the ml space.
- 58:13What is a piece of ml marketing or MLM Ops marketing, ml,
- 58:20tooling marketing that you have thought about putting out or
- 58:26your team has thought about putting out or you've seen put
- 58:29out that major eyes roll. Hmm.
- 58:33Roll like, this is like, I mean, I, I think I already mentioned
- 58:36it, but when I see just data quality for a Just in general, I
- 58:40use, I even use we even use that sometimes at clean lab.
- 58:43Like I think if my current Banner on LinkedIn says data and
- 58:45label quality for AI. But then we put we put automated
- 58:48around it just to emphasize what we do differently.
- 58:50But in general, I don't like that phrasing.
- 58:52It's just that people have gotten used to it, but I think
- 58:54it's so it's so generic. And if we are all saying the
- 58:57same thing, how does anyone know what anyone's doing?
- 58:59So when I see that it kind of makes my eyes roll because
- 59:01there's no differentiator and it's just like, what exactly are
- 59:03you talking about dude? I think that's one of the
- 59:07biggest problems right now and This space is that so many of
- 59:12the tooling companies are saying the same thing, but taking
- 59:16drastically different approaches to getting it done.
- 59:20It's like, oh, the outcome is the same.
- 59:22And so, that's what we're pitching.
- 59:24You the because I think all the marketers on the teams are like,
- 59:27they've gone through. The what is it?
- 59:29The things to be done marketing school, where it's just like,
- 59:33no, you don't want a hammer and a nail, you want a picture on
- 59:36your wall and so, Pitching you the picture on the wall?
- 59:40Not the hammer and nail. That gets you that picture on
- 59:43the wall, right? So the idea here when people say
- 59:47oh yeah we make your ml faster or we give your data quality
- 59:52assurance and that kind of stuff.
- 59:53It's like yeah but how and then it just creates a very cloudy
- 59:59and mystified space. And people have to really search
- 1:00:03around and dig really hard to see if what the tool that
- 1:00:07they're looking at. Does what they're looking for
- 1:00:10and if it does it in the way that they need it to be done.
- 1:00:14And so I'm fully onboard with what you're talking about there.
- 1:00:18Like, 100%. Now, this next one.
- 1:00:23Did you have anything there? Sorry, I would just say the
- 1:00:25biggest. No, it's okay.
- 1:00:27I just think the biggest detriment for the field.
- 1:00:30And I mean an industry like for businesses and ML and AI
- 1:00:34companies is that there are probably 90% of them are
- 1:00:38companies that Claim to use Ai and there's no real clear,
- 1:00:42explanation of what is the AI and then you find out that
- 1:00:45they've downloaded app, I torch model or a hugging face model
- 1:00:48and they're running it through a you know a generic Sage maker,
- 1:00:51you know, tool that's already been set up for them and that's
- 1:00:54the total sum of their a is just a black box tool that anybody
- 1:00:57else could download for free. And when you find that out and
- 1:01:00then it's called me. I company, I just it's not
- 1:01:02necessarily a bad thing, you know, like people will do
- 1:01:05business where they do business and not all business has to like
- 1:01:08come out of It'll research, you know, out of a university.
- 1:01:11It's okay. It's just that it's confusing
- 1:01:13for users and for customers what exactly the value is that
- 1:01:17they're paying for, they don't know that they're paying for its
- 1:01:21potential. That some companies they're just
- 1:01:22paying for something they could download online and that's not
- 1:01:25made aware or clear to them. I think that's a problem from a
- 1:01:28business perspective, and from an honesty perspective with
- 1:01:31customers and users. If you're going to be in AI
- 1:01:33company, ideally, and this is not the world, we live in, but
- 1:01:36in an ideal world, you would be paying for it.
- 1:01:38Patience and Ai and that's why you're actually paying for
- 1:01:41something. But and that would also Drive
- 1:01:44Innovation and AI which would be good for the world.
- 1:01:46But, you know, we don't live in an ideal world.
- 1:01:47We live in a, you know, a capitalist one.
- 1:01:50We do and it's Cutthroat out there.
- 1:01:52There's sharks out there so they gotta eat last one.
- 1:01:58Well, What piece of technology? Are you bullish on?
- 1:02:03That might surprise people besides clean lab.
- 1:02:06Obviously, that wouldn't surprise anybody.
- 1:02:08I don't think. Yeah, I'm bullish on a lot of
- 1:02:12things. I think long-term, I am pretty
- 1:02:16bullish on Quantum, but it's I think it'll take longer for like
- 1:02:19the last 30 years they've been saying 10 years, right?
- 1:02:22So, but I've seen the work that's done internally, and I
- 1:02:26think that it will be fruitful when combined with a classical
- 1:02:29computer. I'll just leave it at that
- 1:02:31because I think I can tell you got another question.
- 1:02:33Damn, that leaves me wanting to know so much more, but we'll
- 1:02:37save it for the next one. Last one is Curtis.
- 1:02:40How do you want to be remembered?
- 1:02:44I want to try to empower people. I don't actually mind how it's
- 1:02:49how I get there, but one way is to build a business that makes a
- 1:02:53I work for real-world human problems and that's clean lab.
- 1:02:58I make some music and I hope that that helps people and its
- 1:03:01own way. I tried to do a lot of stuff
- 1:03:04back home, I'm from Kentucky. And there's if you if you think
- 1:03:07about the field of MLM businesses, you know, a lot of
- 1:03:11that. What's that?
- 1:03:12It's earned and the revenue and what's created by that and the
- 1:03:15opportunities tend to go to the cities and not much of that
- 1:03:19usually goes back to places like Kentucky.
- 1:03:21So one thing I did is I hired our chief of staff for example
- 1:03:24from Kentucky and she works remotely there and just any way
- 1:03:28that you could sort of give back.
- 1:03:30So just in general and empowering people, creating
- 1:03:32opportunity, I tried to you know validate certificates and edx we
- 1:03:36did that at scale. We ended up validating literally
- 1:03:40tens of millions of certificates and I just want to keep doing
- 1:03:43stuff like this until the day, I die.
- 1:03:45How do we use technology and the latest Innovations and build new
- 1:03:49ones that can Empower people at scale?
- 1:03:52That's what I'm here to do. Incredible answer.
- 1:03:55You guys hiring? Yeah, we're hiring, we just, we
- 1:03:59filled most of our positions will do another big hiring
- 1:04:02Sprint next year, but if anybody's interested in devrel
- 1:04:06developer relations, that's a pretty awesome job because you
- 1:04:09can it's sick because you basically build your own
- 1:04:14profile. If you like social media, you
- 1:04:15can, you know, use your use the job to your advantage to build
- 1:04:20your own following while also helping us out.
- 1:04:22So we're hiring for that role and also, you know, some, some
- 1:04:25Engineers, if you're a great front-end engineer, Reach Out,
- 1:04:28All those tick stalkers out there Curtis up.
- 1:04:35So sweet, man, this has been really cool.
- 1:04:38How many people did you catch cheating at edx?
- 1:04:41Do you have a number? Yeah, so we did it.
- 1:04:43We gave a lower bound because it was published.
- 1:04:46So, and Academia, you have to when you say something, you
- 1:04:49know, you need to back it up and it needs to be falsifiable, but
- 1:04:52we said that it was a minimum of one percent and some courses it
- 1:04:56was much higher was has high as 10%.
- 1:04:58Not true anymore. Now they're running lots of
- 1:05:01cheating detection algorithm so I highly recommend that you
- 1:05:03don't cheat. You're probably gonna get banned
- 1:05:05but in the early days you would have like ten percent of people
- 1:05:09just blatantly cheating and not learning, which was really sad.
- 1:05:12Yeah, that's a bummer dude. This has been so insightful.
- 1:05:16I thank you for coming on here and schooling us to all of this
- 1:05:21and now I will never look at data Centric, AI the same way
- 1:05:26again. I'm just going to come Lean.
- 1:05:29I thought it was marketing bullshit when we got on this
- 1:05:33call and now I'm a little bit pot into it.
- 1:05:36And as long as I am able to reproduce what you said, maybe
- 1:05:43like 1/10 of the ability of what you were able to say.
- 1:05:48It means, I think that I'm cool with saying, data-centric Ai and
- 1:05:53not feeling like cringe-worthy afterwards.
- 1:05:59Totally. Yeah.
- 1:06:00It's pretty it's pretty useful stuff.
- 1:06:03Sweet man. Well, thanks again.