1. Podcasts
  2. Super Data Science: ML & AI Podcast with Jon Krohn
  3. 901: Automating Legal Work with Data-Centric ML (feat. Lilith Bat-Leah)
Super Data Science: ML & AI Podcast with Jon Krohn

1 Jul 2025 · 1h 6m · 22 chapters

Episode artwork

901: Automating Legal Work with Data-Centric ML (feat. Lilith Bat-Leah)

In short

How Epic’s AI Discovery Assistant automates e-discovery (document review in lawsuits) using ML plus LLMs, and how legal-tech evaluation metrics (including “illusion”) relate to broader data-centric machine learning (DMLR), where teams improve data rather than just models.

Guest background

Lilith Bat-Leah is Senior Director of AI Labs at Epic (6,000+ employees). She has 10+ years applying ML to legal tech, published work on evaluation for ML in legal discovery and on data-centric ML, co-chairs the ML Commons DMLR research working group, and organized data-centric workshops at ICML and iClear. She studied statistics at Northwestern.

Key claims

Epic’s assistant automates 80% of traditional discovery and completes reviews up to 90% faster than linear review/TAR. Legal defensibility depends on evaluation metrics and uncertainty ranges (confidence intervals), not point estimates. “Illusion” is a legal-tech metric used to estimate recall from documents predicted non-relevant. DMLR shifts focus from model iteration to data iteration.

Notable examples

TAR workflows (relevance feedback vs uncertainty sampling), “TAR 1.0 vs TAR 2.0” stopping points, and DynaBench/Dataperf challenges like data debugging and “adversarial nibbler” (e.g., “child sleeping in red paint” prompts producing unsafe images).

Written by AI. May contain mistakes.

Chapters

0:45

Lilith Bat-Leah's Background

Overview of Lilith's experience and expertise in legal tech and AI.

“Welcome back to the Super Data Science Podcast.”
2:15

AI's Impact on Legal Discovery

Discussion on how AI is transforming the legal discovery process.

“Lilith welcome to the super data science podcast.”
4:58

Understanding E-Discovery and TAR

Explanation of e-discovery, TAR, and their significance in legal cases.

“So you are the senior director of the AI Labs for a company called Epic, E-P-I-Q, which is a leading legal tech company.”
6:01

Epic's AI Discovery Assistant

Detailed discussion about Epic's AI Discovery Assistant and its functionalities.

“Yeah, and I'll qualify one of those claims a little bit.”
11:30

Classifier Training and Expertise

Insight into how classifiers are trained and the required expertise in legal firms.

“But yeah, you were filling us in on Epic's AI Discovery Assistant.”
14:01

The Role of Expertise in Legal Tech

Learn how domain expertise and evaluation metrics play a crucial role in legal technology.

“trained in a fully automated way without some kind of technical expertise like a data scientist being involved?”
19:16

Understanding 'Illusion' in eDiscovery

Discover the unique concept of 'illusion' in legal tech and its implications for eDiscovery.

“Um, and, and all of that goes into a defensible, quote unquote, defensible workflow.”
22:20

Confidence Intervals vs. Point Estimates

Explore the importance of confidence intervals in statistical analysis and decision-making.

“Um, so in this TAR 2 workflow and this workflow where you are having humans actually annotate every predicted relevant document, And then again, now you have that known quantity.”
27:23

Data-Centric Machine Learning: An Overview

Understand the significance of data-centric machine learning and its relevance across industries.

“So once your sample is sufficiently large, it doesn't really matter whether you're estimating something at 95 % or 99 % confidence.”
28:05

Introduction to Data-Centric Machine Learning

Explore the relevance and foundations of data-centric machine learning in legal tech.

“Those are more workflow terms than technical terms.”
Show all 22 chapters
29:20

Journey into Data-Centric Research

Learn about the speaker's journey into data-centric machine learning motivated by messy data.

“So in my first R &D role, I was really focused on algorithms and on finding the best classification algorithms for these classification tasks that we've discussed.”
30:49

The Rise of DMLR and Its Impact

Understand the emergence and significance of the Data-Centric Machine Learning Research community.

“So we have a lot of different things going on.”
33:07

Understanding Data-Centric Machine Learning

Discover how data-centric ML differs from traditional ML by focusing on data improvement.

“but our listeners still might not have a great understanding of what it is.”
34:30

Valuing Data Contributions in ML

Discuss the need for better recognition and publication venues for data-centric work in machine learning.

“themselves in terms of how much you have or the composition of those data or how you sample from the data.”
35:49

Challenges in Data-Centric ML

Examine the challenges and trends in data-centric machine learning and the importance of data cleaning.

“DMLR community members and so it's a paper called DMLR colon data centric machine learning research past, present and future.”
38:06

Innovative Data-Centric Challenges

Explore various challenges in data-centric machine learning, including data selection and debugging.

“And it's so interesting that when you think about that ratio, how little there is public how little there is published on that 80%.”
42:00

Data-Centric ML Challenges

Explore the objectives and resources related to data-centric machine learning and its challenges.

“So for example, a child sleeping in red paint sounds benign, um, but generates an image that looks perfect.”
47:36

Lilith's Journey into Data Science

Hear about Lilith's unique path from administrative roles to data science leadership.

“Nicely said, as you have done throughout the episode.”
53:13

Understanding Statistics in ML

Discuss the importance of statistics in evaluating machine learning models and research.

“And I think you're not, if you don't understand statistics, I don't think you're able to properly evaluate the performance of the models that you're building.”
56:00

Understanding Confidence Intervals

Learn about the significance of confidence intervals and their importance in statistical inference.

“you're going to get a significant result every single time at that kind of threshold.”
58:52

Connecting with Lilith Bat-Leah

Find out how to follow Lilith Bat-Leah for more insights and her recommended resources.

“All right, so this has been a fascinating conversation.”
1:00:09

Key Insights from Lilith Bat-Leah

Discover the core insights from Lilith about legal tech and the DMLR movement's impact on data quality.

