[00:00.000 --> 00:04.980] Thank you all for coming. And thanks in particular to the volunteers who made this happen. I [00:04.980 --> 00:09.020] worked with them a bit, and they do a lot of work for this. So thanks, everyone. [00:10.740 --> 00:16.120] So I'm Jason Mancuso. I'm a research scientist at Dropout Labs. We're a startup focusing [00:16.120 --> 00:22.040] on privacy-preserving machine learning, building tools, and doing research to solve that problem, [00:22.040 --> 00:26.920] which I'll be talking about today. I'll mainly be talking about why we should care, what [00:26.920 --> 00:32.200] people are doing about it, and what we could be doing better. And this is going to be a [00:32.200 --> 00:35.660] bit more of a technical talk in the sense that it'll introduce you to a lot of topics [00:35.660 --> 00:40.760] you might not be familiar with. And it does, to some extent, assume a basic familiarity [00:40.760 --> 00:50.160] with machine learning. But I'll try to explain as much as possible while going through it. [00:50.160 --> 00:55.180] So first, just some motivations for why we should care. So this is a paper recently that [00:55.180 --> 01:01.600] came out from Google Brains Group, Niccolo Paperno. He argues that when thinking about [01:01.600 --> 01:07.640] security and privacy and machine learning, we should be taking inspiration from traditional [01:07.640 --> 01:12.740] computer security and not reinventing the wheel just because we're doing AI. And so [01:12.740 --> 01:19.300] he builds on these principles that were published in the 70s or 80s, the protection of information [01:19.300 --> 01:24.120] in computer systems by Salter and Schroeder. And these security principles, they dictate [01:24.640 --> 01:29.940] roughly half of them dictate that in order to make computer systems secure, we need to [01:29.940 --> 01:35.820] prevent excessive information flow within these systems. So then without even accounting [01:35.820 --> 01:40.400] for adversarial machine learning and all the attacks that we've probably heard about throughout [01:40.800 --> 01:45.300] the conference, I can confidently make the claim that traditional machine learning is [01:45.300 --> 01:50.780] not as secure in this way because there is excessive information flow in the form of [01:50.780 --> 01:58.780] privacy leakage. So really, privacy is a security problem. But not only that, privacy [01:58.780 --> 02:04.640] leakage creates bottlenecks in the existing machine learning process. So here's what I [02:04.640 --> 02:11.160] mean by that. Machine learning is a normal workflow, where on the left, you have some [02:11.160 --> 02:15.880] data source, some data generator, whether it's a public data set that's been compiled, [02:15.880 --> 02:23.340] or it's a private data set owned by, for example, a hospital or some corporation. And so [02:23.340 --> 02:27.800] traditionally, when we train machine learning models, we have to aggregate this data somehow, in a [02:27.800 --> 02:34.540] central place. We engage in training the model, we apply some learning algorithm to it. I'm, of [02:34.540 --> 02:38.940] course, hand waving away a lot of data science complexity. But once we're done with that, we [02:38.940 --> 02:42.360] produce this model and deploy it and put it into production, whether we're actually serving [02:42.360 --> 02:48.340] users who are a separate party or serving some internal internal party within the same [02:48.340 --> 02:51.780] organization, there's always going to be some deployment phase where you're running [02:51.780 --> 02:59.160] predictions. I mean, this is this is a kind of this is this doesn't fit every use case for [02:59.160 --> 03:05.380] machine learning, but it describes quite a few of them. And so one thing to notice is that there [03:05.380 --> 03:10.000] are multiple parties in the setup. But there is one point of attack that as an attacker, I only [03:10.000 --> 03:16.740] really need to to compromise this middle party, the aggregator, to gain access to every asset in [03:16.740 --> 03:25.720] this workflow. So this is just to say that, you know, we do machine learning on private and [03:25.720 --> 03:30.780] sensitive data, where there are concerns and machine learning does quite well. This is an [03:30.780 --> 03:38.560] example of skin cancer classification. But as a user on the right, of perhaps taking a picture of [03:38.560 --> 03:44.200] my mole and uploading it to a cloud somewhere, I might not be incentivized to to do this, right? [03:44.220 --> 03:50.540] Because if I do this, then I'm revealing whether I have cancer or not, to a third party, and I [03:50.540 --> 03:55.500] don't know how they're going to use that information. So this this leads to the concept of [03:55.500 --> 03:59.900] bottlenecks coming from privacy leakage in the process. And there are there are multiple [03:59.900 --> 04:04.760] different points where these bottlenecks occur. So first is actually getting the data for [04:04.760 --> 04:09.600] training the machine learning model. That can, you know, if you're if you're part of a [04:09.600 --> 04:14.500] securityware organization, a lot of times, that can be challenging, right? Going through all [04:14.500 --> 04:20.720] these hoops to get access to data is definitely a bottleneck. And as a result, we can't [04:20.720 --> 04:26.600] actually partner with external organizations to pool data that should describe the same [04:26.600 --> 04:32.200] phenomenon to train better models. In addition, the central party who's doing the actual [04:32.200 --> 04:37.960] training takes on a lot of risk by aggregating the data in this way, training machine [04:37.960 --> 04:43.000] learning model, and then deploying it. Because, of course, aggregating the data, if you're not [04:43.000 --> 04:49.920] careful, can lead to data breaches. And then once you deploy the system, you can't be sure how [04:49.920 --> 04:54.260] that system is going to be used and who's going to query it. And in which case, there could be [04:54.260 --> 05:00.700] attacks that people can do to extract information from that service. So this could be in the [05:00.700 --> 05:06.100] form of model duplication or model theft, where you've spent all this money creating this [05:06.100 --> 05:09.440] machine learning model and someone can come along and just through querying it, they can [05:09.440 --> 05:16.560] distill the knowledge that's been encoded in that machine learning model. But, of course, [05:16.560 --> 05:22.560] you can also perform attacks on machine learning models to extract the training data. For [05:22.560 --> 05:27.040] example, model inversion does this, where you try to optimize. Once you have a machine [05:27.040 --> 05:33.440] learning model, you can optimize for a specific case and then that will reconstruct the data [05:33.440 --> 05:39.060] point that was used in the training set. And I'll get into this a bit more as well. [05:39.600 --> 05:45.700] And finally, the incentive problem that I mentioned before is a bottleneck as well. [05:46.400 --> 05:52.080] Where if users aren't incentivized to use the service, it's not a good machine learning system. [05:54.000 --> 05:58.500] So, a few possibilities for how we can solve this. I'll just cover these lightly and then dive [05:58.500 --> 06:06.360] into them a little more deeply. First is this concept of sanitization, where if we could scrub [06:06.360 --> 06:12.640] the data at each point whenever it changes hands by adding noise, any single data point in that [06:12.640 --> 06:20.440] data set will be obfuscated or masked so that if I want to know something about a specific person, [06:20.440 --> 06:25.900] because of the additional noise, I can never be sure if what I'm seeing is their actual data or [06:25.900 --> 06:33.520] some obfuscation of that. Another possibility is that we can move some of these components [06:33.520 --> 06:39.260] to different parties. So, instead of bringing the data to the model, maybe I can bring the [06:39.260 --> 06:47.520] model to the data and train the model locally on device. Another possibility is encryption. [06:47.520 --> 06:54.000] If we could just encrypt data and process that data while encrypted and still learn from it, [06:54.640 --> 06:58.320] then we'd resolve a lot of these privacy problems that we have. [06:59.880 --> 07:04.900] So, I'm now going to go into how these high-level things that I've just mentioned are actually [07:05.960 --> 07:12.800] implemented in research and in production. And I'm going to do so based on these three [07:12.800 --> 07:17.740] privacy-preserving primitives. Differential privacy, federated learning, and secure [07:17.740 --> 07:23.680] computation. So, first, differential privacy is related to this notion of sanitization that I [07:23.680 --> 07:32.540] talked about, whereby adding noise, you can obfuscate the actual data. So, this is actually [07:32.540 --> 07:37.080] the definition of differential privacy. It is somewhat technical, so I'll try to explain it [07:37.080 --> 07:43.260] intuitively. So, assume we have some dataset and we're allowed to interactively run queries [07:43.260 --> 07:48.360] on that dataset as long as those queries aren't give me person A's data, right? [07:49.520 --> 07:54.620] So, what I'm going to do is I'm going to query the full dataset, maybe run some statistic over it, [07:54.620 --> 07:59.500] and I'll get that. And that includes this person's data, Alice's data. [08:00.060 --> 08:03.520] And so, then I can query that same database without Alice's data. [08:03.520 --> 08:08.240] And so, what happens when I subtract these two results is that I end up just with Alice's data, [08:08.240 --> 08:11.620] right? So, just preventing someone from accessing the single data point [08:11.620 --> 08:14.920] isn't enough to actually guarantee the privacy of that data point. [08:16.440 --> 08:20.920] So, now, with differential privacy, what we would do here is we would obfuscate each query [08:20.920 --> 08:27.640] with random noise. And then we construct that noise such that the expected difference between [08:27.640 --> 08:32.860] these two queries is always going to be as little as possible. So, statistically, zero. [08:33.520 --> 08:38.120] In practice, zero is not actually possible. So, we use this epsilon number that's slightly [08:38.120 --> 08:46.180] greater than zero. So, this is really cool because it allows us to actually interact with this [08:46.180 --> 08:52.720] dataset. And any time we take subsets of it, we can be sure that that is statistically [08:53.500 --> 08:57.340] negligibly different than other subsets, which means that we can protect our user's privacy [08:57.340 --> 09:02.740] in this database. Oh, and that randomized mechanism can also include [09:03.800 --> 09:08.820] arbitrary pre and post processing, which means that it could be the forward passive machine [09:08.820 --> 09:12.180] learning model or it could be the full learning algorithm that produces weights. [09:12.840 --> 09:17.800] So, this randomized mechanism is essentially just a black box that has some randomness in it. [09:17.800 --> 09:22.920] And as long as we can prove that that preserves privacy in this way, then we're good. [09:23.720 --> 09:26.720] Now, the problem here is that there is a tradeoff between privacy and utility. [09:27.340 --> 09:34.440] Here's a very simple example where I have some set, and every time I query this set, [09:34.440 --> 09:37.800] I'm going to add a little bit of noise from a normal distribution. [09:39.360 --> 09:43.720] And then this is the actual expected privacy loss, or this is the privacy loss [09:44.660 --> 09:52.520] of doing this, for example, with averaging. So, what happens as I take this number n to infinity, [09:52.520 --> 09:57.780] I make this outlier, or as I turn this last number into an extreme outlier, [09:58.580 --> 10:05.600] what happens is that the privacy cost, even after we add this little bit of noise, [10:05.600 --> 10:11.400] also goes to infinity, which means that in order to bound this thing, we need to actually [10:11.400 --> 10:17.620] take the noise to infinity as well. But if we take that noise to infinity, then we're adding [10:18.980 --> 10:24.080] arbitrarily more noise, and any statistic that we take from this set is going to be meaningless, [10:24.080 --> 10:29.520] because it's just completely noisy now. So, this is a problem in general for databases, [10:29.520 --> 10:33.800] but for machine learning, it's actually quite nice, because in machine learning, [10:33.800 --> 10:38.480] we care about general patterns. We want to pull general patterns from large data sets, [10:38.480 --> 10:45.120] and we don't care so much about outliers and unique points. We usually remove those if possible, [10:45.120 --> 10:54.160] at least for many applications. So, what's nice about this approach is that we have a [10:54.160 --> 11:00.280] mathematically rigorous way of proving that our system is private in this way. And in this way, [11:00.280 --> 11:06.180] when I say that, this notion of privacy is actually very strong. It protects against [11:06.180 --> 11:11.260] a broad range of attacks, like membership inference, re-identification attacks, [11:11.260 --> 11:13.540] set differencing, model inversion, these types of things that are in the literature. [11:15.360 --> 11:20.300] And it also gives us this intuitive notion of a privacy budget. This epsilon number that we [11:20.300 --> 11:29.060] talked about, how negligible different statistics are or different predictions are, that becomes a [11:29.060 --> 11:34.080] privacy budget, because if you query the same query a number of times, the randomness will [11:34.080 --> 11:38.100] eventually, because it's zero-centered noise, will eventually target in on the right value. [11:38.100 --> 11:42.080] So, we can say, as a user, you can only interact with this data set or this model [11:42.880 --> 11:47.960] so many times before you've maximized, you've outdone your privacy budget, [11:47.960 --> 11:50.320] and you can no longer interact with the system. [11:52.400 --> 11:59.520] So, there's a lot of machine learning research going into this. Just from Google's group, [11:59.520 --> 12:04.640] there's DPSGD, which the idea here is that you can add the noise, instead of adding it to the data, [12:04.640 --> 12:09.160] you can add it to the gradients that are produced during stochastic gradient descent [12:09.160 --> 12:13.380] while training your model, and then you can prove that this actually produces weights that [12:13.380 --> 12:16.940] are differentially private, that don't leak anything about the underlying data set. [12:17.860 --> 12:23.640] Pate is another one. This uses model ensembles and distilling information from those ensembles [12:23.640 --> 12:30.160] in a way that the final model is differentially private. There's a lot of research going on into [12:30.680 --> 12:34.340] new definitions for this kind of thing, differential privacy, and providing new [12:34.340 --> 12:37.980] proof techniques, and then also coming up with new mechanisms, new randomized mechanisms [12:38.640 --> 12:42.320] to improve the privacy utility tradeoff that I talked about. [12:43.540 --> 12:47.400] But some open questions. I mean, differential privacy is a very strong guarantee, but it's not [12:47.400 --> 12:51.920] everything. For example, if other users are contributing data to train a model, [12:51.920 --> 12:57.120] I don't need to actually contribute my data to that in order to experience privacy loss. People [12:57.120 --> 13:02.040] can just run that model once it's trained on me, and then I've experienced privacy loss that's [13:02.040 --> 13:08.440] contagious through those other people. We currently really don't have any solutions to [13:08.440 --> 13:16.360] this yet, but it is a very big open question. So differential privacy, it does solve some of [13:16.360 --> 13:22.060] these bottlenecks. So data access, you can scrub data at any point, you can scrub any component of [13:22.060 --> 13:27.480] the system with noise, and then prove with differential privacy that it preserves privacy. [13:28.080 --> 13:31.780] But the problem is that if you do this too much, if you add too much noise, [13:31.780 --> 13:37.140] the utility of the whole system kind of falls apart. So maybe the user is no longer incentivized [13:37.140 --> 13:43.480] to use your service, and it's pointless, right? So that moves us towards different primitives. [13:43.860 --> 13:48.280] One that I'll talk about now is federated learning, where we actually just take the model and [13:48.280 --> 13:52.760] train it on device. Google is really well known for this. They do this on [13:53.600 --> 14:01.140] thousands, millions of devices. And that's a very specific use case. When you do that, [14:01.140 --> 14:09.000] you have low availability data owners or parties with low resources and low bandwidth. [14:09.520 --> 14:14.460] And so this is kind of a very tricky way of doing on-device learning. But in general, [14:14.460 --> 14:19.140] you can do this. You can imagine doing this between five or 10 hospitals, in which case they [14:19.140 --> 14:24.360] can ramp up servers with GPUs and have strong network connections between them and always be [14:24.360 --> 14:30.720] available. So this is actually a viable avenue for training machine learning models in a non-standard [14:30.720 --> 14:37.620] way. So what's nice about this is we don't centralize the raw data, which removes some [14:37.620 --> 14:44.500] of the excessive information flow I talked about. In particular, the data access problem, [14:44.500 --> 14:51.040] because you never have to centralize it. And perhaps users are incentivized to use your [14:51.040 --> 14:56.160] service if they know that you're only doing the predictions on device and they're never [14:56.160 --> 15:03.220] actually sending their data to you. But the problem is that our risk management is not [15:03.220 --> 15:09.720] actually that strong. And there's no guarantee that me as the designer of the service isn't [15:09.720 --> 15:15.540] actually going to peek at your data when I want to or need to. So we have no privacy guarantee [15:15.540 --> 15:22.260] like we had in differential privacy. And the other problem is that the model is exposed. [15:22.260 --> 15:26.600] When we send the model to training on these arbitrary data owners, we now have to treat them [15:26.600 --> 15:32.120] as adversaries, because they could potentially try to influence that process in a way that's [15:32.780 --> 15:39.200] advantageous to them. Or assuming, you know, if you're training a machine learning model [15:39.600 --> 15:44.080] amongst a bunch of parties, at some point, someone, one of those parties is going to end up [15:44.080 --> 15:49.620] with a model that is essentially the same as the final model, which means this asset that you've [15:49.620 --> 15:57.320] trained is now up for grabs. So this is not an ideal approach, but it does offer maybe some [15:57.320 --> 16:04.640] additional privacy that we don't have in the current paradigm. Okay. So what if we could try [16:04.640 --> 16:08.440] to accomplish the same thing we're trying to do with federated learning, but add in some kind of [16:08.440 --> 16:13.640] privacy guarantee back without maybe adding so much noise that the service doesn't work anymore. [16:13.640 --> 16:18.780] And this is kind of the notion behind secure computation. This is research from the 80s. [16:20.800 --> 16:27.700] The general idea is how can we compute a publicly known function while the inputs and outputs of [16:27.700 --> 16:32.660] that function are kept private? And private here is usually defined similarly to how it is in [16:32.660 --> 16:39.240] standard encryption, like in communication encryption, for example. So again, just to [16:39.240 --> 16:43.500] reiterate that, we have this publicly known function, and we want to evaluate it without [16:43.500 --> 16:49.180] knowing the inputs and outputs necessarily. And this function could be the forward pass of [16:49.180 --> 16:53.260] machine learning model, or it could also be the entire learning algorithm, right? So we can do [16:53.260 --> 16:59.240] training or inference in this way, if we can do so. And how we actually do it is we find some [16:59.240 --> 17:06.740] function that is homomorphic through F. And this just means that you can encrypt the inputs and [17:06.740 --> 17:10.840] run the function the same way and end up with an encrypted output that you can then decrypt. [17:10.840 --> 17:16.520] That's this bottom line. You have this encryptor and this decryptor. The encryptor is homomorphic [17:16.520 --> 17:20.780] through the function. The decryptor is cryptographically hard to determine unless you have [17:21.460 --> 17:27.560] some of the inputs to the function. And the rest of this talk, I'll refer to this as like [17:27.560 --> 17:33.260] the homomorphic paradigm for machine learning, because it's the dominant one. There are actually [17:33.580 --> 17:38.980] a lot of different ways to do this secure computation. There are a lot of techniques, [17:38.980 --> 17:42.580] and they all have different trade-offs. So the main takeaways of this is just that [17:43.180 --> 17:46.780] there are a lot of them. They're not directly comparable because they all have [17:46.780 --> 17:51.320] slightly different threat models. There is no silver bullet, and actually most state-of-the-art [17:51.320 --> 17:57.840] protocols are using some combination of these different approaches. We'll focus in a bit on [17:57.840 --> 18:02.580] secret sharing just to demonstrate how this applies to machine learning. So for example, [18:02.580 --> 18:10.220] if you wanted to run inference on a simple linear model without exposing the data privacy, [18:10.220 --> 18:15.000] you could encrypt the inputs to the data. Here we call it secret sharing. What we're going to do is [18:15.000 --> 18:19.880] we're going to take a little bit of randomness and subtract it from the data point. That [18:19.880 --> 18:25.220] randomness is then... it's called a one-time pad. It's extremely secure. Now we have three [18:25.220 --> 18:29.080] components. We have the original data point, and we have these two masked versions of it. [18:29.260 --> 18:34.540] So if I want to compute this forward pass, this linear regression with someone, I send them one [18:34.540 --> 18:40.860] of those shares. We essentially do a public multiplication with the weights, and then a [18:40.860 --> 18:47.420] private addition between the components in this vector. This is just a simple dot product. [18:47.420 --> 18:53.100] And what it ends up doing is we can end up with an encrypted version of the final result. [18:53.100 --> 18:58.180] And so if we reconstruct, if we send the shares of that output back to each other, [18:58.180 --> 19:02.360] we can reveal the answer of the machine learning model's inference. [19:03.400 --> 19:07.120] And we can actually do this while securing the weights, too. We can just treat the weights as [19:07.120 --> 19:13.200] another input to this function of a dot product and do it just like that. It gets a little more [19:13.200 --> 19:19.240] complicated, and it gets slower, but it is possible. And so this matrix math is actually [19:19.240 --> 19:25.460] really conducive to secure computation, which is why this is actually a potential approach that [19:25.460 --> 19:31.340] we could do to do this and scale this. So once you move past simple dot products, [19:31.340 --> 19:36.620] you can actually scale this up to larger models and then do a lot of interesting things with it. [19:36.620 --> 19:41.880] So past just prediction, you can do training. This is an example of server-aided training, [19:41.880 --> 19:47.380] where all the data sources on the left, instead of aggregating their plain text data, [19:47.380 --> 19:53.660] they will encrypt the data and send it to these two servers. And the two servers now will engage [19:53.660 --> 19:57.820] in some computation with each other. They do a lot of communication back and forth to be able to do [19:57.820 --> 20:03.740] this, but in the end result, you end up with a shared machine learning model that is kept private. [20:03.740 --> 20:09.300] That is where the final party who wants to deploy this model never had access to the [20:09.300 --> 20:16.520] actual raw data. They only had access to an encrypted version of it. So what's nice here [20:16.520 --> 20:20.700] is that we're able to run machine learning models on encrypted data. What's bad about this in [20:20.700 --> 20:24.820] particular with secret sharing is that there's the possibility that these two servers will collude [20:24.820 --> 20:30.780] with each other to reveal the data and break the privacy guarantee. So there are secure [20:30.780 --> 20:35.780] computation techniques without that. That's just one particular one that's a problem. [20:37.800 --> 20:44.340] And so instead of centralizing the encrypted data on these two servers, you could think of [20:44.340 --> 20:49.160] just doing the multi-party, the secure computation between these parties directly, [20:49.160 --> 20:53.220] and then never centralizing any data. And you can do this just fine. It just gets slower. [20:56.000 --> 21:02.540] So this research field has a long history. On the left here, we have mainly research papers [21:02.540 --> 21:06.400] that are applying secure computation to machine learning, but secure computation has a long [21:06.400 --> 21:14.240] history before machine learning was during the AI winters, right? And on the right, we have some [21:14.240 --> 21:18.740] general secure computation frameworks that people have implemented machine learning algorithms in [21:18.740 --> 21:24.800] on top of. And on the bottom, we have these two specialized projects that are actually, [21:24.800 --> 21:29.660] like, kind of academic C++ libraries. They're trying to build privacy preserving [21:29.660 --> 21:34.640] machine learning primitives into the frameworks that people are familiar with. [21:35.060 --> 21:41.140] In particular, TensorFlow and PyTorch. And I'll talk a little bit about that more later. [21:42.500 --> 21:47.040] So some open questions around secure computation. As I mentioned a few times, [21:47.570 --> 21:54.100] it is extremely slow to do this. Right now, we can't actually scale this to, for example, [21:54.100 --> 22:01.480] 152 layer neural network. We can do pretty well, but that's currently out of reach. [22:01.560 --> 22:06.260] So the question then becomes, can we ever account for that? Can we make that cost, [22:06.260 --> 22:12.240] that extra performance cost, marginal as opposed to really central? [22:14.660 --> 22:18.060] But if not, I mean, secure computation for machine learning can still enable [22:18.780 --> 22:25.840] applications of machine learning that currently aren't possible today. Just because [22:26.800 --> 22:32.160] of privacy concerns. For example, regulatory, competitive, or sensitivity issues. [22:32.980 --> 22:40.640] And so, but the question to maybe or to answer this question about marginal cost, [22:40.640 --> 22:46.140] can we combine MPC with other approaches that are faster to maintain some of its privacy guarantee [22:46.140 --> 22:55.240] without totally ruining the speed of machine learning? And there's a good example that Google [22:55.240 --> 22:59.060] put out there called secure aggregation, where they apply this to federated learning to give [22:59.060 --> 23:06.020] it some kind of privacy guarantee. And similar to what people are doing with differential privacy [23:06.020 --> 23:14.640] now, can we think of alternative definitions for privacy and security that allow us to perform this [23:14.640 --> 23:18.600] in a more performant way or to run machine learning in a more performant way while still [23:18.600 --> 23:23.100] preserving that notion of privacy as opposed to the strong information theoretic privacy that [23:23.100 --> 23:28.300] we see from secure computation? And then that's some of what I want to talk about. [23:28.700 --> 23:32.360] That's part of my research as well, is that I'd like to answer this question. [23:33.260 --> 23:40.300] So just to summarize real quickly on secure computation. So what it does is it gives us [23:40.300 --> 23:46.960] very strong guarantees for accessing data and preventing unfettered access to data, [23:46.960 --> 23:51.820] which helps with the data access problem, with the risk management problem, and also with the [23:51.820 --> 23:56.080] incentive problem, because you can do predictions in this way and have formal guarantees around [23:56.080 --> 24:00.960] the user's privacy. It does not actually prevent these differencing attacks and model inversion [24:00.960 --> 24:05.820] attacks that I talked about with differential privacy. But because differential privacy works, [24:05.820 --> 24:13.840] we can combine it with MPC or secure computation to actually get a full privacy preserving workflow [24:13.840 --> 24:20.440] with full strong information theoretic guarantees for preserving privacy of the different parts of [24:20.440 --> 24:27.560] the system. Okay. So now that I've talked about the primitives and what people have been doing [24:27.560 --> 24:34.920] for the past 20 years, let's look a bit at current research, what's happening now, [24:36.700 --> 24:43.600] and how we should prioritize them. So big focus right now is on designing systems and tools that [24:43.600 --> 24:51.280] make this easier to use. This is a paper that we produced. It's doing secure computation in [24:51.280 --> 24:58.360] TensorFlow, which is, of course, the dominant deep learning framework, largely swallowing up [24:58.360 --> 25:04.920] more and more of the ecosystem as Google marched it out. And so what we were able to do is use [25:04.920 --> 25:11.880] the distributed computation engine in TensorFlow to perform secure computation through secret [25:11.880 --> 25:18.960] sharing. And we found that because they've put so much work into that distributed orchestration, [25:18.960 --> 25:22.860] it's actually a very convenient way of expressing these secure computations, [25:22.860 --> 25:28.860] and it's extremely efficient. So this is on GitHub. It's open source. You can check it out. [25:28.860 --> 25:35.760] And Google themselves has published a few code libraries around this stuff. [25:35.840 --> 25:40.120] On the left, Google's federated learning team has produced TensorFlow federated, which is all [25:40.120 --> 25:44.960] about doing federated learning in TensorFlow. On the right, TensorFlow privacy, which is more [25:44.960 --> 25:48.800] around differential privacy and training differentially private models. So now these [25:48.800 --> 25:53.360] three primitives are each available inside of TensorFlow. If you're familiar with that, [25:53.360 --> 25:57.800] you can play with these. They're not totally integrated yet, but we're working on it. [26:01.640 --> 26:05.780] Another thing that we just did recently was a different kind of secure computation. It's [26:05.780 --> 26:10.140] called homework encryption, which is much closer to public-private key cryptography, [26:10.140 --> 26:14.940] but just designing that crypto system so that you can still do the computations. [26:15.400 --> 26:19.800] Microsoft has a really well-known package called SEAL. It's highly optimized for doing this. [26:19.980 --> 26:24.660] And we were able to bridge TensorFlow with Microsoft SEAL so you can do homework encryption [26:24.660 --> 26:29.660] as well as opposed to just multi-party computation. And then we've also experimented [26:29.660 --> 26:34.800] with deploying TensorFlow models in secure enclaves and trusted execution environments, [26:34.800 --> 26:43.260] in particular, Intel SGX. And so we have a project out that actually won a Google and Intel [26:44.280 --> 26:49.480] confidential cloud computing competition. So that's pretty cool to check out. [26:49.480 --> 26:55.480] And then there's another paper kind of doing a similar thing from a group or community called [26:55.480 --> 26:59.580] OpenMind. It's currently probably the largest community of people interested in privacy [26:59.580 --> 27:04.820] preserving machine learning. It's run by Andrew Trask, who is a research scientist at D-Mind [27:04.820 --> 27:10.660] and a student at the University of Oxford. And this is essentially [27:11.940 --> 27:16.960] building these three primitives into a system that's integrated from the beginning. [27:16.960 --> 27:21.280] Whereas these TensorFlow projects have kind of started off in different groups, [27:21.700 --> 27:25.780] so they exist. They're pretty performant, but they're not well integrated. [27:26.140 --> 27:31.500] This project is more around having an ecosystem that's very highly integrated with itself. [27:32.120 --> 27:40.040] And so I was involved in the early days of this one, too. And it was recently featured as a free [27:40.040 --> 27:46.660] course on Udacity, sponsored by Facebook. And if you're interested in playing around with these [27:46.660 --> 27:53.100] primitives in a way that's really accessible, you can take this course for free. And it'll [27:53.100 --> 28:00.180] introduce you to these techniques using PyTorch, which is the system that we built in this paper. [28:02.120 --> 28:05.480] So beyond systems and tools, there are some larger questions that we still have to figure [28:05.480 --> 28:11.120] out as a community. The question of centralization is, of course, a big one. [28:12.000 --> 28:16.100] If we're going to centralize things, how much should we centralize and how should [28:16.100 --> 28:21.540] we centralize them? Unfortunately, this question has become quite heavily skewed with a lot of the [28:21.540 --> 28:27.480] blockchain hype train. So for example, SingularityNet, if you've seen Sophia the Robot, [28:27.480 --> 28:31.440] they're all about this, combining blockchain with AI in a decentralized way. And [28:32.220 --> 28:40.560] that can be distracting, for sure. But one good thing about this is that with the blockchain hype [28:40.560 --> 28:45.440] has come this interest in economics and machine learning and their combination. [28:45.880 --> 28:50.400] So if everyone had control over their personal data through privacy-preserving machine learning, [28:50.400 --> 28:55.900] it could be possible that data would turn into a liquid asset, which has pretty strong implications [28:55.900 --> 29:02.060] for how we do machine learning now and the notion of a data economy or a data marketplace. [29:04.160 --> 29:08.720] This then makes you wonder how you might price a trained machine learning model, [29:08.720 --> 29:12.900] or how you might value the underlying training set that was used to produce that model. [29:13.960 --> 29:18.220] So corporations estimate the cost and value of machine learning models all the time, [29:18.220 --> 29:24.500] but no one's really pricing data in this context. So that's kind of a nice open area that was [29:24.500 --> 29:32.060] recently brought up in this ICML paper from 2019. It was from a group at Stanford. It's called [29:32.720 --> 29:39.460] DataShapely, estimating the valuation of data. And what they found is that it's really interesting [29:39.460 --> 29:45.540] that data that's outliers are worth less than data that's representative of the pattern you're [29:45.540 --> 29:50.260] trying to learn, which is somewhat not surprising, but it's also really helpful. Because as I [29:50.260 --> 29:57.360] mentioned before, differential privacy is really strong unless you have these outliers. So what [29:57.360 --> 30:04.060] turns out to be valuable data lends itself well to differential privacy and the utility privacy [30:04.060 --> 30:11.700] trade-off that I mentioned before. This is super cool. I love this paper. And it's really unfamiliar [30:11.700 --> 30:17.080] to me as a machine learning person because it focuses on estimating economic values and stuff, [30:17.080 --> 30:23.400] but I will come back to it in a bit. So moving on to secure computation, this is like... [30:23.400 --> 30:27.160] with differential privacy and secure computation, these are probably the two main [30:31.000 --> 30:34.820] strong guarantee, big primitives that we would really like to see [30:36.340 --> 30:40.340] all machine learning done in, if it could be, right? Because they're very secure. They're very [30:40.340 --> 30:46.120] strong. And the main problem is just that we can't scale them to all the applications that we see [30:46.120 --> 30:55.140] today. So we do have a kind of slight advantage in machine learning. I mean, so the timeline here [30:55.140 --> 30:58.880] is essentially that, you know, you have these general secure computation techniques and [30:58.880 --> 31:03.320] frameworks, and people are just optimizing those for generic computation. Then when people started [31:03.320 --> 31:06.720] applying it to machine learning, they realized that, oh, well, all these optimizations are [31:06.720 --> 31:10.700] actually really convenient for matrix math and then the stuff that machine learning uses. [31:11.540 --> 31:17.120] And then now actually it's going... so people were saying, all right, how can we mix and match [31:17.120 --> 31:20.200] these different protocols to improve the performance for machine learning models? [31:20.300 --> 31:23.240] But now we're going to the point where we're saying, well, how can we tweak the machine [31:23.240 --> 31:27.660] learning models to make it more efficient in this encrypted space? That's a lot of the work [31:27.660 --> 31:35.740] that we've done at Dropup. So for generic secure computation, it's unacceptable for a function to [31:35.740 --> 31:42.320] evaluate differently than it would have in the plain text. But for machine learning, we don't [31:42.320 --> 31:47.980] really care about specific examples because we're already approximating some ideal function. [31:48.120 --> 31:53.500] So if it's better to just find some other approximation that runs more efficiently, [31:53.500 --> 31:58.320] we can do that as long as the performance is roughly the same. So we're seeing quick wins [31:58.320 --> 32:02.460] by just adapting machine learning, tweaking, for example, the activation functions we use, [32:02.460 --> 32:06.780] going from max pooling to average pooling or something like this in a deep neural network. [32:06.780 --> 32:12.580] And we're seeing big wins there. So then the question becomes, is there an upper bound on [32:12.580 --> 32:20.620] those quick wins? And so I tried to formalize this question. I phrased it as this no free lunch [32:20.620 --> 32:27.360] hypothesis. Essentially just given this machine learning algorithm, can you find a roughly [32:28.000 --> 32:34.480] equivalent version of it in the sense of runtime, but also in its security? [32:35.140 --> 32:41.100] Sorry. In terms of runtime and in terms of generalization performance, but with the [32:41.100 --> 32:49.380] requirement that it can be computed securely. And the difference is negligible. So this is that in [32:49.380 --> 32:57.120] pictures. In theory, anything that you can compute in plain text should be computable in a secure [32:57.120 --> 33:05.240] way. But in practice, efficiency just constrains what we can actually do. But if this hypothesis [33:05.240 --> 33:09.980] were to be true, then that actually wouldn't be the case. At least for machine learning. [33:09.980 --> 33:14.780] There would always be some slightly different machine learning model that runs as fast, [33:14.780 --> 33:20.780] but securely. So the problem with this is that the way we prove security in MPC [33:20.780 --> 33:29.400] does not lend itself well to this. This is an undecidable statement when you look at how we [33:29.400 --> 33:34.680] prove security. It's called the simulation paradigm, if you're interested in that. [33:35.520 --> 33:40.440] So maybe we need a new concept of security to be able to actually answer this question in a way [33:40.440 --> 33:46.820] that's helpful. So just to reiterate one thing here, with federated learning and secure computation, [33:46.820 --> 33:50.840] we have this threat model dilemma where the one that scales doesn't have a strong security [33:50.840 --> 33:55.420] guarantee. The one that doesn't scale does. And how do we reconcile this? [33:58.660 --> 34:05.340] I would propose, what I am proposing, is to analyze the incentives of everyone in this [34:05.340 --> 34:11.220] machine learning game, treat it as an adversarial game where anyone could steal the other person's [34:11.220 --> 34:17.900] asset if it's worth their time. So if you knew the utility function of each party in this [34:18.420 --> 34:24.780] private machine learning game, instead of relying on computational hardness and information theory, [34:25.500 --> 34:29.080] you can rely on the fact that they're motivated and that you know their motivations. And then [34:29.080 --> 34:35.260] you can use game theory to prove security. And so because you understand, that's only because [34:35.260 --> 34:40.800] you can understand their motivations, and also only because you can price the different components [34:41.220 --> 34:47.900] in this system, in particular data and models. If you can price those, you can do this. Now, [34:47.900 --> 34:51.680] that's where the details lie, and that's where we still need to figure things out. [34:51.680 --> 34:55.840] But this has a long history as well, actually. It's called rational cryptography. [34:56.880 --> 35:02.300] Now, it failed to take hold because it was trying to solve generic cryptography problems. [35:02.700 --> 35:09.740] And utility functions are extremely hard to estimate in those generic cases. But as I've [35:09.740 --> 35:13.800] been saying, in private machine learning, we only ever need to estimate the utility of those [35:13.800 --> 35:19.520] two things, data and models, or pieces of models. And we already have ways of doing this in both [35:19.520 --> 35:28.340] cases. So if we can do this, it could give us NPC protocols that are faster, but still provably [35:28.340 --> 35:35.060] secure. And we can use this to drive security guarantees for federated learning, in particular [35:35.060 --> 35:40.620] to see just how weak that guarantee is for a specific use case. [35:43.020 --> 35:51.500] So, in conclusion, privacy is a security problem. That security problem creates leakages, [35:51.500 --> 35:55.040] or bottlenecks, rather, in the current paradigm of machine learning. [35:56.060 --> 35:59.720] And these techniques that I've been talking about, differential privacy, federated learning, [35:59.720 --> 36:05.540] secure computation, can alleviate those bottlenecks, if you allow them to. The field [36:05.540 --> 36:09.900] is really wide open. There's not many people working on this, but it is a very exciting area [36:09.900 --> 36:15.300] to be in. And there are now packages and tools that you can pull down from GitHub and play around [36:15.300 --> 36:20.640] with this stuff on your local computer in a matter of minutes. To me, that's like a really strong [36:20.640 --> 36:26.260] recipe for people in security and machine learning to experiment with and just play with this stuff. [36:26.260 --> 36:31.140] So, thank you for your time. I've included some resources, and we'll get these slides up [36:31.140 --> 36:33.880] so you can play around with it if you want. Thanks. [36:42.110 --> 36:46.350] So, have you thought about the... could you use any of this to detect data? [36:47.050 --> 36:58.560] Yeah. So, actually, unfortunately, I would say... I mean, detection is hard. [36:59.820 --> 37:03.480] In particular, for federated learning, this is a huge problem, because you're just sending the [37:03.480 --> 37:07.500] out. They can do whatever they want. They can optimize it however they want. They can feed [37:07.500 --> 37:13.080] with whatever data they want. There are defenses. So, this field is called Byzantine Resilient [37:13.080 --> 37:18.660] Machine Learning. It's still new as well. What's nice about secure computation, though, [37:18.660 --> 37:24.400] is that you can force... you can construct the protocol so it's impossible for people to [37:24.400 --> 37:31.520] add computation to the function evaluation. So, they can only ever follow the protocol in lock [37:31.520 --> 37:36.300] step. And if they deviate at any point and try to modify the result in a way that's [37:36.300 --> 37:43.540] unanticipated, the protocol will just break. It will just not work. This is the difference [37:43.540 --> 37:50.000] between passive security and active security in the field. So, there are some defenses. [37:50.060 --> 37:54.320] And even in federated learning, for example, at the aggregation step, where you aggregate the [37:54.320 --> 38:00.920] different parties' updates, instead of just doing an average, you can do the median of those updates. [38:00.920 --> 38:05.640] And then the median is much more robust to these outliers. That would much more likely be... [38:06.680 --> 38:11.760] data poisoning. Poison data would be much more likely to be an outlier relative to the [38:11.760 --> 38:25.650] distribution. So, that's kind of the current trend around that. Yeah, but to push a median, [38:25.650 --> 38:31.870] you have to go really far, right? You have to actually... you have to control, like, a lot of [38:31.870 --> 38:36.650] the data. You can't just do it with one point. You have to do it with a large subset. So, yeah, [38:36.650 --> 38:44.230] it's... so, you can get resiliency up to, like, a third or a half of the parties. But going past [38:44.230 --> 38:49.490] that is extremely difficult. So, secure computation, that's not the case. You can do... [38:49.490 --> 38:52.550] if there's n parties, n minus one of them can be corrupt, and you still [38:52.550 --> 39:00.330] cannot break security. So, that's kind of another nice feature of it. Yeah. Yep. [39:31.830 --> 39:38.090] Yeah. So, the question was, why are some models more efficient than others in the encrypted space, [39:38.090 --> 39:44.730] essentially, right? Well, the answer... I mean, it depends on which technique you're using. [39:45.310 --> 39:53.730] So, there's this big list of them. This one. So, that's actually only true for these [39:53.730 --> 39:58.850] three on the right. Secure enclaves can handle arbitrary computation, and it's [39:58.850 --> 40:04.370] roughly as fast as regular. And the problem there being that there are demonstrated side [40:04.370 --> 40:10.530] channel attacks on these enclaves. So, they're not as secure, potentially, as the ones on the right. [40:11.630 --> 40:15.230] And the ones on the right have different operations that they're optimized for. So, [40:15.230 --> 40:20.510] garbled circuits is really efficient for comparing items. So, if you essentially build a Boolean [40:20.510 --> 40:24.210] circuit, and you scramble it in a way that's privacy preserving, and then you evaluate that [40:24.210 --> 40:29.210] circuit, which lends itself really well to taking maximums and stuff like that. But for [40:30.150 --> 40:35.290] like matrix multiplication, for example, it's a lot harder to get down to a binary circuit with that. [40:36.590 --> 40:40.710] But so, and garbled circuits have some other problems. So, most of the people right now are [40:40.710 --> 40:47.070] doing homework encryption or secret sharing. Those are really optimized for arithmetic. [40:47.070 --> 40:51.570] So, addition, multiplication. But taking comparisons, for example, just doing a relu [40:51.570 --> 40:59.250] is actually really expensive with those because that doesn't fit into, you know, arithmetic. [41:00.810 --> 41:09.270] So, there is like a theoretical understanding of why different things are faster. It's more just [41:09.270 --> 41:16.310] figuring out how you can stay within those confines, but still learn all the same things [41:16.310 --> 41:21.050] you can learn with like a normal machine learning model. For example, if you remove relu and replace [41:21.050 --> 41:25.750] it with something that's arithmetic based, can you still get the same learning capacity? [41:26.690 --> 41:30.730] And that's, I mean, one of our interns is actually running some experiments around that. So, that's [41:30.730 --> 41:58.600] yeah. Can you repeat that? No. In general, the function, the protocol of encrypting these [41:58.600 --> 42:03.620] things is known ahead of time. What's not known is that the randomness used in the specific [42:03.620 --> 42:08.860] mechanism. It's kind of the same way that public-private key cryptography works. [42:09.540 --> 42:14.400] Yeah, just a little bit different setup. If you get the key, however, then yes, you can [42:14.400 --> 42:21.720] break. So, in homework encryption, that is a hardness question, and in MPC, it's a collusion [42:21.720 --> 42:31.640] question. But yeah. Cool. Any more? Cool. Thanks.