Lex Fridman PodcastMichael Kearns: Algorithmic Fairness, Privacy & Ethics | Lex Fridman Podcast #50
Summaries, chapters, transcripts, and FAQs on this page are made by uListen, not YouTube.
Partial transcript
75 min read · 15,002 wordsIntroduction
Lex Fridman 0:00 The following is a conversation with Michael Kearns. He's a professor at the University of Pennsylvania and a co-author of the new book, Ethical Algorithm, that is the focus of much of this conversation. It includes algorithmic fairness, bias, privacy, and ethics in general. But that is just one of many fields that Michael's a world-class researcher in, some of which we touch on quickly including learning theory or the theoretical foundation of machine learning, game theory, quantitative finance, computational social science, and much more. But on a personal note, when I was an undergrad early on, I worked with Michael on an algorithmic training project and competition that he led. That's when I first fell in love with algorithmic game theory. While most of my research life has been in machine learning and human robot interaction, the systematic way that game theory reveals the beautiful structure in our competitive and cooperating world of humans has been a continued inspiration to me. So for that, and other things, I'm deeply thankful to Michael, and really enjoyed having this conversation again in person after so many years. This is the Artificial Intelligence podcast. If you enjoy it, subscribe on YouTube, give it five stars on Apple Podcasts, support it on Patreon, or simply connect with me on Twitter @lexfridman, spelled F-R-I-D-M-A-N. This episode is supported by an amazing podcast called Pessimists Archive. Jason, the host of the show, reached out to me looking to support this podcast, and so I listened to it to check it out. And by listened, I mean I went through it Netflix binge style, at least five episodes in a row. It's now one of my favorite podcasts, and I think it should be one of the top podcasts in the world, frankly. It's a history show about why people resist new things. Each episode looks at a moment in history when something new was introduced, something that today we think of as commonplace, like recorded music, umbrellas, bicycles, cars, chess, coffee, the elevator, and the show explores why it freaked everyone out. The latest episode on mirrors and vanity still stays with me as I think about vanity in the modern day, of the Twitter world. That's the fascinating thing about this show is that stuff that happened long ago, especially in terms of our fear of new things, repeats itself in the modern day, and so has many lessons for us to think about in terms of human psychology and the role of technology in our society. Anyway, you should subscribe and listen to Pessimists Archive. I highly recommend it. And now here's my conversation with Michael Kearns.
Influence from literature and journalism
Lex Fridman 2:45 You mentioned reading Fear and Loathing in Las Vegas in high school, and having a more or a bit more of a literary mind. So what books, non-technical, non-computer science, would you say had the biggest impact on your life, either intellectually or emotionally?
Michael Kearns 3:03 You've dug deep into my history, I see. Um-
Lex Fridman 3:05 Went deep.
Michael Kearns 3:06 Yeah. I think, well, my favorite novel is, uh, Infinite Jest by David Foster Wallace which, um, actually coincidentally much of it takes place in the halls of buildings right around us here at MIT.
Lex Fridman 3:18 Yes.
Michael Kearns 3:18 So that certainly had a big influence on me. Um, and as you noticed, like, when I was in high school, I, I actually s- even started college as an English major. So was very influenced by sort of that genre of journalism at the time and thought I wanted to be a writer and then realized that an English major teaches you to read but it doesn't teach you how to write, and then I became interested in math and computer science instead.
Lex Fridman 3:40 Well, in your new book, Ethical Algorithm, you kinda sneak up from a algorithmic perspective on these deep profound philosophical questions of, of fairness, of, um, privacy. In thinking about these topics, how often do you return to that literary mind that, that you had?
Michael Kearns 4:03 Yeah. I'd like to claim there was a deeper connection, um, but, but there, uh, you know, w- I think both Aaron and I kind of came at these topics first and foremost from a technical angle. I mean, you know, uh, um, I kind of consider myself primarily, um, and originally a machine learning researcher, and I think as we just watched like the rest of the society, the field technically advance and then quickly on the heels of that kind of the, the buzzkill of all of the antisocial behavior by algorithms. Just kind of realized there was an opportunity for us to do something about it from a research perspective. You know, a, uh, more to the point in your question, I mean, I, I do have an uncle who is literally a m- a moral philosopher, and so in the early days of our technical work on fairness topics, I would occasionally, you know, run ideas behind him. So I mean, I remember an early email I sent to him in which I said like, "Oh, you know, here's a specific definition of algorithmic fairness that we think is some sort of variant of Rawlsian fairness. Um, what do you think?" And I thought I was asking a yes or no question, and I got back your kind of classical philosopher's response saying, "Well, it depends. If you look at it this way, then you might conclude this." Um, and that's when I realized that there was a real kind of, um, rift between the ways philosophers and others had thought about things like fairness, you know, from sort of a humanitarian perspective and the way that you needed to think about it as a computer scientist if you were going to kind of implement actual algorithmic solutions.
Lex Fridman 5:34 But I would say the algorithmic solutions take care of some of the low-hanging fruit, sort of the problem is a lot of algorithms when they don't consider fairness, they are just terribly unfair, and when they don't consider privacy, they're terribly, uh, uh, they violate privacy. Sort of the algo- algorithmic approach fixes big problems, but-There is still, you get, when you start pushing into the gray area, that's when you start getting to this philosophy of what it means to be fair, starting from Plato. What, what is justice, kind of questions.
Michael Kearns 6:12 Yeah, I think that's right. And I, (sighs) I mean, I, I, I would even not go as far as you went to say that, that sort of the algorithmic work in these areas is solving, like, the biggest problems. Um, and, you know, we discuss in the book the fact that, uh, really, we are ... There's a sense in which we're kind of looking where the light is in that, um, you know, for example, if police are racist in who they decide to stop and frisk, um, and that goes into the data, there's sort of no undoing that downstream by kind of clever algorithmic methods. And I think especially in fairness. I mean, m- m- I think less so in privacy where we feel like the community kind of really has settled on the right definition, which is differential privacy. If you just look at the algorithmic fairness literature, already you can see it's gonna be much more of a mess, and, you know, you've got these theorems saying, "Here are three entirely reasonable, desirable notions of fairness, and, you know, here's a proof that you cannot simultaneously have all three of them." Um, so I think we know that algorithmic fairness compared to algorithmic privacy is gonna be kind of a harder problem, and it will have to revisit, um, I think, things that have been thought about by, you know, many generations of scholars before us. Um, so it's very early days for fairness, I think.
Lex Fridman 7:33 So before we get into details of differential privacy, and, and on the fairness side, let me linger on the philosophy a
Are most people good?
Lex Fridman 7:39 bit. Do you think most people are fundamentally good, or do most of us have both the capacity for good and evil within us?
Michael Kearns 7:48 I mean, I'm an optimist. I tend to think that most people are good and, and want to do, to do right, and that deviations from that are, you know, kind of usually due to circumstance, not due to people being bad at heart.
Lex Fridman 8:03 With people with power, are people at the heads of governments, people at the heads of companies, people at the heads of maybe, so financial power, markets, do you think the distribution there is also most people are good and have good intent?
Michael Kearns 8:22 Y- yeah, I, I do. I mean, my, my statement wasn't qualified to people not in positions of power. I mean, I think what happens in a lot of the, you know, the, the, the cliche about absolute power corrupts absolutely. I mean, y- you know, I think even short of that, you know, having spent a lot of time on Wall Street and also in arenas very, very different from Wall Street, like academia, um, you know, one of the things m- m- I think I've benefited from by moving between two very different worlds is you, you become aware that, you know, these worlds kind of develop their own social norms, and they develop their own rationales for, um, you know, behavior, for instance, that might look unusual to outsiders. But when you're in that world, it doesn't feel unusual at all. Um, and I, I think this is true of a lot of, you know, professional cultures, for instance, um, and, and, you know, so then you're m- maybe slippery slope is too strong of a word, but, you know, you're in some world where you're mainly around other people with the same kind of viewpoints and training and worldview as you. And I think that's more of a source of, of, you know, kind of abuses of power, um, than sort of, you know, there being good people and evil people, um, and, and that somehow the evil people are the ones that somehow rise to power.
Lex Fridman 9:43 Oh, that's really interesting. So it's the, within the social norms constructed by that particular group of people, you're all trying to do good. But because it's a group, you might be, you might drift into something that for the broader population, it does not align with the values of society. That kind of, that's the worry.
Michael Kearns 10:01 Yeah, I mean, or, or not that you drift, but even the things that don't make sense to the outside world don't seem unusual to you. So it's not sort of, like, a good or a bad thing, but, you know. Like, so for instance, you know, on, on, i- i- in the world of finance, right-
Lex Fridman 10:18 Right.
Michael Kearns 10:18 ... there's a lot of complicated types of activity that if you are not immersed in that world, you cannot see why the purpose of that, you know, that activity exists at all. It just seems-
Lex Fridman 10:28 Yeah.
Michael Kearns 10:28 ... like, you know, um, completely useless, and people just like, you know, pushing money around. And when you're in that world, right, you're, you're, you, and you learn more, you, your view does become more nuanced, right? You realize, okay, there is actually a function to, to this activity. Um, and for s- in some cases, you would conclude that actually if magically we could eradicate this activity tomorrow, it would come back because it actually is, like-
Lex Fridman 10:52 Mm-hmm.
Michael Kearns 10:52 ... serving some useful purpose. It's just a, a useful purpose that's very difficult for outsiders to see.
Lex Fridman 10:59 Right.
Michael Kearns 10:59 And so I think, you know, lots of professional work environments or cultures, as I might put it, um, kind of have these social norms that, you know, don't make sense to the outside world. Academia's the same, right? I mean-
Lex Fridman 11:11 Right.
Michael Kearns 11:11 ... lots of people look at academia and say, you know, "What the hell are all of you people doing?"
Lex Fridman 11:16 Yeah.
Michael Kearns 11:16 "Why are you paid so much in some cases at taxpayer expenses to do, you know, to-"
Lex Fridman 11:22 Publish papers that nobody reads.
Michael Kearns 11:24 ... publish pa- you know, but when you're in that world, you come to see the value for it, and but even though you might not be able to explain it to, you know, the person in the street.
Lex Fridman 11:33 Right. And in, in the case of the, the financial sector, tools like credit might not make sense to people ƒ. Like, is, it's a good example of something that does seem to pop up and be useful or, or just the power of markets and just in general capitalism.
Michael Kearns 11:47 Y- yeah, in finance, I think the primary example I would give is leverage, right? So being allowed to borrow-... to, sort of, use 10 times as much money as you've actually borrowed.
Lex Fridman 11:58 Right.
Michael Kearns 11:58 Right? So, so that's an example of something that before I had any experience in financial markets, I might have looked at and said, "Well, what is the purpose of that? That just seems very dangerous." And it, and it is dangerous, and it has proven dangerous. But, you know, if the fact of the matter is that, you know, sort of on some particular time scale you are holding positions that are, you know, very unlikely to, you know, loo- you know, they're, you know, like your value at risk or variance is like 1% or 5%-
Lex Fridman 12:29 Mm-hmm.
Michael Kearns 12:29 ... then it kind of makes sense that you would be allowed to use a little bit more than you have, uh, because you have, you know, some confidence that you're not gonna lose it all in a single day. Now, of course, when that happens (laughs) -
Lex Fridman 12:42 Yeah.
Michael Kearns 12:42 ... we've, we've seen what happens, you know, not, not too long ago. But, but, you know, but the idea that it serves no useful economic purpose under any circumstances is definitely not true.
Lex Fridman 12:54 We'll return to the other side of the coast, Silicon Valley, and, and the problems there as we talk about (laughs) privacy, as we talk about fairness.
Ethical algorithm
Lex Fridman 13:05 At the high level... And I'll ask some sort of basic questions with a hope to get at the fundamental nature of reality.
Michael Kearns 13:12 (laughs)
Lex Fridman 13:14 But from a very high level, what is an ethical algorithm? So I can say that an algorithm has a running time of using big O notation, N log N. I can say that a machine learning algorithm cl- classified cat versus dog with 97% accuracy. Do you think there will one day be a way to measure sort of in the same compelling way as the big O notation of this algorithm is 97% ethical?
Michael Kearns 13:45 First of all, let me riff for a second on your specific N log N example.
Lex Fridman 13:49 Mm-hmm.
Michael Kearns 13:49 So because early in the book when we're just kind of trying to describe algorithms period, we say like, "Okay, you know, what's an example of an algorithm or an algorithmic problem, first of all?" Like, it's sorting, right? You have a bunch of index cards with numbers on them, and you want to sort them. And we describe, you know, an algorithm that sweeps all the way through, finds the, the smallest number, puts it at the front, then sweeps through again, finds the second-smallest number. So we make the point that this is an algorithm, and it's also a bad algorithm in the sense that, you know, it's quadratic rather than N log N, which we know is kind of optimal for sorting. And we make the point that sort of like, you know, so even within the confines of a very precisely specified problem, there, you know, there might be many, many different algorithms for the same problem with different properties. Like, some might be faster in terms of running time. Some might use less memory. Some might have, you know, better distributed implementations. And, and so the point is, is that already we're used to, you know, in computer science, thinking about trade-offs between different types of quantities and resources-
Lex Fridman 14:58 Mm-hmm.
Michael Kearns 14:58 ... and there being, you know, better and worse algorithms. And, and our book is about that part of algorithmic ethics that we know how to kind of put on that same kind of quantitative footing right now. So, you know, just to, to say something that our book is not about, our, our book is not about kind of broad, fuzzy notions of fairness.
Lex Fridman 15:23 Mm-hmm.
Michael Kearns 15:24 It's about very specific notions of fairness. There's more than one of them. Um, there are tensions between them, right? But if you pick one of them, you can do something akin to saying that this algorithm is 97% ethical. You can say, for instance, the, you know, th- for this lending model, the false rejection rate on Black people and white people is within 3%.
Lex Fridman 15:52 Mm-hmm.
Michael Kearns 15:52 Right? So we might call that to, a 97% ethical algorithm and a 100% ethical algorithm would mean that that difference is 0%.
Lex Fridman 16:00 Mm-hmm. In that case, fairness is specified when two groups, however they're defined, are given to you.
Michael Kearns 16:08 That's right.
Lex Fridman 16:08 So, so the... And, and then you can sort of mathematically start describing the algorithm. But nevertheless, the, the part where the two groups are given to you, in, unlike running time, you know, we don't in computer science talk about how fast an algorithm feels like when it runs. (laughs)
Michael Kearns 16:30 True. (laughs)
Lex Fridman 16:31 We measure it. And ethical starts getting into feelings. So for example, an algorithm runs, you know, if it runs in the background, it doesn't disturb the performance of my system, it'll feel nice. I'll be okay with it. But if it overloads the system, it'll feel unpleasant. So in that same way, ethics, there's a feeling of how socially acceptable it is. How does it represent the, the moral standards of our society today? So in that sense, and sorry to linger on that, first of all, high-level philosophical question, is do you have a sense we'll be able to measure how ethical an algorithm is?
Michael Kearns 17:07 First of all, I didn't, certainly didn't mean to give the impression that you can kind of measure, you know, memory speed trade-offs, uh, you know, and, and that there's a complete m- m- you know, mapping from that onto kind of fairness, for instance, or-
Lex Fridman 17:20 Yeah.
Michael Kearns 17:20 ... ethics and, and accuracy, for example. In the type of fairness definitions that are largely the objects of study today and starting to be deployed, you as the user of the definitions, you need to make some hard decisions before you even get to the point of designing fair algorithms. Um, one of them, for instance, is deciding who it is that you're worried about protecting, who you're worried about being harmed by, for instance, some notion of discrimination or unfairness. And then you need to also decide what constitutes harm. So for instance, in a lending application, maybe you decide that f- you know, falsely rejecting a creditworthy individual, um, you know, sort of a false negative, is the real harm and that false positives, i.e. people that are not...... creditworthy or are not gonna repay your loan, they get a loan, you might think of them as lucky.
Lex Fridman 18:18 Mm-hmm.
Michael Kearns 18:18 Um, and so that's not a harm, although it's not clear that if you are... don't have the means to repay a loan, that being given a loan is not also a harm. So, you, you know, the, the literature is sort of, so far, quite limited in that you sort of need to say who do you want to protect and what would constitute harm to that group. And, and when you ask questions like will algorithms feel ethical, one way in which they won't under the definitions that I'm describing is if, you know, if you are an individual who is falsely denied a loan-
Lex Fridman 18:52 Right.
Michael Kearns 18:52 ... incorrectly denied a loan, all of these definitions basically say, like, "Well, you know, your compensation is the knowledge that we are, we are also falsely denying loans to other people, you know-"
Lex Fridman 19:04 Yeah.
Michael Kearns 19:04 "... in other groups at the same rate that we're doing it to you." And, and, you know, there... and so there is actually this interesting even technical tension in the field right now between these sort of group notions of fairness and notions of fairness that might actually feel like real fairness to individuals, right? They-
Lex Fridman 19:23 Mm-hmm.
Michael Kearns 19:23 They might really feel like their particular interests are being protected or thought about by the algorithm rather than just, you know, the groups that they happen to be members of.
Lex Fridman 19:34 Is there parallels to the Big O notation of worst case analysis? So is it important to... looking at the worst violation of fairness for an individual, is it important to minimize that one individual? So, like, worst case analysis? Is that something you think about or...
Michael Kearns 19:53 I, I mean, I think we're not even at the point where we can sensibly think about that. So f- so first of all, you know, w- w- we're talking here both about fairness applied at the group level, which is a relatively weak thing, but it's better than nothing, and also the more ambitious thing of trying to f- to give some individual promises. But even that doesn't incorporate, I think, something that you're hinting at here, is what I try... what I call subjective fairness, right?
Lex Fridman 20:21 Right.
Michael Kearns 20:21 So a lot of the definitions... I mean, all of the definitions in the algorithmic fairness literature are what I would kind of call received wisdom definitions. It's sort of-
Lex Fridman 20:29 Mm-hmm.
Michael Kearns 20:30 ... you know, somebody like me sits around and thinks like, "Okay, you know, I think here's a technical definition of fairness that I think people should want or that they should, you know, think of as some notion of fairness. Maybe not the only one, maybe not the best one, maybe not the last one." But we really actually, uh, uh, don't know from a subjective standpoint, like, what people really think is fair. There's-
Lex Fridman 20:54 Mm-hmm.
Michael Kearns 20:54 You know, it's... W- w- w- we, we just started doing a little bit of work in, in our group at real... actually doing kind of human subject-
Lex Fridman 21:02 Mm-hmm.
Michael Kearns 21:03 ... experiments in which we, you know, ask people about... you know, we, we, we ask them questions about fairness. We survey them. We, you know, we show them pairs of individuals in, let's say, a criminal recidivism prediction setting and we ask them, "Do you think these two individuals should be treated the same as a matter of fairness?" And to my knowledge, there's not a large literature in which ordinary people are asked about... you know, they, they have sort of notions of their subjective fairness elicited from them.
Lex Fridman 21:37 Mm-hmm.
Michael Kearns 21:38 Um, it's mainly, you know, kind of scholars who think about fairness, uh-
Lex Fridman 21:43 Right.
Michael Kearns 21:43 ... kind of making up their own definitions. And I think, I think this needs to change actually for many social norms, not just for fairness, right? So there's a lot of, you know, discussion these days in the AI community about interpretable AI or understandable AI. And as far as I can tell, everybody agrees that deep learning, or at least the outputs of deep learning, are not very understandable. And people might agree that sparse linear models with integer coefficients are more understandable.
Lex Fridman 22:15 Mm-hmm.
Michael Kearns 22:15 But nobody's really asked people, you know?
Lex Fridman 22:17 (laughs)
Michael Kearns 22:17 There's very little literature on, you know, s- sort of showing people models and asking them do they understand what the model is doing.
Lex Fridman 22:25 Right.
Michael Kearns 22:25 And I think that, uh, in all these topics, as these fields mature, we need to start doing more behavioral work.
Lex Fridman 22:34 Yeah, which is... so one of my deep passions is psychology, and I always thought computer scientists will be the f- the best future psychologists. (laughs) In a sense that data is, um... especially in this modern world, data is a really powerful way to understand and study human behavior. And you've explored that with your game the- your theory side of work as well.
Michael Kearns 22:56 Yeah. I, I'd like to think that what you say is true about computer scientists and psychology. From my own limited wandering into human subject experiments, we have a great deal to learn. Not just computer science, but AI and machine learning more specifically, I, I kind of think of as imperialist research communities in that, you know, kind of like physicists in an earlier generation, computer scientists kind of don't think of any scientific topic as off limits to them. They will, like, freely wander into areas that others have been thinking about for decades or longer.
Lex Fridman 23:31 Yes.
Michael Kearns 23:32 And, you know, we usually tend to embarrass ourself-
Lex Fridman 23:36 Yes.
Michael Kearns 23:37 ... in those efforts for, for some amount of time. Like, you know, I think reinforcement learning is a good example, right? So a lot of the early work in reinforcement learning, I have complete sympathy for the con- the control theorists that looked at this and said, like, "Okay, you are reinventing stuff that we've known since, like, the '40s," right?
Lex Fridman 23:56 Mm-hmm.
Michael Kearns 23:57 But, you know, in my view, eventually this sort of... you know, computer scientists have made significant contributions to that field even though we kind of embarrassed ourselves for the first decade. So I think if computer scientists are gonna start engaging in kind of psychology, human subjects type of research, we should expect to be embarrassing ourselves for a good 10 years or so.... and then, uh, hope that it turns out as well as, you know, some other areas that we've waded into.
Lex Fridman 24:26 So you, you kind of mentioned this,
Algorithmic fairness of groups vs individuals
Lex Fridman 24:28 just to linger on the idea of an ethical algorithm, of idea of groups, sort of group thinking and individual thinking. And we're struggling that- and one of the amazing things about algorithms, and your book, and just this field of study is, it gets us to ask, like, forcing machines, uh, uh, converting these ideas into algorithms is forcing us to ask questions of ourselves as a human civilization. So there's a lot of people now in public discourse doing sort of group thinking, thinking like there's particular sets of groups that we don't wanna discriminate against and so on. And then there is individuals, sort of in the individual life stories, the struggles they went through and so on. Now, like, in philosophy, it's easier to do group thinking because you don't- (laughs) you don't- i- it's very hard to think about individuals. There, there's, uh, so much variability. But with data, you can start to actually say, "You know what? Group thinking is too crude." You're actually disc- doing more discrimination by thinking in terms of groups than individuals. Can you linger on that kind of idea of group versus individual in, in ethics and, and, uh, is it good to continue thinking in terms of groups in, in algorithms?
Michael Kearns 25:43 So let me start by answering a, a very good high-level question with a slightly narrow technical response.
Lex Fridman 25:52 Mm-hmm.
Michael Kearns 25:52 Which is, these group definitions of fairness, like here is a few groups, like different racial groups, maybe gender groups, maybe age, what have you, um, and let's make sure that, you know, for none of these groups do we, um, you know, have a false negative rate which is much higher than any other one of these groups, okay?
Lex Fridman 26:11 Right.
Michael Kearns 26:11 So these are kind of classic group aggregate notions of fairness. And, you know, but th- at the end of the day, an individual you can think of as a combination of all of their attributes, right? They're a member of a racial group, they're, they have a, a gender, um, they have an age, you know, and many other, you know, demographic properties that are not biological but that, you know, are, are still, you know, very strong determinants of outcome and personality and the like. S- so one I think useful spectrum is to sort of think about that array between the group and the specific individual-
Lex Fridman 26:46 Mm-hmm.
Michael Kearns 26:46 ... and to realize that in some ways asking for fairness at the individual level is to sort of ask for group fairness simultaneously for all possible combinations of groups.
Lex Fridman 26:59 (laughs) Yeah.
Michael Kearns 26:59 So in particular, so in particular-
Lex Fridman 27:01 Yes.
Michael Kearns 27:01 ... you know, if I build a predictive model that meets some definition of fairness by race, by gender, by age, by what have you-
Lex Fridman 27:11 Mm-hmm.
Michael Kearns 27:12 ... marginally, to get slightly technical, sort of independently, I shouldn't expect that model to not discriminate against disabled Hispanic women over age 55 making less than $50,000 a year annually even though I might have protected each one of those attributes marginally.
Lex Fridman 27:32 So the optimization actually, th- that's a fascinating way to put it. So you're just optimizing... S- so one way to achieve the optimizing fairness for individuals is just to add more and more definitions of groups that each individual belongs to.
Michael Kearns 27:46 That's right. So, you know, it, at the end of the day, we could think of all of ourselves as groups of size one-
Lex Fridman 27:50 Yeah.
Michael Kearns 27:50 ... because eventually there's some attribute that separates you from me and everybot- from everybody else in the world, okay?
Lex Fridman 27:57 Yes.
Michael Kearns 27:57 And so i- i- it is possible to put, you know, these incredibly coarse ways of thinking about fairness and these very, very individualistic specific ways-
Lex Fridman 28:07 Yeah.
Michael Kearns 28:07 ... on a common scale.
Lex Fridman 28:08 Yeah.
Michael Kearns 28:09 And, you know, one of the things we've worked on from a research perspective is, you know, so we sort of know how to, you know, we, in relative terms, we know how to provide fairness guarantees at the coarsest end of the scale.
Lex Fridman 28:22 Mm-hmm.
Michael Kearns 28:22 We don't know how to provide kind of sensible, tractable, realistic fairness guarantees at the individual level, but maybe we could start creeping towards that by dealing with more r- you know, refined sub-groups. I mean, we, we gave a name to this phenomenon where, you know, you protect, you, you, you enforce some desh- def- definition of fairness for a bunch of marginal attributes or features, but then you find yourself discriminating against a, a combination of them. We call that fairness gerrymandering.
Lex Fridman 28:52 Mm-hmm. (laughs)
Michael Kearns 28:52 Because like political gerrymandering, you know, you're, you're giving some guarantee at the aggregate level-
Lex Fridman 28:58 Yes.
Michael Kearns 28:58 ... um, but that when you kind of look in a more granular way at what's going on you realize that you're achieving that aggregate guarantee by sort of favoring some groups and discriminating against other ones. And, and so there are, you know, it's early days, but there are algorithmic approaches that let you start creep, you know, creeping towards that, you know, individual end of the spectrum.
Lex Fridman 29:22 Does there need to be human input in the form of weighing the value of the importance of each kind of group? So for example, is it, is it like, so gender, say, uh, crudely speaking male and female, and then different races, are we as humans supposed to put value on saying gender is 0.6 and race is 0.4 in terms of, uh, in the big optimization of achieving fairness? Is that kind of what humans are supposed to do here?
Michael Kearns 30:01 I mean, you know, I mean, of course, you know, I don't need to tell you that of course technically one could incorporate such weights if you wanted to into a definition of fairness. You know, fairness is an interesting topic in that having worked in, and the book being about both fairness, privacy, and many other social norms, fairness of course is a much, much more loaded topic.So privacy, I mean people want privacy. People don't like violations of privacy. Violations of privacy cause damage, angst and, and bad publicity for the companies that are victims of them. But sort of everybody agrees, more data privacy would be better than less data privacy.
Lex Fridman 30:46 Right.
Michael Kearns 30:47 And, and you don't have these, somehow the discussions of fairness don't become politicized along other dimensions like race, and about gender. And you know, you know whether we should... Y- y- and, and you know, it, it, you quickly find yourselves kind of revisiting topics that have been kind of unresolved forever, like affirmative action, right? Sort of, you know, like why are you protecting... Some people will say, "Why are you protecting this particular racial group?"
Lex Fridman 31:19 Mm-hmm.
Michael Kearns 31:19 And, and others will say, "Well, we need to do that as a matter of, of retribution." Other people will say, "It's a matter of economic opportunity." And I don't know which of (laughs) I mean, you know-
Lex Fridman 31:32 (laughs) Yeah.
Michael Kearns 31:33 ... whether any of these are the right answers, but you sort of... Fairness is sort of special in that as soon as you start talking about it, you inevitably have to participate in debates about fair to whom, at what expense to who else. I mean even in criminal justice, right, um, you know where people talk about fairness in, uh, criminal sentencing or, um, you know, predicting failures to appear or making parole decisions or the like, they will, you know, they'll point out that well these definitions of fairness are all about fairness for the criminals, and what about fairness for the victims, right? So when I, when I basically say something like well, the, the false incarceration rate for Black people and white people needs to be roughly the same, you know, there's no mention of potential victims of criminals in such a fairness definition.
Lex Fridman 32:32 Mm-hmm. And that's the realm of public discord. I, I should actually recommend... I just listened to, uh, to people listening, Intelligence Squared's debates, uh, US edition just had a, a debate. They have this structure where you have, uh, like o- old Oxford style or whatever they're called debates and it was two versus two and they talked about affirmative action. And it was, it was incredibly interesting that it's still, there's really good points on every side of this issue, which is fascinating to listen to.
Michael Kearns 33:03 Yeah, yeah, I agree. And so it's, it's interesting to be a researcher trying to do-
Lex Fridman 33:10 (laughs) .
Michael Kearns 33:10 ... for the most part technical algorithmic work.
Lex Fridman 33:14 Yeah.
Michael Kearns 33:14 But Aaron and I both quickly learned you cannot do that and then go out and talk about it and expect people to take it seriously if you're unwilling to engage in these broader debates-
Lex Fridman 33:23 Yes.
Michael Kearns 33:24 ... that are, are entirely extra algorithmic, right? They're, they're, they're not about, you know, algorithms and making algorithms better. They're sort of, you know, as you said, sort of like what should society be protecting in the first place.
Fairness tradeoffs
Lex Fridman 33:36 When you discuss the fairness, an algorithm that, uh, that achieves fairness whether in the constraints and the objective function, there's an immediate kind of analysis you can perform which is saying if you care about fairness in gender, this is the amount that you have to pay for it in terms of the performance of the system. Like do you... Is there a role for statements like that in a table in a paper, or do you wanna really not touch that? Like-
Michael Kearns 34:07 No, no. W- we, we want to touch that and we do touch it. So I mean just, just again to make sure I'm not promising your, your viewers more than we know how to provide, but if you pick a definition of fairness, like I'm worried about gender discrimination-
Lex Fridman 34:21 Yes.
Michael Kearns 34:21 ... and you pick a notion of harm like false rejection for a loan, for example, and you give me a model, I can definitely first of all go audit that model. It's easy for me to go, you know, from data to kind of say like, "Okay, your false rejection rate on women is this much higher than it is on men, okay?" But, you know, once you also put, uh, the fairness into your objective function, I mean I think the table that you're talking about is, you know, what, what we would call the Pareto curve, right?
Lex Fridman 34:51 Mm-hmm.
Michael Kearns 34:51 You can literally trace out, and we give examples of such plots on real data sets in the book. You, you have two axes. On the X axis is your error, on the Y axis is unfairness by whatever, you know, if it's like the disparity between false rejection rates between two groups.
Lex Fridman 35:10 Mm-hmm.
Michael Kearns 35:11 Um, and you know, your algorithm now has a knob that basically says how strongly do I want to enforce fairness.
Lex Fridman 35:18 Mm-hmm.
Michael Kearns 35:19 And the less unfair, and you know, we, w- you know, if the two axes are error and unfairness, we'd like to be at zero/zero. We'd like zero error and zero f- fair- unfairness simultaneously. Anybody who works in machine learning knows that you're generally not going to get to zero error period without any fairness constraint whatsoever, so that's, that, that's not gonna happen. But in general, you know, you'll get this, you'll get some kind of convex curve that specifies the numerical trade-off you face, you know. If I want to go from 17% error down to 16% error, what will be the increase in unfairness that I, I experience as a result of that? And, and so this curve kind of specifies the, you know, kind of undominated models. Models that are off that curve are, you know, can be strictly improved in one or both dimensions. You can, you know, either make the error better or the unfairness better or both. Um, and I think our view is that not only, uh, are, are these objects, these Pareto curves, you know, they're efficient frontiers as you might call them-... not only are they valuable scientific objects, I actually think that they, in the near term, might need to be the interface-
Lex Fridman 36:40 Mm-hmm.
Michael Kearns 36:40 ... between researchers working in the field and, and stakeholders in given problems. So you know, you could really imagine telling a, uh, criminal jurisdiction, "Look, if, if you're concerned about racial fairness, but you're also concerned about accuracy, you want to, you know, you, you want to release on parole people that are not going to recommit a violent crime, and you don't want to release the ones who are. So, you know, that's accuracy. But if you also care about those, you know, the mistakes you make not being disproportionally on one racial group or another, you can, you can show this curve." I'm hoping that in the near future, it, it'll be possible to explain these curves to non-technical people that have, that are the ones that have to make the decision, where do we wanna be on this curve? Like, what are the relative merits or value of having lower error versus lower unfairness? You know, that's not something computer scientists should be deciding for society, right? That, you know, the, the, the people in the field, so to speak, the policymakers, the regulators, that's who should be making these decisions. But I think and hope that they can be made to understand that these trade-offs generally exist, and that you need to pick a point. And, like, in ignoring the trade-off, you know, you're implicitly picking a point anyway, right?
Lex Fridman 38:06 (laughs) Right.
Michael Kearns 38:06 Um, you just don't know it, and you're not admitting it.
Lex Fridman 38:09 J- just to linger on the point of trade-offs, I think that's a really important thing to sort of, uh, think about. So, you think when we start to optimize for fairness, there's almost always in most system going to be trade-offs. So can you, like, like, what's the trade-off between... Just to clarify, uh, there have been some sort of technical terms thrown around, but a, uh, sort of, um, a perfectly fair world, why is that, why will somebody be upset about that?
Michael Kearns 38:43 The specific trade-off I talked about, just in order to make things very concrete-
Lex Fridman 38:47 Yes.
Michael Kearns 38:47 ... was between numerical error and some numerical measure of unfairness. In, in-
Lex Fridman 38:53 What is numerical error? In, in the case of, uh-
Michael Kearns 38:56 Just, like say, predictive error. Like, you know, the probability or frequency with which you release somebody on parole who then goes on to recommit a violent crime or keep incarcerated somebody who would not have recommitted a violent crime. So that-
Lex Fridman 39:11 So in the case of awarding somebody parole, or giving somebody parole, or letting them out on parole, you don't want them to recommit a crime. So it's your system failed in prediction if they happen to do a crime. Okay, so that's the perfo- that's one axis.
Michael Kearns 39:30 Right.
Lex Fridman 39:30 And what's the fairness axis?
Michael Kearns 39:31 And so then the fairness axis might be the difference between racial groups in the kind of false, false positive predictions, namely people that I kept incarcerated, predicting that they would recommit a violent crime, when in fact they wouldn't have.
Lex Fridman 39:51 Right. And the f- the unfairness of that, just to linger it, and a- allow me to, uh, ineloquently to try to sort of describe why that's unfair, why unfairness is there, the, the unfairness you wanna get rid of is the, in the judge's mind, the bias of having being brought up in the society, the slight racial bias, the racism that exists in the society, you wanna remove that from the system. Another way that's been debated is sort of equality of opportunity versus equality of outcome. And there's a weird dance there that's really difficult to get right. And we don't, and so, uh, the affirmative action is exploring that space.
Michael Kearns 40:40 Right. And, and then we, this also quickly, you know, um, bleeds into questions like, well, maybe if one group really does recommit crimes at a higher rate-
Lex Fridman 40:51 Right.
Michael Kearns 40:52 ... uh, the reason for that is that at some earlier point in the pipeline or earlier in their lives they didn't receive the same resources that the other group did.
Lex Fridman 41:01 Right.
Michael Kearns 41:01 Um, and that, and so, you know, there's always, in, in kind of fairness discussions, the possibility that the, uh, the real injustice came earlier, right?
Lex Fridman 41:10 Earlier.
Michael Kearns 41:11 Earlier in this individual's life, earlier in this group's history, et cetera, et cetera.
Lex Fridman 41:16 And, and so a lot of the fairness discussion is almost, the goal is for it to be a corrective mechanism to account for the injustice earlier in life.
Michael Kearns 41:25 M- by some definitions of fairness-
Lex Fridman 41:26 Right.
Michael Kearns 41:26 ... or some theories of fairness, yeah. Others would say, like, "Look, it's, it's, you know, it's not to correct that injustice, it's just to kind of level the playing field right now and not-"
Lex Fridman 41:37 Mm-hmm.
Michael Kearns 41:37 "... incarcerate, falsely incarcerate more people of one group than another group." But I mean, to think just, it might be helpful just to demystify a little bit about the diff- the many ways in which bias or unfairness can come into algorithms, especially in the machine learning era, right? And, uh, you know, I think many of your viewers have probably heard these examples before. But, you know, let's say I'm building a face recognition system, right? And so I'm, you know, kind of gathering lots of images of faces, and you know, trying to train the system to, you know, recognize new faces of those individuals from training on, you know, a training set of those faces of individuals.
Lex Fridman 42:18 Mm-hmm.
Michael Kearns 42:19 And, you know, it shouldn't surprise anybody, um, or certainly not anybody in the field of machine learning, if my training dataset, um, was primarily white males-
Lex Fridman 42:30 Mm-hmm.
Michael Kearns 42:30 ... and I'm-... training that m- m- the model to maximize the overall accuracy on my training dataset, th- that, you know, th- th- the model can reduce its error most by getting things right on the white males that constitute the majority of the dataset, even if that means that on other groups, they will be less accurate.
Lex Fridman 42:52 Mm-hmm.
Michael Kearns 42:52 Okay? Now, there's a bunch of ways you could think about addressing this. One is to deliberately put into the objective of the algorithm not to, not to optimize the error at the expense of this discrimination, and then you're kinda back in the land of these kind of two-dimensional numerical trade-offs. A- a valid counterargument is to say, like, "Well, no, you don't have to... There's no..." You know, the- the- the notion of the tension between error and accuracy here is a false one.
Lex Fridman 43:22 Mm-hmm.
Michael Kearns 43:22 You could instead just go out and get much more data on these other groups that are in the minority and, you know, equalize your dataset. Or you could train a separate model on those sub-groups and, you know, have multiple models. M- m- the point I think we would l- w- you know, we tried to make in the book is that those things have cost too, right?
Lex Fridman 43:44 Right.
Michael Kearns 43:45 Going out and gathering more data on groups that are relatively rare compared to your plurality or mor- majority group, that, you know, it may not cost you in the accuracy of the model but it's gonna cost, you know, it's gonna cost the company developing this model more money to develop that, and then it also costs more money to build separate predictive models and to implement and deploy them. So even if you can find a way to avoid the tension between error and accuracy in training a model-
Lex Fridman 44:14 Mm-hmm.
Michael Kearns 44:15 ... you might push the- the cost somewhere else, like money, um, like development time, research time, and the like.
Lex Fridman 44:22 There are fundamentally difficult philosophical questions in fairness, and we live in a very divisive political climate, outraged culture. There is, uh, alt-right folks on 4Chan, trolls. There is Social Justice Warriors on Twitter. There is very divisive outraged folks on all sides of every kind of system. How do you... How do we as engineers build ethical algorithms in such divisive culture? Do you think they could be disjoint? The human has to inject your values and then you can optimize over those values. But in our times when- when you start actually applying these systems, things get a little bit challenging for the public discourse. How- how do you think we can proceed?
Michael Kearns 45:15 Yeah, I mean, for the most part, in the book, you know, a point that we try to take some pains to make is that we don't view ourselves or people like us as being in the position of deciding for society what the right social norms are, what the right definitions of fairness are.
Lex Fridman 45:34 Right.
Michael Kearns 45:34 Our- our- our main point is to just show that if society or the relevant stakeholders in a particular domain can come to agreement on those sorts of things, there's a way of encoding that into algorithms in many cases, not in all cases. One other misconception that hopefully we definitely dispel is sometimes people read the title of the book and, you know, I think not unnaturally fear that what we're suggesting is that the algorithms themselves should decide what those social norms are and develop their own notions of fairness and privacy or ethics, and we're definitely not suggesting that.
Lex Fridman 46:10 The title of the book is Ethical Algorithm, by the way, and I didn't think of that interpretation of the title. That's interesting. (laughs)
Michael Kearns 46:15 Yeah, yeah. I mean, and especially these days where people are, you know, concerned about the robots becoming our overlords-
Lex Fridman 46:21 Yeah.
Michael Kearns 46:21 ... the idea that the l- the robots would also, like, sort of develop their own social norms is, you know, just one step away from that.
Facebook, social networks, and algorithmic ethics
Michael Kearns 46:29 But I- I do think, you know, obviously despite disclaimer that people like us shouldn't be making those decisions for society, we- we are kind of living in a world where in many ways computer scientists have made some decisions that have fundamentally changed the nature of our society and democracy and- and sort of civil discourse and deliberation in ways that I think most people generally feel are bad these days, right? So...
Lex Fridman 46:55 But they had to make... So if we look at people at the heads of companies and so on, they had to make those decisions, right? Th- there has to be decisions... So there's- there's two options. Either you kinda put your head in the sand and don't think about these things and just let the algorithm do what it does, or you make decisions about what you value, you know, of injecting moral values into the algorithm.
Michael Kearns 47:20 Look, I don't... I d- I never mean to be an apologist for the tech industry-
Lex Fridman 47:23 Mm-hmm.
Michael Kearns 47:24 ... but I think it's- it's a little bit too far to sort of say that explicit decisions were made about these things. So let's, for instance, take social media platforms, right?
Lex Fridman 47:34 Yes.
Michael Kearns 47:34 So like many inventions in technology and computer science, a lot of these platforms that we now use regularly kind of started as curiosities, right? I remember when things like Facebook came out and its predecessors like Friendster, which nobody even remembers now.
Lex Fridman 47:50 (laughs) .
Michael Kearns 47:52 P- people l- people really wondered like, "W- what... Why would anybody wanna spend time doing that?" You know? What... And even- even the web when it first came out, when it wasn't populated with much content and it was largely kind of hobbyists building their own kind of ramshackle websites, a lot of people looked at this and says, "Like, what is the purpose of this thing? Why is this interesting? Who would wanna do this?" And so even things like Facebook and Twitter, yes, technical decisions were made by engineers, by scientists, by executives in the design of those platforms, but, you know, I don't- I don't think 10 years ago anyone anticipated that those platforms, for instance, might kind of...... acquire undue pol- you know, influence on political discourse or on the outcomes of elections. And, uh, I think the scrutiny that these companies are getting now is entirely appropriate, but I think it's a little too harsh to kind of look at history and sort of say, like, "Oh, you should've been able to anticipate that this would happen with your platform."
Lex Fridman 48:56 Mm-hmm.
Michael Kearns 48:56 And in the sort of gaming chapter of the book, one of the points we're making is that, you know, these platforms, right, they don't operate in isolation. So, like, uh, unlike the other topics we're discussing like fairness and privacy, like, those are really cases where algorithms can operate on your data and make decisions about you and you're not even aware of it, okay?
Lex Fridman 49:16 Mm-hmm.
Michael Kearns 49:16 Things like Facebook and Twitter, these are, you know, these are, these are systems, right? These are social systems and their evolution, even their technical evolution because machine learning is involved, is driven in no small part by the behavior of the users themselves and how the users decide to adopt them and how to use them.
Lex Fridman 49:34 Yeah.
Michael Kearns 49:35 And so, you know, (laughs) you know, I'm kind of like who really knew that, that, you know, un- until, until we saw it happen, who knew that these things might be able to influence the outcome of elections? Who knew that, you know, they might polarize political discourse because of the ability to, you know, decide who you interact with on the platform and also with the platform naturally using machine learning to optimize for your own interests, that they would further isolate us from each other and, you know, like, feed us all basically just the stuff that we already agreed with? And so I think it, uh, you know, we've, we've come to that outcome, I think, largely, but I think it's something that we all learned together, including the companies as these things happen.
Lex Fridman 50:23 Mm-hmm.
Michael Kearns 50:23 Now, y- you asked, like, well, are there algorithmic remedies to these kinds of things? And, um, again, these are big problems that are not gonna be solved with, you know, somebody going in and changing a few lines of code somewhere in a social media platform. But I, I do think in many ways, there are, there are definitely ways of making things better. I mean, like an obvious recommendation that we, we make at some point in the book is, like, look, you know, to the extent that we think that machine learning applied for personalization purposes in things like news feed, you know, or other platforms, um, has led to polarization and intolerance of opposing viewpoints, as you know, right, these, these algorithms have models, right? And they kind of place people in some kind of metric space, and, and they place content in that space, and they sort of know the extent to which I have an affinity for a particular type of content. And by the same token, they also probably have a v- that, that same model probably gives you a good idea of the stuff I'm likely to violently disagree with or be offended by, okay?
Lex Fridman 51:32 Mm-hmm.
Michael Kearns 51:32 So, you know, in this case, there really is some knob you could tune that says, like, instead of showing people only what they like and what they want, let's show them some stuff that we think that they don't like, or that's a little bit further away.
Lex Fridman 51:46 And s-
Michael Kearns 51:46 And you could even imagine users being able to control this. You know, just like a b- l- everybody gets a slider.
Lex Fridman 51:53 Mm-hmm.
Michael Kearns 51:53 And y- that slider says like, you know, how much stuff do you want to see that's kind of, you know, you might disagree with or is at least further from your interests? Like an- it's almost like an exploration button.
Lex Fridman 52:04 Mm-hmm. So just get your intuition. Do you think engagement, so like s- you staying on the platform, you'd be staying engaged, do you think fairness, ideas of fairness won't emerge? Like how bad is it to just optimize for engagement? Do you think we'll run into big trouble if we're just optimizing for how much you love the platform?
Michael Kearns 52:30 Well, I mean, optimizing for engagement kind of got us where we are.
Lex Fridman 52:34 So do you, one, have faith that it's possible to do better and two, if it is, how do we do better?
Michael Kearns 52:44 I mean, it's definitely possible to do different, right? And again, you know, it's not as if I think that doing something different than optimizing for engagement won't cost these companies in real ways including revenue and profitability potentially. Um-
Lex Fridman 52:59 In the short term at least.
Michael Kearns 53:00 Yeah, in the short term, right. And again, you know, i- if I worked at these companies, I'm sure that it w- it would've seemed like the most natural thing in the world also to want to optimize engagement, right? And that's good for users in some sense. You want them to be, you know, vested in the platform and enjoying it and finding it useful, interesting, and/or productive. But, you know, my point is, is that the idea that there's, that it's sort of out of their hands as you said, or that there's nothing to do about it, never say never, but that strikes me as implausible as a machine learning person, right? I mean, these companies are driven by machine learning and this optimization of engagement is essentially driven by machine learning, right? It's driven by, um, not just machine learning, but, you know, very, very large scale AB experimentation where you kind of tweak some element of the user interface or tweak some component of an algorithm or tweak some component or feature of your click-through prediction model. And my point is, is that any time you know how to optimize for something, you, y- you know, by def- almost by definition, that solution tells you how not to optimize for it or to do something different.
Lex Fridman 54:12 Engagement can be measured. So sort of optimizing for sort of minimizing divisiveness or maximizing intellectual growth over the lifetime of a human being are very difficult to measure.
Michael Kearns 54:29 That, that's right. So I'm not, I'm not claiming that doing something different will-... immediately make it apparent that this is a good thing for society. And in particular, I mean, I think one, one way of thinking about w- where we are on some of these social media platforms is that, you know, it kind of feels a bit like we're in a bad equilibrium, right?
Lex Fridman 54:50 Mm-hmm.
Michael Kearns 54:50 That these systems are helping us all kind of optimize something myopically and selfishly for ourselves, and of course from an individual standpoint at any given moment, like, wha- why would I want to see things in my news feed that I found irrelevant, offensive or, you know, or the like? Okay? But, you know, maybe by all of us, m- you know, having these platforms myopically optimized in our interests, we have reached a collective outcome as a society that we're unhappy with in different ways, let's say, with respect to things like, you know, political discourse and tolerance of opposing viewpoints.
Lex Fridman 55:27 And if, uh, Mark Zuckerberg gave you a call and said, "I'm thinking of taking a sabbatical. Could you run Facebook for me for, for six months?" What would you... How-
Michael Kearns 55:39 I think no thanks would be my first response. (laughs)
Lex Fridman 55:42 (laughs)
Michael Kearns 55:42 But, th- there are many aspects of being the head of the n- the entire company that are kind of entirely exogenous to many of the things that we're discussing here.
Lex Fridman 55:52 Yes.
Michael Kearns 55:52 Um, and so, I don't really think I would need to be CEO of Facebook to kind of implement the, you know, more limited set of solutions that I might imagine. But I think one, one concrete thing they could do is they could experiment with letting people who chose to, to see more stuff in their news feed that is not entirely kind of chosen to optimize for their particular interests, beliefs et cetera.
Lex Fridman 56:22 So the, the kind of thing is, is... So I can speak to YouTube but I think Facebook probably does something similar, is they're quite effective at automatically finding what sorts of groups you belong to. Not based on race or gender or so on, but based on the kind of stuff you enjoy watching, in the case of YouTube. Sort of, it's a, it's a difficult thing for Facebook or YouTube to then say, "Well you know what? We're gonna show you something from a very different cluster even though we believe algorithmically you're unlikely to enjoy that thing." Sort of, that's a weird jump to make. There has to be a human, like, at the very top of that system that says, "Well that will be long term healthy for you." That's more than an algorithmic decision.
Michael Kearns 57:11 Or, or, or that same person could say, "That'll be long term healthy for the platform."
Lex Fridman 57:16 For the platform.
Michael Kearns 57:17 Or for the platform's influence on society outside of the platform, right? And it, you know... It's easy for me to sit here and say these things-
Lex Fridman 57:25 Yes.
Michael Kearns 57:26 ... but conceptually I do not think that these are kind of totally or should... They, they shouldn't be kind of completely alien ideas, right? That, you know... You could try things like this and it wouldn't be... You know, we wouldn't have to invent entirely new science to do it because if we're all already embedded in some metric space and there's a notion of distance between you and me and every other, every piece of content, then, you know, we know exa- you know... The, the same model that, uh, tells, you know, t- that dictates how to make me really happy also tells how to make me as unhappy as possible
Machine learning
Machine learning
Lex Fridman 58:05 The, the focus in your book and algorithm and fairness research today in general is on machine learning, like we said, is data. But... And just even the, the entire AI field right now is captivated with machine learning, with deep learning. Do you think ideas in symbolic AI or totally other kinds of approaches are interesting, useful in this space? Have some promising, uh, ideas in terms of fairness?
Michael Kearns 58:31 I haven't thought about that question specifically in the context of fairness. I definitely would agree with that statement in the large, right? I mean, I am, you know, one of many machine learning researchers who do believe that the great successes that have been shown in machine learning recently are great successes but they're on a pretty narrow set of tasks.
Lex Fridman 58:53 Yes.
Michael Kearns 58:53 I mean, I don't, I don't think we're kind of m- m- notably closer to general artificial intelligence now than we were when I started my career. I mean, there's been progress and, and I do think that we are kind of as a community maybe looking a bit where the light is but the light is shining pretty bright there right now and we're finding a lot of stuff so I don't wanna, like, argue with the progress that's been made in areas like deep learning for example.
Algorithm that determines what is fair
Lex Fridman 59:19 This touches another sort of related thing that you mentioned and that people might misinterpret from the title of your book, Ethical Algorithm. Is it possible for the algorithm to automate some of those decisions? Sort of higher level decisions of what kind of-
Michael Kearns 59:35 Like what, what should be fair or-
Lex Fridman 59:37 What should be fair.
Michael Kearns 59:38 The more you know about a field, the more aware you are of its limitations.
Lex Fridman 59:43 Mm-hmm.
Michael Kearns 59:43 And so I'm a- I'm pretty leery of sort of trying... You know, there's, there's so much we don't all- we already don't know in fairness-
Lex Fridman 59:51 Yeah.
Michael Kearns 59:51 ... even when we're the ones picking the fairness definitions and, you know, comparing alternatives and thinking about the tensions between different definitions, that the idea of kind of letting the algorithm start exploring as well, I definitely think... You know, this is a much narrower statement. I definitely think that kind of algorithmic auditing for different types of unfairness, right? So like in this gerrymandering example where I might want to prevent not just discrimination against very broad categories but against combinations of broad categories, you know, you quickly get to a point where there's a lot of, a lot of categories, there's a lot of combinations of end features and, you know, you can use algorithmic techniques to sort of try to find the sub-groups on which you're discriminating the most and try to fix that. That's actually kind of the form of one of the algorithms we developed for this fairness gerrymandering problem. But I'm, I'm, you know...... partly because of our technolo- you know, our sort of, our scientific ignorance on these topics right now, and also partly just because these topics are so loaded emotionally for people that I just don't see the value. I mean, again, never say never, but I just don't think we're at a moment where it's a great time for computer scientists to be rolling out the idea like, "Hey, you know, you know, not only have we kind of figured fairness out, but, you know, we think the algorithms should start deciding what's fair or, or giving input on that decision." I just don't- (laughs) like, the, the cost benefit analysis to the field of kind of going there right now just doesn't seem worth it to me.
Lex Fridman 1:01:24 That said, I,
Computer scientists should think about ethics
Lex Fridman 1:01:25 I should say that I think computer scientists should be more philosophically... like, should enrich their thinking about these kinds of things. I think it's been too often used as an excuse for roboticists working on autonomous vehicles, for example, to not think about the human factor or psychology or safety. In the same way, like computer scientists design algorithms that have been sort of used as an excuse and I think it's time for basically everybody to become computer scientists.
Michael Kearns 1:01:51 I was about to agree with everything you said except that last point. I think that the other way of looking at it is that I think computer scientists, you know, and, and, and many of us are, but we need to wade out into the world more, right? I mean, just the, the influence that computer science, and therefore computer scientists, have had on society at large, just like has exponentially magnified in the last 10 or 20 years or so. And, you know, you know, before when we were just tinking- tinkering around amongst ourselves and it didn't matter that much-
Lex Fridman 1:02:27 Yeah.
Michael Kearns 1:02:27 ... um, there was no need for sort of computer scientists to be citizens of the world more broadly, and I think those days need to be over very, very fast. And I'm not saying everybody needs to do it, but t- to me, like, the right way of doing it is to not to sort of think that everybody else is gonna become a computer scientist, but, you know, I, I think, you know, people are becoming more sophisticated about computer science, even laypeople.
Lex Fridman 1:02:50 Yeah.
Michael Kearns 1:02:50 You know, though I think one of the reasons we decided to write this book is we thought 10 years ago, I wouldn't have tried this just because I, uh, I just didn't think that sort of people's awareness of algorithms and machine learning, you know, the, the general population would have been high enough. I mean, it would- you would have had to first, you know, write one of the many books kind of just explicating that topic to a lay audience first.
Lex Fridman 1:03:14 Mm-hmm.
Michael Kearns 1:03:14 Now I think we're at the point where, like, lots of people without any technical training at all know enough about algorithms and machine learning that you can start getting to these nuances of things like ethical algorithms.
Lex Fridman 1:03:25 Mm-hmm.
Michael Kearns 1:03:26 I think we agree that there needs to be much more mixing, um-
Lex Fridman 1:03:30 Yes.
Michael Kearns 1:03:30 ... but I think, I think a lot of the onus of that mixing needs to be on the computer science community.
Lex Fridman 1:03:35 Yeah, so just to linger on the disagreement, because I do disagree with you on the point that I think if you're a biologist, if you're a chemist, if you're an MBA business person, all of those things you can, uh, uh, like, if you learn to program, and not only program, if you learn to do machine learning, if you learn to do data science, you immediately become much more powerful in the kinds of things you can do. And therefore, literature, like, uh, library sciences, like, so you were speaking, I think, def- I think it holds true what you're saying for the next few years, but long term, if you're interested- to me, if you're interested in philosophy, you should learn to program 'cause then you can scrape data, you can, uh, uh, and study what people are thinking about on Twitter, and then start making phil- philosophical conclusions about the meaning of life. Right? I just, I just feel like the access to data, the digitization of whatever problem you're trying to solve, it'll, it'll fundamentally change what it means to be a computer scientist. To me, a computer scientist in 20, 30 years will go back to being Donald Knuth style theoretical computer science and everybody would be doing basically the ki- exploring the kinds of ideas that you're exploring in your book. It won't be a computer science major.
Michael Kearns 1:04:58 Ye- yeah, I mean, I, I don't think I disagree or not, but I think that that trend of m- more and more people and more and more disciplines adopting ideas from computer science, learning how to code, I think that that trend seems firmly underway. I mean, uh, you know, like, an interesting digressive question along these lines is maybe in 50 years there won't be computer science departments anymore because the field will just sort of be ambient in all of the different disciplines and, you know, people will look back and, you know, having a computer science department will look like having an electricity department or something-
Lex Fridman 1:05:37 Yeah, yeah.
Michael Kearns 1:05:37 ... that's like, you know, w- everybody uses this, it's just out there.
Lex Fridman 1:05:40 Yeah.
Michael Kearns 1:05:40 I mean, I d- I do think there will always be that kind of Knuth style core to it.
Lex Fridman 1:05:44 Yeah.
Michael Kearns 1:05:44 But it's not an implausible path that we kind of get to the point where the academic discipline of computer science becomes somewhat marginalized because of its very success in kind of infiltrating all of science and society and the humanities, et
Algorithmic privacy
Michael Kearns 1:05:59 cetera.
Lex Fridman 1:06:00 What is differential privacy? Or more broadly, algorithmic privacy?
Michael Kearns 1:06:07 Algorithmic privacy more broadly is just the study or, or the notion of privacy definitions or norms being encoded inside of algorithms. And so, you know, I think we count among this body of work just, you know, the literature and practice of things like data anonymization, which we kind of at the beginning of our discussion of privacy say like, "Okay, this is, this is sort of a notion of algorithmic privacy. It kind of tells you, you know, something to go do with data." But, but, you know, our view is that it's... and I think it- this is now, you know, quite widespread that it's, you know, despite the fact-... that those notions of anonymization, kind of redacting and coarsening, um, are the most widely adopted technical solutions for data privacy. They are, like, deeply, fundamentally flawed. And so, you know, to your first question, what is differential privacy, differential privacy seems to be a much, much better notion of privacy that kind of avoids a lot of the weaknesses of anonymization notions while, while still letting us do useful stuff with data.
Lex Fridman 1:07:25 What's anonymization of data?
Michael Kearns 1:07:27 So by anonymization, I'm, you know, kind of referring to techniques like, I have a database. The rows of that database are, let's say, individual people's medical records, okay? And I, I wanna let people use that data. Maybe I wanna let s- researchers access that data to build predictive models for some disease, but I'm worried that that will leak, uh, y- you know, sensitive information about specific people's medical records. So anonymization broadly refers to the set of techniques where I say, like, "Okay, I'm first gonna, like, like, I'm gonna delete the column with people's names. I'm going to not put..." You know, so that would be, like, a redaction, right? I'm just redacting that information. I am going to take ages, and I'm not gonna, like, say your exact age. I'm gonna say whether you're, you know, zero to 10, 10 to 20, 20 to 30. I might put the first three digits of your ZIP code, but not the last two, et cetera, et cetera. And so the idea is that through some series of operations like this on the data, I anonymize it. You know, another term of art that's used is removing personally identifiable information. And, you know, this is basically the most common way of providing data privacy, but that's in a way that still lets people access the, some variant form of the data.
Lex Fridman 1:08:50 And so at- at a slightly broader picture, as you talk about what does anonymization mean when you have multiple databases? Like, with the Netflix prize, when you can s- start combining stuff together to figure out-
Michael Kearns 1:09:01 So this is exactly the problem with these notions, right, is that notions of anono- anonymization, removing personally identifiable in- information, the kind of fundamental conceptual flaw is that, you know, these definitions kind of pretend as if the dataset in question is the only dataset that exists in the world or that ever will exist in the future. And of course, things like the Netflix prize and many, many other examples since the Netflix prize, I think that was one of the earliest ones, though, you know, i- uh, you can re-identify people that were, you know, that were anonymized in the dataset by taking that anonymized dataset and combining it with other allegedly anonymized datasets and maybe publicly available information about you. You know?
Lex Fridman 1:09:45 And for people who don't know the Netflix prize, was, what was being publicly released as data, uh, so the names from those rows were r- removed, but what was released is the preference or the ratings of what movies you like and you don't like. And from that, combined with other things, I think forum posts and so on, you can start to figure out the names-
Michael Kearns 1:10:03 Yeah, I mean, in that, that case, it was specifically the Internet Movie Database-
Lex Fridman 1:10:07 Or the IMDb database.
Michael Kearns 1:10:07 ... where, where lots of Netflix users publicly rate their mo- you know, their movie preferences. W- and so the anonymized data in Netflix when kinda ... And I mean, you know, it's, it's just this phenomenon I think that we've all come to realize in the last decade or so, is that just knowing a few apparently irrelevant, innocuous things about you can often act as a fingerprint, like if I know, you know, what m- what rating you gave to these 10 movies and the date on which you entered these movies, this is almost like a fingerprint for you-
Lex Fridman 1:10:42 Yeah, it does.
Michael Kearns 1:10:42 ... as- in the sea of all Netflix users.
Lex Fridman 1:10:44 Yeah.
Michael Kearns 1:10:45 There was just another paper on this in Science or Nature of, about a month ago that, you know, kind of 18 attributes. I mean, m- my favorite example of this is, was actually, um, a paper, um, from several years ago now where it was shown that just from your likes on Facebook, just from the taunt, you know, the things on which you clicked on the thumbs up button on the platform, n- not using any information, demographic information, nothing about who your friends are, just knowing the content that you had liked, um, was enough to, you know, in the aggregate, accurately predict things like sexual orientation, drug and alcohol use, whether you were the child of divorced parents. So we live in this era where, you know, even the apparently irrelevant data that we offer about ourselves on public platforms and forums often, unbeknownst to us, more or less acts as signature or, you know, fingerprint. And that if you can kind of, you know, do a join between that kind of data and allegedly anonymized data, you have real trouble.
Differential privacy
Lex Fridman 1:11:50 So is there hope for any kind of privacy in a world where a few likes can r- can identify you?
Michael Kearns 1:11:58 So there is differential privacy, right?
Lex Fridman 1:12:00 So what is differential privacy? Let's hear that.
Michael Kearns 1:12:01 Yeah. So, so differential privacy basically is a kind of alternate, much stronger notion of privacy than these anonymization ideas. And it, it, you know, it's a technical definition, um, but, like, the spirit of it is we, we, we, we compare two alternate worlds, okay? So let's suppose I'm a researcher, and I wanna do, you know, I, I, there's a database of medical records, and one of them is yours.
Lex Fridman 1:12:27 Mm-hmm.
Michael Kearns 1:12:28 And I want to use that database of medical records to build a predictive model for some disease. So based on people's symptoms and test results and the like, I wanna, you know, build a probab- you know, model predicting the probability that people have disease. So, you know, this is the type of scientific research that we would like to be allowed to continue.
Lex Fridman 1:12:47 Mm-hmm.
Michael Kearns 1:12:48 And in differential privacy, you act- ask a very particular counterfactual question. We basically compare two alternatives-One is when I do this, I build this model on the database of medical records, including your medical record. And the other one is where I do the same exercise with the same database with just your medical record removed. So basically, you know, it's two databases, one with N records in it and one with N minus one records in it. The N minus one records are the same, and the only one that's missing in the second case is your medical record. So differential privacy basically says that any harms that might come to you from the analysis in which your data was included are essentially, uh, nearly identical to the harms that would have come to you if the same analysis had done, been done without your medical record included. So in other words, this doesn't say that bad things cannot happen to you as a result of data analysis, it just says that these bad things were going to happen to you already-
Lex Fridman 1:14:04 Mm-hmm.
Michael Kearns 1:14:04 ... even if your data wasn't included. And to give a very concrete example, right, you know, um, you know, like we discussed at some length, the, the study that, you know, the, in the '50s that was done that created the, that, ah, established the link between smoking and lung cancer.
Lex Fridman 1:14:19 Mm-hmm.
Michael Kearns 1:14:19 And we make the point that, like, well, if your data was used in that analysis and, you know, the world kind of knew that you were a smoker because, you know, there was no stigma associated with smoking before that, those findings, real harm might have come to you as a result of that study that your data was included in.
Lex Fridman 1:14:37 Mm-hmm.
Michael Kearns 1:14:37 In particular, your insurer now might have a higher posterior belief that you might have lung cancer and raise your premium so you've suffered economic damage. But the point is, is that if the same analysis has been done without y- with all the other N minus one medical records and just yours missing, the outcome would have been the same. Your, your data wasn't idiosyncratically, um, crucial to establishing the link between smoking and lung cancer because the link between smoking and lung cancer is, like, a fact about the world that can be discovered with any sufficiently large database of medical records.
Lex Fridman 1:15:14 But that's a l- very low value of harm. Yeah, so that's showing that very little harm is done. Great, but how ... What is the mechanism of differential privacy? So that's the kind of beautiful statement of it, but what's the mechanism by which privacy is preserved?
Michael Kearns 1:15:30 Yeah. So it's, it's basically by adding noise to computations, right? So the basic idea is that e- every differentially private algorithm, first of all, or, or, or every good differentially private algorithm, every useful one, um, is a probabilistic algorithm so it doesn't on a given input. If you gave the algorithm the same input multiple times it w- it would give different outputs each time from some distribution. And the way you achieve differential privacy algorithmically is by kind of carefully and tastefully adding noise to a computation in the right places. And, you know, to give a very concrete example, if I want to compute the average of a set of numbers, right, the non-private way of doing that is to take those numbers and average them and release, like, a numerically precise value for the average, okay?
Lex Fridman 1:16:21 Mm-hmm.
Michael Kearns 1:16:21 In differential privacy you wouldn't do that. You would first compute that average to numerical precisions and then you'd add some noise to it, right? You'd add some kind of zero mean, you know, Gaussian or exponential noise to it so that the actual value you output, right, is not the exact mean but it will be close to the mean, but it will be close, i- the noise that you add will sort of prove that nobody can kind of reverse engineer any particular value that went into the average.
Lex Fridman 1:16:52 Mm-hmm. So noise, noise is a savior. How many algorithms can be aided by m- by adding noise?
Michael Kearns 1:17:02 Yeah, so I'm a relatively recent member of the differential privacy community. My co-author Aaron Roth is, you know, um, really one of the founders of the field and has done a, a great deal of work, and I've, I've learned a tremendous amount working with him on it.
Lex Fridman 1:17:15 Yeah. It's a pretty grownup field already it seems.
Michael Kearns 1:17:17 But when I ... Yeah, but now it's pretty mature. But I, I must admit the first time I saw the definition of differential privacy my reaction was like, "Wow, that is a clever definition and it's really making very strong promises," and my, you know, you know, I first saw the definition in much earlier days and my first reaction was like, "Well, my worry about this definition would be that it's a great definition of privacy but that it will be so restrictive that we won't really be able to use it." Like, you know, we won't be able to do, compute many things in a differentially private way. So that, that's one of the great successes of the field I think is in showing that the opposite is true and that, m- you know, most things that we know how to compute absent any privacy considerations can be computed in a differentially private way. So for example, pretty much all of statistics and machine learning can be done differentially privately. So pick your favorite machine learning algorithm, back propagation and neural networks, you know, CART for decision trees, support vector machines, boosting, you name it, um, as well as classic hypothesis testing and the like in statistics. None of those algorithms are differentially private in their original form. All of them have modifications that add noise to the computation in different places in different ways that achieve differential privacy. So this really means that to the extent that, you know, we've become a, you know, a, a scientific community very dependent on the use of machine learning and statistical modeling and data analysis, we really do have a path to kind of provide privacy guarantees to those methods and, and sort of we can still, you know, enjoy the benefits of kind of the data science era while providing, you know, rather robust privacy guarantees to individuals.
Privacy by misinformation
Lex Fridman 1:19:10 So perhaps a- a slightly crazy question but if we take that- the ideas of differential privacy and take it to the nature of truth that's being explored currently, so what's your f- most favorite and least favorite food?
Michael Kearns 1:19:26 Hmm. I'm not a real foodie so I'm- I'm a big fan of spaghetti.
Lex Fridman 1:19:29 Spaghetti?
Michael Kearns 1:19:30 Yeah. (laughs)
Lex Fridman 1:19:30 And what- what do you-
Michael Kearns 1:19:31 Uh-
Lex Fridman 1:19:32 ... really don't like?
Michael Kearns 1:19:32 Um, I really don't like cauliflower. (laughs)
Lex Fridman 1:19:38 Wow, I love cauliflower. Okay. But is one way to protect your preference for spaghetti by having an information campaign, bloggers and so on of bots saying that you like cauliflower? So, like, this kind of- the same kinda noise ideas... I mean, if you think o- in our politics today there's this idea of Russia hacking our elections. What- what's meant there, I believe, is bots spreading different kinds of information. Is that a kind of privacy or is that too much of a stretch?
Michael Kearns 1:20:10 No, it's not a stretch. I've not seen those idea- uh, you know, that is not a technique that, to my knowledge, will provide differential privacy.
Lex Fridman 1:20:21 Right, it's no guarantee to-
Michael Kearns 1:20:22 But- but to give an example, like one very specific example about what you're discussing is, um, there was a very interesting project at NYU, I think led by Helen Nissenbaum there, in which they basically built a browser plug-in that tried to essentially obfuscate your Google searches. So to the extent that you're worried that Google is using your searches to build, you know, predictive models about you, to decide what ads to show you, which they might very reasonably want to do, but if you object to that, they built this widget you could plug in and basically whenever you put in a query into Google it would send that query to Google, but in the background all of the time from your browser it would just be sending this torrent of irrelevant queries to the search engine so, you know, it's like a wheat and chaff thing. So, you know, o- out of every thousand queries, let's say, that Google was receiving from your browser, one of them was one that you put in but the other 999 were not. Okay? So it's this same kind of idea, um, kind of, you know, privacy by obfuscation. Um, so I think that's an interesting idea, doesn't give you differential privacy. It's also, um, I was actually talking to somebody at one of the large tech companies recently about the fact that, you know, j- just this kind of thing that there are some times when the response to my data needs to be very specific to my data, right? Like I type "mountain biking" into- to Google, I want results on mountain biking and I really want Google to know that I typed in "mountain biking". I don't want noise added to that. And so I think there's sort of maybe even interesting technical questions around notions of privacy that are appropriate where, you know, it's not that my data's part of some aggregate like medical records and that we're trying to discover important correlations and facts about the world at large, but rather, you know, there's a service that I really want to, you know, pay attention to my specific data yet I still want some kind of privacy guarantee. And I think these kind of obfuscation ideas are sort of one way of getting at that but maybe there are
Privacy of data in society
Michael Kearns 1:22:31 others as well.
Lex Fridman 1:22:32 So where do you think we'll land in this algorithm-driven society in terms of privacy? So, sort of, uh, China, like Kai-Fu Lee describes, you know, it's collecting a lot of data on its citizens but in the best form it's actually able to provide a lot of- sort of protect human rights and provide a lot of amazing services. In its worst forms, it can violate those human rights and- and, uh, limit services. So where do you think we'll land on... 'cause algorithms are powerful when they use data, so as a society do you think we'll give over more data? Is it possible to protect the privacy of that data?
Michael Kearns 1:23:16 So I'm- I'm- I'm optimistic about the possibility of, you know, balancing the desire for individual privacy and individual control of privacy with kind of societally and commercially beneficial uses of data.
Lex Fridman 1:23:33 Mm-hmm.
Michael Kearns 1:23:34 Not unrelated to differential privacy are suggestions that say, like, well, individuals should have control of their data, they should be able to limit the uses of that data, they should even... you know, there's- there's, you know, fledgling discussions going on in research circles about allowing people selective use of their data and being compensated for it.
Lex Fridman 1:23:54 Mm-hmm.
Michael Kearns 1:23:54 Um, and then you get to sort of very interesting economic questions like pricing, right? And one interesting idea is that maybe differential privacy would also, you know, be- be a- a conceptual framework in which you could talk about the relative value of different people's data. Like, you know, to- to demystify this a little bit, if I'm trying to predict- build a predictive model for some rare disease and I'm trying to u- I'm gonna use machine learning to do it, um, it's easy to get negative examples because the disease is rare, right? But I really want to have lots of people with the disease in my dataset, okay? Um, but s- but... and so somehow those people's data with respect to this application is much more valuable to me than just, like, the background population, and so maybe they should be compensated more for it. Um, and so, you know, I think these are kind of very, very fledgling conceptual questions that maybe we'll have kind of technical thought on them sometime in the coming years.
Lex Fridman 1:24:53 (laughs)
Michael Kearns 1:24:53 Um, but- but I do think we'll, you know, to kind of get more directly to answer your question, I think I- I'm optimistic at this point from what I've seen that we will land at some, you know, better compromise than we're at right now where, again, you know, privacy guarantees are few, far between, and weak, and users have very, very little control, um, and I'm optimistic that we'll land in something that, you know, provides better privacy overall and more individual control of data and privacy. But, you know, I think to get there it's, again, just like fairness, it's not gonna be enough to propose algorithmic solutions. There's gonna have to be a whole kind of regulatory legal process that prods companies and other parties to kind of adopt s- uh, solutions.
Lex Fridman 1:25:38 And I think you've mentioned the word control a lot and I think giving people control, that's something that people don't quite...... have in, uh, in a lot of these algorithms, and that's a really interesting idea of giving them control. Some of that is actually literally an interface design question, sort of just enabling, uh... 'Cause I think it's good for everybody to give users control. It's not, it's not a, it's almost not a trade-off, except that you have to hire people that are good at interface design. (laughs)
Michael Kearns 1:26:07 Yeah, I mean, the other thing that has to be said, right, is that, you know, (laughs) it's a cliché but, you know, we, uh, w- the, w- is, th- the users of many systems, platforms, and apps, you know, we are the product.
Lex Fridman 1:26:21 Mm-hmm.
Michael Kearns 1:26:21 We are not the customer. The customer are advertisers, and our data is the product, okay? So, it's one thing to kind of suggest more individual control of data and privacy and uses. But this, you know, it, if, if, if this happens in sufficient degree, it will upend the entire economic model that has supported the internet to date.
Lex Fridman 1:26:44 Mm-hmm.
The published transcript ends here. Continue watching on YouTube
Episode duration: 1:48:55
In the uListen app, the transcript lights up word by word as you listen. Get uListen
Transcript of episode AzdxbzHtjgs