“Fantastic yeah great resources there I'll be sure to have dmlr.ai in the show notes.”
A man walking through an airport, asking his phone a question

Ask about this episode

Get the gist, explore an idea or ask about something said.

Claude

On Super Data Science: ML & AI Podcast with Jon Krohn, what are the key points of this episode?

Searching your listening

Transcript

Automatic transcript. May contain errors.

0:00Jon Krohn: This is episode number 901 with Lilith Bat-Leah, Senior Director of AI Labs at Epic.

0:12Jon Krohn: Welcome to the Super Data Science Podcast, the most listened to podcast in the data science industry. Each week, we bring you fun and inspiring people and ideas exploring the cutting edge of machine learning, AI, and related technologies that are transforming our world for the better. I'm your host, John Krohn. Thanks for joining me today. And now, let's make the complex simple.

0:46Jon Krohn: Welcome back to the Super Data Science Podcast. Today, we've got Lilith Batlia, a tremendously gifted communicator of complex technical information on the show. Lilith has over a decade of experience specializing in the application of machine learning to legal tech. She's now senior director of AI Labs at Epic, a leading legal tech firm that has over 6 ,000 employees. She's published work on evaluation methods for the use of ML in legal discovery, as well as published research on data-centric machine learning. She's co-chair of the data-centric machine learning research working group ML Commons and has organized data-centric workshops at ICML and iClear, two of the most important AI conferences.

1:29Jon Krohn: She holds a degree from Northwestern in which she focused on statistics. Today's episode will appeal primarily to hands-on practitioners like data scientists, AI ML engineers, and software developers. In today's episode, Lilith details how AI is revolutionizing the legal industry by automating up to 80 % of traditional discovery processes, why illusion is a critical metric that only exists in legal tech and what it reveals about machine learning evaluation, the surprising reason why we should stop obsessing over model improvements and focus on something else that takes up 80 % of data scientists' time.

2:05Jon Krohn: and she talks about how she grew from being a temp receptionist to eventually an AI lab director by falling in love with statistics. All right you ready for this outstanding episode? Let's go.

2:23Jon Krohn: Lilith welcome to the super data science podcast. I'm delighted to finally get you on the show. I was talking about it with you for a while and now it's finally happening. Where are you calling in from today. Thank you so much for having me. I am in New York City. Likewise, exactly. Both in Manhattan, though recording remotely anyway, it does make things easier. There's a lot less setup involved if I just do remote recording sessions for people who are wandering at home. Why is sometimes do New York episodes remotely with guests? Though I guess also I could be traveling. I don't know. It just makes the logistics easier to do things remote.

3:02Jon Krohn: And yeah, so we actually met after the Open Data Science Conference East in Boston a year ago. Was it a year ago or two years ago? Just a year? I think it was just a year ago. Just a year. And so we were on the train back. So the Excella, the supposed express train that is available only in this kind of northeast corridor of the US. And it isn't that fast. If people have been on express trains in Europe or Asia, you'll be like, this isn't a very fast train. But it is a really nice ride from New York to Boston or vice versa. And yeah, the only kind of nice train ride that you can have in North, or at least in the US.

3:47Jon Krohn: Canada does actually have some nice trains too. And I was sitting, you know, trying to mind my own business. But behind me, you were sitting and you were going into a lot of technical detail and explaining technical data science concepts very clearly, succinctly, in a really enjoyable way to whomever you were sitting with. And after like an hour of listening to that, I popped around in my seat because I had to find out who this person was. And it was you. Thank you. Yeah, and you can give all of that credit to the judges and attorneys that I've had for these technical concepts. Yes, and so we are going to have a legal episode here, but I think this will be interesting for anyone because I think it's great to dig into different domains and whether you do work in legal or legal tech yourself, there's lots of concepts that we'll be describing that could be transferable.

4:49Jon Krohn: So you might think of an analogous kind of thing that you could be doing in your own industry. And so yeah, Yeah, so let's start off with that. So you are the senior director of the AI Labs for a company called Epic, E-P-I-Q, which is a leading legal tech company. They're a pretty big one. There's thousands of employees, I think. I looked into this. Yeah, I think we're over 6 ,000 right now. Right, over 6 ,000 employees. So it's a big legal tech company. Earlier this year, Epic launched something called the Epic AI Discovery Assistant, which claims to automate more than 80 % of traditional e-discovery processes and completes reviews up to 90 % faster than something called TAR, Technology Assisted Review, or Linear Review, which I'm guessing is like a human reading every word on a page, linearly.

5:45Jon Krohn: So we've got a bunch of legal tech jargon here now that I'm not really familiar with. So tell us about Linear Review's TAR and e-discovery. Tell us about those terms, and then we can get into how AI can make life easier. Yeah, and I'll qualify one of those claims a little bit. It's better than traditional TAR. So I would say that the software that we offer does support TAR workflows. And to actually describe what that is, it stands for technology-assisted review. And it basically describes a process whereby you use machine learning to classify documents as relevant to a litigation or not relevant to a litigation.

6:33Jon Krohn: And a litigation is just somebody suing someone else, I guess. Yeah, yeah. So the way I explain discovery for people outside of the legal industry is that basically anytime two companies sue each other, they have to exchange anything and everything that might be considered evidence in the case. So what this ends up looking like is piles and piles, maybe hundreds of thousands, even millions of documents, emails, Word docs, Excels, tweets, text messages, anything and everything, tons of unstructured data that might be relevant to the litigation. And then attorneys have to go through all of that and determine what is going to be produced to the other side, what they're legally obligated to produce to the other side, because it might be evidence.

7:21So that is e-discovery in a nutshell.

7:24Jon Krohn: What makes it e-discovery? So way back when, and you might be familiar with those TV shows where the lawyers have the boxes of documents, that's traditional discovery. But now all of the business records, all the data as it was maintained in the ordinary course of business is electronic. So, um, in the early aughts around then, I think, uh, we started calling it e-discovery rather than, than discovery, but now pretty much all of document discovery is, is e-discovery for the most part exceptions where, uh, some, you know, asbestos case where you have to go back to the, to the paper documents and scan them in and then, and then review them.

