1 00:00:00,000 --> 00:00:03,060 Okay, so as he said, my name is adversarial. 2 00:00:03,200 --> 00:00:04,540 My real name is Ariel Herbert-Voss. 3 00:00:05,500 --> 00:00:07,060 I'm a PhD student at Harvard, 4 00:00:07,160 --> 00:00:11,860 and this is related to research that I do as part of my program. 5 00:00:12,280 --> 00:00:14,260 So I'm going to hop into that now. 6 00:00:15,580 --> 00:00:17,100 So what this talk is about, 7 00:00:17,320 --> 00:00:19,660 I probably should have called it Beyond Adversarial Examples. 8 00:00:20,180 --> 00:00:22,700 So adversarial examples are an important attack vector, 9 00:00:22,840 --> 00:00:24,460 but they're also not the only one to be concerned about. 10 00:00:24,640 --> 00:00:27,300 So we're going to go into the weeds a little bit 11 00:00:27,300 --> 00:00:30,120 about some of these other types of attacks 12 00:00:30,120 --> 00:00:31,600 that you can do against machine learning models. 13 00:00:33,220 --> 00:00:36,900 And also, this machine learning talk does not really have a lot of math in it. 14 00:00:36,980 --> 00:00:39,000 There is one slide that has an equation on it, 15 00:00:39,020 --> 00:00:41,580 and the rest of it is pretty high level. 16 00:00:41,840 --> 00:00:44,840 So if you're still a noob, that's fine. 17 00:00:45,080 --> 00:00:45,660 Don't leave. 18 00:00:48,000 --> 00:00:50,080 So here's a rundown on the ML pipeline, 19 00:00:50,260 --> 00:00:51,320 if you're not familiar with that. 20 00:00:51,520 --> 00:00:54,980 So say you've got some raw data that you want to get some value out of. 21 00:00:55,160 --> 00:00:56,780 So you will typically do some, 22 00:00:56,780 --> 00:00:58,380 some processing to extract some features. 23 00:00:58,880 --> 00:00:59,900 And then after that, 24 00:01:00,020 --> 00:01:02,640 then you'll split the data into training and testing, 25 00:01:02,740 --> 00:01:05,820 because machine learning is basically a noisy optimization problem 26 00:01:05,820 --> 00:01:08,000 where you iterate over a bunch of parameters, 27 00:01:08,540 --> 00:01:10,140 and you're trying to look for a function 28 00:01:10,140 --> 00:01:13,040 that best represents whatever relationship in the data 29 00:01:13,040 --> 00:01:14,040 that you're looking for. 30 00:01:14,780 --> 00:01:16,260 And this is also why deep learning 31 00:01:16,260 --> 00:01:18,420 and a bunch of these other techniques are so popular, 32 00:01:18,460 --> 00:01:20,840 is because you can actually prove mathematically 33 00:01:20,840 --> 00:01:24,180 that deep neural networks and some of the other models 34 00:01:24,180 --> 00:01:25,940 are universal function approximators, 35 00:01:25,980 --> 00:01:26,540 which means they can, 36 00:01:26,540 --> 00:01:27,260 they can basically learn anything. 37 00:01:28,060 --> 00:01:30,780 But that also means that we can force them to learn the wrong thing. 38 00:01:32,860 --> 00:01:35,760 So after you do all this training and testing, 39 00:01:35,960 --> 00:01:39,700 you'll pick out the best model to fit the needs for whatever it is 40 00:01:39,700 --> 00:01:41,020 you're hoping to get out of your data. 41 00:01:41,420 --> 00:01:46,280 And then you'll usually either deploy it in production as like an API, 42 00:01:47,220 --> 00:01:50,620 where users can put in their own data and then get out some predictions, 43 00:01:51,680 --> 00:01:54,480 depending on what your user is looking for, if you are the user. 44 00:01:56,540 --> 00:01:59,860 So when, when we attack machine learning systems, 45 00:02:00,880 --> 00:02:02,780 generally, there are two high level goals. 46 00:02:02,860 --> 00:02:05,220 We're looking to either force incorrect predictions, 47 00:02:05,680 --> 00:02:07,040 or we're looking to steal data. 48 00:02:07,240 --> 00:02:09,580 So forcing incorrect predictions is like, 49 00:02:11,240 --> 00:02:13,920 you, you want to attack this model 50 00:02:13,920 --> 00:02:16,700 and make it give you the wrong answer for things, 51 00:02:16,820 --> 00:02:18,680 or you want to see whatever the model trained on, 52 00:02:18,800 --> 00:02:20,520 because it might be trained on something sensitive, 53 00:02:20,580 --> 00:02:24,340 like medical records or personal identification information. 54 00:02:24,840 --> 00:02:25,280 Um, 55 00:02:25,280 --> 00:02:30,340 and so these machine learning models tend to have three components to them. 56 00:02:30,460 --> 00:02:32,780 So there's the data, there's the model itself, and there's the prediction. 57 00:02:33,080 --> 00:02:36,280 And so you can usually formulate attacks as being one of those, 58 00:02:37,020 --> 00:02:39,900 attacking one of those three things or a couple of those three things. 59 00:02:40,060 --> 00:02:43,600 And so, um, uh, to, 60 00:02:44,140 --> 00:02:46,220 so I'm going to talk a little bit about adversarial examples. 61 00:02:47,140 --> 00:02:48,840 And you've probably heard about these. 62 00:02:49,260 --> 00:02:51,520 But the main idea is that you want to slightly perturb 63 00:02:51,520 --> 00:02:55,260 the input data that you're feeding in to force the model to make an increase. 64 00:02:55,280 --> 00:02:55,480 So you want to make sure that you're getting the right prediction. 65 00:02:55,880 --> 00:02:57,380 Um, and they're also very hard to detect. 66 00:02:57,580 --> 00:03:00,940 So, um, here's an example where you've got a panda picture, 67 00:03:01,180 --> 00:03:03,140 and then you add some noise to it, 68 00:03:03,180 --> 00:03:07,440 and then you end up with this panda that's going to be classified as a gibbon. 69 00:03:07,760 --> 00:03:09,660 But if you look at it, you can't really tell, 70 00:03:09,740 --> 00:03:11,640 because it's just statistical noise, 71 00:03:11,820 --> 00:03:13,700 and it's hard to perceive the difference. 72 00:03:15,900 --> 00:03:20,140 And, um, it, depending on how you've deployed your ML model, 73 00:03:20,280 --> 00:03:21,820 like, you can't really sanitize the inputs, 74 00:03:22,060 --> 00:03:25,060 um, because somebody can just come along and, like, just, 75 00:03:25,060 --> 00:03:27,200 keep making harder and harder to predict, uh, 76 00:03:27,280 --> 00:03:28,780 versions of these adversarial examples. 77 00:03:29,240 --> 00:03:29,600 Um, 78 00:03:30,840 --> 00:03:32,500 and I, I guess to make this more clear, 79 00:03:32,540 --> 00:03:33,980 here's an example from the perceptual system. 80 00:03:34,140 --> 00:03:37,100 So, uh, we've got a training set of dogs and fried chicken, 81 00:03:37,220 --> 00:03:39,700 and you want to correctly classify which one is which. 82 00:03:39,900 --> 00:03:42,080 So, uh, if you look at them, um, 83 00:03:42,260 --> 00:03:45,300 you can see that some of them are actually a bit harder to tell the difference, 84 00:03:45,400 --> 00:03:47,300 especially if you're sitting in the back and it's, like, really fuzzy. 85 00:03:47,760 --> 00:03:49,740 Um, uh, let's see. 86 00:03:49,800 --> 00:03:52,480 So the two on the, the left are chicken, 87 00:03:52,560 --> 00:03:54,020 and the two on the right are dogs. 88 00:03:55,100 --> 00:03:57,540 Uh, and so there's, uh, if you think about this, 89 00:03:57,600 --> 00:03:59,500 there's a couple of features that you're looking at 90 00:03:59,500 --> 00:04:01,600 that tell you if one is a dog. 91 00:04:01,680 --> 00:04:03,380 Like, you might be looking for eyes and a nose. 92 00:04:03,620 --> 00:04:06,620 Um, and with chicken, you might be looking at the environment. 93 00:04:06,800 --> 00:04:08,020 Like, is there a piece of lettuce? 94 00:04:08,220 --> 00:04:09,840 Because dogs don't really like lettuce. 95 00:04:10,960 --> 00:04:15,420 Um, so, uh, the, the, this picture, 96 00:04:15,500 --> 00:04:18,020 this graph on the right gives you more of a mathematical sense of, 97 00:04:18,040 --> 00:04:19,160 like, how these things work. 98 00:04:19,300 --> 00:04:24,940 So you've got, um, uh, this, uh, oval right here is, 99 00:04:25,060 --> 00:04:28,280 uh, the, the dog cluster where all the images inside there 100 00:04:28,280 --> 00:04:29,560 are going to be classified as a dog. 101 00:04:29,780 --> 00:04:32,360 And you've got this abracadabra image on the outside 102 00:04:32,820 --> 00:04:34,860 that you want to have classified as a dog, 103 00:04:34,880 --> 00:04:36,620 but it's currently being classified as a chicken. 104 00:04:37,040 --> 00:04:40,680 Um, so you want to kind of perturb your image in such a way 105 00:04:40,680 --> 00:04:42,340 that it kind of goes along the, 106 00:04:42,420 --> 00:04:44,340 the boundary between dog and chicken. 107 00:04:46,520 --> 00:04:49,440 Um, and so when it comes to generating these abracadabra examples, 108 00:04:49,540 --> 00:04:51,640 there's, there's, like, a million different ways to construct them. 109 00:04:51,840 --> 00:04:54,440 Um, and we keep coming up with more of them, and it's great. 110 00:04:55,060 --> 00:04:57,700 Um, and there are also some ways to defend against them, 111 00:04:57,760 --> 00:05:01,840 but the one, the ways in which we defend against are kind of getting smaller and smaller. 112 00:05:01,960 --> 00:05:04,980 Like, like this last year, um, actually in June, 113 00:05:05,080 --> 00:05:08,080 uh, there's a big machine learning conference called ICML, 114 00:05:08,240 --> 00:05:11,920 and they just published this great paper about why one of the main methods 115 00:05:11,920 --> 00:05:14,360 for defending against these things doesn't work. 116 00:05:14,480 --> 00:05:19,260 Like, it's, um, it has to do with, um, the generation method being, uh, 117 00:05:19,400 --> 00:05:21,920 so since deep learning is basically convex optimization, 118 00:05:22,200 --> 00:05:24,140 you're, and you're trying to find examples that fuzz the boundary 119 00:05:24,140 --> 00:05:24,800 between categories. 120 00:05:25,320 --> 00:05:27,540 Um, it usually involves a bunch of gradients, 121 00:05:27,640 --> 00:05:29,280 and so most of these methods have to do with gradients, 122 00:05:29,400 --> 00:05:32,340 and it's a bit of a gradient arm race right now. 123 00:05:32,500 --> 00:05:37,520 Um, so, uh, we're not going to talk much about abracadabra examples 124 00:05:37,520 --> 00:05:41,220 because it's very messy, um, and also I think there are more important attacks. 125 00:05:43,160 --> 00:05:45,960 Um, this is one of my favorite memes, and I thought I would share it. 126 00:05:46,040 --> 00:05:49,540 Uh, you probably can't read it in the back, but it's one of those Scooby-Doo memes, 127 00:05:49,720 --> 00:05:52,660 and it says, oh, shit, I can't read because I don't like glasses. 128 00:05:52,660 --> 00:05:57,860 Um, but it says, uh, can somebody read that for me? 129 00:05:58,120 --> 00:06:00,960 Okay, okay, come up, come up, come here. 130 00:06:02,080 --> 00:06:02,740 Thank you. 131 00:06:04,040 --> 00:06:08,900 Okay, gang, let's see what deep learning really is. 132 00:06:10,980 --> 00:06:15,220 Um, what's that word I can't, it's convex optimization. 133 00:06:16,280 --> 00:06:17,760 It's blurry for me, too. 134 00:06:18,200 --> 00:06:19,400 All right, all right, thank you. 135 00:06:19,560 --> 00:06:22,020 Um, yeah, so deep learning is basically just convex optimization, 136 00:06:22,660 --> 00:06:25,280 and that's why abracadabra examples are very hard to deal with. 137 00:06:25,640 --> 00:06:29,800 Um, so today we're going to talk about some other ways to hack things. 138 00:06:30,240 --> 00:06:32,480 Um, but first we're going to talk about differential privacy. 139 00:06:32,740 --> 00:06:35,960 So, uh, differential privacy is a technique from cryptography 140 00:06:36,360 --> 00:06:38,860 that is usually used to protect data from being exfiltrated. 141 00:06:39,040 --> 00:06:42,260 Um, and in fact, Google and Apple have both made a big show recently 142 00:06:42,260 --> 00:06:45,160 about using it in a variety of their machine learning products. 143 00:06:46,140 --> 00:06:50,500 Um, so here, here's, this is the slide with the only, um, equation on it. 144 00:06:50,800 --> 00:06:52,640 Um, and you're going to stare at that for, like, a minute. 145 00:06:53,780 --> 00:06:54,980 Just kidding, not a minute. 146 00:06:55,180 --> 00:06:59,540 Um, here's the informal version of, of what that is. 147 00:06:59,640 --> 00:07:04,640 So, uh, what differential privacy says is that you've got two otherwise identical databases, 148 00:07:05,000 --> 00:07:08,740 D1 and D2, um, one with your information in it and one without. 149 00:07:08,960 --> 00:07:14,340 And so differential privacy, um, ensures that the probability that a stochastic algorithm, 150 00:07:14,620 --> 00:07:17,900 A, um, and in this case stochastic algorithm can be a machine learning algorithm, 151 00:07:18,140 --> 00:07:21,980 um, will produce a given result, C, like a, a classification. 152 00:07:22,900 --> 00:07:28,180 Um, the same whether or not it's, you're operating that algorithm on D1 or D2 153 00:07:28,640 --> 00:07:30,240 up to a particular bound, epsilon. 154 00:07:31,540 --> 00:07:35,780 Uh, and so the, the key insight here is that adding or removing an element from the data 155 00:07:35,780 --> 00:07:38,140 doesn't really change the output prediction very much. 156 00:07:38,400 --> 00:07:43,940 Um, and what differential privacy does is it provides a bound on how much changing one d-, 157 00:07:43,940 --> 00:07:46,240 piece of data, um, affects the output. 158 00:07:47,600 --> 00:07:50,200 Uh, and so how, how do we actually do this? 159 00:07:50,280 --> 00:07:51,660 Because that's, that's like a bunch of math, 160 00:07:51,660 --> 00:07:54,480 and it's not immediately clear how you apply this. 161 00:07:54,560 --> 00:07:57,660 So there, there's two parts in when you're actually applying this kind of technique to something. 162 00:07:57,880 --> 00:08:00,160 So the first thing you want to do is you want to add noise, 163 00:08:00,400 --> 00:08:03,980 and the second is you want to keep track of how many data access requests are granted. 164 00:08:04,300 --> 00:08:08,460 So adding noise allows us to obfuscate the predictions in such a way that they're still useful, 165 00:08:08,600 --> 00:08:13,440 but don't provide enough information to really allow an adversary to reconstruct the information 166 00:08:13,440 --> 00:08:14,440 that you're pulling out. 167 00:08:14,660 --> 00:08:19,440 Um, and then with regards to keeping track of how many data access requests, 168 00:08:19,780 --> 00:08:21,260 um, the more information that you ask 169 00:08:21,260 --> 00:08:24,440 about the data, I mean, obviously, that means the attacker can learn more about it. 170 00:08:24,620 --> 00:08:27,840 Um, and this means that we have to add more noise to minimize the privacy leakage. 171 00:08:28,280 --> 00:08:31,500 And there comes a point where, like, you've just leaked too much data, 172 00:08:31,580 --> 00:08:36,380 and no matter how much noise you add to it, like, you can add so much noise that it no longer is really that useful, 173 00:08:36,560 --> 00:08:39,820 and you're just spitting out a bunch of, like, useless predictions. 174 00:08:40,380 --> 00:08:44,480 Um, so at that point, your best option is actually just to burn the database down and start over. 175 00:08:45,000 --> 00:08:46,140 Um, so don't do that. 176 00:08:46,860 --> 00:08:51,080 Um, and so the key to implementing differential privacy is to, to pick the proper, 177 00:08:51,260 --> 00:08:51,840 uh, privacy budget. 178 00:08:52,080 --> 00:08:57,500 And so when I say privacy budget, I mean the notion of counting how many requests that you're making, 179 00:08:57,720 --> 00:08:59,560 um, on, on the data. 180 00:09:00,080 --> 00:09:03,920 And so if you have too high of a privacy, of, of a privacy budget, 181 00:09:04,060 --> 00:09:05,580 then you're gonna, like, leak too much data. 182 00:09:05,700 --> 00:09:08,800 But if you have too low, then your predictions are gonna be way too noisy to be useful. 183 00:09:11,340 --> 00:09:13,660 Um, so now we're gonna talk about data exfiltration. 184 00:09:14,040 --> 00:09:20,040 Um, cause this is the attack that different, uh, differential privacy can protect you against. 185 00:09:21,260 --> 00:09:25,580 Um, so data exfiltration in this case refers to the scenario in which we wanna steal the training data 186 00:09:25,580 --> 00:09:27,180 that's being used to train a given model. 187 00:09:27,520 --> 00:09:33,600 Um, and so the attackers have access to the, um, input data, um, and, and the predictions. 188 00:09:33,700 --> 00:09:36,780 So they can put anything in, and they can also see the predictions. 189 00:09:36,980 --> 00:09:43,240 And then, in a lot of cases, um, a lot of these APIs will spit out, kind of, confidence information for interpretability. 190 00:09:43,440 --> 00:09:47,280 Cause if you're, if you're making a prediction, you wanna, kind of, know how confident you are that the prediction is correct. 191 00:09:47,480 --> 00:09:49,300 But unfortunately, that's actually a bad thing. 192 00:09:49,900 --> 00:09:50,300 Um. 193 00:09:52,020 --> 00:09:53,680 So here, here's an example. 194 00:09:54,100 --> 00:10:03,140 Um, so given a label, like a name, we wanna extract the associated training image from a pre-trained, pre-trained machine learning model. 195 00:10:03,600 --> 00:10:10,380 Um, so in this case, on, on the left, we have an image that we have trained on as just an illustration. 196 00:10:10,600 --> 00:10:17,960 And then, on the right, we have, um, a recovered image that we've managed to pull out, um, using the technique I'm gonna talk about in a sec. 197 00:10:18,240 --> 00:10:20,700 Um, so in this case, um. 198 00:10:21,280 --> 00:10:30,960 You can, like, feed in a name, and you can get out a face, which, if you think about the Facebook API or anything else that exposes its endpoints, I think maybe Facebook has patched that by now. 199 00:10:31,400 --> 00:10:37,380 Um, but there was a point at which you could feed in your name, and you could get out your picture if you had a very unique name, like me. 200 00:10:37,580 --> 00:10:39,020 And it's terrifying and awesome. 201 00:10:40,460 --> 00:10:44,140 Um, and I was supposed to have a demo of that, but, I'm sorry. 202 00:10:45,360 --> 00:10:48,060 Uh, so, here's a little bit about how that attack works. 203 00:10:48,220 --> 00:10:50,620 So, and more explicitly with diagrams. 204 00:10:50,620 --> 00:10:51,760 Because diagrams are helpful. 205 00:10:52,080 --> 00:11:00,980 Uh, so we wanna treat this as kind of an optimization problem, where you want to find, uh, the input that maximizes the confidence intervals that also matches the target. 206 00:11:01,160 --> 00:11:15,320 So in this case, when you're maximizing the confidence interval, you're maximizing how comfortable you are with the piece of data that, or, you're maximizing how sure you are that the piece of data that you're, you're targeting is the piece of data that you want. 207 00:11:15,500 --> 00:11:19,100 So, naturally, if you maximize that, it'll feed out what it is you're looking for. 208 00:11:19,440 --> 00:11:20,600 Um, and you can use that. 209 00:11:20,620 --> 00:11:29,940 You can use a couple of, so in this case, you'll train, like, an auxiliary ML model, or you could, um, yeah, or, or you treat it as just, like, a normal, uh, convex op problem. 210 00:11:30,260 --> 00:11:38,140 Um, but in this case, you can use a bunch of different types of machine learning algorithms, depending on what the original model is. 211 00:11:38,240 --> 00:11:43,220 So, um, if you're training on decision trees, then you might use map estimation. 212 00:11:43,680 --> 00:11:49,300 Um, and neural network models tend to, uh, they work to map a feature vector into a low, lower dimensional space. 213 00:11:49,300 --> 00:11:51,720 So, you can then separate the classes. 214 00:11:52,020 --> 00:11:58,840 And then, um, autoencoders will then find the compressed latent representation, which minimizes the construction, um, error. 215 00:11:59,020 --> 00:12:04,560 And if that doesn't make any sense to you, um, if you've seen the, uh, what's it called? 216 00:12:05,260 --> 00:12:06,720 That model that hallucinates? 217 00:12:08,300 --> 00:12:09,440 Um, yes, yes. 218 00:12:09,520 --> 00:12:13,200 If you've seen something like that, then that's more or less the attack that I'm describing. 219 00:12:13,320 --> 00:12:15,000 Like, you're trying to force a particular response. 220 00:12:15,480 --> 00:12:19,280 Um, and so, uh, the question then becomes, how do we handle it? 221 00:12:19,300 --> 00:12:25,860 So, with regards to differential privacy, um, the easiest way to do this is just round the confidence interval. 222 00:12:26,100 --> 00:12:28,020 Because that's basically adding noise to the output. 223 00:12:28,380 --> 00:12:32,900 Um, so it's like cheap and easy, really dirty differential privacy. 224 00:12:33,960 --> 00:12:36,720 I'd recommend doing this if you have endpoints open like that. 225 00:12:37,000 --> 00:12:44,440 Um, and so, here's another example of data exfiltration with regards to sequential data, which I think a lot of us work with. 226 00:12:44,680 --> 00:12:46,840 Um, and this is also pretty wild. 227 00:12:46,960 --> 00:12:49,180 Uh, because it's a baked-in specification. 228 00:12:49,180 --> 00:12:56,440 Um, and so, you know, there's a specific feature, um, of all deep neural network, um, architectures, um, where they're basically memorizing information. 229 00:12:56,660 --> 00:13:05,760 And so, um, even though you have information that's fed into a DNN and it gets transformed into some sort of higher level representation during the training process, it does not obscure that information. 230 00:13:06,080 --> 00:13:14,940 So if you have, um, so let's say that you have an adversary that has, um, access to a trained language model for some text dataset, like sensitive emails. 231 00:13:15,280 --> 00:13:19,100 Um, and then by using a searching algorithm, like even beam search. 232 00:13:19,100 --> 00:13:27,900 Um, along with some model predictions, uh, kind of like how predictive text works, uh, you can then extract the information that fits into a particular format, like credit card numbers. 233 00:13:30,020 --> 00:13:39,660 Um, so in this case, um, the attacker is targeting information in the training data, um, by using some sort of auxiliary search algorithm, um, through the predictions of the model. 234 00:13:39,740 --> 00:13:44,080 Which means we can't predict, or we, we can't protect this by just fuzzing the outputs. 235 00:13:44,200 --> 00:13:45,620 You have to bake in protection here. 236 00:13:45,840 --> 00:13:49,080 Um, so in this case, you want to replace the optimization. 237 00:13:49,100 --> 00:13:54,460 The optimization algorithm that you're using in, in, um, your, your learning algorithm, because all learning is, is just optimization. 238 00:13:54,900 --> 00:14:00,080 Um, and so you would want, um, to replace that with a differentially private version. 239 00:14:00,340 --> 00:14:11,320 Uh, so in this case, the, if you use TensorFlow, there is a, um, a differentially private version of stochastic gradient descent, which is like the standard method that most people use. 240 00:14:11,440 --> 00:14:17,920 Or if you use Atom, um, uh, it's the standard method that most people use, uh, to train the models. 241 00:14:18,120 --> 00:14:18,340 Um. 242 00:14:18,340 --> 00:14:24,200 And so the gist of how that works is that, uh, at each step, it calculates the gradient, uh, for a random subset of examples. 243 00:14:24,360 --> 00:14:28,360 And then it clips the L2 norm, it computes the average, and then adds some noise. 244 00:14:28,540 --> 00:14:35,420 And then, uh, does like the standard thing of stepping in the opposite direction of, um, uh, your freshly computed gradient. 245 00:14:35,760 --> 00:14:40,520 Um, and it also has a privacy accountant built in, which is the same as the privacy budget I mentioned. 246 00:14:40,840 --> 00:14:48,320 Um, and that keeps track of the overall privacy cost of training by tracking, um, uh, tracking, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh, uh. 247 00:14:48,320 --> 00:14:49,060 Tracking the number of steps. 248 00:14:50,060 --> 00:14:52,660 Yes, it tracks the number of steps that you're making as you're training. 249 00:14:53,020 --> 00:15:08,040 Um, so, um, if you're following along still, um, it would make sense that by adding this noise and by only limiting yourself to a certain number of requests or steps, you're not going to get, like, a 100% accurate thing. 250 00:15:08,240 --> 00:15:15,800 But, I mean, at the end of the day, it doesn't actually matter how many, like, how many more benchmarks you get on MNIST because MNIST is terrible. 251 00:15:16,000 --> 00:15:18,300 And InfoSec, we like to just get something. 252 00:15:18,320 --> 00:15:18,960 We like to get something that works. 253 00:15:19,060 --> 00:15:20,440 Um, and this works really well. 254 00:15:22,120 --> 00:15:24,960 Um, so, uh, yes. 255 00:15:26,600 --> 00:15:29,320 And this is an old slide that we do not need. 256 00:15:30,120 --> 00:15:31,160 Um, my bad. 257 00:15:32,280 --> 00:15:32,680 Okay. 258 00:15:34,000 --> 00:15:34,520 All right. 259 00:15:34,560 --> 00:15:36,380 So, some general observations here. 260 00:15:36,500 --> 00:15:40,060 Um, most attacks are trying to get at information that are held in the model. 261 00:15:40,460 --> 00:15:44,040 Um, like, be that trying to force predictions by looking at what's already there. 262 00:15:44,360 --> 00:15:46,240 Um, or taking advantage of what's already there. 263 00:15:46,340 --> 00:15:48,300 Or just, like, you want to pull that information back. 264 00:15:48,320 --> 00:15:52,720 Um, and then notice that these attacks will still work even if the data is encrypted. 265 00:15:53,140 --> 00:15:58,340 Um, and they rely on the preservation of statistical relationships within the data. 266 00:15:58,500 --> 00:16:03,460 Which is not obfuscated by most cryptographic techniques outside of, like, differential privacy. 267 00:16:06,180 --> 00:16:13,080 Um, and then there's a couple of other methods that people have proposed to protect against, like, these kind of data exfiltration attacks. 268 00:16:13,260 --> 00:16:15,800 Like, um, homomorphic encryption kind of makes sense. 269 00:16:15,980 --> 00:16:18,300 Uh, because then you can encrypt your model. 270 00:16:18,300 --> 00:16:20,880 And you can still, like, do all your training and stuff on that. 271 00:16:20,960 --> 00:16:22,540 But unfortunately, you're encrypting it. 272 00:16:22,600 --> 00:16:24,600 But you're not changing any of these statistical relationships. 273 00:16:24,820 --> 00:16:26,460 Which means you can still do data exfiltration. 274 00:16:26,700 --> 00:16:33,800 Because the whole point of, or the whole way that these attacks work is you're, um, abusing statistics to pull out statistical information. 275 00:16:34,440 --> 00:16:38,280 Um, and then people have also proposed using secure multi-party computation. 276 00:16:39,040 --> 00:16:42,740 But, um, and this is cheaper than homomorphic encryption. 277 00:16:42,960 --> 00:16:43,720 And it is pretty cool. 278 00:16:43,860 --> 00:16:45,980 But it's not immune to Byzantine failure. 279 00:16:46,400 --> 00:16:48,200 And that's, like, a terrible thing. 280 00:16:48,300 --> 00:16:54,000 Because it means if you have somebody, um, in your training group who's all helping you train this model. 281 00:16:54,120 --> 00:16:55,840 And they just want to add a backdoor. 282 00:16:55,900 --> 00:16:56,620 They can add a backdoor. 283 00:16:56,780 --> 00:16:58,160 Your model still trains on it. 284 00:16:58,240 --> 00:17:00,280 And because of the way that these deep learning models work. 285 00:17:00,680 --> 00:17:02,380 Or some of these other models work, too. 286 00:17:02,660 --> 00:17:04,820 Um, you're going to end up with a backdoor in your model. 287 00:17:04,940 --> 00:17:07,460 And then somebody can take advantage of you and steal all your data. 288 00:17:07,560 --> 00:17:08,160 And that's terrible. 289 00:17:09,600 --> 00:17:13,220 Um, so, uh, let's see. 290 00:17:15,040 --> 00:17:15,400 Right. 291 00:17:15,400 --> 00:17:21,720 So the practical takeaway summary slide is that, um, you want to give users the bare minimum amount of information. 292 00:17:21,920 --> 00:17:24,580 You don't want to give them confidence values unless you can protect those. 293 00:17:24,980 --> 00:17:28,020 Um, and you want to add some noise to output predictions regardless. 294 00:17:28,660 --> 00:17:33,340 Um, and you want to be able to restrict users from making too many prediction queries. 295 00:17:33,560 --> 00:17:39,460 And so I think a lot of, um, companies now do this where you can only make so many requests at a particular time. 296 00:17:39,560 --> 00:17:42,720 So they can, um, add some sort of noise to the process. 297 00:17:42,720 --> 00:17:47,800 Um, and then you might also consider using an ensemble of models and then aggregate these predictions, too. 298 00:17:48,340 --> 00:17:55,640 Um, and so far, differential privacy is the most reliable method for model hardening against data exfiltration in machine learning.