1 00:00:00,000 --> 00:00:05,500 Hi everyone. Thanks for coming to my talk. Today I'll be talking about how we can uncover 2 00:00:05,500 --> 00:00:11,600 bias in different machine learning models and what the implications might be. And I'm Eileen 3 00:00:11,600 --> 00:00:17,320 as John introduced me and I just became an assistant professor and today is my second talk 4 00:00:17,320 --> 00:00:22,980 as an assistant professor. Yesterday was my first one. And yes, let's see, is this working? 5 00:00:23,140 --> 00:00:29,740 Nope. Yesterday I talked about supervised machine learning being used on language of 6 00:00:29,740 --> 00:00:35,140 individuals so that we can identify these individuals based on their linguistic style, 7 00:00:35,320 --> 00:00:40,900 and this is a serious privacy concern. But when we look at language at the aggregate 8 00:00:40,900 --> 00:00:46,480 level, language of society, we see that there are some fairness problems there, because 9 00:00:47,140 --> 00:00:53,660 this linguistic data that is coming from society also brings the biases of society, humans with it. 10 00:00:53,780 --> 00:00:59,040 And now we are going to be looking at this. And yesterday what I talked about was about 11 00:00:59,040 --> 00:00:59,720 coming up with a model of language that is very similar to the one we use today. And 12 00:00:59,740 --> 00:01:06,600 up with a method to identify a style of individuals, or these can also be programmers, so that 13 00:01:06,600 --> 00:01:12,000 we can do attribution. And this has security enhancing properties, but at the same time 14 00:01:12,000 --> 00:01:17,100 we see that it's very privacy infringing in some real world cases. And today I'll be talking 15 00:01:17,100 --> 00:01:23,240 about a method for quantifying and detecting bias in linguistic data or linguistic machine 16 00:01:23,240 --> 00:01:31,140 learning models. And for this I basically adapt the implicit association test for humans to 17 00:01:31,140 --> 00:01:37,360 machines. And given that there's the language universal that in every language semantics 18 00:01:37,360 --> 00:01:44,040 happens in the same context window, the method that I came up with can be used in any language 19 00:01:44,040 --> 00:01:53,120 basically. Okay, so in AI, under the umbrella of AI, today we'll be looking at natural language 20 00:01:53,240 --> 00:01:58,540 processing and machine learning, and in particular, deep learning and unsupervised learning. In 21 00:01:58,540 --> 00:02:04,560 the past there has been some work on looking at supervised machine learning to see where 22 00:02:04,560 --> 00:02:08,360 the bias might be happening, how it can be removed, but it's slightly more difficult 23 00:02:08,360 --> 00:02:13,000 to understand these in unsupervised machine learning models since they don't have direct 24 00:02:13,000 --> 00:02:20,520 classification outputs and so on. And again, talking about, for example, individual language 25 00:02:20,520 --> 00:02:23,220 versus society's language, when we look at this model, we can see that there are 26 00:02:23,220 --> 00:02:27,080 multiple languages. So we can look at individual's language, the syntax that they use in language 27 00:02:27,080 --> 00:02:33,980 is the most identifying thing, even in source code. But today we'll be focusing on semantics, 28 00:02:34,140 --> 00:02:42,080 the meaning in language, at the societal level. And just a brief summary of this work 29 00:02:42,080 --> 00:02:46,840 on security privacy and machine learning, where I'm using stylometry, which is the 30 00:02:46,840 --> 00:02:51,560 study of linguistic style. And since this is linguistic style, we can be looking at natural 31 00:02:51,560 --> 00:02:53,200 language, or we can also look at language processing. So we can look at language processing 32 00:02:53,200 --> 00:02:55,040 as well as language processing. So we can look at artificial languages such as programming 33 00:02:55,040 --> 00:03:00,560 languages. And some examples are identifying the authors of English text, English as a 34 00:03:00,560 --> 00:03:06,060 second language so that we can identify their native language, or translated text and identifying 35 00:03:06,060 --> 00:03:11,060 the native language or translator, as well as underground forum texts where underground 36 00:03:11,060 --> 00:03:16,480 forum users engage in business transactions. And even though these are very noisy data 37 00:03:16,480 --> 00:03:21,860 sets, we can still identify these authors. And sometimes these are suspect sets for, 38 00:03:21,880 --> 00:03:22,120 uh, 39 00:03:23,260 --> 00:03:28,440 uh, intelligence agencies. And because of that, uh, this work, the tools that we developed 40 00:03:28,440 --> 00:03:32,940 and that are open source on GitHub, any one of you can download and use, they are currently 41 00:03:32,940 --> 00:03:38,160 being used by the FBI or expert witnesses to be used as scientific evidence in court, 42 00:03:38,280 --> 00:03:43,300 or European high tech crime units so that they can identify suspects online based on 43 00:03:43,300 --> 00:03:47,480 their language. But again, I'm reminding you, this is about individual's language and the 44 00:03:47,480 --> 00:03:52,880 privacy implications that it has. And in artificial languages, focusing on programming languages, 45 00:03:53,200 --> 00:03:59,200 in particular Python, C, and C++, source code, as well as binaries, uh, this work is 46 00:03:59,200 --> 00:04:03,680 being used by DARPA and being part of the Department of Defense, you might imagine 47 00:04:03,680 --> 00:04:08,720 why they would be interested in attribution problems, uh, for example, to find the authors 48 00:04:08,720 --> 00:04:16,720 of, uh, malicious software, or in oppressed regimes, authors of, uh, for example, censorship 49 00:04:16,720 --> 00:04:22,700 circumvention software. And expert witnesses, again, can now use this information as scientific 50 00:04:22,700 --> 00:04:27,660 evidence in court. And I've been collaborating with the U.S. Army Research Laboratory. They 51 00:04:27,660 --> 00:04:34,340 are still working on, um, programmer de-anonymization, programmer attribution. Okay, but today I 52 00:04:34,340 --> 00:04:39,580 want to talk more about fairness and language at the, uh, societal level. And I'll start 53 00:04:39,580 --> 00:04:45,140 with an example. So, uh, the, do any one of you know this author, Robert Galbraith? 54 00:04:46,600 --> 00:04:52,680 Okay. So, there was this, uh, novel, uh, crime novel called The Cougar. And it was 55 00:04:52,700 --> 00:04:57,840 Cougar's Calling by Robert Galbraith. But some people suspected that it might not be 56 00:04:57,840 --> 00:05:03,020 written by Robert Galbraith, but instead J.K. Rowling. And after performing stylometric 57 00:05:03,020 --> 00:05:08,040 analysis, it was shown that it was actually written by the famous J.K. Rowling of the 58 00:05:08,040 --> 00:05:13,840 Harry Potter series. And, uh, after that, J.K. Rowling said that, okay, uh, yes, she 59 00:05:13,840 --> 00:05:19,620 is the author of this book, but she wanted to use a man's name because it's a crime 60 00:05:19,620 --> 00:05:22,080 novel. And the publisher also thought that it would 61 00:05:22,080 --> 00:05:22,600 sell better. 62 00:05:22,600 --> 00:05:27,720 If it was published under the name of a man. And at the same time, they wouldn't know that 63 00:05:27,720 --> 00:05:33,040 it was written by J.K. Rowling, so she would get a more realistic evaluation of her work. 64 00:05:33,160 --> 00:05:39,200 So, we can see even at high profile people how biases affect in society, even for such 65 00:05:39,200 --> 00:05:47,120 an important product that they are publishing. And here, uh, this reminds me of the interplay 66 00:05:47,120 --> 00:05:52,580 between privacy and fairness. Uh, big data is evil to twins. This is why I'm saying that. 67 00:05:52,580 --> 00:05:59,100 I don't match them with自i are like. I don't match them with this uncertainty. So, I 68 00:05:59,100 --> 00:06:05,040 don't win, but if there is dignity, uh, you prefer the big data, then I give the small000. 69 00:06:05,040 --> 00:06:06,480 a quote here, uh, this is a quote, uh, frommax market 70 00:06:06,700 --> 00:06:08,200 at this detailed reference, pops into the slide. 71 00:06:08,600 --> 00:06:13,360 you see here that privacy isLaughing but that doesn't imply value theory. So, 72 00:06:13,360 --> 00:06:14,700 that, that is the 1950s. What I 73 00:06:14,700 --> 00:06:15,300 want to do now is reduce, uh, uh, prohibition of privacy, um, threatening brains, 74 00:06:15,300 --> 00:06:15,460 um, migrants. Ah, 75 00:06:15,460 --> 00:06:17,620 so you see, that the national, the national, that is, that the national neighborhood, 76 00:06:17,620 --> 00:06:22,560 you see how much privacy is trading in a country, in a country. 77 00:06:22,560 --> 00:06:28,520 recently Google had this Cloud Natural Language API. Amazon, Google, many companies, researchers 78 00:06:28,840 --> 00:06:34,960 are making these tools available or for commercial purposes as well. And such tools are being 79 00:06:34,960 --> 00:06:43,940 used by developers, researchers, just random folks, citizens, and so on. And we can also 80 00:06:43,940 --> 00:06:50,700 see that whenever we are dealing with a smart or digital application, if there is any text 81 00:06:50,700 --> 00:06:55,720 included in it, then usually these linguistic machine learning models are also being used. 82 00:06:55,840 --> 00:07:01,500 For example, web search, when you're trying to type something and you can see some suggestions 83 00:07:01,500 --> 00:07:08,480 to fill that sentence, which is sequence prediction or text generation. At the context level, 84 00:07:08,680 --> 00:07:13,420 they are also looking at linguistic semantic spaces. Or machine translation, sentiment 85 00:07:13,420 --> 00:07:18,440 analysis, especially for market predictions to see how a commercial product is, for example, 86 00:07:18,440 --> 00:07:20,440 perceived. Is it negative, positive? 87 00:07:20,700 --> 00:07:27,300 And, of course, it's using linguistic data and tokens, words as tokens that are in certain 88 00:07:27,300 --> 00:07:31,820 context windows. Or named entity recognition and text generation. When you're receiving 89 00:07:31,820 --> 00:07:38,140 an automated call on the phone, usually that text is automatically generated. Okay, why 90 00:07:38,140 --> 00:07:43,720 would this be a problem? Let's look at this example. So, one of my native languages is 91 00:07:43,720 --> 00:07:49,900 Turkish, and Turkish is a genderless language. There are no gendered pronouns. There is one 92 00:07:49,900 --> 00:07:56,340 pronoun, and it means he, she, or it. Okay, so I'm translating from English to Turkish. 93 00:07:56,580 --> 00:08:02,080 She's a doctor, translated as he, she, or it is a doctor. Taking the Turkish sentence, 94 00:08:02,320 --> 00:08:07,040 translating it back to English, it's translating as he's a doctor. It's not even asking if 95 00:08:07,040 --> 00:08:11,580 it should be a he, she, or it. Okay, let's say that it's smart enough to understand that 96 00:08:11,580 --> 00:08:16,120 this is a human, so it shouldn't be an it. It's still saying, not saying he or she, 97 00:08:16,180 --> 00:08:19,100 but just choosing he as the most accurate answer. 98 00:08:19,900 --> 00:08:25,340 And another example, to see if this is just one rare exception, or is this happening 99 00:08:25,340 --> 00:08:32,740 at the larger scale. He's a nurse, translated to Turkish. He or she is a nurse. Translated 100 00:08:32,740 --> 00:08:38,840 back to English, she's a nurse. Okay. You can maybe also see the difference. Doctor 101 00:08:38,840 --> 00:08:45,760 versus nurse. The prestige, or the salaries of these people. And we see a pattern here. 102 00:08:46,040 --> 00:08:49,880 He or she, it is a professor. He is a professor. Teacher, he is a professor. And the other 103 00:08:49,900 --> 00:08:54,440 teacher, she is a teacher. Okay, is this only happening in English? German is also 104 00:08:54,440 --> 00:09:00,260 a gendered language. Not only pronouns, but other things are also gendered. It's more 105 00:09:00,260 --> 00:09:04,620 gendered than English, and of course, from Turkish. But again, we see that a doctor 106 00:09:04,620 --> 00:09:11,020 is translated as a male, and a nurse is translated as a female. And then we have Bulgarian, and 107 00:09:11,020 --> 00:09:16,260 in Bulgarian, almost everything is gendered. Verbs are gendered, adjectives are gendered. 108 00:09:16,260 --> 00:09:19,880 And again, we see that doctor is a male, whereas a nurse is a male. And again, we see 109 00:09:19,880 --> 00:09:26,920 that a nurse is a female. Okay. So, it has been 62 years since they came up with the 110 00:09:26,920 --> 00:09:32,360 term, I believe it's still 62 years. They came up with the term artificial intelligence, 111 00:09:32,680 --> 00:09:37,600 and what they, what can be done with it. Old doomsday stories about when there is 112 00:09:37,600 --> 00:09:43,840 super intelligence, or when machines are going to take over, and so on. But they haven't 113 00:09:43,840 --> 00:09:47,620 been really thinking about immediate problems we might have with artificial intelligence. 114 00:09:48,820 --> 00:09:54,800 Okay. We know that when garbage goes into machine learning models, what comes out is 115 00:09:54,800 --> 00:09:59,360 usually garbage as well, because if that's the quality of your training data, then the 116 00:09:59,360 --> 00:10:04,900 output would reflect the same quality. And one example here for how text is collected 117 00:10:04,900 --> 00:10:10,800 for generating semantic spaces and linguistic models is, for example, there was the Microsoft 118 00:10:10,800 --> 00:10:17,380 Tweetbot, Tay, and it was taken down the same day it was introduced, because it very quickly 119 00:10:17,620 --> 00:10:24,480 turned into a very offensive, racist, biased bot. And Microsoft wasn't ready to account 120 00:10:24,480 --> 00:10:29,880 for such cases in the linguistic model. And this was done by 4chan. It was basically model 121 00:10:29,880 --> 00:10:35,000 poisoning. It was adversarial machine learning. And it worked very quickly. And these were 122 00:10:35,000 --> 00:10:41,120 some of the examples that the Tweetbot started tweeting. And, of course, it was taken down, 123 00:10:41,200 --> 00:10:47,600 but we can see how easily the bias can be embedded with a strong affective, 124 00:10:47,620 --> 00:10:52,880 violent exercise in this example within a few hours. And how is this getting into these 125 00:10:52,880 --> 00:10:59,360 models? Let's take a step-by-step look at this. We know that humans are biased. This is not 126 00:10:59,360 --> 00:11:05,200 necessarily a bad thing, because there are neutral biases as well, and sometimes biases are 127 00:11:05,200 --> 00:11:10,980 helpful in some conditions, and I'm going to give some examples of those as well. But when we're 128 00:11:10,980 --> 00:11:16,540 biased and when we're speaking, we reflect that bias in our semantics. We have valence, for example. 129 00:11:17,620 --> 00:11:22,380 Okay, this snake is ugly, or this butterfly is beautiful, for example, and these are neutral 130 00:11:22,380 --> 00:11:29,880 biases, but they are there. And as we are speaking, forming languages, we tend to have similar 131 00:11:29,880 --> 00:11:36,880 patterns in same context windows. Let's say that we have a negative context window, and snake 132 00:11:36,880 --> 00:11:43,780 tends to appear in that context window as a neutral bias, but it's still a negative bias for 133 00:11:43,780 --> 00:11:47,600 snakes. And that's called, then, distributional meaning. So, when we're talking about 134 00:11:47,620 --> 00:11:52,340 distributional meaning, we see in the statistics that certain words end up in negative context, 135 00:11:52,500 --> 00:11:58,380 for example, and context windows. And after that, machine learning models, especially semantic 136 00:11:58,380 --> 00:12:04,840 spaces, look at this distributional meaning and co-occurring statistics, and after that, it 137 00:12:04,840 --> 00:12:10,040 learns the co-occurring statistics of certain terms or certain people's names and what they are 138 00:12:10,040 --> 00:12:14,420 associated with, and this is reflected in machine learning models. Basically, the bias is 139 00:12:14,420 --> 00:12:16,760 propagated through this entire process. 140 00:12:17,620 --> 00:12:26,660 Sometimes, it is even increased and augmented. It's not just perpetuated. How can we measure 141 00:12:26,660 --> 00:12:31,660 it, though? Because especially when we look at unsupervised learning, we don't really have 142 00:12:31,660 --> 00:12:38,280 something to directly control for and measure these things unless we look at the model at the 143 00:12:38,280 --> 00:12:46,020 construct level, like the intelligence of this model, let's say, the understanding of the world 144 00:12:46,020 --> 00:12:47,040 that this model has. 145 00:12:47,620 --> 00:12:53,040 And for humans, the implicit association test has been used as a way to measure the implicit 146 00:12:53,040 --> 00:12:58,040 biases that we might have. Greenwald from University of Washington came up with the 147 00:12:58,040 --> 00:13:03,800 implicit association test in 1998, and there's a lot of criticism about this method as well, 148 00:13:03,960 --> 00:13:09,820 but at the same time, it's revealing some patterns about the world and humans, and it's revealing 149 00:13:09,820 --> 00:13:16,680 subconscious biases that we might have and we might not be even aware of. And this test is basically 150 00:13:16,680 --> 00:13:24,520 asking you to associate certain societal groups, members, or terms with certain stereotypical words. 151 00:13:24,700 --> 00:13:30,760 And how fast do you associate, for example, a butterfly with being negative or positive versus how fast 152 00:13:30,760 --> 00:13:37,120 do you associate a snake being positive or negative? And then when you're doing these associations on 153 00:13:37,120 --> 00:13:43,880 a computer, you're asked to click right or left to classify a positive term with butterfly or snake. 154 00:13:43,880 --> 00:13:50,240 And after that, there is a difference in reaction time, and this differential reaction time in associating 155 00:13:50,240 --> 00:13:56,700 congruent stereotypes and incongruent stereotypes gives you the effect size for implicit bias that we might 156 00:13:56,700 --> 00:14:04,120 have. And this example is from a girl taking the implicit association test for males versus females 157 00:14:04,120 --> 00:14:10,320 about science versus arts. And the bias in general is that males are associated with science, whereas 158 00:14:10,320 --> 00:14:12,040 women are associated with arts. 159 00:14:12,040 --> 00:14:20,260 And you can go and take this test online at the Harvard's website, implicit.harvard.edu, implicit. 160 00:14:20,580 --> 00:14:28,120 And I'm showing this because we see a few implicit association tests here that are listed. And in the 161 00:14:28,120 --> 00:14:36,160 experiments that I did, I took these previous experiments that have been generated by experts in 162 00:14:36,160 --> 00:14:42,020 societal psychology, because I'm not an expert in that area at all. And I wanted to show you that 163 00:14:42,040 --> 00:14:47,340 we can replicate these biases versus what happens when I try random things or things that are not 164 00:14:47,340 --> 00:14:53,560 biases, so that I'm not just cherry-picking the biases that I want to show you. You see that these are the 165 00:14:53,560 --> 00:14:58,580 main categories that were there, and I'm using the same ones to see if they are reflected. Because the 166 00:14:58,580 --> 00:15:05,180 other thing is this test is taken by millions of people over decades. And another example is you can 167 00:15:05,180 --> 00:15:11,460 also take it in Germany if you are from Germany, let's say, because the same tests, since they are based 168 00:15:11,460 --> 00:15:18,660 on context and words, they can exist in any language basically. And we can generate linguistic models 169 00:15:18,660 --> 00:15:24,680 in any language as well, so we can apply these tests in other languages for other cultures or countries. 170 00:15:25,500 --> 00:15:31,560 Okay, let's start looking into the details of generating language models. Another example here of 171 00:15:31,560 --> 00:15:39,040 where text is taken to generate these models. Basically, we can crawl the web, take all kinds of text, 172 00:15:39,240 --> 00:15:41,380 structured, unstructured, tweets here. 173 00:15:41,460 --> 00:15:47,360 We see some tweets from Donald Trump before he became the president, but we see a certain pattern in the 174 00:15:47,360 --> 00:15:54,660 text about maybe certain biases and so on. And this is blindly fed into, in this case, neural networks. 175 00:15:55,040 --> 00:16:01,140 And the neural networks looks at the co-occurring statistics and all the data, point-wise material 176 00:16:01,140 --> 00:16:08,360 information it has. And after that, it produces a semantic space. In this semantic space, we have, the common 177 00:16:08,360 --> 00:16:10,160 example is with 300 dimensions. 178 00:16:10,160 --> 00:16:18,420 We basically have a dictionary of a language, and then this dictionary, each word contains, each word in a 179 00:16:18,420 --> 00:16:25,660 language with, in a vector form, numeric vector form, with 300 dimensions where each dimension is a 180 00:16:25,660 --> 00:16:32,080 combination of certain context. But when we have each of these words, we see that similar words are 181 00:16:32,080 --> 00:16:39,100 projected to the same points in that space. For example, things about positiveness, things about feelings, 182 00:16:39,220 --> 00:16:40,140 things about feelings. 183 00:16:40,160 --> 00:16:46,840 And so on. And based on their vicinity, we can understand or answer many questions. 184 00:16:47,300 --> 00:16:55,360 And the types of semantic spaces that I focused on in my study were Word2Vec, the algorithm, and GloVe from 185 00:16:55,360 --> 00:17:01,500 Stanford researchers. Word2Vec, when it was introduced, it was extremely popular, and the models that was 186 00:17:01,500 --> 00:17:09,600 produced by Word2Vec, which is from Google Research, it's being used by many developers, researchers, or app 187 00:17:09,600 --> 00:17:10,140 developers. 188 00:17:10,160 --> 00:17:17,200 And so on. So a lot of people use these for their applications, and GloVe is similar to that as well. 189 00:17:17,320 --> 00:17:22,700 It's produced by Stanford researchers around the same time, and these two semantic spaces have about the 190 00:17:22,700 --> 00:17:28,240 same accuracy after evaluation, even though it's not very clear how to evaluate these methods. 191 00:17:28,440 --> 00:17:32,580 It's like an approximation of an evaluation for these semantic spaces. 192 00:17:33,040 --> 00:17:39,700 And Word2Vec is based on Google News data, and we would expect Google News data to be more neutral and 193 00:17:39,700 --> 00:17:44,840 objective, because it's news data. But we see that that is not the case based on co-occurrence statistics. 194 00:17:45,200 --> 00:17:52,420 And other type of data that GloVe uses is Common Crawl. It's about 800 billion tokens from the Internet. 195 00:17:52,580 --> 00:17:59,720 It's basically the crawl of the World Wide Web, basically the language of Internet users, I would say, in this 196 00:17:59,720 --> 00:18:08,600 case. Not in particular society in general, but the Internet-using population. Okay, what can we do with 197 00:18:08,600 --> 00:18:13,580 this word, with these word embeddings? First of all, we can understand syntax. We can understand the 198 00:18:13,580 --> 00:18:21,400 meaning of a word better. We can perform analogies and get the answers. Or we can look for semantic 199 00:18:21,400 --> 00:18:28,980 similarity. Let me see if I have this example. No, but we can ask questions such as, okay, Rome is to 200 00:18:28,980 --> 00:18:35,380 Italy, as Paris is to what? And it will be able to answer that it's France. So it has some 201 00:18:35,380 --> 00:18:38,580 understanding of language. It has understanding of semantics. And it has some understanding of 202 00:18:38,580 --> 00:18:43,040 language. But there is also knowledge and maybe even statistics embedded here. And by statistics, 203 00:18:43,180 --> 00:18:48,540 I don't mean the co-occurrence statistics. I mean statistics about the world. And looking into the 204 00:18:48,540 --> 00:18:56,720 details of these vectors, we have each word listed by frequency. And the first word is usually A or D 205 00:18:56,720 --> 00:19:04,720 or just a comma and so on. And there are 300 features that represent this word in the semantic space. 206 00:19:05,060 --> 00:19:08,560 And in GloVe, we have about 2 million tokens. And we have a lot of data. And we have a lot of data. 207 00:19:08,580 --> 00:19:13,180 We have a lot of tokens. 2 million words in this dictionary. And in a dictionary, you would expect 208 00:19:13,180 --> 00:19:19,280 much less words. But given that this is taking all the words above a certain frequency on the Internet, 209 00:19:19,520 --> 00:19:26,000 we have words such as Obama or Michael Jackson and so on. Okay, what can we do with vector arithmetic? 210 00:19:26,300 --> 00:19:34,260 So when we project these vectors to 2D space, we see that, for example, I hope at least the laser is 211 00:19:34,260 --> 00:19:37,400 working. No, because I didn't turn it on. Okay, now it's working. 212 00:19:39,720 --> 00:19:45,960 Okay, here we see that on the lower side, there is brother, which is a male. And here we see sister. 213 00:19:46,220 --> 00:19:52,380 And now we see the direction of gender here. Once we see the direction of gender, maybe we can look at 214 00:19:52,380 --> 00:19:58,060 kink and find what corresponds to the female version of kink, which is queen here. So basically, we can 215 00:19:58,440 --> 00:20:04,220 perform vector arithmetics with cosine similarity most of the time or taking the principal components of 216 00:20:04,220 --> 00:20:08,560 these vectors and try to answer the questions that we have in syntactic order. 217 00:20:08,580 --> 00:20:11,300 Syntactic form, analogy form, or semantic form, and so on. 218 00:20:11,900 --> 00:20:16,340 How can I use this information to measure bias in machine learning models? 219 00:20:16,780 --> 00:20:24,100 So the first thing I came up with was the word embedding association test instead of the implicit association test. 220 00:20:24,440 --> 00:20:32,500 And for this, what I do is I try to quantify the implicit, or in this case, it's actually explicit and deterministic 221 00:20:32,500 --> 00:20:38,120 associations between societal categories and evaluative attributes, which are 222 00:20:38,580 --> 00:20:42,480 stereotypes in this case. And what I do is I take the distance between the 223 00:20:42,480 --> 00:20:46,360 stereotypes and societal groups for the two groups and 224 00:20:46,360 --> 00:20:50,080 look at the difference in standard deviation between the 225 00:20:50,080 --> 00:20:54,440 means of these associations. And that gives me the 226 00:20:54,440 --> 00:20:58,280 effect size of a certain bias and we can also 227 00:20:58,280 --> 00:21:02,760 measure the statistical significance by generating a null hypothesis 228 00:21:02,760 --> 00:21:06,380 and then see if the result that we are getting from the effect size 229 00:21:06,380 --> 00:21:07,520 is significant or not. 230 00:21:08,580 --> 00:21:12,400 For this, the first thing I wanted to start with was looking at neutral 231 00:21:12,400 --> 00:21:16,300 stereotypes that are universally accepted, or they are called so. 232 00:21:16,520 --> 00:21:20,460 For example, flowers being considered pleasant and insects being considered 233 00:21:20,460 --> 00:21:24,040 unpleasant. For some reason, apparently most of the population just 234 00:21:24,580 --> 00:21:28,760 naturally, intuitively have this stereotype. Or musical instruments 235 00:21:28,760 --> 00:21:32,360 being considered pleasant, whereas weapons are being considered unpleasant. 236 00:21:32,880 --> 00:21:36,780 And since this is not dangerous for society or harmful to society, 237 00:21:37,180 --> 00:21:38,380 it's considered neutral. 238 00:21:38,580 --> 00:21:41,960 And in this case, we see that the effect size is 1.5, 239 00:21:43,100 --> 00:21:46,620 around 1.5 for both of them, and this is a large effect size 240 00:21:46,620 --> 00:21:50,620 if it's above 0.8. And the highest the effect size can get 241 00:21:50,620 --> 00:21:53,520 is 2 because it's bounded by the standard deviation here. 242 00:21:53,840 --> 00:21:58,500 And we see that these are both statistically significant and high effect sizes. 243 00:21:58,880 --> 00:22:02,480 And for the upcoming examples, it will be the same case. They are all statistically 244 00:22:02,480 --> 00:22:06,240 significant with high effect sizes. Okay, let's start looking at 245 00:22:06,240 --> 00:22:07,340 other major 246 00:22:08,580 --> 00:22:12,500 implicit association test categories, such as white people's 247 00:22:12,500 --> 00:22:16,480 names versus black people's names, and trying to understand if they are considered pleasant 248 00:22:16,480 --> 00:22:20,320 or unpleasant. And we get the congruent stereotype that white 249 00:22:20,320 --> 00:22:24,080 people are considered pleasant in this case. 250 00:22:24,300 --> 00:22:28,260 And when we look at the differences between genders, we see that males are associated 251 00:22:28,260 --> 00:22:32,400 with career, and females are associated with family. And again, 252 00:22:32,560 --> 00:22:36,420 I'm using the same words that the implicit association test is 253 00:22:36,420 --> 00:22:39,780 using to ask you to perform the classification association 254 00:22:40,240 --> 00:22:44,380 test here, the exact same words. And when we look at science versus arts, 255 00:22:44,460 --> 00:22:48,220 again, we see that males are associated with science, and females are associated 256 00:22:48,220 --> 00:22:52,560 with arts. I'm not going to talk about stereo threat here, but at least 257 00:22:52,560 --> 00:22:56,400 we can see that bias is certainly perpetuated with these linguistic 258 00:22:56,400 --> 00:23:00,540 models. And two examples that I have 259 00:23:00,540 --> 00:23:04,280 with models here are from 2014. We are in 2018, 260 00:23:04,280 --> 00:23:08,120 and these are still the state-of-the-art models that are being used by 261 00:23:08,120 --> 00:23:12,120 many people, and they are not really updated on a frequent basis because they are 262 00:23:12,120 --> 00:23:16,280 quite large files, and they require a lot of data, and so on. 263 00:23:17,320 --> 00:23:19,420 Okay, let's look at some other 264 00:23:20,070 --> 00:23:24,160 health-related stereotypes, for example. Young people being considered 265 00:23:24,160 --> 00:23:28,040 pleasant, whereas old people are being considered unpleasant. Or physical diseases 266 00:23:28,040 --> 00:23:32,620 considered controllable, whereas mental diseases being considered uncontrollable. 267 00:23:32,700 --> 00:23:33,880 And we see the stigma being 268 00:23:34,580 --> 00:23:37,760 reflected in these models. Or when we look at, for example, 269 00:23:39,080 --> 00:23:40,440 heterosexual versus homosexual 270 00:23:41,920 --> 00:23:45,900 individuals, we see the attitude towards them, or straight versus transgender, 271 00:23:46,400 --> 00:23:50,360 and so on. And we can also perform these in German. When we look at the main 272 00:23:50,360 --> 00:23:54,240 categories, after generating the linguistic model, and you can also 273 00:23:54,240 --> 00:23:58,220 generate your linguistic models, for example, you can download corporate online 274 00:23:58,220 --> 00:24:02,300 or use Google Ngrams data from different years, decades, countries, 275 00:24:02,480 --> 00:24:03,880 languages, and so on to 276 00:24:04,280 --> 00:24:08,160 analyze what might be going on in these years. And when we look at the most 277 00:24:08,160 --> 00:24:11,600 recent version of Google Ngrams for 278 00:24:13,000 --> 00:24:16,100 German, we see that we can also replicate 279 00:24:16,100 --> 00:24:20,220 the stereotype or the prejudice for Turkish 280 00:24:20,220 --> 00:24:24,380 people. Turkish people went to Germany decades ago, millions 281 00:24:24,380 --> 00:24:28,220 of them as immigrants, and there isn't a very positive attitude 282 00:24:28,220 --> 00:24:32,260 towards them, and we are able to replicate that from Google Ngrams 283 00:24:32,260 --> 00:24:34,620 data as well by performing the V-test. 284 00:24:36,060 --> 00:24:39,940 Okay, we saw that semantics and bias 285 00:24:39,940 --> 00:24:44,160 is embedded in these models. What about empirical information 286 00:24:44,160 --> 00:24:48,160 that doesn't depend on a context or a feeling, but it's 287 00:24:48,160 --> 00:24:51,600 more about the statistics in the world. Can we replicate those as well? 288 00:24:51,760 --> 00:24:55,020 Or can those be a reason for these biases? 289 00:24:55,560 --> 00:24:59,640 For example, let's say that I would like to know how 290 00:24:59,640 --> 00:25:03,540 a certain name is associated with being male or 291 00:25:03,540 --> 00:25:07,180 female. Taylor, for example. It's an androgynous name, and it's almost 292 00:25:07,180 --> 00:25:11,480 50-50 male and female. And based on this, I can 293 00:25:11,480 --> 00:25:15,180 perform a similar computation 294 00:25:15,180 --> 00:25:19,120 to see how much a word is associated with 295 00:25:19,120 --> 00:25:22,980 a certain stereotypical group. And 296 00:25:23,580 --> 00:25:26,220 based on this, I went to U.S. 297 00:25:26,220 --> 00:25:29,300 I collected data from the 298 00:25:29,300 --> 00:25:33,980 U.S. Census Bureau's 1990, I believe, data 299 00:25:33,980 --> 00:25:37,060 where they included the gender of 300 00:25:38,320 --> 00:25:42,160 people with certain names and how many of them were out 301 00:25:42,160 --> 00:25:46,060 there. So I took all of these names, the most frequent ones, and tried to 302 00:25:46,060 --> 00:25:50,120 calculate their association with genders 303 00:25:50,120 --> 00:25:53,780 being female or male. And we see that these 304 00:25:53,780 --> 00:25:57,120 androgynous names had 0.84 305 00:25:58,820 --> 00:26:01,420 correlation coefficients. So it's almost about 306 00:26:01,420 --> 00:26:04,880 84% similarity 307 00:26:05,700 --> 00:26:09,800 in the statistics of the world versus the association that I'm 308 00:26:09,800 --> 00:26:13,540 getting only from a semantic model, which is very interesting to me. 309 00:26:13,980 --> 00:26:17,660 And this is an illustration of that. We see here that, 310 00:26:17,700 --> 00:26:21,340 for example, Taylor is in the middle, almost white, 50% 311 00:26:21,340 --> 00:26:23,660 male, 50% female from the 312 00:26:23,780 --> 00:26:27,560 effect size that I'm getting, which is almost 0 in this case. And we 313 00:26:27,560 --> 00:26:32,160 see that Carmen is almost 100% female, whereas Chris is 100% 314 00:26:32,160 --> 00:26:35,420 male. Okay, what about if you look at 315 00:26:36,340 --> 00:26:39,600 employment statistics, occupation statistics based on 316 00:26:39,600 --> 00:26:43,780 gender. And the Bureau of Labor Statistics publishes 317 00:26:45,020 --> 00:26:47,360 this information every year. 318 00:26:47,540 --> 00:26:51,720 And based on this, I took the data from, I'm trying to see which year this was, 319 00:26:51,720 --> 00:26:55,600 it might be 2017. And I took the 320 00:26:56,480 --> 00:26:59,260 occupation names, and then tried to see 321 00:26:59,260 --> 00:27:03,780 their association with certain genders. And the correlation 322 00:27:03,780 --> 00:27:07,280 coefficient was 0.9, which is amazing. 323 00:27:08,720 --> 00:27:11,540 And after that, when we look at the results, 324 00:27:11,680 --> 00:27:15,080 we see that a programmer is, oops, where is my, 325 00:27:15,360 --> 00:27:19,240 it's being reflected from the mirror. I don't want to blind anyone, so I'm not going to use it. 326 00:27:19,240 --> 00:27:23,160 But on the upper left side, we see that programmer is 327 00:27:23,160 --> 00:27:26,940 almost 100% male, whereas a nurse is almost 328 00:27:26,940 --> 00:27:31,360 100% female. And when you look at, for example, 329 00:27:31,440 --> 00:27:34,460 Google Ngrams, searching for, she's a programmer, 330 00:27:34,760 --> 00:27:39,060 usually the result you get is 0, because things that are below a certain 331 00:27:39,060 --> 00:27:42,900 frequency are just cut from the Ngrams, and 332 00:27:43,620 --> 00:27:47,260 until recently, she's a programmer was 0. And we can see that 333 00:27:47,260 --> 00:27:51,080 here, reflected here as well. Okay, now we can 334 00:27:51,080 --> 00:27:55,220 understand that there are different types of bias that are embedded in semantic 335 00:27:55,220 --> 00:27:59,120 spaces. And there might be different reasons why these are 336 00:27:59,120 --> 00:28:03,240 getting in these models, but we can come up with three main categories for 337 00:28:03,240 --> 00:28:06,780 types of bias that we are dealing with. The first one is the vertical 338 00:28:06,780 --> 00:28:11,100 information, gender and occupations was one 339 00:28:11,100 --> 00:28:15,320 example. And this is not exactly bias, it's basically the statistic 340 00:28:15,320 --> 00:28:17,100 that we have in the world. 341 00:28:17,260 --> 00:28:20,760 And these might be caused by the 342 00:28:21,440 --> 00:28:25,120 injustices in the past, or biases in the past, but we don't know any 343 00:28:25,120 --> 00:28:29,120 information about that, we just have the statistics here. And the models are learning 344 00:28:29,120 --> 00:28:33,080 from these statistics. But we also see that the universal biases 345 00:28:33,080 --> 00:28:37,220 are embedded in these models, as well as things that can be really 346 00:28:37,220 --> 00:28:41,100 prejudiced, such as black versus white names being considered pleasant versus 347 00:28:41,100 --> 00:28:45,260 unpleasant. But I would like to remind that in some cases 348 00:28:45,260 --> 00:28:48,960 you want certain types of biases to be in your machine learning 349 00:28:48,960 --> 00:28:53,320 models, because they can be very useful. It depends on what kind of 350 00:28:53,320 --> 00:28:57,060 task you are dealing with. And some people have suggested fairness through 351 00:28:57,060 --> 00:29:00,880 blindness. Basically, just remove protected 352 00:29:02,100 --> 00:29:05,240 attributes or debias the system by 353 00:29:05,240 --> 00:29:08,900 completely taking the bias component from the vector space 354 00:29:08,900 --> 00:29:13,280 from all words. But this cannot be the right solution to this, 355 00:29:13,280 --> 00:29:17,120 like just turning a blind eye to this. Because, first of all, once we remove 356 00:29:17,120 --> 00:29:20,840 this information, we see that we are also removing statistical information 357 00:29:20,840 --> 00:29:24,840 about the world. And the other thing would be 358 00:29:25,620 --> 00:29:29,280 we would end up with redundant encodings, which wouldn't have 359 00:29:29,280 --> 00:29:33,340 the same quality as the previous ones, and we don't know what exactly 360 00:29:33,340 --> 00:29:37,080 we are losing here. And another very important 361 00:29:37,080 --> 00:29:40,840 example is having proxies. Even if you remove protected attributes, 362 00:29:40,840 --> 00:29:44,720 there are still proxies for bias to take place. For example, 363 00:29:44,820 --> 00:29:48,420 when automated systems are deciding to give 364 00:29:48,420 --> 00:29:52,720 loans to certain people, the zip 365 00:29:52,720 --> 00:29:56,620 code is a proxy to the address. So even if you remove all 366 00:29:56,620 --> 00:30:00,460 protected attributes, the zip code, since it's a proxy to having a certain 367 00:30:00,460 --> 00:30:04,820 financial status, it would give you the redlining example where certain 368 00:30:04,820 --> 00:30:07,900 people are just denied loans because of their zip code. 369 00:30:07,900 --> 00:30:11,860 And by the way, in law, the main 370 00:30:11,860 --> 00:30:15,920 discrimination criteria is using protected attributes for discrimination. 371 00:30:16,320 --> 00:30:19,680 And if those protected attributes are removed, and if you are proxying from 372 00:30:19,680 --> 00:30:23,740 the zip code, it's completely okay to be using the system like that 373 00:30:24,760 --> 00:30:27,660 right now. And I'm suggesting 374 00:30:27,660 --> 00:30:31,700 instead, fairness through awareness. First of all, we need to understand cultural 375 00:30:31,700 --> 00:30:35,780 bias. And then, based on this bias, we need to understand the protected 376 00:30:35,780 --> 00:30:37,320 attributes that come with them. 377 00:30:37,900 --> 00:30:40,960 And we also need to understand the machine learning test. For example, 378 00:30:42,220 --> 00:30:45,480 in bioinformatics or health informatics, we 379 00:30:45,480 --> 00:30:49,900 need to make sure that there's a certain bias. The bias for genders 380 00:30:49,900 --> 00:30:53,360 or certain ethnicities or racial 381 00:30:53,710 --> 00:30:57,640 backgrounds are taken into account. Because one example is 382 00:30:57,640 --> 00:31:01,640 for cardiac disease. Symptoms of men and women are 383 00:31:01,640 --> 00:31:05,660 different. Treatment should be different as well. And we have to make sure that we are 384 00:31:05,660 --> 00:31:07,360 taking this into account in 385 00:31:07,900 --> 00:31:11,320 whatever model we are building. And I'm saying that fairness is 386 00:31:11,320 --> 00:31:15,580 task-specific for this purpose. And this work was 387 00:31:15,580 --> 00:31:19,780 published last year at Science. And there were a lot of news 388 00:31:19,780 --> 00:31:23,780 about it in media. And one of them said, after this random 389 00:31:23,780 --> 00:31:26,940 screenshot that I took, which I really like because it says, 390 00:31:27,120 --> 00:31:30,940 in 2017, society started taking AI bias seriously. 391 00:31:31,300 --> 00:31:35,640 So in 2017, people really understood that there was a 392 00:31:35,640 --> 00:31:39,660 serious problem caused by these automated systems and the bias 393 00:31:39,660 --> 00:31:43,640 that they are perpetuating in society that's already a huge problem to 394 00:31:43,640 --> 00:31:47,100 deal with. And this is now happening at the large scale. Okay. 395 00:31:47,260 --> 00:31:50,820 What am I going to be working on next? So this kind of covers the 396 00:31:51,880 --> 00:31:55,440 project that I was working on. And I'm trying to 397 00:31:55,440 --> 00:31:59,620 wrap up quickly so that you can also ask questions. And also, I was going to 398 00:31:59,620 --> 00:32:03,220 mention in the beginning that this can be interactive, but I think it's too late now. 399 00:32:04,000 --> 00:32:04,480 Okay. 400 00:32:05,920 --> 00:32:09,480 I'm not going to be focusing on the singularity or transhumance 401 00:32:09,480 --> 00:32:13,540 or when machines are going to gain cognition because we have much more 402 00:32:13,540 --> 00:32:17,680 immediate problems right now. I'm, for example, focusing on computer 403 00:32:17,680 --> 00:32:21,460 vision and joint semantic visual 404 00:32:21,460 --> 00:32:25,560 spaces. And these are being currently used, for example, for automated 405 00:32:25,560 --> 00:32:29,720 surveillance. And computer vision systems are known to have bias 406 00:32:29,720 --> 00:32:33,460 as well, but it's much harder to quantify those if you are not dealing with 407 00:32:33,460 --> 00:32:35,000 supervised machine learning. 408 00:32:35,640 --> 00:32:39,640 And imagine a system being biased for certain skin colors 409 00:32:39,640 --> 00:32:43,280 or ethnicities and how much of a problem this might become because 410 00:32:43,280 --> 00:32:47,540 a lot of these automated systems are being used to identify targets or 411 00:32:47,540 --> 00:32:51,460 they are even used in war zones or they are used all over the streets 412 00:32:51,460 --> 00:32:55,540 to identify, for example, anomalies for anomaly detection and 413 00:32:55,540 --> 00:32:59,040 so on. And we don't exactly know how these systems are working yet. 414 00:32:59,180 --> 00:33:03,280 And they might very well be biased because all the analyzable ones 415 00:33:03,280 --> 00:33:07,200 are showing bias. What about algorithmic 416 00:33:07,200 --> 00:33:11,360 transparency and interpretable machine learning? So, for example, 417 00:33:11,360 --> 00:33:14,820 with driverless cars, we know that they have vision systems as well. 418 00:33:15,000 --> 00:33:18,620 And let's say that this is the classical trolley problem in 419 00:33:19,200 --> 00:33:23,320 the current sense where we have the driverless cars is going to crash into 420 00:33:23,320 --> 00:33:27,380 someone. There will be an accident. It cannot avoid that. And it has 421 00:33:27,380 --> 00:33:31,280 to decide, is it going to crash into the white male 422 00:33:31,980 --> 00:33:32,540 executive 423 00:33:33,280 --> 00:33:37,000 right across the car or is it going to choose to run into 424 00:33:37,000 --> 00:33:41,220 the old black lady on the other side? And we don't 425 00:33:41,220 --> 00:33:45,280 know the answer to this yet. And because of that, we have to be very careful 426 00:33:45,280 --> 00:33:49,120 about what kind of products that we are building because we don't want to be 427 00:33:49,120 --> 00:33:52,920 building the digital analogs of Robert Mooses' racially 428 00:33:52,920 --> 00:33:57,200 motivated love overpasses. So, Robert Mooses is considered one of the 429 00:33:57,200 --> 00:34:00,880 best urban planners. He is the planner of New York City. But the 430 00:34:00,880 --> 00:34:04,600 overpasses that he built all around the parkways were quite 431 00:34:04,600 --> 00:34:08,660 low. So, buses were people with lower 432 00:34:08,660 --> 00:34:12,980 financial status had to use public transportation. Buses 433 00:34:12,980 --> 00:34:16,800 couldn't pass through those low overpasses, so people had to 434 00:34:16,800 --> 00:34:20,660 have their own cars so that they can go to the beaches in Long 435 00:34:20,660 --> 00:34:24,640 Island or the parks that he built. And with these low overpasses, people 436 00:34:24,640 --> 00:34:28,600 were basically just separated and this led to decades of segregation. 437 00:34:28,700 --> 00:34:30,860 And we have to make sure that we are not only in the middle of the street, but we have to make sure that we are not 438 00:34:30,880 --> 00:34:34,840 causing the same problems again with the digital products that we are putting out 439 00:34:34,840 --> 00:34:38,840 there blindly and for this I would like to keep working on a fairness framework 440 00:34:38,840 --> 00:34:43,220 to uncover bias in artificial intelligence and come up with ways to 441 00:34:43,220 --> 00:34:47,400 mitigate it while preserving the utility of systems and come up with fairness 442 00:34:47,400 --> 00:34:51,320 algorithms but there are a lot of privacy and security implications here 443 00:34:51,320 --> 00:34:56,000 as well for example when we have these machine learning models going from our 444 00:34:56,000 --> 00:35:01,560 phones to the cloud or from our fitness trackers to the cloud can we guarantee 445 00:35:01,560 --> 00:35:06,100 fairness in a secure and at the same time private way how can we avoid 446 00:35:06,100 --> 00:35:11,560 adversarial poisoning for these systems and so on and there are many unanswered 447 00:35:11,560 --> 00:35:16,340 questions in this area and it's a very exciting area and I would like to thank 448 00:35:16,340 --> 00:35:19,920 all of my collaborators as well none of this work would have been possible 449 00:35:19,920 --> 00:35:23,960 without them and I'm really grateful to them and now I think we have a few 450 00:35:23,960 --> 00:35:25,560 minutes for questions as well 451 00:35:25,560 --> 00:35:25,940 sorry 452 00:35:25,940 --> 00:35:32,220 I would be happy to take questions, comments, questions, anything.