8:09Jon Krohn: This kind of reminds me of, uh, yeah, watching those old TV shows and, uh, and you'd see, like, it seems like it's a deliberate strategy to flood your opponent with like as many documents as possible to bog them down and increase their fees, that kind of thing. Yeah. Yeah. So, so that's considered a bad faith approach these days. if you try to just overwhelm your opposing counsel with documents that aren't actually responsive to their RFPs. And that's where precision matters a lot if you're using a certain version of technology-assisted review. So yeah, so now that we have all these great machine learning tools for e-discovery, it's much easier for opposing counsel to uncover the needles in a haystack that they might be looking for and pinpoint the evidence that really matters to them.

9:01Jon Krohn: Now I think we have an understanding of the territory. Tell us about Epic's AI Discovery Assistant. Tell us about how that's different and how it accelerates. Again, the claim that you qualified appropriately. It automates 80 % of discovery and completes reviews up to 90 % faster than linear review other approaches? So traditional TAR technology, basically it's a classifier with active learning. And depending on the prevalence of documents that you actually care about in your overall population, you'll use one of two different active learning workflows. um and before i keep going can i assume that your audience will be familiar with active learning i would love to hear a bit more about it excellent um so active learning is just a way to select data in a more efficient way for for um for training your classifier and there are generally two popular approaches to it in eDiscovery.

10:23So if you have really low prevalence, you're probably better off using relevance feedback. So you're going to have human annotators label the documents that are already most likely to be considered relevant by the model. So you're going to use that. And then you're going to iteratively retrain the model several times in order to improve performance. And that's in a low prevalence situation. If you have more balanced classes, that is a more equal proportion of relevant and irrelevant documents, then you're going to want to use uncertainty sampling where you're looking at the entropy of each data point and having human annotators label the documents that the model is most unsure about in order to improve performance.

11:16So those are the two flavors of active learning that we tend to use in this space.

11:21Jon Krohn: Very cool. That's exactly the kind of clear technical explanation that I heard on that train ride. Fantastic. Thanks, Lilith. Yeah, so we kind of took a little bit of an excursion to talk about active learning. But yeah, you were filling us in on Epic's AI Discovery Assistant. Yeah, and I really should, I should be, I am very excited to talk about Epic's tools. But again, with traditional TAR, it's basically traditional long text classification. Anything from a random forest algorithm to an SVM to logistic regression is pretty popular. You can use any of these algorithms or some ensemble learning and arrive at your classification.

12:03along with that active learning component of things. What's very cool about Epic AI Discovery Assistant is that it uses more traditional methods for long text classification, but it also leverages LLMs. So you get a headstart on the documents that you start training on by using retrieval augmented generation to find the documents most likely to be relevant to whatever it is that you care about, whatever issue the attorneys might have specified, and kickstart things there. And then both your human language instructions and your labeled examples are going to go into training the best classifier possible.

12:53So it takes input from both example data and from natural language instruction.

12:59Jon Krohn: So you need a classifier for basically every case, a separate classifier. Sometimes many, many classifiers in one case. It depends on how many different things they care about classifying. So generally, you'll always have a responsiveness, assuming that it's in preparation for a production to opposing. you'll always have what's called a responsiveness model, basically a relevance model. Is it relevant to any of the issues in the case? But then you might also have classifiers for things like privilege, whether the document is protected by attorney-client privilege and therefore it's not mandatory to disclose it.

13:38And then confidentiality potentially, and then all sorts of issues that the attorneys working on the case might care about.

13:46Jon Krohn: So does this mean that big law firms typically have data scientists on hand or do they rely completely on tools like Epic AI Discovery Assistant to allow these classifiers to be trained in a fully automated way without some kind of technical expertise like a data scientist being involved? Yeah, they mostly rely on these tools. So very few law firms have, maybe that's changing, but I would say very few law firms have data scientists who are involved in the discovery component of the practice. So, yeah, so they do rely on these tools. With that said, you do need to have some expertise, some domain expertise, and some familiarity with basic evaluation metrics in order to make sure that you're using the tool in a defensible manner.

14:44And we are trying to build in as much of that as possible, build in the expertise, build in all the metrics and intuitive explanations of them. But I would say at this point, it's still ideal to have that domain expertise and a little bit of familiarity with evaluation metrics.

15:03Jon Krohn: Gotcha. So perhaps a law firm might work with Epic not only to get access to a tool, but also to leverage expertise for people like yourself. Exactly. Yeah. Yeah. We have an amazing team that helps clients with specific matters and helps them achieve whatever it is they're looking to achieve for that particular case. And that can entail building dozens of models for one single case. when the stakes are so high as big law firms when you're talking about hundreds of thousands or millions of documents obviously these are going to end up being very expensive cases you're talking at least millions of dollars and it's probably very often in these kinds of litigation situations tens, hundreds of millions of dollars, billions of dollars on the line one way or another for the defendant or the plaintiff?

16:01Does that happen in litigation? Do you have a defendant and a plaintiff in litigation? Yeah, absolutely.

16:07Jon Krohn: And so in that kind of situation, the stakes are very high. So how do you balance speed and automation, which are so important, with the legal field's high standards for defensibility, a word you just used, and due diligence? Those are great questions. So one of the fun things about working in the legal industry is that these standard evaluation metrics, recall and precision generally, get negotiated, sometimes get negotiated with opposing counsel or some governmental body. So it's the one time where your evaluation metrics and being rigorous in your evaluation processes, reasonably rigorous in your evaluation processes, really, really matter, right?

