[00:00.000 --> 00:01.440] So, my name is Rich Wrang. [00:01.440 --> 00:04.240] I am a director of data science at Sophos. [00:04.240 --> 00:05.880] This is a joint presentation between myself [00:05.880 --> 00:08.280] and Dr. Ethan Rudd, who's sitting in the back there. [00:08.300 --> 00:09.680] And I'm gonna talk to you a little bit [00:09.680 --> 00:11.700] about facial recognition systems. [00:12.220 --> 00:14.940] So, who am I and why am I qualified to stand up here [00:14.940 --> 00:16.600] and berate you about this topic? [00:16.600 --> 00:18.500] I have a PhD in statistics [00:18.500 --> 00:20.460] from the University of California at Santa Barbara, [00:20.460 --> 00:22.440] and I've spent about the past eight years [00:22.440 --> 00:24.800] working at the intersection of machine learning, [00:24.800 --> 00:26.080] security, and privacy. [00:26.740 --> 00:28.540] Ethan has his PhD in computer science [00:28.540 --> 00:30.020] from the University of Colorado, [00:30.020 --> 00:33.060] and he has a long list of accomplishments, [00:33.060 --> 00:35.740] particularly in the facial recognition field. [00:36.540 --> 00:38.420] This is the Sophos data science team. [00:38.420 --> 00:40.700] If you like security and you like data science, [00:40.700 --> 00:42.480] then maybe you should come talk to me after this. [00:42.480 --> 00:44.080] We're always looking for people. [00:44.080 --> 00:45.520] So, let's end up the pitch. [00:46.440 --> 00:48.920] So, this talk, this is sort of the outline. [00:48.920 --> 00:51.220] We're gonna go on a real crash course [00:51.220 --> 00:52.640] for image classification. [00:52.640 --> 00:53.880] We're gonna talk about specifically [00:53.880 --> 00:56.220] how the facial recognition problem [00:56.220 --> 00:58.820] differs from the standard image classification problem, [00:58.820 --> 01:00.440] and how that leads into differences [01:00.440 --> 01:02.840] in training and processing images. [01:03.320 --> 01:06.100] Brief note about how bad the situation really is [01:06.100 --> 01:08.240] as far as facial recognition and privacy. [01:08.240 --> 01:10.340] We're going to do an absolute sprint [01:10.340 --> 01:12.600] through some of the attacks that you can launch [01:12.600 --> 01:14.800] against facial recognition systems. [01:14.800 --> 01:17.100] And then I'm gonna do sort of an anecdotal look [01:17.100 --> 01:19.100] at transferability of those attacks. [01:19.100 --> 01:20.700] So, if you train an attack on one system [01:20.700 --> 01:22.780] and you deploy it against another system, [01:22.780 --> 01:24.140] what actually happens? [01:24.140 --> 01:26.640] Spoiler, the results are not great. [01:27.540 --> 01:30.060] So, I'm supposed to tell you three things [01:30.060 --> 01:32.620] that you should remember so that when you nod off [01:32.620 --> 01:34.680] and start thinking about lunch in about 10 minutes, [01:34.680 --> 01:36.280] you have some takeaways. [01:36.600 --> 01:38.060] If you remember nothing else, [01:38.060 --> 01:40.180] facial recognition systems are different [01:40.180 --> 01:42.360] from general image classifiers. [01:42.360 --> 01:44.420] They're solving different kinds of problems. [01:44.420 --> 01:45.860] This means the pipeline is different, [01:45.860 --> 01:47.360] the models are structured differently, [01:47.360 --> 01:49.820] and you have different opportunities for attacks, [01:49.820 --> 01:52.140] but some existing attacks that work really well [01:52.140 --> 01:56.460] against image classifier systems are not as feasible. [01:56.760 --> 01:59.640] Building facial recognition systems is really easy. [01:59.640 --> 02:02.000] There are off-the-shelf open-source systems you can grab [02:02.000 --> 02:03.820] that are really quite good. [02:04.000 --> 02:07.140] Cloud-based solutions like Amazon has one, [02:07.140 --> 02:10.360] they are extremely cheap and very easy to use. [02:10.880 --> 02:13.440] Reliable evasion of facial recognition, [02:13.440 --> 02:16.400] particularly in the wild, is still really difficult. [02:16.400 --> 02:18.460] We don't have any good solutions to it. [02:18.460 --> 02:20.940] And a mask is the best solution [02:20.940 --> 02:23.680] that I've been able to come up with, unfortunately. [02:26.540 --> 02:28.800] So crash course in image classification. [02:28.800 --> 02:30.360] This is assuming a little bit of background, [02:30.360 --> 02:31.660] but hopefully not too much. [02:32.060 --> 02:33.360] So image classifiers, [02:33.360 --> 02:34.760] basically you give it a bunch of pictures [02:34.760 --> 02:36.240] and you say, hey, what is this? [02:36.240 --> 02:37.860] You get a bunch of training data. [02:37.920 --> 02:39.760] So, you know, hundreds of pictures of airplanes, [02:39.760 --> 02:41.660] hundreds of pictures of dogs, frogs, and horses, [02:42.500 --> 02:45.900] and you use it to train a classifier. [02:46.200 --> 02:49.020] The basic building block is something called a convolution. [02:49.580 --> 02:52.320] It's a patch that you sort of stride over an image [02:52.320 --> 02:53.900] and it learns to pick out different things [02:53.900 --> 02:57.740] like edges, corners, curves, and points. [02:58.380 --> 03:00.880] You stack a whole bunch of these convolutional layers [03:00.880 --> 03:03.720] together with a bunch of hidden layers. [03:03.720 --> 03:05.620] And then you typically put a standard [03:05.620 --> 03:08.020] sort of classification network at the very end. [03:08.020 --> 03:09.920] The very last layer is usually something [03:09.920 --> 03:11.160] called a softmax layer. [03:11.160 --> 03:14.260] And that basically just assigns a probability to each class. [03:14.260 --> 03:17.160] So if I put in an image of a car and it's well-trained, [03:17.160 --> 03:19.000] it might come out the other end and say, [03:19.000 --> 03:23.000] I'm 99.9% certain that this is in fact an image of a car. [03:24.460 --> 03:25.660] How do you train it? [03:25.660 --> 03:28.280] I am going to gloriously skip over a lot of the details [03:28.280 --> 03:29.440] because they don't actually matter [03:29.440 --> 03:31.220] with modern deep learning frameworks. [03:31.700 --> 03:33.800] Basically, you randomly sample the data, [03:33.800 --> 03:34.920] you get some image, [03:34.920 --> 03:37.600] you feed it through this randomly initialized network, [03:37.600 --> 03:39.060] and you get a classification out. [03:39.060 --> 03:40.320] When you start, that classification [03:40.320 --> 03:42.280] is going to be absolutely terrible. [03:42.280 --> 03:44.420] It's not going to have any idea about anything. [03:44.520 --> 03:45.560] And so it's going to, you know, [03:45.560 --> 03:47.280] quite happily tell you that a picture of a car [03:47.280 --> 03:49.080] is equally likely to be a car, [03:49.120 --> 03:50.840] a horse, a dog, a bird, et cetera. [03:51.140 --> 03:53.500] That's fine because what you do is you take that mistake [03:54.040 --> 03:56.620] and you basically tell it how to fix that mistake. [03:56.620 --> 03:58.380] You error correct all of the weights. [03:58.860 --> 04:00.580] This error correction usually takes the form [04:00.580 --> 04:02.320] of something called backpropagation. [04:02.620 --> 04:04.920] And you just do this until it works. [04:05.640 --> 04:09.440] So this is the very 50,000 foot overview of this problem. [04:10.420 --> 04:11.700] Great, so now we're going to go ahead [04:11.700 --> 04:13.900] and we're just going to go do it for faces, right? [04:13.900 --> 04:14.780] Easy peasy. [04:15.460 --> 04:18.360] Except there is one small catch to this. [04:18.360 --> 04:19.560] Actually, there's several small catches, [04:19.560 --> 04:20.780] but this is the first of many catches [04:20.780 --> 04:22.420] that will trip us up along the way. [04:23.040 --> 04:25.720] So we really only care about faces, right? [04:25.720 --> 04:28.160] So what I've got here is I've got, [04:28.160 --> 04:29.780] from a facial recognition standpoint, [04:29.780 --> 04:31.280] I've got some stuff that's interesting [04:31.280 --> 04:33.780] for, you know, a certain narrowly construed definition [04:33.780 --> 04:35.100] of interesting, at least. [04:35.100 --> 04:37.260] And then I've got a bunch of stuff that's not interesting. [04:37.260 --> 04:40.420] I don't really care about the context in most cases. [04:40.420 --> 04:42.240] All I want is the face. [04:42.240 --> 04:45.220] So step zero, we do something called a bounding box, [04:45.280 --> 04:46.360] a landmark and alignment. [04:46.360 --> 04:47.820] We isolate faces. [04:47.820 --> 04:49.700] So we get a nice little box around them. [04:49.700 --> 04:51.180] We identify key landmarks. [04:51.180 --> 04:53.740] This is in many cases going to be the center of each eye, [04:53.740 --> 04:55.400] the tip of the nose, the corners of the mouth. [04:55.560 --> 04:57.920] And those landmarks serve as reference points [04:57.920 --> 04:59.060] to a second stage, [04:59.060 --> 05:01.160] which is going to tweak the image a little bit [05:01.160 --> 05:03.300] so that it's in a standard orientation. [05:03.300 --> 05:07.460] Think of it as sort of setting up an ID photo style tab [05:07.460 --> 05:11.220] or an ID style photo, or Christ, [05:11.220 --> 05:14.520] an ID photo style tile for each image. [05:14.520 --> 05:16.960] So everything's nice and vertical and it's, you know, aligned [05:16.960 --> 05:18.200] and you don't have any, like, [05:18.200 --> 05:20.080] Boston Terrier head tilts going on. [05:20.540 --> 05:22.180] There's plenty of tools to do this. [05:22.180 --> 05:23.660] They're all really well-trained. [05:23.660 --> 05:25.560] You can, again, dig them up online. [05:25.560 --> 05:27.740] So I'm not going to go over this too much. [05:27.740 --> 05:29.020] I also should note that alignment [05:29.020 --> 05:30.960] is actually not needed for all models. [05:30.960 --> 05:32.300] There are a lot of models that are trained [05:32.300 --> 05:34.420] to handle multiple alignments. [05:35.020 --> 05:37.740] Okay. So now we can get faces out. [05:37.740 --> 05:38.240] That's great. [05:38.240 --> 05:39.980] Now we're going to do it for faces, right? [05:40.280 --> 05:42.000] We actually have a problem [05:42.800 --> 05:45.500] and circled in red is the problem right here. [05:45.500 --> 05:47.000] We have built into most of these [05:47.000 --> 05:49.880] basic image classification models, [05:49.880 --> 05:53.160] two assumptions that do not hold in facial recognition. [05:53.320 --> 05:55.120] So we've got a fixed number of classes [05:55.120 --> 05:56.440] that we know about ahead of time. [05:56.580 --> 05:59.100] And we have what you call a closed world. [05:59.100 --> 06:01.840] So no matter what input you feed to this model, [06:01.840 --> 06:03.040] it's always going to tell you [06:03.040 --> 06:04.840] that it's one of those outputs. [06:05.060 --> 06:09.520] So if I train this recognition system on image tiles, [06:09.520 --> 06:10.800] right, with, say, 10 people, [06:10.800 --> 06:13.360] I can show it 1,000 different people [06:13.360 --> 06:14.760] that it's never seen during training [06:14.760 --> 06:17.520] and the model will still try to assign some probability [06:17.520 --> 06:20.160] to just the 10 faces it was trained on. [06:20.300 --> 06:22.400] This is obviously not ideal [06:22.400 --> 06:25.080] because if we presented a face [06:25.080 --> 06:26.540] that's not in the training set, [06:26.540 --> 06:30.020] we vastly increased the likelihood of a false positive. [06:30.020 --> 06:32.880] If we only care about identifying, say, two or three people [06:32.880 --> 06:34.700] and we only have four or five images [06:34.700 --> 06:36.240] of each of those two or three people, [06:36.240 --> 06:38.700] we have nowhere near enough training data [06:38.700 --> 06:40.860] to actually train a classifier, right? [06:40.860 --> 06:43.000] These image-based classifiers take tens [06:43.000 --> 06:44.980] or hundreds of thousands of samples [06:44.980 --> 06:47.400] to really learn an effective representation. [06:47.940 --> 06:49.780] So we could maybe fix that by saying, [06:49.780 --> 06:51.220] hey, let's throw thousands of people in there [06:51.220 --> 06:52.380] because I've got tons of faces. [06:52.380 --> 06:53.320] Thank you, Facebook. [06:53.700 --> 06:55.660] But then we end up with a bunch of classes [06:55.660 --> 06:56.620] that we don't care about [06:56.620 --> 06:59.460] and we end up with maybe some gradient issues. [07:00.020 --> 07:01.900] Down the road, if we've got our 10 people [07:01.900 --> 07:03.140] that we train the model to identify [07:03.140 --> 07:04.760] and then we add another 10 people [07:04.760 --> 07:06.380] that we wanna find later, [07:06.380 --> 07:09.020] suddenly we have to retrain the model, [07:09.020 --> 07:12.060] which can be really, really time-consuming and expensive [07:12.060 --> 07:13.980] depending on how you do the retraining. [07:14.880 --> 07:16.700] Okay, so that's not gonna work. [07:16.700 --> 07:18.760] So what can we do to fix it? [07:19.480 --> 07:21.780] The first idea for dealing with a large [07:21.780 --> 07:23.160] or an unknown number of classes [07:23.720 --> 07:25.640] is something called a matching network. [07:25.640 --> 07:27.780] So you feed, instead of one face, [07:27.780 --> 07:29.140] you feed two faces into it [07:29.140 --> 07:31.540] and the model's only job is to say, [07:31.540 --> 07:33.900] are these two faces the same person? [07:34.180 --> 07:35.940] So this is great because now suddenly [07:35.940 --> 07:38.240] I can feed all the faces I have into it, right? [07:38.240 --> 07:39.720] I've got 10 faces of this person, [07:39.720 --> 07:41.460] so I feed it the, whatever, [07:41.460 --> 07:44.000] the 90 different combinations of pairs of faces. [07:44.000 --> 07:46.620] And I say, make sure you classify these as the same person, [07:46.620 --> 07:47.740] take all of the different faces [07:47.740 --> 07:50.320] and say, make sure you classify these as different people. [07:50.320 --> 07:54.260] And then when I want to actually detect certain people, [07:54.260 --> 07:57.380] I get the face tiles of the people I want to identify. [07:57.380 --> 07:59.260] I take the face tiles of the people [07:59.260 --> 08:00.360] I'm trying to match up to it, [08:00.360 --> 08:01.860] and then I just run it through and I say, [08:01.860 --> 08:03.620] hey, are these people the same or different, right? [08:03.620 --> 08:06.600] So I've essentially separated the data required [08:06.600 --> 08:07.940] for training the model [08:07.940 --> 08:12.000] from the data required to do the recognition step. [08:13.220 --> 08:14.660] So good news, bad news. [08:14.660 --> 08:16.140] The good news is, again, [08:16.140 --> 08:18.120] it's super easy to register new faces, [08:18.120 --> 08:19.400] to add them to the list of faces [08:19.400 --> 08:21.260] that we want to detect down the road. [08:21.260 --> 08:22.100] You just get the photo [08:22.100 --> 08:23.420] and you stick it in a database somewhere [08:23.420 --> 08:25.240] so that you can run it through the model later. [08:25.240 --> 08:28.420] The bad news is this means you would have to run this model [08:28.420 --> 08:31.540] against every single face in your registered database. [08:31.680 --> 08:33.040] For deep learning models, [08:33.040 --> 08:35.920] this can be apocalyptically expensive to do. [08:35.920 --> 08:39.020] If you're trying to identify 1,000 different people, [08:39.020 --> 08:40.880] that's 1,000 samples you've got to run through [08:40.880 --> 08:43.220] for every face you're trying to identify. [08:43.460 --> 08:45.020] This will not scale. [08:45.020 --> 08:46.700] It works great on toy problems. [08:46.700 --> 08:49.220] You definitely don't want to do it beyond that point. [08:49.920 --> 08:52.120] Okay, so now we're going to do a second fix. [08:52.340 --> 08:54.960] And the second fix is we're going to run the network [08:54.960 --> 08:56.740] just once over each face, [08:56.740 --> 08:59.420] and we're going to learn what's called an embedding. [08:59.460 --> 09:02.220] So an embedding is basically just a way of taking a face tile [09:02.220 --> 09:04.360] and turning it into a list of numbers, [09:04.360 --> 09:05.840] the list of numbers you can think of [09:05.840 --> 09:09.340] as defining a point in a really high-dimensional space. [09:09.840 --> 09:11.160] The way you're going to train the network [09:11.160 --> 09:13.180] is to take two faces from the same person [09:13.180 --> 09:16.240] and tell the network you should make similar embeddings [09:16.240 --> 09:17.380] for these two people, right? [09:17.380 --> 09:19.940] These two faces should have these lists of numbers [09:19.940 --> 09:21.480] that, under some distance metric, [09:21.480 --> 09:23.160] are very close to each other. [09:23.160 --> 09:25.520] If I give it two faces from different people, [09:25.520 --> 09:27.180] it should separate them by a lot. [09:27.180 --> 09:29.720] It should be able to say the distance [09:29.720 --> 09:33.060] between those two vectors should be very dissimilar. [09:33.900 --> 09:36.880] So visually, you might end up with something like this, [09:36.880 --> 09:39.680] right, so this is a sort of a made-up [09:39.680 --> 09:41.080] two-dimensional embedding. [09:41.080 --> 09:44.260] I have a query face that I have circled in red there. [09:44.260 --> 09:48.020] And basically, I've got clusters, I've got distances. [09:48.580 --> 09:50.400] This face is closest to that cluster, [09:50.400 --> 09:53.540] so I say that that face probably belongs to that person. [09:53.760 --> 09:55.520] You can imagine if I had another face [09:55.520 --> 09:57.340] that was way off in the middle of nowhere, [09:57.340 --> 09:59.440] maybe I would say that's too far from any cluster [09:59.440 --> 10:02.140] to actually be classified as my face of interest. [10:03.540 --> 10:05.520] So when you have an embedding in a distance, [10:05.520 --> 10:06.940] the good news is, at that point, [10:06.940 --> 10:09.420] you can put aside the deep learning sledgehammer [10:09.420 --> 10:13.340] and you can just use existing deterministic algorithms [10:13.340 --> 10:15.380] for fast nearest neighbor detection. [10:15.380 --> 10:17.560] So you get your embedding, you find nearest neighbors, [10:17.560 --> 10:19.260] and you're done, you've got your match. [10:21.380 --> 10:23.680] So there's an important difference on data here, [10:23.680 --> 10:26.960] and this is a subtlety that I think needs to be appreciated. [10:26.960 --> 10:29.820] You don't actually need to know who a person is [10:29.820 --> 10:31.800] to train on their face or enroll them. [10:31.800 --> 10:33.160] You just need to be able to say, [10:33.160 --> 10:35.600] I've got 10 photos of one person [10:35.600 --> 10:38.020] and I've got another 10 photos of another person. [10:38.020 --> 10:38.980] They're distinct photos. [10:38.980 --> 10:40.720] I don't have to know who they are, right? [10:40.720 --> 10:42.280] It's not like an image classifier [10:42.280 --> 10:43.500] where I have to be able to say, [10:43.500 --> 10:45.400] this is definitely a photo of a cat [10:45.400 --> 10:47.260] and this is definitely a photo of a dog. [10:47.260 --> 10:49.000] You just say, I've got 10 photos [10:49.000 --> 10:50.920] of this one person, subject A, [10:50.920 --> 10:53.160] and I've got 10 photos of this other person, subject B, [10:53.160 --> 10:54.120] and so on. [10:55.140 --> 10:57.980] Doing this, collecting this data is super easy. [10:57.980 --> 11:00.220] I invite you all to consider all of the photos [11:00.220 --> 11:03.360] you have uploaded to Facebook or Twitter or Instagram [11:03.360 --> 11:07.640] or TikTok or, yes, FaceApp, if you've done that. [11:07.780 --> 11:09.960] There are ways to essentially sort of say, [11:09.960 --> 11:11.320] yeah, these are probably the same people. [11:11.320 --> 11:12.880] You can enroll all that in your training data [11:12.880 --> 11:14.680] and you're done. [11:15.060 --> 11:17.540] You can put together a janky homebrew if you like. [11:17.540 --> 11:18.980] People like to carry around phones [11:18.980 --> 11:20.300] with their Wi-Fi turned on [11:20.300 --> 11:22.700] and you can scrape their Mac address, right? [11:22.700 --> 11:24.560] And say, hey, I've got this photo [11:24.560 --> 11:26.180] that correlates to this Mac address. [11:26.180 --> 11:28.080] That's probably the same person. [11:28.080 --> 11:31.680] So collecting the data is actually super, super easy, [11:31.680 --> 11:34.560] especially if you are social media. [11:35.680 --> 11:37.400] So we've got a couple of different [11:37.400 --> 11:38.920] kind of operational scenarios [11:38.920 --> 11:41.160] or modes of operation for this. [11:41.160 --> 11:43.160] In the training, we have the gallery. [11:43.160 --> 11:44.380] So the gallery is gonna be the people [11:44.380 --> 11:46.520] that I actually want to recognize. [11:46.520 --> 11:48.820] These are the people that I want to be able to tag. [11:49.180 --> 11:50.620] Then I've got the training data, [11:50.620 --> 11:52.220] which can be a whole bunch of other people [11:52.220 --> 11:54.660] where I don't necessarily want to identify them later. [11:54.660 --> 11:56.780] I'm just gonna use them to train these models. [11:57.080 --> 11:59.220] And then in probes, I've got subjects. [11:59.300 --> 12:01.860] So the people I'm going to try to match to the gallery. [12:01.860 --> 12:03.540] I've got known faces. [12:03.540 --> 12:06.760] Known faces are ones that the model has been trained on, [12:06.760 --> 12:07.980] but may not be people [12:07.980 --> 12:10.060] that I actually care about identifying later. [12:10.140 --> 12:12.000] And then I have unknown faces. [12:12.000 --> 12:14.300] So faces that have never been seen during training [12:14.300 --> 12:16.840] and they're not of people that are in the gallery. [12:17.820 --> 12:19.280] This is an important point [12:19.280 --> 12:20.820] that I'm not gonna have a huge amount of time [12:20.820 --> 12:21.840] to go into detail, [12:21.840 --> 12:24.460] but having a training set [12:24.460 --> 12:26.740] that's representative of the population [12:26.740 --> 12:28.240] you want to be able to identify [12:28.240 --> 12:30.060] is actually really important. [12:30.060 --> 12:32.040] If you have a bias in your training data, [12:32.040 --> 12:34.540] like in most facial recognition systems [12:34.540 --> 12:36.100] that are out there today, [12:36.100 --> 12:39.960] and it's biased towards a particular ethnicity, [12:39.960 --> 12:42.940] towards gender, towards a particular age group, [12:42.940 --> 12:44.600] it's not gonna work very well [12:44.600 --> 12:46.600] for people outside of that ethnicity, [12:46.600 --> 12:48.480] gender, or age demographic. [12:48.760 --> 12:50.900] So having a good representative training set [12:50.900 --> 12:52.040] is actually really important [12:52.040 --> 12:53.880] to make these systems work well. [12:54.460 --> 12:57.140] So this actually, this plot or figure [12:57.140 --> 12:59.500] comes from Ethan's paper, [12:59.500 --> 13:01.840] which is given at the link down there. [13:02.620 --> 13:04.640] Okay, so recap. [13:04.660 --> 13:06.820] Facial, we've got two models that go into this. [13:06.820 --> 13:08.440] We've got the facial detection model, [13:08.440 --> 13:09.560] which is what's gonna draw the box [13:09.560 --> 13:11.400] and give you the attribute markers. [13:11.400 --> 13:14.020] And then you've got the face embedding model, [13:14.020 --> 13:15.460] which is what's gonna take that face tile [13:15.460 --> 13:18.080] and turn it into your embedding vector. [13:18.560 --> 13:21.860] The important thing is this is done separately [13:21.860 --> 13:23.560] from actually enrolling the faces [13:23.560 --> 13:25.400] that you want to identify later. [13:25.400 --> 13:27.060] So you've separated the training data out [13:27.060 --> 13:29.920] from your actual detection data. [13:30.080 --> 13:31.200] Faces you want to detect [13:31.200 --> 13:32.740] don't actually have to be available [13:32.740 --> 13:34.020] when training the models, right? [13:34.020 --> 13:35.880] I can train a model on photos of people [13:35.880 --> 13:37.660] who were born years before [13:37.660 --> 13:40.080] anyone I want to identify popped up. [13:40.600 --> 13:43.140] Then when you find people that you want to identify, [13:43.140 --> 13:44.980] you enroll them by generating the embedding, [13:44.980 --> 13:47.000] and then you're back to the nearest neighbor search. [13:48.780 --> 13:50.700] Okay, so the short version. [13:50.700 --> 13:52.340] You find crop possibly aligned faces [13:52.340 --> 13:53.800] with a localization model. [13:53.840 --> 13:55.440] You take those crops, [13:55.440 --> 13:56.520] feed them through an embedding model [13:56.520 --> 13:57.880] if you're registering them. [13:57.880 --> 14:00.240] So I've got someone that I want to find later. [14:00.300 --> 14:01.500] I'm gonna save that vector [14:01.500 --> 14:02.880] along with the label of their name. [14:02.880 --> 14:04.020] Sometimes I'll form templates [14:04.020 --> 14:06.200] if I want to sort of like shrink that set again. [14:06.200 --> 14:08.960] So that might be something like finding a convex hole [14:08.960 --> 14:10.200] that contains all of the faces [14:10.200 --> 14:13.620] or finding a median of all of the embedding vectors. [14:13.760 --> 14:15.360] Then recognition is, [14:15.360 --> 14:16.680] you're just gonna find the nearest embedding [14:16.680 --> 14:19.400] or the nearest template to the unlabeled embedding [14:19.400 --> 14:20.100] that you're trying to say, [14:20.100 --> 14:22.320] hey, who is this person that I've got a photo of? [14:22.320 --> 14:24.340] And is that somebody that I want to recognize? [14:25.600 --> 14:28.040] Okay, a brief digression. [14:28.040 --> 14:29.700] Welcome to how I love this GIF. [14:29.700 --> 14:31.600] This is, I'm a sucker for dog GIFs. [14:32.240 --> 14:33.380] Future is already here. [14:33.380 --> 14:34.800] It's just not evenly distributed. [14:34.800 --> 14:36.560] It actually is pretty evenly distributed [14:36.560 --> 14:39.320] because if you wanted to build facial recognition models, [14:39.320 --> 14:41.740] there are plenty of models that are available online. [14:42.280 --> 14:43.540] I'll be putting these slides up later. [14:43.540 --> 14:46.060] So don't like rush to get a photo of the URLs. [14:46.060 --> 14:47.280] Don't worry about it. [14:47.640 --> 14:49.840] Pre-trained models and model training code [14:49.840 --> 14:51.320] is widely available online. [14:51.320 --> 14:53.100] Data is also widely available. [14:53.100 --> 14:54.840] People are starting to get a little bit twitchier [14:54.840 --> 14:55.560] about this. [14:55.560 --> 14:58.240] Microsoft recently pulled down its Celebe data, [14:58.240 --> 15:00.500] but you still have things like labeled faces in the wild, [15:00.500 --> 15:02.420] the Kaisa web face data, [15:02.420 --> 15:04.420] and then facereq.org slash datasets [15:04.420 --> 15:06.560] hopefully provides you with just about any dataset [15:06.560 --> 15:07.480] you might want. [15:07.480 --> 15:09.000] Some of these you will actually have to write [15:09.000 --> 15:10.540] to the academics that did the work, [15:10.540 --> 15:12.940] but usually they'll be quite happy to just send it off [15:12.940 --> 15:13.740] to you. [15:14.460 --> 15:15.940] If you're too lazy to do that, [15:15.940 --> 15:18.800] even then Amazon's recognition works really well. [15:18.800 --> 15:20.980] There was a Washington Post article that said [15:20.980 --> 15:22.900] that a County in Washington state [15:22.900 --> 15:26.200] was actually running its entire facial recognition system [15:26.200 --> 15:30.160] off of Amazon's recognition for about seven bucks a month. [15:30.160 --> 15:32.540] So it's fast, it's cheap, [15:33.060 --> 15:35.680] and it works reasonably well. [15:37.060 --> 15:38.640] Okay, so now that we're all depressed [15:38.640 --> 15:40.020] about how widespread this is, [15:40.020 --> 15:42.080] let's talk about how we can evade it, right? [15:42.860 --> 15:44.780] Oh, you sweet summer children. [15:45.340 --> 15:47.140] So the first thing to keep in mind is [15:47.140 --> 15:49.440] when you look at the academic literature, [15:49.760 --> 15:51.340] a lot of papers that say, [15:51.340 --> 15:53.180] hey, we're attacking facial detection models [15:53.180 --> 15:56.580] are actually attacking sort of the softmax type model [15:56.580 --> 15:59.320] that's closer to an image detection model. [15:59.320 --> 16:00.920] So if you're going to go out [16:00.920 --> 16:02.460] and reproduce some academic research, [16:02.460 --> 16:04.980] do a quick sanity check, look through the model, [16:04.980 --> 16:06.080] make sure that they're using something [16:06.080 --> 16:08.280] that's closer to facial recognition [16:08.280 --> 16:10.180] as it gets deployed in the wild. [16:11.280 --> 16:13.600] So plan your attack, right? [16:13.600 --> 16:14.780] Think about your capabilities. [16:14.780 --> 16:16.500] Can you attack the model training? [16:16.500 --> 16:17.820] Probably not, but if you can, [16:17.820 --> 16:20.440] data poisoning is a great thing to think about here. [16:20.460 --> 16:23.400] If you can get a copy of the models somehow, right? [16:23.400 --> 16:28.020] They stick it on an open share or an unprotected S3 bucket, [16:28.020 --> 16:29.480] grab it and do an offline attack, right? [16:29.480 --> 16:31.720] You can do white box attacks on that. [16:31.720 --> 16:34.820] If they offer you an API or an endpoint [16:34.820 --> 16:36.020] that you can query, right? [16:36.020 --> 16:37.380] You can send lots of queries to it [16:37.380 --> 16:38.780] and you can do what's called a black box [16:38.780 --> 16:40.260] or an online attack. [16:41.380 --> 16:43.600] Different in facial recognition, [16:43.600 --> 16:47.140] enrollment is sort of like a second mini training step. [16:47.140 --> 16:49.760] If you can enroll new faces, [16:49.760 --> 16:52.460] you can think about possibly I could poison it, right? [16:52.460 --> 16:55.400] I enroll new embeddings with the wrong label [16:55.400 --> 16:56.800] and that'll confuse it [16:56.800 --> 16:58.980] when they go to do this nearest neighbor search. [16:59.580 --> 17:02.020] You can use something like this person does not exist, [17:02.020 --> 17:03.280] general adversarial networks [17:03.280 --> 17:06.460] and possibly just do a resource exhaustion attack, right? [17:06.460 --> 17:07.900] Cram it full of a whole bunch of faces [17:07.900 --> 17:09.820] that don't really exist. [17:10.420 --> 17:12.760] Again, there is a nearest neighbor search in this [17:12.760 --> 17:14.360] and even with computational tricks [17:14.360 --> 17:15.840] to speed up nearest neighbor search, [17:15.840 --> 17:18.220] that is still a somewhat expensive process. [17:18.260 --> 17:19.300] So potentially, [17:19.300 --> 17:21.660] if you can actually modify the enrollment step, [17:21.660 --> 17:23.480] you could bog it down at that point. [17:23.880 --> 17:26.440] If you can alter data in flight [17:26.440 --> 17:31.480] between the localization model and the embedding model, [17:31.480 --> 17:33.720] you could actually do a face only attack, right? [17:33.720 --> 17:35.440] Just modify only the face chip [17:35.440 --> 17:37.420] and do some sort of attack on that [17:37.420 --> 17:39.600] that will cause it to misidentify. [17:39.600 --> 17:42.000] If you can read the data in between the two models, [17:42.000 --> 17:44.460] you can try and attack the detection stage, [17:44.460 --> 17:45.580] the bounding box. [17:45.620 --> 17:46.380] And if you can, [17:46.380 --> 17:49.040] all you can do is give it an image and get a score out, [17:49.040 --> 17:50.960] then you're sort of stuck doing an end to end [17:50.960 --> 17:52.360] black box attack. [17:54.120 --> 17:56.200] So this is pretty straightforward. [17:56.200 --> 17:58.640] I am already behind where I wanted to be, [17:58.640 --> 17:59.980] so I'm not going to talk about it. [18:00.640 --> 18:02.580] This is on easy mode. [18:02.580 --> 18:04.660] I will talk a little bit about this. [18:04.720 --> 18:06.120] This is surprisingly hard, [18:06.120 --> 18:07.740] except the field is moving fast. [18:07.740 --> 18:08.980] Life comes at you fast. [18:08.980 --> 18:10.380] Yesterday at the talk, [18:10.380 --> 18:13.380] there was a presentation from someone who actually did this. [18:13.380 --> 18:14.500] They broke this. [18:14.600 --> 18:16.660] So the reference is there. [18:16.660 --> 18:19.140] Again, I'll post these slides online later. [18:19.140 --> 18:21.540] They have actually broken the bounding box [18:21.540 --> 18:22.900] and detection attack. [18:22.940 --> 18:25.260] Pretty, it's a nice hack. [18:25.260 --> 18:26.860] You should definitely check out this paper [18:26.860 --> 18:28.440] if you're interested in that. [18:28.880 --> 18:30.840] And then finally, there's the black box attack. [18:30.840 --> 18:34.740] This is perhaps unsurprisingly a pretty tricky to do. [18:37.180 --> 18:39.600] Realistically, you're not going to know, right? [18:39.600 --> 18:41.880] You don't know if your photo is being taken and analyzed. [18:41.880 --> 18:43.060] You don't have any detail [18:43.060 --> 18:45.180] about how that system actually works. [18:45.200 --> 18:47.720] And even if you try to dodge it or evade it, [18:47.720 --> 18:49.600] you're not going to be able to get feedback, right? [18:49.600 --> 18:51.460] I suppose you could go down to the casino floor [18:51.460 --> 18:53.980] and ask them really nicely if like they recognized you [18:53.980 --> 18:55.720] when you had the funny glasses on. [18:55.720 --> 18:57.280] I wouldn't put good odds on them [18:57.280 --> 18:59.040] actually letting you get away with that. [19:01.260 --> 19:04.540] So white box attack, really high-level outline. [19:04.540 --> 19:06.060] These are usually done with what's called [19:06.060 --> 19:08.620] gradient-based methods for these deep learning models. [19:08.620 --> 19:11.000] There is the fast gradient sign method. [19:11.360 --> 19:13.080] I believe that's Goodfellows. [19:13.080 --> 19:13.980] There's Saliency. [19:13.980 --> 19:15.360] I believe that's Papernose. [19:15.420 --> 19:16.780] Links are both there. [19:16.780 --> 19:19.340] The idea is basically you're using gradients [19:19.340 --> 19:20.340] produced by the model [19:20.340 --> 19:22.660] to find the most sensitive input features. [19:22.660 --> 19:23.580] So you're going to have individual pixels [19:23.580 --> 19:24.900] within the face tile. [19:24.900 --> 19:25.960] And then you're going to figure out [19:25.960 --> 19:27.720] how I can modify those pixels [19:27.720 --> 19:30.300] in a way that it will drive the model [19:30.300 --> 19:31.940] towards a poor classification. [19:32.340 --> 19:35.340] So I did a really lazy implementation of this. [19:35.340 --> 19:37.600] I basically just treated the perturbation [19:37.600 --> 19:38.840] as a PyTorch variable. [19:38.840 --> 19:41.040] I made up an L1, L2 penalty. [19:41.040 --> 19:42.740] I sort of set a prediction gap. [19:42.740 --> 19:44.900] So I said evade it by this much, but no more [19:44.900 --> 19:47.040] so that it doesn't go off [19:47.040 --> 19:50.240] and find the most bizarre facial deformation it can do. [19:50.240 --> 19:52.960] And then I just back-propped my way to glory. [19:53.260 --> 19:55.860] So, you know, use your built-in optimization toolkit [19:55.860 --> 19:58.840] within using a built-in optimizer within PyTorch. [19:59.680 --> 20:02.480] So if you do a gradient-based white box attack [20:02.480 --> 20:05.660] on only the face chip, you end up with these results. [20:05.700 --> 20:08.240] So walking you through this, it's kind of busy. [20:08.240 --> 20:10.400] In the upper left is the perturbed version [20:10.400 --> 20:12.760] and the original version of my face. [20:12.760 --> 20:14.580] So if you stare at it there, [20:14.580 --> 20:16.620] if you look at it really closely, [20:16.620 --> 20:19.340] you can see some minor differences between the two. [20:19.340 --> 20:21.280] But if I only showed you the one on the left, [20:21.280 --> 20:23.640] the perturbed one, you know, you'd probably say, [20:23.640 --> 20:25.220] yeah, that's actually a pretty clear, [20:25.220 --> 20:27.020] pretty clean photo of your face. [20:27.500 --> 20:29.120] Below it, the three panels below it [20:29.120 --> 20:30.660] are the red, blue, and green channels [20:30.660 --> 20:33.900] showing what the white box attack actually modified, [20:33.900 --> 20:35.660] which pixels and which channels. [20:35.840 --> 20:38.360] And then on the right-hand half, [20:38.360 --> 20:41.380] the test image is the one that is sort of, [20:41.380 --> 20:43.120] hey, can we identify this person? [20:43.120 --> 20:46.320] And then the next three photos, left to right, [20:46.320 --> 20:50.260] top to bottom, are the images in the registration set [20:50.260 --> 20:51.780] and the scores. [20:51.780 --> 20:53.840] So in this case, it said, yeah, [20:53.840 --> 20:56.640] I definitely look like Alvaro Nobola. [20:56.640 --> 21:00.660] I've got a sort of a similarity score of 0.65. [21:00.760 --> 21:04.060] The second highest similarity score was to my own face [21:04.060 --> 21:06.220] with glasses instead of without glasses [21:06.220 --> 21:10.060] and a similar similarity score of 0.45, right? [21:10.060 --> 21:12.680] So basically the short version of this [21:12.680 --> 21:14.760] is the white box attack worked. [21:14.760 --> 21:18.080] I was able to modify that specific image, [21:18.080 --> 21:19.260] those specific pixels, [21:19.260 --> 21:22.780] to actually give me an effective evasion. [21:23.920 --> 21:26.220] So outline of a black box attack. [21:26.220 --> 21:27.620] You can try proxy models. [21:27.620 --> 21:29.800] This essentially means you feed a whole bunch of data [21:29.800 --> 21:31.640] to the model that you're trying to attack. [21:31.640 --> 21:32.860] You get the outputs from that [21:32.860 --> 21:35.460] and you train a model to reproduce it. [21:35.560 --> 21:37.940] For reasons that I'll talk about in a few minutes, [21:37.940 --> 21:41.140] I'm skeptical that these will work terribly well [21:41.140 --> 21:43.260] against facial recognition systems. [21:43.260 --> 21:44.800] But if somebody knows differently, [21:44.800 --> 21:46.440] I welcome your input on that front. [21:49.220 --> 21:51.140] So in a lot of cases, [21:51.140 --> 21:53.440] we might not know which data we need to train [21:53.440 --> 21:54.420] which proxy model, right? [21:54.420 --> 21:56.160] We've got two models in that pipeline [21:56.160 --> 21:57.240] that we're trying to match up [21:57.240 --> 22:00.440] and it might not be obvious how to do it. [22:00.720 --> 22:02.700] So black box optimization, [22:02.700 --> 22:03.980] I just use a genetic algorithm [22:03.980 --> 22:06.320] because everyone loves a good genetic algorithm. [22:06.540 --> 22:08.440] I treated the perturbation as an Numpy array [22:08.440 --> 22:10.360] and then I GA'd my way to glory, right? [22:10.360 --> 22:12.880] So if you're interested and you care about it, [22:12.880 --> 22:13.900] I use the mu plus one [22:13.900 --> 22:15.700] where basically I just permute a single... [22:15.700 --> 22:18.000] I make a new population number each time, [22:18.000 --> 22:19.580] score it and it kicks out the worst one [22:19.580 --> 22:21.920] if it beats the worst member of the population. [22:23.000 --> 22:26.060] So again, same results, same ordering of things. [22:26.060 --> 22:27.440] The main difference here, as you can see, [22:27.440 --> 22:29.580] the perturbation is in fact a little bit noisier. [22:29.580 --> 22:30.920] It still looks pretty good, right? [22:31.200 --> 22:32.640] But it's not perfect. [22:32.700 --> 22:34.940] And you can see the channel differences down beneath [22:35.480 --> 22:37.760] have been impacted much more severely. [22:38.060 --> 22:42.340] These are all on the same scale as the previous image. [22:42.340 --> 22:45.200] But again, it actually has successfully managed to evade. [22:45.200 --> 22:47.940] So against the face chips only, [22:47.940 --> 22:50.680] white box and black box attacks are pretty direct, [22:50.680 --> 22:52.060] pretty straightforward to do. [22:53.580 --> 22:55.780] If you do a genetic algorithm, [22:55.780 --> 22:58.820] the results are definitely much more of a mixed bag. [22:59.120 --> 23:00.880] So this is end to end. [23:00.880 --> 23:02.640] And instead of doing just the face chip [23:02.640 --> 23:04.340] and running it just through the embedding, [23:04.340 --> 23:06.560] I take the full photo, [23:06.560 --> 23:08.420] I run it through the entire system [23:08.420 --> 23:09.940] and I look at the difference. [23:09.940 --> 23:10.800] And in this case, [23:10.800 --> 23:13.840] you can see that my implementation, at least, [23:13.840 --> 23:15.280] I don't claim that it's necessarily [23:15.280 --> 23:16.620] the greatest one out there. [23:16.620 --> 23:19.060] It actually does introduce a lot of noise. [23:19.060 --> 23:20.900] So it is recognizable, right? [23:20.900 --> 23:23.880] The photo on the left is still recognizably me, [23:23.880 --> 23:26.780] but it definitely clearly has been tampered with [23:26.780 --> 23:28.300] in some form. [23:28.300 --> 23:30.320] But again, it does successfully evade. [23:32.140 --> 23:33.560] So points to consider [23:33.560 --> 23:36.020] if you are launching these kinds of attacks, [23:36.020 --> 23:37.800] white box is the gold standard. [23:37.800 --> 23:39.660] This is the easiest way to do it. [23:39.660 --> 23:41.020] If you can do a white box attack, [23:41.020 --> 23:42.840] you should definitely do that. [23:43.460 --> 23:45.640] Black box attacks also work, [23:45.640 --> 23:47.860] but you're gonna be hammering that model API. [23:47.860 --> 23:49.260] And eventually someone's gonna be like, [23:49.260 --> 23:51.660] hey, this dude has uploaded over a thousand [23:51.660 --> 23:54.380] almost identical images to my API [23:54.380 --> 23:56.600] and keeps getting like different results out of them. [23:56.600 --> 23:58.000] What the hell's going on, right? [23:58.000 --> 24:00.300] So it's not exactly subtle. [24:01.760 --> 24:03.320] So what about transferability? [24:03.320 --> 24:05.660] This gets back to the proxy model attacks, right? [24:05.660 --> 24:07.700] So if I train a model on one system [24:07.700 --> 24:09.220] and I learned to evade one system, [24:09.220 --> 24:11.400] does it actually work on a different one? [24:12.340 --> 24:16.700] So I'm using this paper accessorized to a crime. [24:16.700 --> 24:18.260] I do not mean to pick on them. [24:18.260 --> 24:19.620] They did a very good job, [24:19.620 --> 24:22.200] wrote an excellent paper on using real world [24:22.200 --> 24:25.160] adversarial evasions against the VGG face model. [24:25.280 --> 24:26.800] Because they did such a good job [24:26.800 --> 24:28.400] and they provided such good information [24:28.400 --> 24:30.540] about how the model and attack was constructed, [24:30.540 --> 24:32.960] it made it easier for me to look at transferability. [24:32.960 --> 24:34.920] So this paper is excellent. [24:34.920 --> 24:37.700] If it seems like I'm being critical of it, I'm not. [24:37.700 --> 24:40.000] I'm doing something that they did not consider [24:40.000 --> 24:41.080] in their paper. [24:41.080 --> 24:42.800] But basically what they've got here [24:42.800 --> 24:45.840] is they've got these fancy little glasses frames. [24:45.840 --> 24:48.780] And you can see that basically the model [24:48.780 --> 24:51.240] does not identify the correct person. [24:51.240 --> 24:53.860] And I've identified the gentleman on the top row [24:53.860 --> 24:56.160] as being Carson Daly and the woman in the bottom row [24:56.160 --> 24:57.420] as being Russell Crowe [24:57.420 --> 25:00.820] on the basis of these funky glasses frames. [25:01.400 --> 25:02.740] Okay, so who would win? [25:02.740 --> 25:04.240] Some super smart academics [25:04.240 --> 25:07.660] or me just putting shit together that I found on GitHub. [25:08.700 --> 25:10.520] And basically this is, again, [25:10.520 --> 25:13.760] not that what their paper did is bad or doesn't work, [25:13.760 --> 25:17.140] but that transferability is a real headache [25:17.140 --> 25:19.940] with these kinds of evasions and these models. [25:20.720 --> 25:22.800] Basically the short version is no. [25:23.200 --> 25:26.480] So I've got six panels on the left, six panels on the right. [25:26.540 --> 25:29.360] The upper left panel is the perturbed panel. [25:29.360 --> 25:31.020] So that's what the evasion put on it. [25:31.020 --> 25:32.460] The panel below is the target [25:32.460 --> 25:35.000] who this evasion was supposed to be attacking. [25:35.180 --> 25:37.440] And then I've got the top four face chips [25:37.440 --> 25:41.300] from a registered training set that I made up. [25:41.300 --> 25:44.160] This is me using MTCNN and SphereFace, [25:44.160 --> 25:45.320] which was a couple of slides back [25:45.320 --> 25:49.260] to actually do this evasion. [25:49.260 --> 25:53.240] So what they did worked really great on the VGG face model. [25:53.320 --> 25:56.500] What I yellowed together from pre-trained models on GitHub, [25:56.500 --> 25:58.900] it actually did not successfully evade. [25:59.500 --> 26:02.020] If you throw it into Amazon's recognition demo, [26:02.020 --> 26:03.860] take the same photos, again, [26:03.860 --> 26:07.320] it does not give you a successful evasion. [26:09.300 --> 26:13.340] Finally, I got the glasses, the goggles, they do nothing. [26:13.340 --> 26:15.440] I got the glasses and I printed them out myself [26:15.440 --> 26:17.920] and I tried them and it actually worked, right? [26:17.920 --> 26:21.000] On my kind of bad pre-trained model. [26:21.220 --> 26:24.580] So it reclassified me as the gentleman in the upper right [26:24.580 --> 26:26.940] of the four plot image [26:27.660 --> 26:30.780] with a very slight edge over the target image. [26:30.780 --> 26:33.140] But again, I put it up through Amazon's recognition demo [26:33.140 --> 26:35.080] and it did essentially nothing. [26:35.860 --> 26:37.180] Okay, so wrap up. [26:37.180 --> 26:38.000] I'm a little over time. [26:38.000 --> 26:38.700] I apologize. [26:38.700 --> 26:40.940] I do know that I'm standing between you and lunch. [26:40.940 --> 26:44.200] Facial recognition is not normal image classification. [26:44.960 --> 26:47.900] Facial classification and recognition tools are out there. [26:47.900 --> 26:49.060] They're publicly available. [26:49.060 --> 26:51.340] You have pre-trained models available on GitHub. [26:53.400 --> 26:56.000] These differences make a lot of these attacks harder, [26:56.000 --> 26:58.220] but there are also new potential attack surfaces. [26:58.220 --> 27:01.920] So again, gradient-based attacks are your gold standard. [27:01.920 --> 27:04.880] They're gonna be pretty hard to deploy in practice. [27:05.020 --> 27:06.220] Exhaustion attacks are something [27:06.220 --> 27:08.900] I don't think I've seen anyone contemplate before. [27:08.900 --> 27:11.080] But again, if you know of research on that front, [27:11.080 --> 27:11.820] please let me know. [27:11.820 --> 27:13.120] I'd love to hear about it. [27:13.120 --> 27:15.620] And if you can tamper directly with embeddings, [27:15.620 --> 27:17.840] so screw around with the registration step, [27:17.840 --> 27:21.040] this is probably your best bet on an attack surface, right? [27:21.060 --> 27:24.120] Map the wrong embedding to the wrong label [27:24.120 --> 27:27.280] and have it identify the incorrect person. [27:27.880 --> 27:30.360] So finally, if you want to take a screen... [27:30.360 --> 27:32.400] This you might actually want to take a screenshot of [27:32.400 --> 27:34.400] if you don't want to wait for me to put the slides up. [27:34.400 --> 27:36.720] I have a Ready to Rock pre-trained system. [27:36.720 --> 27:39.220] This is MTCNN and SphereFace. [27:39.220 --> 27:41.720] It is available on Google Colab. [27:41.720 --> 27:44.300] There is a preview tiny URL that you can look there [27:44.300 --> 27:46.820] so you can see that I am indeed sending you to Google Colab [27:46.820 --> 27:48.680] and not somewhere else. [27:49.800 --> 27:52.760] The QR code should send you to the same place. [27:53.020 --> 27:55.660] This should work if someone wanted to try it [27:55.660 --> 27:57.880] during lunch and come back and yell to me [27:57.880 --> 28:00.320] if the permissions on the notebook are not set right, [28:00.320 --> 28:02.560] please do so, that would be awesome. [28:02.980 --> 28:04.900] I've tried it myself, it seems to work. [28:05.100 --> 28:06.460] I may have screwed something up. [28:06.460 --> 28:08.960] You open the link, you do file, open in playground mode, [28:08.960 --> 28:11.240] then it'll tell you that it won't save any changes [28:11.240 --> 28:13.120] unless you save a copy to your own account. [28:13.120 --> 28:16.000] It will take up a few megabytes in your Google Drive account. [28:16.000 --> 28:18.360] So if you're up against the wall on space, [28:18.360 --> 28:19.860] maybe don't do that. [28:20.860 --> 28:22.660] Anyway, I am contractually obligated [28:22.660 --> 28:25.540] to make you stare at this slide for exactly three seconds. [28:25.780 --> 28:28.440] And I will now be happy to take any questions. [28:52.500 --> 28:54.060] I have seen, so I have seen more. [28:54.060 --> 28:56.540] So the question was, there are some, [28:56.540 --> 28:58.860] there is some work that uses IR light [28:58.860 --> 29:01.380] to essentially do real world, [29:01.380 --> 29:03.440] real time adversarial perturbations on faces [29:03.440 --> 29:06.060] to try to mess up recognition. [29:06.060 --> 29:08.060] I know there's a lot of proof of concepts. [29:08.060 --> 29:11.120] I think Naomi Wu actually did one. [29:11.120 --> 29:12.980] She had a hat that shined light on her face [29:12.980 --> 29:15.020] that would screw up facial recognition systems. [29:15.400 --> 29:16.800] That was awesome. [29:16.840 --> 29:19.980] So there is work in that vein that's been done. [29:20.060 --> 29:22.520] I did not look at it specifically for this [29:22.520 --> 29:23.840] because I was focusing, [29:23.840 --> 29:27.160] trying to focus on stuff that was a little lighter lift. [29:27.900 --> 29:28.680] Please. [29:29.640 --> 29:30.800] I'm sorry. [29:32.060 --> 29:33.340] What about the juggalos? [29:33.340 --> 29:33.680] Yes. [29:33.680 --> 29:36.480] So one of the things that these models do tend to look at [29:36.480 --> 29:39.380] is sort of like light and dark patches and reflections. [29:39.380 --> 29:42.280] So yeah, juggalo makeup does indeed evade [29:42.460 --> 29:45.080] a lot of facial recognition systems. [29:45.760 --> 29:47.840] I am not part of that culture. [29:47.840 --> 29:50.080] So I don't really know like what makes a good juggalo face. [29:50.080 --> 29:52.220] So I didn't want to sort of step on anyone's toes. [29:52.400 --> 29:54.680] But yeah, look up juggalos and facial recognition. [29:54.680 --> 29:55.960] You'll find some good articles. [29:55.960 --> 29:56.920] I'm completely serious. [29:56.920 --> 29:59.540] Like it's exactly the kinds of perturbations [29:59.540 --> 30:02.560] that will screw up a good facial recognition system. [30:02.560 --> 30:05.380] So it's worth checking out if you're into this stuff. [30:14.000 --> 30:16.340] I literally have no idea what they have trained on. [30:16.340 --> 30:19.700] I wish I did, but I don't. [30:19.900 --> 30:24.120] I'm sure Amazon has access to a substantial corpus [30:24.120 --> 30:29.140] of high quality, relatively unbiased training data though. [30:29.140 --> 30:31.440] Yeah, it would shock me if they didn't. [30:33.080 --> 30:35.120] You mentioned you used a genetic algorithm [30:35.120 --> 30:36.700] to make a proxy attack. [30:37.040 --> 30:38.960] So what does that mean exactly? [30:39.100 --> 30:41.300] Oh yeah, so super high level. [30:41.300 --> 30:43.440] The question was, what does a genetic algorithm mean? [30:43.440 --> 30:46.040] So a genetic algorithm is sort of a bio-inspired [30:46.040 --> 30:47.180] type thing. [30:47.180 --> 30:50.540] The idea is basically you have a population of solutions [30:51.060 --> 30:54.400] and then you do, you generate a new solution [30:54.400 --> 30:56.960] by combining elements from a couple [30:56.960 --> 30:58.500] of high performing solutions, [30:58.500 --> 31:00.360] maybe making a couple of random tweaks [31:00.360 --> 31:04.380] and rescoring it to see if it actually improves on anything. [31:05.160 --> 31:09.660] So I think, I hate to, this isn't being condescending. [31:09.660 --> 31:12.420] The Wikipedia page is actually really good on it. [31:12.420 --> 31:14.200] It's got a good description of how they work [31:14.200 --> 31:15.100] and a couple. [31:15.100 --> 31:16.680] So it does, I think, have a section [31:16.680 --> 31:19.020] on the mu plus one approach that I used, [31:19.520 --> 31:21.400] which is nice because the mu plus one approach [31:21.400 --> 31:23.100] actually lets you put really tight controls [31:23.100 --> 31:24.480] over your query budget. [31:39.760 --> 31:44.560] So the question is, can you detect whether or not [31:44.860 --> 31:46.720] a general adversarial network face [31:46.720 --> 31:48.680] is a general adversarial network face [31:48.680 --> 31:51.160] or a real live human face? [31:51.180 --> 31:54.700] The answer to that is yes, probably. [31:54.700 --> 31:56.180] I know that there's been a lot of work [31:56.180 --> 31:57.720] on detecting that sort of stuff. [31:57.720 --> 31:59.600] It's not something that's really in scope [31:59.600 --> 32:01.800] for this facial recognition thing. [32:01.800 --> 32:04.620] One thing that is promising is using those generative models [32:04.620 --> 32:06.820] to try and poison your training data, [32:06.820 --> 32:09.560] or perhaps that's the resource exhaustion attack [32:09.560 --> 32:10.760] I was mentioning before. [32:10.760 --> 32:13.140] If you can generate millions of faces that don't exist [32:13.140 --> 32:15.440] and get your system to register them all, [32:15.440 --> 32:18.020] then suddenly you're bogging it down [32:18.020 --> 32:20.960] with trying to sort out the real faces from the bullshit. [32:27.410 --> 32:29.210] The countermeasure to perturbation attacks [32:29.210 --> 32:32.530] is use an unpredictable model at this point. [32:32.730 --> 32:34.670] Yeah, no, it's an excellent question. [32:34.670 --> 32:37.710] Like being able to think of this defensively [32:37.710 --> 32:40.510] in terms of what if people are using facial recognition [32:41.000 --> 32:44.810] as like a backstop biometric, for instance, [32:44.810 --> 32:46.490] and then perturbation attacks are essentially [32:46.490 --> 32:50.390] like a way to evade this biometric identification. [32:51.010 --> 32:53.730] Again, I know that there is academic work [32:53.730 --> 32:55.430] that's going on in this area. [32:55.430 --> 32:56.970] I am less familiar with it, [32:56.970 --> 32:57.970] so I don't want to give you an answer [32:57.970 --> 33:00.090] because I'm probably going to get it wrong. [33:00.370 --> 33:02.530] But yeah, people have actually looked at like ways [33:02.530 --> 33:06.410] to make image classification models [33:06.410 --> 33:09.110] more robust to adversarial perturbations. [33:09.850 --> 33:13.470] You can probably transfer a lot of that to this setting, [33:13.470 --> 33:15.450] but I don't know offhand of work [33:15.450 --> 33:17.390] that specifically addressed that. [33:19.450 --> 33:22.090] So I don't think we have any talks in here, [33:22.090 --> 33:24.350] so I'm happy to stay in chat if people want to, [33:24.350 --> 33:26.110] but we are definitely over time. [33:26.110 --> 33:28.330] And if y'all want to grab some lunch, go for it. [33:28.510 --> 33:29.430] Thanks again. [33:29.450 --> 33:31.310] Thank you.