start	end	text
0	4980	Thank you all for coming. And thanks in particular to the volunteers who made this happen. I
4980	9020	worked with them a bit, and they do a lot of work for this. So thanks, everyone.
10740	16120	So I'm Jason Mancuso. I'm a research scientist at Dropout Labs. We're a startup focusing
16120	22040	on privacy-preserving machine learning, building tools, and doing research to solve that problem,
22040	26920	which I'll be talking about today. I'll mainly be talking about why we should care, what
26920	32200	people are doing about it, and what we could be doing better. And this is going to be a
32200	35660	bit more of a technical talk in the sense that it'll introduce you to a lot of topics
35660	40760	you might not be familiar with. And it does, to some extent, assume a basic familiarity
40760	50160	with machine learning. But I'll try to explain as much as possible while going through it.
50160	55180	So first, just some motivations for why we should care. So this is a paper recently that
55180	61600	came out from Google Brains Group, Niccolo Paperno. He argues that when thinking about
61600	67640	security and privacy and machine learning, we should be taking inspiration from traditional
67640	72740	computer security and not reinventing the wheel just because we're doing AI. And so
72740	79300	he builds on these principles that were published in the 70s or 80s, the protection of information
79300	84120	in computer systems by Salter and Schroeder. And these security principles, they dictate
84640	89940	roughly half of them dictate that in order to make computer systems secure, we need to
89940	95820	prevent excessive information flow within these systems. So then without even accounting
95820	100400	for adversarial machine learning and all the attacks that we've probably heard about throughout
100800	105300	the conference, I can confidently make the claim that traditional machine learning is
105300	110780	not as secure in this way because there is excessive information flow in the form of
110780	118780	privacy leakage. So really, privacy is a security problem. But not only that, privacy
118780	124640	leakage creates bottlenecks in the existing machine learning process. So here's what I
124640	131160	mean by that. Machine learning is a normal workflow, where on the left, you have some
131160	135880	data source, some data generator, whether it's a public data set that's been compiled,
135880	143340	or it's a private data set owned by, for example, a hospital or some corporation. And so
143340	147800	traditionally, when we train machine learning models, we have to aggregate this data somehow, in a
147800	154540	central place. We engage in training the model, we apply some learning algorithm to it. I'm, of
154540	158940	course, hand waving away a lot of data science complexity. But once we're done with that, we
158940	162360	produce this model and deploy it and put it into production, whether we're actually serving
162360	168340	users who are a separate party or serving some internal internal party within the same
168340	171780	organization, there's always going to be some deployment phase where you're running
171780	179160	predictions. I mean, this is this is a kind of this is this doesn't fit every use case for
179160	185380	machine learning, but it describes quite a few of them. And so one thing to notice is that there
185380	190000	are multiple parties in the setup. But there is one point of attack that as an attacker, I only
190000	196740	really need to to compromise this middle party, the aggregator, to gain access to every asset in
196740	205720	this workflow. So this is just to say that, you know, we do machine learning on private and
205720	210780	sensitive data, where there are concerns and machine learning does quite well. This is an
210780	218560	example of skin cancer classification. But as a user on the right, of perhaps taking a picture of
218560	224200	my mole and uploading it to a cloud somewhere, I might not be incentivized to to do this, right?
224220	230540	Because if I do this, then I'm revealing whether I have cancer or not, to a third party, and I
230540	235500	don't know how they're going to use that information. So this this leads to the concept of
235500	239900	bottlenecks coming from privacy leakage in the process. And there are there are multiple
239900	244760	different points where these bottlenecks occur. So first is actually getting the data for
244760	249600	training the machine learning model. That can, you know, if you're if you're part of a
249600	254500	securityware organization, a lot of times, that can be challenging, right? Going through all
254500	260720	these hoops to get access to data is definitely a bottleneck. And as a result, we can't
260720	266600	actually partner with external organizations to pool data that should describe the same
266600	272200	phenomenon to train better models. In addition, the central party who's doing the actual
272200	277960	training takes on a lot of risk by aggregating the data in this way, training machine
277960	283000	learning model, and then deploying it. Because, of course, aggregating the data, if you're not
283000	289920	careful, can lead to data breaches. And then once you deploy the system, you can't be sure how
289920	294260	that system is going to be used and who's going to query it. And in which case, there could be
294260	300700	attacks that people can do to extract information from that service. So this could be in the
300700	306100	form of model duplication or model theft, where you've spent all this money creating this
306100	309440	machine learning model and someone can come along and just through querying it, they can
309440	316560	distill the knowledge that's been encoded in that machine learning model. But, of course,
316560	322560	you can also perform attacks on machine learning models to extract the training data. For
322560	327040	example, model inversion does this, where you try to optimize. Once you have a machine
327040	333440	learning model, you can optimize for a specific case and then that will reconstruct the data
333440	339060	point that was used in the training set. And I'll get into this a bit more as well.
339600	345700	And finally, the incentive problem that I mentioned before is a bottleneck as well.
346400	352080	Where if users aren't incentivized to use the service, it's not a good machine learning system.
354000	358500	So, a few possibilities for how we can solve this. I'll just cover these lightly and then dive
358500	366360	into them a little more deeply. First is this concept of sanitization, where if we could scrub
366360	372640	the data at each point whenever it changes hands by adding noise, any single data point in that
372640	380440	data set will be obfuscated or masked so that if I want to know something about a specific person,
380440	385900	because of the additional noise, I can never be sure if what I'm seeing is their actual data or
385900	393520	some obfuscation of that. Another possibility is that we can move some of these components
393520	399260	to different parties. So, instead of bringing the data to the model, maybe I can bring the
399260	407520	model to the data and train the model locally on device. Another possibility is encryption.
407520	414000	If we could just encrypt data and process that data while encrypted and still learn from it,
414640	418320	then we'd resolve a lot of these privacy problems that we have.
419880	424900	So, I'm now going to go into how these high-level things that I've just mentioned are actually
425960	432800	implemented in research and in production. And I'm going to do so based on these three
432800	437740	privacy-preserving primitives. Differential privacy, federated learning, and secure
437740	443680	computation. So, first, differential privacy is related to this notion of sanitization that I
443680	452540	talked about, whereby adding noise, you can obfuscate the actual data. So, this is actually
452540	457080	the definition of differential privacy. It is somewhat technical, so I'll try to explain it
457080	463260	intuitively. So, assume we have some dataset and we're allowed to interactively run queries
463260	468360	on that dataset as long as those queries aren't give me person A's data, right?
469520	474620	So, what I'm going to do is I'm going to query the full dataset, maybe run some statistic over it,
474620	479500	and I'll get that. And that includes this person's data, Alice's data.
480060	483520	And so, then I can query that same database without Alice's data.
483520	488240	And so, what happens when I subtract these two results is that I end up just with Alice's data,
488240	491620	right? So, just preventing someone from accessing the single data point
491620	494920	isn't enough to actually guarantee the privacy of that data point.
496440	500920	So, now, with differential privacy, what we would do here is we would obfuscate each query
500920	507640	with random noise. And then we construct that noise such that the expected difference between
507640	512860	these two queries is always going to be as little as possible. So, statistically, zero.
513520	518120	In practice, zero is not actually possible. So, we use this epsilon number that's slightly
518120	526180	greater than zero. So, this is really cool because it allows us to actually interact with this
526180	532720	dataset. And any time we take subsets of it, we can be sure that that is statistically
533500	537340	negligibly different than other subsets, which means that we can protect our user's privacy
537340	542740	in this database. Oh, and that randomized mechanism can also include
543800	548820	arbitrary pre and post processing, which means that it could be the forward passive machine
548820	552180	learning model or it could be the full learning algorithm that produces weights.
552840	557800	So, this randomized mechanism is essentially just a black box that has some randomness in it.
557800	562920	And as long as we can prove that that preserves privacy in this way, then we're good.
563720	566720	Now, the problem here is that there is a tradeoff between privacy and utility.
567340	574440	Here's a very simple example where I have some set, and every time I query this set,
574440	577800	I'm going to add a little bit of noise from a normal distribution.
579360	583720	And then this is the actual expected privacy loss, or this is the privacy loss
584660	592520	of doing this, for example, with averaging. So, what happens as I take this number n to infinity,
592520	597780	I make this outlier, or as I turn this last number into an extreme outlier,
598580	605600	what happens is that the privacy cost, even after we add this little bit of noise,
605600	611400	also goes to infinity, which means that in order to bound this thing, we need to actually
611400	617620	take the noise to infinity as well. But if we take that noise to infinity, then we're adding
618980	624080	arbitrarily more noise, and any statistic that we take from this set is going to be meaningless,
624080	629520	because it's just completely noisy now. So, this is a problem in general for databases,
629520	633800	but for machine learning, it's actually quite nice, because in machine learning,
633800	638480	we care about general patterns. We want to pull general patterns from large data sets,
638480	645120	and we don't care so much about outliers and unique points. We usually remove those if possible,
645120	654160	at least for many applications. So, what's nice about this approach is that we have a
654160	660280	mathematically rigorous way of proving that our system is private in this way. And in this way,
660280	666180	when I say that, this notion of privacy is actually very strong. It protects against
666180	671260	a broad range of attacks, like membership inference, re-identification attacks,
671260	673540	set differencing, model inversion, these types of things that are in the literature.
675360	680300	And it also gives us this intuitive notion of a privacy budget. This epsilon number that we
680300	689060	talked about, how negligible different statistics are or different predictions are, that becomes a
689060	694080	privacy budget, because if you query the same query a number of times, the randomness will
694080	698100	eventually, because it's zero-centered noise, will eventually target in on the right value.
698100	702080	So, we can say, as a user, you can only interact with this data set or this model
702880	707960	so many times before you've maximized, you've outdone your privacy budget,
707960	710320	and you can no longer interact with the system.
712400	719520	So, there's a lot of machine learning research going into this. Just from Google's group,
719520	724640	there's DPSGD, which the idea here is that you can add the noise, instead of adding it to the data,
724640	729160	you can add it to the gradients that are produced during stochastic gradient descent
729160	733380	while training your model, and then you can prove that this actually produces weights that
733380	736940	are differentially private, that don't leak anything about the underlying data set.
737860	743640	Pate is another one. This uses model ensembles and distilling information from those ensembles
743640	750160	in a way that the final model is differentially private. There's a lot of research going on into
750680	754340	new definitions for this kind of thing, differential privacy, and providing new
754340	757980	proof techniques, and then also coming up with new mechanisms, new randomized mechanisms
758640	762320	to improve the privacy utility tradeoff that I talked about.
763540	767400	But some open questions. I mean, differential privacy is a very strong guarantee, but it's not
767400	771920	everything. For example, if other users are contributing data to train a model,
771920	777120	I don't need to actually contribute my data to that in order to experience privacy loss. People
777120	782040	can just run that model once it's trained on me, and then I've experienced privacy loss that's
782040	788440	contagious through those other people. We currently really don't have any solutions to
788440	796360	this yet, but it is a very big open question. So differential privacy, it does solve some of
796360	802060	these bottlenecks. So data access, you can scrub data at any point, you can scrub any component of
802060	807480	the system with noise, and then prove with differential privacy that it preserves privacy.
808080	811780	But the problem is that if you do this too much, if you add too much noise,
811780	817140	the utility of the whole system kind of falls apart. So maybe the user is no longer incentivized
817140	823480	to use your service, and it's pointless, right? So that moves us towards different primitives.
823860	828280	One that I'll talk about now is federated learning, where we actually just take the model and
828280	832760	train it on device. Google is really well known for this. They do this on
833600	841140	thousands, millions of devices. And that's a very specific use case. When you do that,
841140	849000	you have low availability data owners or parties with low resources and low bandwidth.
849520	854460	And so this is kind of a very tricky way of doing on-device learning. But in general,
854460	859140	you can do this. You can imagine doing this between five or 10 hospitals, in which case they
859140	864360	can ramp up servers with GPUs and have strong network connections between them and always be
864360	870720	available. So this is actually a viable avenue for training machine learning models in a non-standard
870720	877620	way. So what's nice about this is we don't centralize the raw data, which removes some
877620	884500	of the excessive information flow I talked about. In particular, the data access problem,
884500	891040	because you never have to centralize it. And perhaps users are incentivized to use your
891040	896160	service if they know that you're only doing the predictions on device and they're never
896160	903220	actually sending their data to you. But the problem is that our risk management is not
903220	909720	actually that strong. And there's no guarantee that me as the designer of the service isn't
909720	915540	actually going to peek at your data when I want to or need to. So we have no privacy guarantee
915540	922260	like we had in differential privacy. And the other problem is that the model is exposed.
922260	926600	When we send the model to training on these arbitrary data owners, we now have to treat them
926600	932120	as adversaries, because they could potentially try to influence that process in a way that's
932780	939200	advantageous to them. Or assuming, you know, if you're training a machine learning model
939600	944080	amongst a bunch of parties, at some point, someone, one of those parties is going to end up
944080	949620	with a model that is essentially the same as the final model, which means this asset that you've
949620	957320	trained is now up for grabs. So this is not an ideal approach, but it does offer maybe some
957320	964640	additional privacy that we don't have in the current paradigm. Okay. So what if we could try
964640	968440	to accomplish the same thing we're trying to do with federated learning, but add in some kind of
968440	973640	privacy guarantee back without maybe adding so much noise that the service doesn't work anymore.
973640	978780	And this is kind of the notion behind secure computation. This is research from the 80s.
980800	987700	The general idea is how can we compute a publicly known function while the inputs and outputs of
987700	992660	that function are kept private? And private here is usually defined similarly to how it is in
992660	999240	standard encryption, like in communication encryption, for example. So again, just to
999240	1003500	reiterate that, we have this publicly known function, and we want to evaluate it without
1003500	1009180	knowing the inputs and outputs necessarily. And this function could be the forward pass of
1009180	1013260	machine learning model, or it could also be the entire learning algorithm, right? So we can do
1013260	1019240	training or inference in this way, if we can do so. And how we actually do it is we find some
1019240	1026740	function that is homomorphic through F. And this just means that you can encrypt the inputs and
1026740	1030840	run the function the same way and end up with an encrypted output that you can then decrypt.
1030840	1036520	That's this bottom line. You have this encryptor and this decryptor. The encryptor is homomorphic
1036520	1040780	through the function. The decryptor is cryptographically hard to determine unless you have
1041460	1047560	some of the inputs to the function. And the rest of this talk, I'll refer to this as like
1047560	1053260	the homomorphic paradigm for machine learning, because it's the dominant one. There are actually
1053580	1058980	a lot of different ways to do this secure computation. There are a lot of techniques,
1058980	1062580	and they all have different trade-offs. So the main takeaways of this is just that
1063180	1066780	there are a lot of them. They're not directly comparable because they all have
1066780	1071320	slightly different threat models. There is no silver bullet, and actually most state-of-the-art
1071320	1077840	protocols are using some combination of these different approaches. We'll focus in a bit on
1077840	1082580	secret sharing just to demonstrate how this applies to machine learning. So for example,
1082580	1090220	if you wanted to run inference on a simple linear model without exposing the data privacy,
1090220	1095000	you could encrypt the inputs to the data. Here we call it secret sharing. What we're going to do is
1095000	1099880	we're going to take a little bit of randomness and subtract it from the data point. That
1099880	1105220	randomness is then... it's called a one-time pad. It's extremely secure. Now we have three
1105220	1109080	components. We have the original data point, and we have these two masked versions of it.
1109260	1114540	So if I want to compute this forward pass, this linear regression with someone, I send them one
1114540	1120860	of those shares. We essentially do a public multiplication with the weights, and then a
1120860	1127420	private addition between the components in this vector. This is just a simple dot product.
1127420	1133100	And what it ends up doing is we can end up with an encrypted version of the final result.
1133100	1138180	And so if we reconstruct, if we send the shares of that output back to each other,
1138180	1142360	we can reveal the answer of the machine learning model's inference.
1143400	1147120	And we can actually do this while securing the weights, too. We can just treat the weights as
1147120	1153200	another input to this function of a dot product and do it just like that. It gets a little more
1153200	1159240	complicated, and it gets slower, but it is possible. And so this matrix math is actually
1159240	1165460	really conducive to secure computation, which is why this is actually a potential approach that
1165460	1171340	we could do to do this and scale this. So once you move past simple dot products,
1171340	1176620	you can actually scale this up to larger models and then do a lot of interesting things with it.
1176620	1181880	So past just prediction, you can do training. This is an example of server-aided training,
1181880	1187380	where all the data sources on the left, instead of aggregating their plain text data,
1187380	1193660	they will encrypt the data and send it to these two servers. And the two servers now will engage
1193660	1197820	in some computation with each other. They do a lot of communication back and forth to be able to do
1197820	1203740	this, but in the end result, you end up with a shared machine learning model that is kept private.
1203740	1209300	That is where the final party who wants to deploy this model never had access to the
1209300	1216520	actual raw data. They only had access to an encrypted version of it. So what's nice here
1216520	1220700	is that we're able to run machine learning models on encrypted data. What's bad about this in
1220700	1224820	particular with secret sharing is that there's the possibility that these two servers will collude
1224820	1230780	with each other to reveal the data and break the privacy guarantee. So there are secure
1230780	1235780	computation techniques without that. That's just one particular one that's a problem.
1237800	1244340	And so instead of centralizing the encrypted data on these two servers, you could think of
1244340	1249160	just doing the multi-party, the secure computation between these parties directly,
1249160	1253220	and then never centralizing any data. And you can do this just fine. It just gets slower.
1256000	1262540	So this research field has a long history. On the left here, we have mainly research papers
1262540	1266400	that are applying secure computation to machine learning, but secure computation has a long
1266400	1274240	history before machine learning was during the AI winters, right? And on the right, we have some
1274240	1278740	general secure computation frameworks that people have implemented machine learning algorithms in
1278740	1284800	on top of. And on the bottom, we have these two specialized projects that are actually,
1284800	1289660	like, kind of academic C++ libraries. They're trying to build privacy preserving
1289660	1294640	machine learning primitives into the frameworks that people are familiar with.
1295060	1301140	In particular, TensorFlow and PyTorch. And I'll talk a little bit about that more later.
1302500	1307040	So some open questions around secure computation. As I mentioned a few times,
1307570	1314100	it is extremely slow to do this. Right now, we can't actually scale this to, for example,
1314100	1321480	152 layer neural network. We can do pretty well, but that's currently out of reach.
1321560	1326260	So the question then becomes, can we ever account for that? Can we make that cost,
1326260	1332240	that extra performance cost, marginal as opposed to really central?
1334660	1338060	But if not, I mean, secure computation for machine learning can still enable
1338780	1345840	applications of machine learning that currently aren't possible today. Just because
1346800	1352160	of privacy concerns. For example, regulatory, competitive, or sensitivity issues.
1352980	1360640	And so, but the question to maybe or to answer this question about marginal cost,
1360640	1366140	can we combine MPC with other approaches that are faster to maintain some of its privacy guarantee
1366140	1375240	without totally ruining the speed of machine learning? And there's a good example that Google
1375240	1379060	put out there called secure aggregation, where they apply this to federated learning to give
1379060	1386020	it some kind of privacy guarantee. And similar to what people are doing with differential privacy
1386020	1394640	now, can we think of alternative definitions for privacy and security that allow us to perform this
1394640	1398600	in a more performant way or to run machine learning in a more performant way while still
1398600	1403100	preserving that notion of privacy as opposed to the strong information theoretic privacy that
1403100	1408300	we see from secure computation? And then that's some of what I want to talk about.
1408700	1412360	That's part of my research as well, is that I'd like to answer this question.
1413260	1420300	So just to summarize real quickly on secure computation. So what it does is it gives us
1420300	1426960	very strong guarantees for accessing data and preventing unfettered access to data,
1426960	1431820	which helps with the data access problem, with the risk management problem, and also with the
1431820	1436080	incentive problem, because you can do predictions in this way and have formal guarantees around
1436080	1440960	the user's privacy. It does not actually prevent these differencing attacks and model inversion
1440960	1445820	attacks that I talked about with differential privacy. But because differential privacy works,
1445820	1453840	we can combine it with MPC or secure computation to actually get a full privacy preserving workflow
1453840	1460440	with full strong information theoretic guarantees for preserving privacy of the different parts of
1460440	1467560	the system. Okay. So now that I've talked about the primitives and what people have been doing
1467560	1474920	for the past 20 years, let's look a bit at current research, what's happening now,
1476700	1483600	and how we should prioritize them. So big focus right now is on designing systems and tools that
1483600	1491280	make this easier to use. This is a paper that we produced. It's doing secure computation in
1491280	1498360	TensorFlow, which is, of course, the dominant deep learning framework, largely swallowing up
1498360	1504920	more and more of the ecosystem as Google marched it out. And so what we were able to do is use
1504920	1511880	the distributed computation engine in TensorFlow to perform secure computation through secret
1511880	1518960	sharing. And we found that because they've put so much work into that distributed orchestration,
1518960	1522860	it's actually a very convenient way of expressing these secure computations,
1522860	1528860	and it's extremely efficient. So this is on GitHub. It's open source. You can check it out.
1528860	1535760	And Google themselves has published a few code libraries around this stuff.
1535840	1540120	On the left, Google's federated learning team has produced TensorFlow federated, which is all
1540120	1544960	about doing federated learning in TensorFlow. On the right, TensorFlow privacy, which is more
1544960	1548800	around differential privacy and training differentially private models. So now these
1548800	1553360	three primitives are each available inside of TensorFlow. If you're familiar with that,
1553360	1557800	you can play with these. They're not totally integrated yet, but we're working on it.
1561640	1565780	Another thing that we just did recently was a different kind of secure computation. It's
1565780	1570140	called homework encryption, which is much closer to public-private key cryptography,
1570140	1574940	but just designing that crypto system so that you can still do the computations.
1575400	1579800	Microsoft has a really well-known package called SEAL. It's highly optimized for doing this.
1579980	1584660	And we were able to bridge TensorFlow with Microsoft SEAL so you can do homework encryption
1584660	1589660	as well as opposed to just multi-party computation. And then we've also experimented
1589660	1594800	with deploying TensorFlow models in secure enclaves and trusted execution environments,
1594800	1603260	in particular, Intel SGX. And so we have a project out that actually won a Google and Intel
1604280	1609480	confidential cloud computing competition. So that's pretty cool to check out.
1609480	1615480	And then there's another paper kind of doing a similar thing from a group or community called
1615480	1619580	OpenMind. It's currently probably the largest community of people interested in privacy
1619580	1624820	preserving machine learning. It's run by Andrew Trask, who is a research scientist at D-Mind
1624820	1630660	and a student at the University of Oxford. And this is essentially
1631940	1636960	building these three primitives into a system that's integrated from the beginning.
1636960	1641280	Whereas these TensorFlow projects have kind of started off in different groups,
1641700	1645780	so they exist. They're pretty performant, but they're not well integrated.
1646140	1651500	This project is more around having an ecosystem that's very highly integrated with itself.
1652120	1660040	And so I was involved in the early days of this one, too. And it was recently featured as a free
1660040	1666660	course on Udacity, sponsored by Facebook. And if you're interested in playing around with these
1666660	1673100	primitives in a way that's really accessible, you can take this course for free. And it'll
1673100	1680180	introduce you to these techniques using PyTorch, which is the system that we built in this paper.
1682120	1685480	So beyond systems and tools, there are some larger questions that we still have to figure
1685480	1691120	out as a community. The question of centralization is, of course, a big one.
1692000	1696100	If we're going to centralize things, how much should we centralize and how should
1696100	1701540	we centralize them? Unfortunately, this question has become quite heavily skewed with a lot of the
1701540	1707480	blockchain hype train. So for example, SingularityNet, if you've seen Sophia the Robot,
1707480	1711440	they're all about this, combining blockchain with AI in a decentralized way. And
1712220	1720560	that can be distracting, for sure. But one good thing about this is that with the blockchain hype
1720560	1725440	has come this interest in economics and machine learning and their combination.
1725880	1730400	So if everyone had control over their personal data through privacy-preserving machine learning,
1730400	1735900	it could be possible that data would turn into a liquid asset, which has pretty strong implications
1735900	1742060	for how we do machine learning now and the notion of a data economy or a data marketplace.
1744160	1748720	This then makes you wonder how you might price a trained machine learning model,
1748720	1752900	or how you might value the underlying training set that was used to produce that model.
1753960	1758220	So corporations estimate the cost and value of machine learning models all the time,
1758220	1764500	but no one's really pricing data in this context. So that's kind of a nice open area that was
1764500	1772060	recently brought up in this ICML paper from 2019. It was from a group at Stanford. It's called
1772720	1779460	DataShapely, estimating the valuation of data. And what they found is that it's really interesting
1779460	1785540	that data that's outliers are worth less than data that's representative of the pattern you're
1785540	1790260	trying to learn, which is somewhat not surprising, but it's also really helpful. Because as I
1790260	1797360	mentioned before, differential privacy is really strong unless you have these outliers. So what
1797360	1804060	turns out to be valuable data lends itself well to differential privacy and the utility privacy
1804060	1811700	trade-off that I mentioned before. This is super cool. I love this paper. And it's really unfamiliar
1811700	1817080	to me as a machine learning person because it focuses on estimating economic values and stuff,
1817080	1823400	but I will come back to it in a bit. So moving on to secure computation, this is like...
1823400	1827160	with differential privacy and secure computation, these are probably the two main
1831000	1834820	strong guarantee, big primitives that we would really like to see
1836340	1840340	all machine learning done in, if it could be, right? Because they're very secure. They're very
1840340	1846120	strong. And the main problem is just that we can't scale them to all the applications that we see
1846120	1855140	today. So we do have a kind of slight advantage in machine learning. I mean, so the timeline here
1855140	1858880	is essentially that, you know, you have these general secure computation techniques and
1858880	1863320	frameworks, and people are just optimizing those for generic computation. Then when people started
1863320	1866720	applying it to machine learning, they realized that, oh, well, all these optimizations are
1866720	1870700	actually really convenient for matrix math and then the stuff that machine learning uses.
1871540	1877120	And then now actually it's going... so people were saying, all right, how can we mix and match
1877120	1880200	these different protocols to improve the performance for machine learning models?
1880300	1883240	But now we're going to the point where we're saying, well, how can we tweak the machine
1883240	1887660	learning models to make it more efficient in this encrypted space? That's a lot of the work
1887660	1895740	that we've done at Dropup. So for generic secure computation, it's unacceptable for a function to
1895740	1902320	evaluate differently than it would have in the plain text. But for machine learning, we don't
1902320	1907980	really care about specific examples because we're already approximating some ideal function.
1908120	1913500	So if it's better to just find some other approximation that runs more efficiently,
1913500	1918320	we can do that as long as the performance is roughly the same. So we're seeing quick wins
1918320	1922460	by just adapting machine learning, tweaking, for example, the activation functions we use,
1922460	1926780	going from max pooling to average pooling or something like this in a deep neural network.
1926780	1932580	And we're seeing big wins there. So then the question becomes, is there an upper bound on
1932580	1940620	those quick wins? And so I tried to formalize this question. I phrased it as this no free lunch
1940620	1947360	hypothesis. Essentially just given this machine learning algorithm, can you find a roughly
1948000	1954480	equivalent version of it in the sense of runtime, but also in its security?
1955140	1961100	Sorry. In terms of runtime and in terms of generalization performance, but with the
1961100	1969380	requirement that it can be computed securely. And the difference is negligible. So this is that in
1969380	1977120	pictures. In theory, anything that you can compute in plain text should be computable in a secure
1977120	1985240	way. But in practice, efficiency just constrains what we can actually do. But if this hypothesis
1985240	1989980	were to be true, then that actually wouldn't be the case. At least for machine learning.
1989980	1994780	There would always be some slightly different machine learning model that runs as fast,
1994780	2000780	but securely. So the problem with this is that the way we prove security in MPC
2000780	2009400	does not lend itself well to this. This is an undecidable statement when you look at how we
2009400	2014680	prove security. It's called the simulation paradigm, if you're interested in that.
2015520	2020440	So maybe we need a new concept of security to be able to actually answer this question in a way
2020440	2026820	that's helpful. So just to reiterate one thing here, with federated learning and secure computation,
2026820	2030840	we have this threat model dilemma where the one that scales doesn't have a strong security
2030840	2035420	guarantee. The one that doesn't scale does. And how do we reconcile this?
2038660	2045340	I would propose, what I am proposing, is to analyze the incentives of everyone in this
2045340	2051220	machine learning game, treat it as an adversarial game where anyone could steal the other person's
2051220	2057900	asset if it's worth their time. So if you knew the utility function of each party in this
2058420	2064780	private machine learning game, instead of relying on computational hardness and information theory,
2065500	2069080	you can rely on the fact that they're motivated and that you know their motivations. And then
2069080	2075260	you can use game theory to prove security. And so because you understand, that's only because
2075260	2080800	you can understand their motivations, and also only because you can price the different components
2081220	2087900	in this system, in particular data and models. If you can price those, you can do this. Now,
2087900	2091680	that's where the details lie, and that's where we still need to figure things out.
2091680	2095840	But this has a long history as well, actually. It's called rational cryptography.
2096880	2102300	Now, it failed to take hold because it was trying to solve generic cryptography problems.
2102700	2109740	And utility functions are extremely hard to estimate in those generic cases. But as I've
2109740	2113800	been saying, in private machine learning, we only ever need to estimate the utility of those
2113800	2119520	two things, data and models, or pieces of models. And we already have ways of doing this in both
2119520	2128340	cases. So if we can do this, it could give us NPC protocols that are faster, but still provably
2128340	2135060	secure. And we can use this to drive security guarantees for federated learning, in particular
2135060	2140620	to see just how weak that guarantee is for a specific use case.
2143020	2151500	So, in conclusion, privacy is a security problem. That security problem creates leakages,
2151500	2155040	or bottlenecks, rather, in the current paradigm of machine learning.
2156060	2159720	And these techniques that I've been talking about, differential privacy, federated learning,
2159720	2165540	secure computation, can alleviate those bottlenecks, if you allow them to. The field
2165540	2169900	is really wide open. There's not many people working on this, but it is a very exciting area
2169900	2175300	to be in. And there are now packages and tools that you can pull down from GitHub and play around
2175300	2180640	with this stuff on your local computer in a matter of minutes. To me, that's like a really strong
2180640	2186260	recipe for people in security and machine learning to experiment with and just play with this stuff.
2186260	2191140	So, thank you for your time. I've included some resources, and we'll get these slides up
2191140	2193880	so you can play around with it if you want. Thanks.
2202110	2206350	So, have you thought about the... could you use any of this to detect data?
2207050	2218560	Yeah. So, actually, unfortunately, I would say... I mean, detection is hard.
2219820	2223480	In particular, for federated learning, this is a huge problem, because you're just sending the
2223480	2227500	out. They can do whatever they want. They can optimize it however they want. They can feed
2227500	2233080	with whatever data they want. There are defenses. So, this field is called Byzantine Resilient
2233080	2238660	Machine Learning. It's still new as well. What's nice about secure computation, though,
2238660	2244400	is that you can force... you can construct the protocol so it's impossible for people to
2244400	2251520	add computation to the function evaluation. So, they can only ever follow the protocol in lock
2251520	2256300	step. And if they deviate at any point and try to modify the result in a way that's
2256300	2263540	unanticipated, the protocol will just break. It will just not work. This is the difference
2263540	2270000	between passive security and active security in the field. So, there are some defenses.
2270060	2274320	And even in federated learning, for example, at the aggregation step, where you aggregate the
2274320	2280920	different parties' updates, instead of just doing an average, you can do the median of those updates.
2280920	2285640	And then the median is much more robust to these outliers. That would much more likely be...
2286680	2291760	data poisoning. Poison data would be much more likely to be an outlier relative to the
2291760	2305650	distribution. So, that's kind of the current trend around that. Yeah, but to push a median,
2305650	2311870	you have to go really far, right? You have to actually... you have to control, like, a lot of
2311870	2316650	the data. You can't just do it with one point. You have to do it with a large subset. So, yeah,
2316650	2324230	it's... so, you can get resiliency up to, like, a third or a half of the parties. But going past
2324230	2329490	that is extremely difficult. So, secure computation, that's not the case. You can do...
2329490	2332550	if there's n parties, n minus one of them can be corrupt, and you still
2332550	2340330	cannot break security. So, that's kind of another nice feature of it. Yeah. Yep.
2371830	2378090	Yeah. So, the question was, why are some models more efficient than others in the encrypted space,
2378090	2384730	essentially, right? Well, the answer... I mean, it depends on which technique you're using.
2385310	2393730	So, there's this big list of them. This one. So, that's actually only true for these
2393730	2398850	three on the right. Secure enclaves can handle arbitrary computation, and it's
2398850	2404370	roughly as fast as regular. And the problem there being that there are demonstrated side
2404370	2410530	channel attacks on these enclaves. So, they're not as secure, potentially, as the ones on the right.
2411630	2415230	And the ones on the right have different operations that they're optimized for. So,
2415230	2420510	garbled circuits is really efficient for comparing items. So, if you essentially build a Boolean
2420510	2424210	circuit, and you scramble it in a way that's privacy preserving, and then you evaluate that
2424210	2429210	circuit, which lends itself really well to taking maximums and stuff like that. But for
2430150	2435290	like matrix multiplication, for example, it's a lot harder to get down to a binary circuit with that.
2436590	2440710	But so, and garbled circuits have some other problems. So, most of the people right now are
2440710	2447070	doing homework encryption or secret sharing. Those are really optimized for arithmetic.
2447070	2451570	So, addition, multiplication. But taking comparisons, for example, just doing a relu
2451570	2459250	is actually really expensive with those because that doesn't fit into, you know, arithmetic.
2460810	2469270	So, there is like a theoretical understanding of why different things are faster. It's more just
2469270	2476310	figuring out how you can stay within those confines, but still learn all the same things
2476310	2481050	you can learn with like a normal machine learning model. For example, if you remove relu and replace
2481050	2485750	it with something that's arithmetic based, can you still get the same learning capacity?
2486690	2490730	And that's, I mean, one of our interns is actually running some experiments around that. So, that's
2490730	2518600	yeah. Can you repeat that? No. In general, the function, the protocol of encrypting these
2518600	2523620	things is known ahead of time. What's not known is that the randomness used in the specific
2523620	2528860	mechanism. It's kind of the same way that public-private key cryptography works.
2529540	2534400	Yeah, just a little bit different setup. If you get the key, however, then yes, you can
2534400	2541720	break. So, in homework encryption, that is a hardness question, and in MPC, it's a collusion
2541720	2551640	question. But yeah. Cool. Any more? Cool. Thanks.