16:54You get to argue about the margin of error and all sorts of things like that. And you have to, as a data scientist, you do have to be able to explain what that really means and what the consequences of it might mean to attorneys and sometimes judges. But it is every case is a little bit different. Defensibility boils down to what that particular attorney is comfortable defending. and there are proportionality considerations and undue burden considerations that go into it. So for example, if you have a really, really low prevalence, you know, relevance tag, right? If you're looking for a subset of the documents that's really rare, just sampling enough documents in order to be able to evaluate it could become overly burdensome potentially.

17:54And then we have this metric that I've never come across outside of eDiscovery. We call it illusion, where we're just sampling the subset of documents predicted not relevant. And we have the human ground truth labels for all the relevant documents. So from those two metrics, we can then estimate an interval for recall. And that's an interesting case. And the defensibility around that is debated. I'm a proponent of it because we don't use any of these metrics to evaluate what we call linear review, which is just humans with eyes on everything. And if we're just going to assume that that is the gold standard, that all of those labels are in fact correct, which we kind of know they probably aren't, then why should we hold machine learning workflows to a higher standard, right?

18:53We should be able to accept that those labels are the gold standard. So yeah, lots of interesting areas of debate, lots of different angles. And again, it just depends on the case and, and who's requesting what and how onerous it's going to be for the producing party to, uh, to appease opposing. Um, and, and all of that goes into a defensible, quote unquote, defensible workflow.

19:26Jon Krohn: Right, right. Let's talk a little bit more about this illusion, uh, term that seems to be unique to legal tech. Um, so, uh, for, for our listeners, uh, it's not an illusion like a magic trick with an i it's like elude e l u d e uh illusion e l u s i o n uh so it's like so it's like kind of like this idea of like deception um or like avoiding detection i suppose because it's not like deliberate deception yeah those are the documents that have eluded you. So yeah. Right. Exactly. And so then why is that different from, you know, from a machine learning metric that would be equivalent? Like, um, so that would be a, and I always, I often like getting, um, like a little two by two table in front of me to make sure I'm not butchering this, but that would be a, uh, false negative.

20:23Um, correct. Yes. Yes. False negative out of false negatives and, um, and true negatives. Exactly. Right.

20:33Jon Krohn: We actually candidly for our listeners, I just took, uh, I just took a second to do some research and, and pull out that it seems like a kind of a generic term for this, uh, for illusion. So, uh, false negatives divided by false negatives and true negatives can be called false omission rate in machine learning in general. But I guess that's kind of a, it's a bit of a mouthful. Illusion sounds nicer. It sounds like it's a simple word. I like it a lot. And I don't know who to credit with that term. It did kind of pop out of nowhere. So yeah, so I wish I could tell you more. but I did figure out how to get an interval for recall based on the illusion rate, right?

21:24The problem with the illusion rate, and it's a very legitimate problem, is that people will take an illusion sample and just decide that, hey, yeah, it's low. That's good. Without thinking about the starting prevalence, right? So if you started with, so right, people will say, oh, if the illusion is under 5%, then it's good. But that's not good if your prevalence was under 5 % to begin with, right? Then that doesn't tell you anything. So with this standard workflow, so now I can talk about, I hate these terms, but there's TAR 1.0 and TAR 2.0. And they basically are heuristics for different workflows and there's different permutations, right?

22:17There's different ways of getting to whatever model you're using to serve up documents and different stopping points for training. But at the end of the day, it boils down to TAR1 being a workflow where you produce documents that have only been classified by your classifier and not necessarily been looked at by human attorneys, whereas TAR 2.0, um, heuristically describes a workflow where you're looking at every predicted relevant document before it goes out the door. Um, so in this TAR 2 workflow and this workflow where you are having humans actually annotate every predicted relevant document, And then again, now you have that known quantity.

23:07You do know how many actual relevant documents there were. You don't have to estimate that from a recall precision curve or confusion matrix. And then you can estimate what the interval for recall is based on the interval for illusion. And you hear me go on and on about intervals. I'm obsessive about focusing on confidence and not point estimate. Exactly.

23:35Jon Krohn: I actually had some questions for you later on in the episode about that, but we might as well get into it right now. I mean, I can guess, but please tell us why you prefer going in ranges, why you prefer providing information in ranges as opposed to point estimates. Yeah. So the short answer is that the coolest thing about statistics is that you get to measure your uncertainty. So why wouldn't you do that? Why wouldn't you measure your uncertainty? But the more serious answer is that, I mean, we are dealing with uncertainties, right? You shouldn't assume that a point estimate is truly representative of the parameter that you're trying to estimate.

24:22you really should think about those confidence intervals because then you can feel pretty good about knowing that it's going to be somewhere within that range and you're taking the uncertainty into account. So it's easy to fixate on a point estimate, but I've said before that a point estimate without sample size, without confidence intervals is basically lying with statistics. You have no idea what, what the actual claim is there. Right.

24:56Jon Krohn: And so how do people who aren't trained in statistics react, uh, when you provide them with confidence intervals, as opposed to point estimates, do you ever get kind of a, you know, confusion or backlash on that? Yeah. Yeah. So it depends on who I'm working with. If it's, you know, if it's an attorney or judge, I try to just demonstrate I have like a even just like a quick calculator in Excel. I'll show them how, you know, varying certain things affects those estimates and try to give them an intuitive understanding of it. If it's, if it's a consultant, um, and I'm trying to give them a more intuitive understanding of it, I'll have them, I'll have them randomly sample half of the documents in a certain population and label them something like documents I care about.

25:51And then I have them sample with 90 % confidence, uh, at least 10 times so that they can see that, Hey, on average, one out of 10 times the actual, um, the point estimate that I'm estimating from the sample is not within the range that I've estimated. Right. And I think that builds up a, an intuitive understanding of, of confidence.

26:17Jon Krohn: Yes, yes, yes. The old law of large numbers, sounding familiar here. And I will eventually create YouTube content on these concepts if I haven't already. I can't remember where I am and I've been creating this mathematical foundations content and I was really good about putting it on YouTube for a couple of years up until three years ago. And I know that somewhere in there I do have a law of large numbers video but I think I might not have released it yet. So that it is coming eventually someday. Nice. In the meantime, people can look it up, but it's basically it's like, you know, the more data that you sample, the tighter your ranges will tend to be, your estimates will tend to be, you begin to get a better picture of reality without having to look at every single data point.

