1 00:00:00,000 --> 00:00:04,480 So, our next talk is Ram here and he's going to speak about a framework to quantitatively 2 00:00:04,480 --> 00:00:09,820 assess AI safety which includes challenges, open questions and opportunities. So, give it up 3 00:00:09,820 --> 00:00:18,900 for him and I'm going to let him take it away. Thank you. So, quick show of hands, how 4 00:00:18,900 --> 00:00:24,720 many of you are currently using machine learning as part of your product or your company 5 00:00:24,720 --> 00:00:29,860 and how many wants you to? Okay, perfect. How many of you want to? Okay, sweet. Okay, 6 00:00:29,920 --> 00:00:35,620 so that's great. You know, let's go back to a little bit of early 90s. The internet 7 00:00:35,620 --> 00:00:42,240 is just starting out, you know, things are fine. And all of a sudden, you know, we see 8 00:00:42,240 --> 00:00:45,900 a spate of cyber attacks, like, you know, and I don't have to explain this to you guys. 9 00:00:47,300 --> 00:00:52,780 And then what happened was the regulatory landscape kind of quickly changed. You know, 10 00:00:52,900 --> 00:00:54,700 federal laws started coming into play. You know, the federal laws started coming into 11 00:00:54,720 --> 00:00:59,300 play. It's like, you know, the Computer Fraud and Abuse Act. Apparently, Reagan saw the 12 00:00:59,300 --> 00:01:05,260 War Games movies, got really inspired and, you know, within like a couple of years, this 13 00:01:05,260 --> 00:01:09,740 act was formed. Hopefully, people are now watching Mr. Robot and we get like stronger 14 00:01:09,740 --> 00:01:15,000 acts like that. State laws started propping up to fill in the gaps. Anybody want to take 15 00:01:15,000 --> 00:01:19,620 a wild guess which was the first state to actually make ransomware illegal? 16 00:01:20,920 --> 00:01:24,280 Wisconsin. You're in the right track. Closer. It starts 17 00:01:24,280 --> 00:01:24,680 with a D. 18 00:01:26,040 --> 00:01:26,520 Wyoming. 19 00:01:26,860 --> 00:01:31,480 Oh my gosh, you're right, Wyoming. Yeah, Wyoming, interesting enough, is the first 20 00:01:31,480 --> 00:01:37,980 state, I think in 2015, legislated ransomware is illegal. And we have like a spate of like 21 00:01:37,980 --> 00:01:42,140 standardized cybersecurity frameworks. If you are a company and you want to convince 22 00:01:42,140 --> 00:01:46,800 your customers that your system is secure, you would adopt one of these frameworks. And 23 00:01:46,800 --> 00:01:51,440 that's how you would convince your customers that, hey, I passed all these controls and 24 00:01:51,440 --> 00:01:53,160 this is pretty much, I'm a secure system. 25 00:01:54,080 --> 00:01:54,660 Let's get into this. 26 00:01:54,680 --> 00:01:58,720 I'm going to shift to like machine learning today. This is like the machine learning landscape 27 00:01:59,120 --> 00:02:03,580 by Siobhan Zillas, a venture capitalist at Bloomberg Beta. If you can't see anything, 28 00:02:03,780 --> 00:02:11,120 which I'm sure you can, a lot of companies out there who are actually investing in machine 29 00:02:11,120 --> 00:02:18,540 learning as the core value proposition. And the interesting thing is the attacks on machine 30 00:02:18,540 --> 00:02:23,660 learning has now grown at an exponential rate. Archive, which kind of documents how many, 31 00:02:23,660 --> 00:02:31,500 you know, it's a public repository of documents, has close to like 100 papers on adversarial 32 00:02:31,500 --> 00:02:38,040 machine learning, just in the past two years. And this is kind of like a timeline. Sorry 33 00:02:38,040 --> 00:02:43,120 you can't see it, but I know I'll tweet these slides out. I have the Batiste Bigio kind 34 00:02:43,120 --> 00:02:47,140 of like mapping out extensively, like what are the different attacks that are possible? 35 00:02:48,520 --> 00:02:53,640 You know, starting all the way back from 2004. But today, our regulatory system is 36 00:02:53,640 --> 00:02:58,680 landscape with respect to machine learning looks pretty empty. You know, there's no way, 37 00:02:58,740 --> 00:03:04,520 there's no guidance from the government. There's no guidance from standards organizations to tell 38 00:03:04,520 --> 00:03:11,480 you which ML algorithm is safe. And this kind of is a problem because we've now all bought into 39 00:03:11,480 --> 00:03:17,060 this Kool-Aid of machine learning, and we have no way to tell our customers, hey, what I'm doing 40 00:03:17,060 --> 00:03:21,100 is safe from a machine learning perspective. So that's what we're going to talk about today. 41 00:03:22,000 --> 00:03:27,480 You know, my name is Ram. I work in the Azure security data science team. Our promise to 42 00:03:27,480 --> 00:03:36,580 customers is, you know, we'll keep Azure and you secure. And this work is done as I'm also a 43 00:03:36,580 --> 00:03:42,180 research fellow at Berkman Client Center, and this is what I'm going to be working on there. So a lot 44 00:03:42,180 --> 00:03:47,500 of this is ongoing work, so it's rough around the edges, and if you're working on this area, I'd 45 00:03:47,500 --> 00:03:51,080 love to learn, talk to you more about. And this part, and this talk is going to be about 46 00:03:51,080 --> 00:03:57,060 basically has two parts. So the first half is going to be about how do I assess the safety 47 00:03:57,060 --> 00:04:02,320 rating of a machine learning system? So, you know, your development team, say, you know, let's say 48 00:04:02,320 --> 00:04:07,560 that they built a machine learning system, you know, can we pass it through some sort of framework 49 00:04:07,560 --> 00:04:14,260 and get a safety rating? Just like, you know, how you would expect of like the health of a food or, 50 00:04:14,320 --> 00:04:19,800 you know, the safety of your car seats, which you can very much look at. What kind of guarantees 51 00:04:19,800 --> 00:04:21,060 can you get about that? And then, you know, how do you assess the safety rating of a machine learning 52 00:04:21,080 --> 00:04:28,840 system? So it's going to be the first half of the talk. The second part is going to be about the 53 00:04:28,840 --> 00:04:34,320 legal underpinning of a machine learning system. You know, we all have, we all heard about the 54 00:04:34,320 --> 00:04:40,160 doomsday scenario, right? Like there's a drone, you know, using an open source system, and instead 55 00:04:40,160 --> 00:04:45,840 of landing in their backyard, what if it kind of like, you know, chops your hand off? What do you 56 00:04:45,840 --> 00:04:51,060 do then? Like, who do you, who do you sue? Do you sue the drone maker? Do you sue the open source 57 00:04:51,080 --> 00:04:58,400 software? What kind of like legal underpinning is there for like machine learning safety? So those 58 00:04:58,400 --> 00:05:04,160 are the two things. So first of all, like the call for like machine learning safety is not new, 59 00:05:05,080 --> 00:05:11,940 new-ish. So Urs Gasser, you know, wrote a fantastic paper on AI governance and said, 60 00:05:12,020 --> 00:05:16,160 hey, the first thing you want to be tackling is some sort of standard, some sort of data 61 00:05:16,160 --> 00:05:20,820 governance with respect to machine learning safety. Ryan Calo is a robotics professor, 62 00:05:21,080 --> 00:05:28,060 I was a law professor at UW, has pretty much laid a lot of open questions on this field and 63 00:05:28,060 --> 00:05:33,600 proposing a lot of fantastic ideas. And things are getting real. You know, Europe's AI strategy 64 00:05:33,600 --> 00:05:39,120 specifically says by 2019, they're going to come up with a standard framework and a liability 65 00:05:39,120 --> 00:05:45,140 framework for ML safety. So things are picking up at a great space. So it's not like I am, 66 00:05:45,180 --> 00:05:50,800 all of these are new ideas, I'm building on top of them. So first off, why do you, why should it care? 67 00:05:51,080 --> 00:05:55,940 Like, you know, what is, why is this an important topic for us to discuss at DEF CON? 68 00:05:56,840 --> 00:06:03,020 I think the most important thing is we all want to hold our service providers to some 69 00:06:03,020 --> 00:06:09,040 accountability. Like you are trust, just like how you trust your data to say the cloud and you 70 00:06:09,040 --> 00:06:14,300 assume that the cloud is secure. If you're going to use a machine learning system, like, you know, 71 00:06:14,800 --> 00:06:17,820 you want to know that the machine learning system is secure as well. 72 00:06:19,360 --> 00:06:20,980 Kangli gave a fantastic talk. 73 00:06:21,080 --> 00:06:27,880 Just like an hour before about the software vulnerabilities that come in, that you inherit when you 74 00:06:27,880 --> 00:06:33,260 build machine learning systems. And that's kind of like unacceptable because if you are running a 75 00:06:33,260 --> 00:06:41,080 production system, you want your customers to feel safe from that perspective. And from a regulatory 76 00:06:41,080 --> 00:06:46,640 standpoint, just like, you know, if you want to take the cloud as an example, you have a bunch of 77 00:06:46,640 --> 00:06:51,060 laws that, you know, Congress, you know, regulatory agencies, you know, they're going to have to 78 00:06:51,080 --> 00:06:57,880 do a lot of things. So, you know, if you want to host, say, the credit card data, you would have to be 79 00:06:57,880 --> 00:07:04,720 PCI compliant. And if you fail, you pretty much get fines, you lose the ability to operate, and you can 80 00:07:04,720 --> 00:07:12,760 be criminally prosecuted for this. So, hopefully, we don't want any of you guys to go to jail. So, the 81 00:07:12,760 --> 00:07:17,760 first half is going to be about, like, you know, how to assess safety ratings. So, before, like, you 82 00:07:17,760 --> 00:07:20,560 know, we go to the most important part about how to assess. 83 00:07:21,200 --> 00:07:28,820 A bulk of this talk is going to talk about why this is a very difficult problem to solve at. So, end goal, I'm not 84 00:07:28,820 --> 00:07:34,340 going to have, like, one framework, one definitive answer. It's just going to be a proposal. So, what are the 85 00:07:34,340 --> 00:07:40,800 challenges? First off, you cannot escape adversarial machine learning. There's no vendor who can claim 86 00:07:40,800 --> 00:07:49,140 that, you know, my machine learning system is adversarial ML-free because it's ubiquitous among all ML 87 00:07:49,140 --> 00:07:51,060 paradigms, whether you take supervised learning, whether you take supervised learning, whether you take 88 00:07:52,640 --> 00:07:59,620 reinforcement learning. Adversarial examples are just a force of nature. And Papernot kind of figured out that 89 00:07:59,620 --> 00:08:08,420 adversarial examples are also transferable. So, if you have a system, say, a logistic regression system, and you train on 90 00:08:08,420 --> 00:08:16,680 that, it's pretty much those attacks are transferable to, say, decision trees as well. So, not only are you kind of, 91 00:08:16,680 --> 00:08:19,480 like, guaranteed, but it's also transferable. 92 00:08:23,500 --> 00:08:41,040 So, you're pretty much caught in, like, a triple whammy at this point. And the second challenge is verifying if an algorithm is safe is 93 00:08:41,040 --> 00:08:51,060 practically difficult. In fact, like, it's computationally intractable. That was, like, one of the stellar results that, you know, 94 00:08:51,060 --> 00:08:58,480 we got this year, that even if you can, it might be theoretically possible, but computationally, it's impossible because of 95 00:08:58,480 --> 00:09:08,040 limited training data. And the biggest kicker is it's an NP-complete problem, especially in the context of deep neural nets, 96 00:09:08,100 --> 00:09:14,460 which is, like, really big, popular right now. So, if somebody, you know, if somebody gives you a deep neural net, and if they 97 00:09:14,460 --> 00:09:20,760 ask you to verify a property about it, hey, is it safe? It's an NP-complete problem. There's no, like, exact, 98 00:09:21,060 --> 00:09:27,060 you can come up with a solution, but in polynomial time, you can't really verify it. I mean, there's been some good news. 99 00:09:27,180 --> 00:09:34,580 I don't want to, like, damper the whole system. You can get some sort of upper bounds, some confidence bounds, but this work is 100 00:09:34,580 --> 00:09:47,240 super nascent at this point. The third challenge is, you know, completely safe ML systems can only occur, you know, 101 00:09:47,240 --> 00:09:50,900 if you have a non-zero tester. So, just to, like, you know, 102 00:09:51,060 --> 00:09:56,420 what this statement means is, if you, when you train your machine learning systems, you get, like, 103 00:09:56,880 --> 00:10:02,820 you know, two things that you want to really care about. Like, how does it perform in the training set, and how does it 104 00:10:02,820 --> 00:10:08,920 perform in the test set? And even if you get, like, a machine learning system that performs really well on a training 105 00:10:08,920 --> 00:10:15,700 test, on a training data, there's no guarantee it's going to perform well on a test data. So, imagine that you built, like, 106 00:10:17,100 --> 00:10:20,880 it's not, oh, it's not me. Thank you. Yeah, there's no music as part of this 107 00:10:20,880 --> 00:10:21,040 presentation. 108 00:10:24,060 --> 00:10:32,920 So, the only way, one of the insights that two recent papers had is, the only way that you can kind of assume, like, a system is safe 109 00:10:32,920 --> 00:10:40,800 is if it has non-zero tester. And non-zero tester is really not possible. We'll see why. This is kind of, like, a relation. 110 00:10:41,080 --> 00:10:50,720 It's called a VC bound. It bounds your tester as, like, you know, your training error, and as a function of something called a VC bound. 111 00:10:51,380 --> 00:10:59,920 We won't go into that. But just, like, you know, keep in mind that tester is kind of, like, proportional to some, you know, some additive 112 00:10:59,920 --> 00:11:07,820 nature of VCs. The problem is these bounds are really loose. Like, if you have a linear classifier, it is, like, you know, and if you 113 00:11:07,820 --> 00:11:15,020 have, like, a million features, you know, your VC bound is kind of, like, million plus one. So, if you think, if you go back here 114 00:11:15,020 --> 00:11:20,860 and you put, like, a million, you know, the bound is really loose. And for some learners, it's kind of infinity. So, 115 00:11:20,860 --> 00:11:27,060 imagine, like, you know, you've always wanted as a kid to put an infinity in an equation. Now is your, now is your time. 116 00:11:28,020 --> 00:11:36,660 So, it's really these bounds are very loose. And they're getting, like, a zero tester is impossible, which means that has big safety 117 00:11:36,660 --> 00:11:45,200 implications. And this being DEF CON, you know, I found this, like, cool, oh, oh, now you can see the picture. But this is Vapnik, 118 00:11:45,200 --> 00:11:54,720 who kind of, like, you know, found the VC bound. And it, if you could read it, it says, all your bays are belong to us. But bays spelled with a Y, 119 00:11:54,860 --> 00:12:05,460 like Bayesian learning, like nerds, right? So, of course, there's a lot of, like, defenses that have been published in archive, you know, scores and 120 00:12:05,460 --> 00:12:15,080 scores of those. But there is no single defense, unfortunately, from a machine learning perspective that you can use to protect yourself against attackers. There's a great 121 00:12:15,200 --> 00:12:22,140 paper, which actually, I think, won the best paper at ICLR, a top-notch machine learning academic conference. What the paper showed was, like, 122 00:12:22,200 --> 00:12:32,240 out of the, they took, like, the nine defenses that were published as part of the conference, and they broke seven of them. So, it's very easy, you know, 123 00:12:32,240 --> 00:12:41,900 to kind of, like, get over these defenses. Goodfellow is kind of, like, the father of this field at this point, kind of, like, ranked some of these defenses 124 00:12:41,900 --> 00:12:44,560 along certain axes. And you'll see that a little bit. 125 00:12:45,460 --> 00:12:54,200 Okay. So, the next thing is, like, the next big challenge of constructing a framework and, you know, guaranteeing safety is there's a big tension between 126 00:12:54,200 --> 00:13:02,520 adversarial examples and interpretability. How many of you know what GDPR is? Okay, perfect. You have all gotten those annoying emails, right? 127 00:13:02,680 --> 00:13:13,200 Because if a company didn't, then awesome. You know, they're probably going to get slapped big fines. So, one of the things that GDPR articles say is that 128 00:13:13,200 --> 00:13:15,180 they want to support, you know, there's a lot of data to be gathered. And so, they want to support an organization that's going to be able to gain access to all the data. 129 00:13:15,180 --> 00:13:20,560 explanation. So, you know, which means like some sort of like explainability should be in your 130 00:13:20,560 --> 00:13:26,480 model. So this way, if your mortgage gets denied, you know, you know exactly why it's been denied 131 00:13:26,480 --> 00:13:31,500 if there's a machine learning system behind it. So a lot of people are now using like 132 00:13:33,580 --> 00:13:39,980 explainable models as, you know, part of, you know, to get like explainability. And the crux 133 00:13:39,980 --> 00:13:45,040 of most explainable models is that they're linear learners. And linear learners are extremely 134 00:13:45,040 --> 00:13:51,340 vulnerable to tampering. So if you have this tension where like you want to bring explainability, 135 00:13:51,660 --> 00:13:57,180 so you use linear models. And if you use linear ML models, you're, you know, you kind of have 136 00:13:57,180 --> 00:14:03,280 this adversarial tampering. So this is kind of like a big tension, just like how we face in 137 00:14:03,280 --> 00:14:08,900 security fields where we have a tension between usability and security as well. And finally, 138 00:14:08,960 --> 00:14:09,820 like ML, 139 00:14:09,980 --> 00:14:17,900 safety is a lot more about adversarial tampering. Justin Gilmer, who wrote a paper this time about 140 00:14:17,900 --> 00:14:24,200 like what it means to do adversarial example in real world, gave this anecdote. If you think of 141 00:14:24,200 --> 00:14:30,940 like, you know, the big poster child for adversarial examples is autonomous cars. You know, 142 00:14:30,940 --> 00:14:35,980 hey, what if, you know, somebody puts a sticker on my stop sign and now a stop sign is now like 143 00:14:35,980 --> 00:14:39,820 recognizing the speed limit? Well, they said, hey, let's be more realistic. 144 00:14:39,980 --> 00:14:44,960 Here. What if there's no stop sign in the beginning in the first place? What if a stop sign gets like 145 00:14:44,960 --> 00:14:50,800 knocked over by a gust of wind? What if like a guy is wearing a stop sign and like stop sign 146 00:14:50,800 --> 00:14:55,860 t-shirt and walking on the road? Does that mean the car is going to just come to a halt? So a lot 147 00:14:55,860 --> 00:15:01,480 of these things in a practical sense kind of dictate what's still like bigger than the scope 148 00:15:01,480 --> 00:15:08,680 of, you know, training or testing within like a dev machine under your box. So these are kind of 149 00:15:08,680 --> 00:15:09,960 the challenges at this point. 150 00:15:09,980 --> 00:15:17,020 You know, you cannot escape attacks. There is no single defense. And it's very, it's extremely 151 00:15:17,020 --> 00:15:21,960 difficult to verify the security properties. And really, you know, the safety is like more than 152 00:15:21,960 --> 00:15:28,240 one predominant technique. Existential dread. Let's all crawl under a bed and now like, you 153 00:15:28,240 --> 00:15:34,160 know, wait for the doom to get over. But you guys are the perfect audience. Like in a security field, 154 00:15:34,420 --> 00:15:39,340 we face this every single time. Like everything that is, makes, 155 00:15:39,980 --> 00:15:45,600 you know, a lot of systems kind of insecure is what we face in a security setting on a day to day 156 00:15:45,600 --> 00:15:53,660 basis. And we tackle this risk, we tackle this by minimizing risk, right? You know, this is just one 157 00:15:53,660 --> 00:15:58,000 framework, like, you know, the dread framework of like, you know, you try to see how much an 158 00:15:58,000 --> 00:16:04,120 attacker can cause damage. Now how hard is it for an attacker to kind of reproduce, other attackers 159 00:16:04,120 --> 00:16:09,960 to kind of reproduce it? Are you always worrying about like APT or is it going to, can, take a strip kitty, can bring it in? 160 00:16:09,980 --> 00:16:16,680 Can you bring your system down? How, how easy is it for somebody to discover this particular vulnerability? 161 00:16:17,200 --> 00:16:24,960 So with that in mind, like, you know, here's like one possible framework that, you know, that just came to my mind is, 162 00:16:25,420 --> 00:16:31,880 the goal is to kind of score the kind of attackers, score different parts of like your ML pipeline. 163 00:16:32,220 --> 00:16:39,620 So the first thing is like, you want to score the attacker's capability. Hey, does the attacker have access to my architecture and training data? 164 00:16:39,980 --> 00:16:48,100 Is very different from like, if the attacker can just like query my API. So you want to have two different, like, you know, just like how we'd calculate a dread score. 165 00:16:48,360 --> 00:16:59,440 You want to have a score for that. Hey, what are like, you know, some of the possible attacks? You know, is it like a white box attacks or is it like, you know, black box attacks with some sort of limited querying? 166 00:16:59,980 --> 00:17:09,200 And have some, you know, a score for defense. Kind of rank them in some aspect. If your AI, if your ML engineer is just using like, 167 00:17:09,200 --> 00:17:13,800 rate decay as a defense technique, it's really, you're really not in a good position. 168 00:17:14,360 --> 00:17:23,600 Whereas, you know, if they're using some sort of, if they're using a strong adversarial training with strong attacks or they're doing something with logit pairing, you're probably in a better place. 169 00:17:24,020 --> 00:17:34,940 So the same framework that you use in the context of assessing security risk, making an argument that you want to do the same thing for ML risk. 170 00:17:35,540 --> 00:17:39,120 And once you get that, you can kind of like, you know, 171 00:17:39,200 --> 00:17:42,220 from a regulatory perspective, it becomes a very easy conversation. 172 00:17:42,720 --> 00:17:45,940 Let's assume that you get a score at the end of it, right? 173 00:17:46,260 --> 00:17:55,640 Hey, then you can make a claim that all ML, you know, if there's a medical device that uses machine learning, that must have a safety rating of nine or above. 174 00:17:55,920 --> 00:18:03,560 Or, you know, if you're using like military grade drones versus civilian grade drones should have like different levels of safety ratings. 175 00:18:04,600 --> 00:18:07,240 But of course, there's like a lot of open questions, right? 176 00:18:07,300 --> 00:18:08,420 We saw like the challenges. 177 00:18:08,420 --> 00:18:10,260 We saw like one possible framework. 178 00:18:10,840 --> 00:18:15,640 Like who's going to certify, you know, that ML system is safe? 179 00:18:16,740 --> 00:18:23,800 If you go to like a CDC or like an, is there going to be like a FAA that takes care of the safety of airplanes? 180 00:18:24,140 --> 00:18:28,620 Who's going to take care of the safety of like ML systems, especially that they're so pervasive? 181 00:18:28,980 --> 00:18:35,600 Ryan Calo kind of argues for, I mean, mentions like a federal robotics commission. 182 00:18:36,320 --> 00:18:38,400 And that idea is not too good. 183 00:18:38,400 --> 00:18:39,140 It's not too far fetched. 184 00:18:39,220 --> 00:18:44,880 Like, you know, given the fact that ML is so pervasive, we still don't know what the process of certifying it looks like. 185 00:18:45,060 --> 00:18:56,680 If anybody has been through like the GDPR process, you kind of know how an immense amount of burden is put on folks to kind of like get that GDPR safe systems. 186 00:18:56,940 --> 00:18:58,380 And how do you ensure verifiability? 187 00:18:58,600 --> 00:19:08,020 If somebody, you know, if you go to a customer, if you buy a service from a service provider and they say that their machine learning is safe and we have a safety rating of X. 188 00:19:08,100 --> 00:19:08,380 Right? 189 00:19:08,380 --> 00:19:11,360 How do you verify that the safety rating is still the same? 190 00:19:11,720 --> 00:19:14,560 And there are also like very practical questions, right? 191 00:19:14,700 --> 00:19:16,640 When do you calculate the safety ratings? 192 00:19:16,680 --> 00:19:17,720 Do you calculate it every day? 193 00:19:17,860 --> 00:19:19,420 Every time you push a feature? 194 00:19:19,600 --> 00:19:25,020 Well, tough luck because we're all now in the DevOps world and we're all like, you know, shipping features every single day. 195 00:19:25,220 --> 00:19:30,100 So does that mean every time somebody touches code, do you calculate this ML safety rating? 196 00:19:30,360 --> 00:19:35,240 A lot of the mechanics of ML safety has not been nailed yet. 197 00:19:35,460 --> 00:19:37,400 So lots of open questions. 198 00:19:37,400 --> 00:19:40,620 And if you have ideas, I'd love to hear more about it. 199 00:19:41,480 --> 00:19:47,180 So that kind of like brings our first half of the talk, you know, to a kind of a close. 200 00:19:48,120 --> 00:19:52,700 We'll quickly kind of like look at, you know, what are the legal underpinnings of machine learning safety? 201 00:19:53,900 --> 00:19:57,140 And we're going to look at it from the lens of Internet safety. 202 00:19:57,620 --> 00:20:02,360 Just because like, you know, Internet and machine learning seem to have a lot in common. 203 00:20:02,680 --> 00:20:04,740 Like, you know, both are transformative technologies. 204 00:20:04,740 --> 00:20:10,300 Nobody could have imagined that people can send cat pictures when they had DARPA put out DARPAnet. 205 00:20:11,220 --> 00:20:21,260 And just like how like machine learning today is used for very similar purposes, you also have the idea of like transforming it from so many different angles. 206 00:20:21,560 --> 00:20:31,980 And Jonathan Zittrain called Internet a generative technology, which means that it has the capacity to produce new content for broad and varied audience. 207 00:20:32,280 --> 00:20:33,840 And the same thing is with machine learning. 208 00:20:34,740 --> 00:20:42,020 Yesterday, there was this amazing demo of creating music with code from this DJ, which I thought was very interesting. 209 00:20:42,120 --> 00:20:44,860 It really shows the power of machine learning and the Internet. 210 00:20:45,120 --> 00:20:46,780 And both have like great degrees of instability. 211 00:20:47,480 --> 00:20:52,200 You know, in the Loft talk, they said that how you could take the Internet in 30 minutes or less. 212 00:20:52,420 --> 00:20:54,240 And the same thing is with the machine learning. 213 00:20:54,440 --> 00:21:04,720 Hang Li said how he was very easily able to open a shell in like a top like image recognition system in a very short period of time. 214 00:21:05,580 --> 00:21:15,140 And from a legal aspect, you know, it makes sense to look at ML in the lens of Internet just because of precedent. 215 00:21:15,420 --> 00:21:20,180 And precedent is really, really core to common law legal system, right? 216 00:21:20,560 --> 00:21:26,560 My favorite quote is, you know, in one of the verdicts from like Vasquez and Hillary. 217 00:21:26,700 --> 00:21:33,400 They said that the court really relies on precedent because it establishes a bedrock of principles, 218 00:21:33,400 --> 00:21:37,480 as opposed to some individuals like, you know, making up law as they go. 219 00:21:38,560 --> 00:21:45,700 And the cases that God decided in like 1997 is still having an effect today in the Internet. 220 00:21:45,860 --> 00:21:52,420 For instance, like in Reno versus ACLU is essentially why you can have profane content on the Internet 221 00:21:52,420 --> 00:21:56,620 because on the legal basis of like freedom of the First Amendment. 222 00:21:56,960 --> 00:22:03,160 And in 2018, there was a case, Packingham versus North Carolina, where North Carolina said, you know, 223 00:22:03,160 --> 00:22:08,120 sex offenders do not have the ability, should not be on social media anymore. 224 00:22:08,380 --> 00:22:10,880 But the court said no on a unanimous decision. 225 00:22:11,120 --> 00:22:14,140 And they cited Reno as one of their legal precedents. 226 00:22:14,320 --> 00:22:18,060 And really, precedents do not get overturned by the court so easily. 227 00:22:18,720 --> 00:22:20,840 They wait for societal changes. 228 00:22:21,300 --> 00:22:26,160 So really looking at it from the lens of Internet safety makes a lot of sense. 229 00:22:26,680 --> 00:22:29,640 And why are we doing this from a legal perspective? 230 00:22:30,060 --> 00:22:32,440 So imagine like poisoning attacks and machine learning. 231 00:22:32,440 --> 00:22:40,660 Poisoning attacks are essentially when an attacker can send chaff data to your machine learning system 232 00:22:41,340 --> 00:22:43,860 with the goal of subverting it. 233 00:22:43,980 --> 00:22:48,020 So to either misclassify it or, you know, or even completely change the goal. 234 00:22:48,340 --> 00:22:53,460 A relevant cyber law case could be like CompuServe v. Cyber Promotions. 235 00:22:53,560 --> 00:22:55,500 So this was a case in 1997. 236 00:22:56,020 --> 00:23:02,420 So the basic gist was CompuServe was an ISP and Cyber Promotions was a direct marketplace. 237 00:23:02,440 --> 00:23:07,360 And they were basically sending spam via CompuServe. 238 00:23:07,500 --> 00:23:10,360 And CompuServe customers were obviously like super pissed off. 239 00:23:10,480 --> 00:23:15,060 They were like, hey, man, like, you guys need to stop doing this because my customers are going to bail out. 240 00:23:15,340 --> 00:23:19,840 And Cyber Promotions says, hey, no, that's kind of like, you know, you're a comment carrier. 241 00:23:20,080 --> 00:23:20,840 This is our First Amendment. 242 00:23:21,240 --> 00:23:24,720 And the court basically said, no, it's not the case. 243 00:23:24,900 --> 00:23:31,540 And they established precedents that even on a non-electronic, even for an electronic property, 244 00:23:32,440 --> 00:23:34,420 you can pretty much have, like, trespassing. 245 00:23:34,760 --> 00:23:38,560 And this might be possible, this might be relevant for poisoning attacks 246 00:23:38,560 --> 00:23:45,520 when an attacker is sending, like, spam images to kind of derail your machine learning system. 247 00:23:46,620 --> 00:23:48,860 Or let's think of liability, right? 248 00:23:49,300 --> 00:23:57,640 Imagine that, you know, you go to a scenario where, you know, you get some sort of, like, a robotic system to detect art forgery. 249 00:23:57,960 --> 00:24:02,140 Like, you know, you're expecting this top-notch, like, ML system. 250 00:24:02,140 --> 00:24:04,860 But you basically get a lemon. 251 00:24:05,040 --> 00:24:11,580 And now you lost a bunch of money because instead of Picasso, you've gotten some other, like, weird art student painting. 252 00:24:12,860 --> 00:24:19,800 Now, can you take the person who sold you this machine learning system, 253 00:24:19,920 --> 00:24:23,620 who said that it can, like, identify fake art, to court? 254 00:24:24,560 --> 00:24:28,320 Because you suffered, like, millions of dollars in damage. 255 00:24:29,460 --> 00:24:30,880 It's a very interesting system. 256 00:24:30,880 --> 00:24:36,480 Because liability in the context of machine learning safety is still a nascent system. 257 00:24:36,740 --> 00:24:41,980 And a relevant cyber law case is TransCorp v. IBM. 258 00:24:42,400 --> 00:24:49,520 So, essentially, TransCorp America bought, like, a lot of equipment back in 1994 from IBM. 259 00:24:49,800 --> 00:24:51,640 And those disks failed. 260 00:24:51,800 --> 00:24:54,600 And they suffered economic loss. 261 00:24:54,960 --> 00:25:00,360 So, obviously, TCA sued IBM for economic loss. 262 00:25:00,880 --> 00:25:01,940 And in the initial... 263 00:25:01,940 --> 00:25:04,920 And this is, like, back when the internet was very nascent. 264 00:25:05,220 --> 00:25:08,320 And the court basically tried to limit the liability. 265 00:25:08,740 --> 00:25:16,540 Because the courts basically said, you can sue them for contractual, you know, for them reneging on the contract. 266 00:25:16,780 --> 00:25:19,580 But you cannot sue them on the basis of economic loss. 267 00:25:19,640 --> 00:25:21,760 You cannot sue them for all the money that you've lost. 268 00:25:23,040 --> 00:25:24,460 And it's kind of crazy. 269 00:25:24,540 --> 00:25:28,600 Because today, when we buy computers and say your... 270 00:25:31,280 --> 00:25:38,380 Your OS failed and you lost all your documents, we do not think of going and suing our computer... 271 00:25:39,000 --> 00:25:42,420 You know, the people who wrote the OS for economic loss. 272 00:25:42,560 --> 00:25:45,960 Because we kind of implicitly assume computer systems are faulty. 273 00:25:46,320 --> 00:25:51,260 And today, you know, we kind of learned that machine learning systems can be attacked. 274 00:25:51,480 --> 00:25:54,480 And machine learning systems can be implicitly faulty. 275 00:25:54,820 --> 00:25:57,740 So, because of the changing landscape... 276 00:25:57,740 --> 00:26:02,820 It is very much possible that the courts will also try to limit the liability because... 277 00:26:02,820 --> 00:26:03,880 In order to foster innovation. 278 00:26:05,260 --> 00:26:06,720 I mean, there's a big exception. 279 00:26:07,060 --> 00:26:08,960 Like, if you got, you know... 280 00:26:08,960 --> 00:26:12,100 If there was a drone that came and, you know, chopped your hand off... 281 00:26:12,100 --> 00:26:13,800 There might be, you know... 282 00:26:13,800 --> 00:26:15,640 This probably doesn't apply. 283 00:26:16,020 --> 00:26:19,680 But here's a very interesting thing that Ryan Calo pointed out. 284 00:26:20,140 --> 00:26:26,460 If you have the scenario wherein there was a bodily harm caused by, you know... 285 00:26:27,740 --> 00:26:31,420 Like a machine learning system that used open source software. 286 00:26:31,680 --> 00:26:32,500 What do you do then? 287 00:26:32,900 --> 00:26:34,840 Who do you assign proximate cost to? 288 00:26:35,080 --> 00:26:36,940 The people who built the drones? 289 00:26:37,840 --> 00:26:43,140 Or, you know, the thousands of developers who contributed code to the open source systems? 290 00:26:43,540 --> 00:26:45,420 And these are again, like, very... 291 00:26:46,000 --> 00:26:48,860 Not easy questions to answer. 292 00:26:49,360 --> 00:26:50,320 Oh, this, by the way. 293 00:26:50,400 --> 00:26:51,660 Cafe is like... 294 00:26:51,660 --> 00:26:54,700 If you're wondering why this was an open source symbol... 295 00:26:54,700 --> 00:26:56,980 Cafe is a very popular, like, image recognition. 296 00:26:56,980 --> 00:26:58,560 Like, system right there. 297 00:26:59,600 --> 00:27:00,240 So, yeah. 298 00:27:00,420 --> 00:27:01,540 Kind of like, you know... 299 00:27:01,540 --> 00:27:03,560 To wrap up with the open questions here. 300 00:27:03,920 --> 00:27:07,160 Like, when an ML system breaks down, how do you get relief? 301 00:27:07,740 --> 00:27:09,640 Like, were the damages foreseeable? 302 00:27:10,200 --> 00:27:13,140 Do you go after the company that made the product? 303 00:27:13,200 --> 00:27:15,660 The open source toolkit the company used? 304 00:27:15,860 --> 00:27:19,100 Or if the company kind of hosted it on a different service? 305 00:27:19,140 --> 00:27:19,840 A service provider? 306 00:27:20,180 --> 00:27:22,140 Or the researchers who kind of, like... 307 00:27:22,140 --> 00:27:23,960 Whose algorithm the computer used? 308 00:27:24,160 --> 00:27:26,120 And all of these are important questions... 309 00:27:26,120 --> 00:27:29,400 For answers we do not really know. 310 00:27:29,500 --> 00:27:32,440 Because there is no case that's been tested so far. 311 00:27:33,600 --> 00:27:35,230 So, to wrap up... 312 00:27:36,860 --> 00:27:39,170 If you were to think of, like, all the countries... 313 00:27:39,840 --> 00:27:44,300 You know, there's been a spate of them releasing AI strategies so far. 314 00:27:44,720 --> 00:27:45,700 Like, you know... 315 00:27:45,700 --> 00:27:47,780 And these are some of the handful of countries... 316 00:27:48,620 --> 00:27:54,960 Who have, you know, pretty much put AI safety and privacy as a big strategy. 317 00:27:54,960 --> 00:27:56,920 You know, in their vision. 318 00:27:58,940 --> 00:28:02,260 Of course, you might see our red, white, and blue is not here. 319 00:28:02,640 --> 00:28:05,700 And that's because we do not have one yet. 320 00:28:05,860 --> 00:28:09,400 The U.S.'s approach to machine learning safety has been very different. 321 00:28:09,880 --> 00:28:14,100 Us being like us, our focus is a lot on autonomous weapons. 322 00:28:15,640 --> 00:28:19,320 And the Obama administration, back in the 2016... 323 00:28:19,320 --> 00:28:23,580 Created, like, you know, the U.S. Artificial Intelligence R&D Task Force. 324 00:28:23,580 --> 00:28:27,200 They produced two reports and recommendations. 325 00:28:27,940 --> 00:28:28,840 Obviously, with... 326 00:28:28,840 --> 00:28:30,060 Take it back. 327 00:28:30,120 --> 00:28:33,700 With this new administration, they disbanded the task force. 328 00:28:33,860 --> 00:28:36,680 And kind of, like, you know, pushed those reports aside. 329 00:28:37,020 --> 00:28:39,280 And if you're wondering where we are... 330 00:28:40,380 --> 00:28:43,840 They created, like, a select committee of which... 331 00:28:43,840 --> 00:28:45,300 It's co-chaired by... 332 00:28:45,300 --> 00:28:46,140 Wait for it... 333 00:28:46,140 --> 00:28:46,900 Our president. 334 00:28:47,760 --> 00:28:49,640 And a bunch of other people. 335 00:28:49,980 --> 00:28:51,680 So, we don't... 336 00:28:51,680 --> 00:28:52,580 The... 337 00:28:52,580 --> 00:28:53,440 Very recently... 338 00:28:53,580 --> 00:28:58,280 There was a bill called the Future of Cyber Artificial Intelligence Act. 339 00:28:58,960 --> 00:28:59,600 For... 340 00:28:59,600 --> 00:29:00,340 That's been proposed. 341 00:29:00,680 --> 00:29:02,180 And nowhere are these... 342 00:29:02,180 --> 00:29:04,900 As Congress even mentioned about AI safety. 343 00:29:05,420 --> 00:29:12,760 So, we're not really in a great place in terms of, like, even thinking about this problem yet. 344 00:29:12,880 --> 00:29:19,340 And it's a shame because a lot of the companies have taken this on themselves to kind of define standards. 345 00:29:19,660 --> 00:29:21,700 And try to get ahead of the curve. 346 00:29:22,680 --> 00:29:25,000 So, to kind of conclude... 347 00:29:25,000 --> 00:29:29,440 You know, safety frameworks are super critical for machine learning systems. 348 00:29:30,160 --> 00:29:37,900 And that will help us, like, create robust standards and certifications that we can use to our advantage. 349 00:29:38,000 --> 00:29:40,840 Whether to convince customers or to add value. 350 00:29:41,380 --> 00:29:49,720 And this, instead, will help us get meaningful relief should there be or when there is a case that involves ML safety. 351 00:29:50,880 --> 00:29:51,680 And we'll see. 352 00:29:51,680 --> 00:29:52,560 And with that, like, you know... 353 00:29:52,560 --> 00:29:54,640 I want to end with these things. 354 00:29:55,020 --> 00:29:59,120 The court is still grappling with the effects of Internet. 355 00:29:59,540 --> 00:30:04,740 This was Justice Anthony Kennedy in Packingham v. North Carolina in 2018. 356 00:30:05,100 --> 00:30:11,440 And he said that the forces and directions of the Internet are so new, so protean, and so far-reaching... 357 00:30:11,440 --> 00:30:15,820 That courts must be conscious of what they say today might be obsolete tomorrow. 358 00:30:16,220 --> 00:30:20,040 And they're talking about Internet, which was started in the 1980s. 359 00:30:20,040 --> 00:30:23,720 And think about, like, a field like machine learning. 360 00:30:24,520 --> 00:30:28,080 And what effects and how the legal system is going to handle it. 361 00:30:28,300 --> 00:30:30,520 And this is a big open question. 362 00:30:31,760 --> 00:30:34,880 And if I were to wear my engineer hat on... 363 00:30:34,880 --> 00:30:40,540 You know, Ken Thompson, you know, a Turing Prize Award winner, you know, asked this question. 364 00:30:40,780 --> 00:30:47,640 You know, to what extent, like, you know, should you trust a statement that a program is free from Trojan horses? 365 00:30:48,220 --> 00:30:49,760 And the answer is, like, you can. 366 00:30:50,040 --> 00:30:53,280 You can't trust any code that you did not write yourself. 367 00:30:53,720 --> 00:30:55,140 And that's shocking. 368 00:30:55,460 --> 00:30:59,540 But think of, like, you know, how ML is being viewed. 369 00:31:00,280 --> 00:31:09,840 Karpathy, you know, one of OpenAI's director for machine learning, and probably a big titan in this field, compared machine learning as software 2.0. 370 00:31:09,940 --> 00:31:14,140 You know, that machines will now be able to write better programs than humans. 371 00:31:15,100 --> 00:31:18,000 And I'm going to end with this unsettling note, which is... 372 00:31:18,000 --> 00:31:22,380 How much are you going to be trusting ML models that we did not build ourselves? 373 00:31:22,920 --> 00:31:28,120 And that's pretty much, I feel, is going to define the field in the next coming years. 374 00:31:28,920 --> 00:31:30,200 So, that's about it.