27:12That's right. And I was actually just showing colleagues today that when your sample is large enough, the intervals for 95 % confidence level versus 99 % confidence level tend to converge, right? So once your sample is sufficiently large, it doesn't really matter whether you're estimating something at 95 % or 99 % confidence.

27:38Jon Krohn: Right, right, right. That makes a lot of sense. Nice. All right. So we've now learned a lot about law, about legal tech. Have we gotten into yet? Yeah, I guess we have. We've gotten into the Epic AI Discovery Assistant as well because that you explained, you know, it had things built into it like retrieval augmented generation that allowed it to outperform technology assistive review 1.0 or 2.0. Those are more workflow terms than technical terms. So I hate the terms because they confuse people so much. But it's been what the industry has been using for quite a while now. Nice. All right. And so the topic that I actually thought might be the topic that we talked about the entire episode, but it ended up being that there were so many interesting things to go into around legal tech AI that I wanted to have the conversation that we just had.

28:35Jon Krohn: But the impetus for having an episode when we talked about it on the train already a year ago was this idea of data-centric machine learning. And so this is now a topic that is, this isn't just like, oh, there's some analogies here that might be relevant to your industry. Data-centric ML is relevant to every listener. Anybody who's working with data, this is relevant. And so tell us about data-centric machine learning research, DMLR. And my understanding is that you fell into DMLR as a result of how messy the data are in the legal space. Yeah, that's right. So in my first R &D role, I was really focused on algorithms and on finding the best classification algorithms for these classification tasks that we've discussed.

29:34At a certain point, I realized that the label data I was working with was so noisy, just had so many mislabeled instances and all of that, that it really curtailed my ability to evaluate the performance of the algorithm just because I couldn't necessarily trust my data. Um, so that led me to be very interested in what Andrew Ng coined data-centric AI. Um, and I ended up getting involved with a working group at ML Commons called Data Perf, uh, where we were looking to benchmark data-centric machine learning. Um, that ended up leading to a few different workshops that we've organized at iClear and ICML.

30:33Dataperf also became a NeurIPS paper. And yeah, yeah, basically it turned into a whole community. So now there's a DMLR journal, there are the DMLR workshops at these conferences, and then Dataperf morphed into the data-centric machine learning research working group with ML Commons. So we have a lot of different things going on. We're working in partnership with Common Crawl, the foundation that curates the data sets that most LLMs have been trained on. We're partnering with them on a challenge that will result in a low resource language data set that will be publicly available. So if you're interested in joining the working group, please do get involved.

31:22Again, it's with ML Commons. You can go to that site and sign up working group.

31:29Jon Krohn: We'll be sure to have a link to ML Commons in the show notes. And so when you say a low resource language, this is languages for which there are not many data available online. They could be rarely spoken languages or for whatever reason, languages that even if they're spoken relatively commonly, they aren't represented on the internet. Exactly. Exactly. Nice. That acronyms that you were saying there earlier where this DMLR initiative was getting traction. Conferences like iClear, ICML, NeurIPS, these are the biggest conferences that there are, academic conferences that there are. Really cool that you get such an impact there.

32:11Jon Krohn: It's also interesting to hear the connection to Andrew Ng there. Because he, I have in my notes here somewhere, I'm kind of scrolling around in here. Yeah, so at the inaugural DMLR workshop, Andrew Ng was the keynote. Yes, yes, exactly. And he was involved with Data Perf as well. He's on that Data Perf paper. Okay, so I'm now very clear on the importance of DMLR, the traction it's getting, and bigwigs like Andrew Ng being involved. Probably most of our listeners know who Andrew Ng is. He's one of the biggest names in data science, period. And if you aren't already familiar with him, he was on our show in December, so episode 841 you can go back to.

32:56Jon Krohn: We'll have a link to that in the show notes as well. So now I have a clear understanding of data-centric machine learning being very important, gaining traction, but our listeners still might not have a great understanding of what it is. Yeah, so the best way I can explain it is that in traditional machine learning paradigms, you're iterating on the model. You're iterating on the model architecture, on the learning algorithm, all of those sorts of pieces. And that's where you're really focused on improving performance is by iterating on the model. With data-centric machine learning, you're iterating on the data.

33:43So you're holding the model fixed and you're improving the data. You're systematically engineering better data. And then there are all these different questions, right? So there's the question of whether to aggregate labels or not. There's a really interesting paper, Doremi, that looked at weighting different domains of the pile to get the best LLM pre-training performance. So there's, yeah, it can go lots of different ways. There's another paper I'm thinking of, I can't remember the name, but they looked at selecting the best data points for training a model a priori. So not even active learning where you're starting with the results of the model to determine which additional data points you should have labeled.

34:29But but just with a with a data set from scratch using linear algebra to figure out which which data points are worth labeling.

35:09Jon Krohn: Right, right, right. themselves in terms of how much you have or the composition of those data or how you sample from the data. And so basically you're concerned, you're focused on data. They become central to the way that you develop your machine learning models and ultimately provide results. Yeah, that is a much better way of explaining it. I doubt it's better. I doubt it's better. It's just different because you explained it very, very well indeed. You are gifted at explaining this stuff. Nice. In a paper written by the DMLR community members and so it's a paper called DMLR colon data centric machine learning research past, present and future.

36:00Jon Krohn: I'll have a link to that paper in the show notes. I think you were a co-author on this paper, am I right? Yes, you are. You are, in fact, you're the third author on this paper amongst a couple dozen. And in that paper, it quotes that everyone wants to do the model work, not the data work. So what mindset shifts or incentives do you think are necessary to elevate the perceived value of data-centric contributions in the ML community? And yeah, yeah. So that's more than enough questions. Yeah, that's a great question. So one of the major challenges when DMLR was getting off the ground was that there were no really prestigious archival venues for this kind of work, right?

36:51So that's starting to be addressed with the data sets and benchmarks track at NeurIPS and then launching the DMLR journal, which, by the way, is it's the newest sibling journal to the JMLR journal, which has some street cred. But yeah, so finding or establishing these high-impact, prestigious venues for publishing this kind of work, I think that goes a long way toward encouraging more of the data-centric work. But we still have a long way to go, right? I mean, it is true. I think 80 % of most data science projects are way more about data cleaning and data engineering and all of that, but we really focus on that 20 % that's iterating on the models.

37:44But we don't look at that as a fun, exciting part. So I think we do need to just with our engineering mindsets, how can we systematically improve data? How can it be a task that goes beyond just annotating, finding better ways to annotate the data? All of those things have to happen for it to, I think, gain even more traction than it has.

38:10Jon Krohn: Yeah, once you put it in that kind of stark term, we've probably had 100 guests on the podcast confirm that 80-20, around 80 % of a real world data science project is spent on data cleaning and 20 % is actually on model building. And it's so interesting that when you think about that ratio, how little there is public how little there is published on that 80%. It should be most. DMLR should be most of it. Right, right. Well, I agree with you on that one. I guess what ends up happening is, this is me just completely riffing and I'd love to hear what you think about this, but I guess what ends up happening perhaps is that people might feel when they're doing that work that the problems that they're encountering are unique to their particular data set.

39:02Jon Krohn: Maybe ideas don't come to mind for them that generalize well across many domains or even within their subject matter that they're expert in. So, yeah, what do you think about that? What are some of the big trends or big themes that you see in DMLR that kind of apply broadly into a large range of circumstances? Yeah, so I'll go back to Dataperf, right? Because we were aiming to establish this benchmark suite. Benchmarks pushed model-centric machine learning pretty far. So we were hoping that we could push data-centric ML further along by establishing benchmarks there. To be honest, we have, I don't know how far we really made it, but it was an interesting endeavor.

39:57And we focused on a few different types of tasks. So one was data selection. So from a very large pool of data, how do you select the subset of data to train the highest performing model? And we did that in both the speech and the vision domains. So that was one challenge and benchmark. Then we had a data debugging challenge where participants were encouraged to find the mislabeled data points, the mislabeled instances in a data set, and correct the labels or exclude them from training. So I think that has pretty broad application, right? Anytime you're doing supervised learning, if you have mislabeled data, then that's going to be pretty practical.

40:58And then we also did a data valuation challenge. So how do you value each piece of data, right? Not all data are equal when you're training a model. Some have much more impact than others, right? So we looked at that. And that's a whole really interesting area of data-centric machine learning research that I didn't know anything about until I joined DMLR. but yeah but there are all these different ways to to estimate the value of certain data points and that might become increasingly important as we try to figure out how to compensate people for all the data that we're using to train all these all these models and then we had a red teaming challenge called adversarial nibbler where you know the reference uh is it futurama

42:07Jon Krohn: yeah yeah yeah that's funny i didn't actually think that there would be a reference until you asked for one but yeah fortunately i have seen quite a few episodes of futurama cool well i did not come up with the name i can't take credit there but um but yeah but the main objective of that challenge was to find benign sounding prompts that generated unsafe images. So for example, a child sleeping in red paint sounds benign, um, but generates an image that looks perfect. Right. So, um, so the challenge was all about finding these pairs, these text image pairs, um, for use in then helping to make these models more robust and all of that.

42:52Jon Krohn: Wow, what a visual. A child sleeping in red paint. Yeah, that is interesting. And just a little red paint puddle that just happens to be on the floor.

43:07Jon Krohn: So yeah, I'll have links in the show notes to dataperf.org, which I'm guessing stands for data perfect, maybe? data performance data performance of course but uh but that site is super outdated just ml commons and then dynabench.org is the platform where we host all of these challenges and that's dynabench that's like dynamic bench yeah yeah so that's um a platform that we've used to facilitate a lot of these data-centric challenges and that's still maintained by ml commons and um And if you're interested in that, that same DMLR working group that I mentioned before, we maintain DynaBench and continue to host challenges on DynaBench.

43:55Jon Krohn: Nice. And then I'll also have a link to your paper. So I already mentioned the DMLR past, present, and future paper. We'll also have a link in the show notes to your Data Perf paper, which is on benchmarks for data-centric AI development. And that one, you're just a couple commas away from Andrew Ng in the authors of that paper there. Cool, so those are resources that people can dig into deeply if they have more interest in data-centric machine learning, which probably all of us should, given that 80%. There is probably a lot of value to people sharing domain-specific solutions because it might inspire people to find some new domain-specific solution for their domain.

44:43And one of the things, actually, one of the future workshops we're considering is an applications research-focused DMLR workshop, because oftentimes at these academic conferences, applications research gets looked down on a little bit. And we do think that there's more need to ground everything in really practical use cases. And we're sure that there's going to be a lot of really interesting research that is domain specific that different people can learn from. So that is something that we're hoping to undertake in the future.

45:51Jon Krohn: Very nice. of how benchmarks and competition have led us to having such a model-centric approach to machine learning. And so things like Dataperf, where you have benchmarks, where you have competitions, and people can be trying to get the best results, how that can drive more and more data-centric ML adoption. It's a brilliant initiative. Yeah, and at the same time, I think we can be critical of it too, because there is a critique that the intense focus on benchmark performance doesn't necessarily translate to real-world impact in the way that we would expect. So there's definitely a balance to be found there.

46:36Jon Krohn: Regular listeners will already be aware that I'm obsessed with Anthropik's Fable 5 model, and it has taken over my working life. I'm writing a technical book that includes LaTeX files, mathematical notation, Python code examples, and Fable 5 and Cloud Code handles requests I make across whole chapters with accompanying Jupyter Notebooks end-to-end, work that a few short months ago would have been dozens of separate requests with way more manual fiddling required. With Fable 5, it just works, essentially like magic, first time. Cloud is the AI for problem solvers. It's the collaborator that understands your entire workflow and thinks with you, not for you.

47:13Jon Krohn: Whether you're debugging code at midnight, building a financial model or strategizing your next business move, Claude extends your thinking to tackle the problems that matter. For problems worth solving, get started with Claude at Claude.ai slash super data. That's Claude.ai slash super data. And check out Claude Pro, which includes access to all of the features mentioned in today's episode. Claude.ai slash super data. Nicely said, as you have done throughout the episode. All right. So, So before I let you go, we've gone through kind of the most exciting technical things that you're working on today.

47:54Jon Krohn: But you have an interesting background that I'd like to ask you at least one question about to kind of get into. So just going over your LinkedIn profile, it looks like you had a pretty interesting journey where there was actually, there was a point where you were an administrative assistant at the beginning of your career. It looks like you grew through legal roles, increasing seniority within legal firms, and then got into data science as well, and now you are a data science leader. I think this is an interesting journey, and I'd love to hear just a bit about what happened. Yeah, so I fell into eDiscovery as an admin assistant, basically as a temp receptionist, actually.

48:43And that was how I started my career. I was still finishing my undergrad at the time. And then at the same time that I was getting really familiar with e-discovery and developing my domain expertise there, I fell in love with statistics. So I took my first stats course and I got an A in it. And I didn't feel like I understood how or why I got an A because I didn't understand. I mean, I could calculate the correct answers, but I didn't have this intuitive understanding for why they were the correct answers. So I figured, OK, let me take more stats courses. And I took all the ones that made sense for me at the time.

49:28I took econometrics, psychometrics, various finance courses with portfolio theory. That's where I learned PCA. Yeah. So I took all these applied stats courses and I kept getting A's, but after each one, I had no idea how I was deserving of an A when I still felt like I didn't understand the material at all. So finally, I asked the chair of the statistics department at Northwestern if I could take his probability and stochastic processes course without any of the prerequisites, right? And I wrote him, you know, saying, okay, I know this is going to sound crazy, but here's why I think I can do it.

50:15And I'll never forget his reply. He wrote, Dear Lilith, anything is possible, but of course I would have serious reservations about letting you enroll without any of the prerequisites at all. Write me back in a year. Let's see if you really have picked up calculus before I consider this seriously. So I did. I crammed. I crammed for a year. I used MIT OpenCourseWare and Khan Academy and everything out there to just learn calculus on my own, a little bit of linear algebra. And then I came back to him and I said, okay, well, I didn't get as far as I wanted to, but I think I still want to take your course.

50:57So he said, go ahead. He sent me the textbook. It was a PDF. It was the first real math textbook I'd ever come across. It was just no images or anything, just coding problems. That's how I I learned how to code, right, and math problems. And I crammed, and I got an A on the finals. And then I finally felt like I understood statistics. And then since then, it's just been a lot of self-education and diving really deep into all the different flavors of confidence intervals. You can use really understanding what probability coverage means from that angle and just nerding out on the stuff I find most interesting.

51:41Jon Krohn: Very interesting. Indeed, that was an even more exciting story than I was anticipating. And it's interesting that I mentioned, because I don't talk about that often anymore in my Machine Learning Foundations curriculum, but it's covering a lot of those subjects, linear algebra, calculus, probability theory, and statistics. and we go in that order so that hopefully by the time we get to the statistics part you're able to understand based on the fundamental building blocks underlying it what's going on as opposed to just being able to get an A by following the examples. Not by rote, that's not exactly it, but by being able to apply the abstractions as opposed to understand the underlying fundamentals.

52:30Jon Krohn: And it's kind of interesting. I guess you were very excited. You said, I fell in love with statistics. And it's interesting because in a machine learning foundations curriculum, I don't really need to include statistics. Many people would argue it's not essential, but I also love statistics and it ends up being useful in so many ways, particularly around exactly what you described earlier in this episode, around being able to think of results that we have as being over a range, as opposed, you know, as having a confidence interval, as opposed to being a point estimate. And it's through statistics that I feel like I have a really good understanding of what those confidence intervals are.

53:15Yeah. And I think you're not, if you don't understand statistics, I don't think you're able to properly evaluate the performance of the models that you're building. So you might be able to build the model without statistics, but I think especially in this era of black box models, it's so important to be able to actually evaluate the performance of them.

53:37Jon Krohn: And that is exactly, that ended up being the focus. Like when I would try to come up with relevant examples during the statistics section, and a lot of the time it was in exactly what you're describing about evaluating different models and being able to not just run a model once, a stochastic model once one way and a second time another way and be like, well, I'm done. It did better the second time and therefore the second model is better. You should be running that model a bunch of times in both the A case and the B case, get a distribution of results and be comparing those. And then if you have a statistically significant result and that is actually something statistical significance came up in our research of you so Serge Massese our researcher pulled up some quotes from you around how how awful you know these kinds of ideas of a 95 % confidence interval having that as law I don't know if you want to go into that at all that kind of perspective sure sure you mean just being fixated on it being a 95 % confidence yeah like an alpha of 0.5 being the significance threshold kind of arbitrarily from the early 20th century, which particularly today, when we have very large data sets, when our sample sizes were 8, 16 in each group, that arbitrary confidence threshold of, and you can correct me if I don't say this exactly right, I'll do my best here, but it's that if you ran the experiment 20 times, you would anticipate with a.5 alpha that one of those 20 times you would get a significant result by chance alone.

55:31Jon Krohn: And this is like a century old idea from kind of the age of Fisher and Pearson in statistics.

55:44Jon Krohn: and so the idea there is that you'll kind of accept that you'll end up getting a significant result by chance alone one out of 20 times and that's kind of tolerable but it is completely arbitrary and then today when you have thousands or millions or billions of samples you're going to get a significant result every single time at that kind of threshold. Yeah, yeah. So the way that I've described it, and it is one of those things that's really hard to explain in plain English, but with a confidence interval, it's if you sampled this population an infinite number of times, you would expect that one out of 20 times the point estimate that you arrive at through your sample is not going to be within the estimated interval.

56:33with the, with, if your confidence level is 95%. So, yeah. So like I mentioned earlier, whether it's 95 % or 99 % confidence at a certain point, those converge, right? The intervals, the intervals for those will converge if you have a sufficiently large sample size, But by that, I mean a huge sample size, right? Like you need to be in the millions for them to really start to converge. And otherwise, it's just, you know, smaller and smaller differences between the intervals as you increase your sample size. But if your sample size is very small, if your sample size is, as you mentioned, you know, 8 or 10, then there's actually a pretty huge difference between the interval that you got using 95 % confidence and 99 % confidence.

57:31And sometimes I think people just, I think people just need to think about the question that they're trying to answer. So how important is it for me to be right about my interval? Right? Like it's a, so you're basically trying to answer the question, how likely is it that my inference is correct right and if you have if your inference is is conservative i you have that larger interval then you have you're in a better place to be correct more often right even though your your uncertainty is wider your uncertainty your interval is wider um you're still going to be correct about it being in that interval level whereas if you're really focused on that 95 confidence level and you have this really small sample size then yeah you're just taking the the you know you're at a higher risk of just estimating something wrong inferring something wrong from your from your um statistic right

58:42Jon Krohn: i don't know i don't know if that made sense that's pretty good it is tricky and uh yeah i I followed it along there. Nice. All right, so this has been a fascinating conversation. I knew it would be. You did not disappoint. For people who want to follow you after the episode and get more of your insights, how should they do that? LinkedIn is the best place for me. Nice. As it is for most guests these days. I've actually, I don't know if I've said this explicitly on air before, but I've actually, I've stopped tweeting. and I don't really check X anymore at all. For me, social media has migrated completely to LinkedIn at this point.

59:30Jon Krohn: Nice. And I missed my penultimate question there, so it's becoming the ultimate one, which is, do you have a book recommendation for us, Lilith, before we let you go? So I have to give the recommendation to read the DMLR journal for that one. that's just an easy convenient answer. If it's okay I also want to give a shout out to dmlr.ai which is the website where we post the latest about our workshops at these various conferences and there's a link to the dmlr discord if people are interested in following both the journal and the workshops. Fantastic yeah great resources there I'll be sure to have dmlr.ai in the show notes.

1:00:15Jon Krohn: Thank you so much, Lilith. This has been great. We'll have to catch up with you again in a few years when everyone's talking about data-centric machine learning and that's all that we're worried about instead of all these model benchmarks. And it may have had its moment already, right? I think for a minute people were talking about data-centric AI, but it never made it to the peak of inflated expectations or what have you. It kind of fell off the radar, but I'm still passionate about it. Yeah. Maybe we're still approaching it. I hope so. Thanks, Lilith. Thank you.

1:00:54Jon Krohn: Such a great episode in it. Lilith Botlia covered how when companies sue each other, they often exchange millions of documents as potential evidence and how Epic's AI Discovery Assistant uses LLMs and retrieval augmented generation to classify these documents as relevant or irrelevant up to 90 % faster than traditional methods. She talked about how legal tech's illusion rate measures false negatives amongst predicted non-relevant documents. She talked about how while 80 % of data science work involves data cleaning, most research focuses on the 20 % spent on models. She talked about how the DMLR movement, the data-centric machine learning research movement backed by Andrew Ng and major conferences like iClear, ICML, and NeurIPS aims to flip this by systematically improving data quality rather than just iterating on models.

1:01:42Jon Krohn: And she talked about how in legal settings where millions or billions of dollars are at stake, confidence intervals matter more than point estimates because understanding uncertainty is crucial when your evaluation metrics can be dissected in court. As always, you can get all the show notes, including the transcript for this episode, the video recording, any materials mentioned on the show, the URLs for Lilith's social media profiles, as well as my own at superdatascience.com slash 901. Thanks, of course, to everyone on the Super Data Science podcast team, our podcast manager, Sonja Breivich, media editor, Mario Pombo, our partnerships team, Nathan Daly and Natalie Zajski, our researcher, Serge Massis, writer, Dr.

1:02:21Jon Krohn: Zara Karche, and yes, of course, our founder, Kirill Arimenko. Thanks to all of them for producing another outstanding episode for us today for enabling that super team to create this free podcast for you. We are deeply grateful to our sponsors. You can support the show by checking out our sponsors links, which are in the show notes. And if you yourself are interested in sponsoring an episode, you can head to johnkrone.com slash podcast to find out how. Otherwise, share the episode with people who'd like to listen to it as well. Review it on wherever you listen to it. Subscribe, but most importantly, just keep on tuning in.

1:02:57Jon Krohn: I'm so grateful to have you listening and hope I can continue to make episodes you love for years and years to come. Until next time, keep on rocking it out there. And I'm looking forward to enjoying another round of the Super Data Science Podcast with you very soon.

From the publisher

Senior Director of AI Labs for Epiq Lilith Bat-Leah speaks to Jon Krohn about the ways AI have disrupted the legal industry using LLMs and retrieval-augmented generation (RAG), as well as how the data-centric machine learning research movement (DMLR) is systematically improving data quality, and why that is so important. 

Additional materials: ⁠⁠⁠⁠⁠www.superdatascience.com/901⁠⁠⁠⁠

This episode is brought to you by the ⁠⁠Dell AI Factory with NVIDIA⁠⁠ and Adverity, the conversational analytics platform⁠⁠⁠.

Interested in sponsoring a SuperDataScience Podcast episode? Email [email protected] for sponsorship information.

In this episode you will learn:

(05:45) Deciphering legal tech terms (TAR, e-discovery)

(13:47) How legal firms use data and AI

(29:01) All about data-centric machine learning research (DMLR)

(46:58) Lilith’s career journey in the AI industry

More from Super Data Science: ML & AI Podcast with Jon Krohn

All episodes