Average-Case Complexity
Transcript
[PETER] --workshop in the Computational Complexity and Statistical Inference program running this semester. Uh, Average-Case Complexity from Cryptography to Statistical Learning. Um, first of all, a big thank you to the organizers, Luca Trovisanobos, Barak Amit-Daniely, Talil Shrum Rocco Saverio, and Vinod Vaikuntanathan. Thanks to all those folks. (applause) Um, so Luca's gonna say a few words about the workshop. I mean, I guess we've got whole lot of familiar faces here. I'm not sure I need to go through the logistics for you. Everyone's wearing masks. You're all caught up with the food outside. Um, a big thank you also to Kailani Penland, our events coordinator for all the local arrangements. (applause) And I'll hand over to-- to Luca. Good to see you again. Sorry, you can't be here in person. [LUCA TREVISAN] Thank you, Peter.
No, I have my beloved Simon Institute cup to have a bit of the Simon Institute here in Milan. So yes, thanks to the organizers of the semester-long program for having this wonderful day workshop specifically about connections between cryptography and the complexity of statistical problems. And thanks to all the speakers that accepted our invitations to both those who were able to travel and those that would love to give their talks remotely.
Basically, the thing with problems in statistical learning and machine learning in general is that it seems some of them are easier, some of them are harder. One would like the theory of computational complexity to have something to say about the hardness of problems that seem hard. But those are problems where in their very definition, we have to talk about distributions over inputs. And those are all problems that are inherently distributional problems for which an average-case analysis doesn't make a lot of sense.
Unfortunately, the theory of computational complexity has been struggling since the '80s to develop viable techniques to talk about how average-case complexity of distributional problems without making a whole lot of progress. On the other hand, in cryptography, security analysis always proceeds by, again, studying the complexity of a problem that is inherently distribution. And so in cryptography, we do have a lot of techniques to reduce distributional problems to one another to establish the complexity of distributional problems.
Unfortunately, the thing with complexity-- with cryptography is that there we are allowed to define what is the problem, what is the distribution that we want to be hard. And that's a lot-- that's very much different from having a given distributional problem that we would like to analyze. But nonetheless, there are a number of conjecturally hard problems in cryptography are very simple and they seem like ideal starting point for the reductions. And we'll see several talks about them, problems about random constraint satisfaction problems, simple pseudorandom generators, learning with error in finite fields or over the reals.
We'll see something that has been done about reductions between problems in statistics and machine learning for problems about planted instances to problems more directly related to learning neural networks and executing gradient descent. To have sort of a full spectrum of results in which everybody can see something new we'll also, tomorrow, a much more theoretical talk about problems like finding the minimum size circuit that satisfies a certain input-output relation or um, approximating the certain resource-bounded version of Kolmogorov complexity. Those are problems that are somewhat tangentially related to learning because they have to do with the problem of learning general circuits.
But also having a very deep and not entirely understood position at the core of average-case complexity, kind of particularly on how and worst-case assumptions relate to average-case assumptions. So I hope everybody will find something new and something interesting, something thought-provoking in this workshop, and then the whole three days of the workshop will be a long sort of opportunity to think about new conjectures, think about new open problems. On this note, tomorrow we will have a one-hour sort of structured session specifically on open problems and conjectures. As you have heard from the Simon's administration Andre and
I would like to know in advance, say by end of day today by email, if you plan to talk in tomorrow's session and roughly about what so we can make a kind of preliminary schedule for the session, have a sense of how much time to give to each presentation. Uh, nonetheless, if tomorrow you decide the last minute you would like to talk, I'm sure there will be some time available at that end. But if you already know that you would like to talk, please let Andre And I know.
Okay, so I hope everybody will find a lot of food for thought in this three days. And I'll just pass the floor to the session chair to introduce our first speaker. Yes, let's clap towards the end. [MODERATOR] Thanks, Luca. Okay, Andrii, would you like to set up?
[SALILA] Okay. So we're delighted to kick off the workshop with a talk by Andrei Bogdanov about breaking encryption in statistical zero-knowledge. Please, take it away, Andrei. [ANDREJ BOGDANOV] Uh, thanks, Salila, and thanks to the organizers for putting up this uh, nice workshop in this really amazing program which, where I learned a lot of things. A lot of things were new to me. So I think the focus so far has been mainly on problems in statistics and machine learning, and there is this sort of very old connection between statistics and cryptography that goes back to the '90s. So I want to sort of talk a little bit from this perspective. And sort of, this is, I guess, well known to people in this room, but sort of, you know, statistical inference and cryptography are kind of dual and diverse to each other. So in the sense that sort of the goals are opposite, right? So in statistical inference, at least sort of the kinds
of questions that people talked about you're given some data that comes from some distribution and then you're trying to infer what the parameters of the distribution are or predict new data items that come from the distribution. And in much of cryptography, the goal is exactly the opposite, right? You want to design a distribution that is hard to predict. And so, in particular, the task of encrypting data is exactly that. When you want to sort of argue that your encryption scheme is secure, you want to say, "Well, if somebody, an adversary sees encryptions, random encryptions of messages they should not be able to infer anything about the message." In fact, it's the opposite goal, that they shouldn't be able to predict anything about the message. And sort of, kind of this dual perspective has been used to great success to sort of argue about the limitations of statistical inference based on things that people did in cryptography before.
And sort of the point the part I want to focus more on this talk is that somehow, the standards are a little bit different. Generally, in cryptography, when you want to sort of claim security for an encryption scheme, you really want to consider all algorithms and you want to make a strong case that sort of no matter which algorithm a person comes with, they won't be able to do it. In statistical inference, sort of, you know, there are these very successful models that capture large clusters of algorithms like polynomials, statistical queries, and so on, and this gives us good evidence that somehow, you know, this process of algorithms don't work and you know, they expose limitations but sort of, you know, they give different kind of, different facets about the hardness of this problem.
So this is going to be a crypto talk. I'm going to mostly talk about it from the crypto perspective, and I hope in the end to come back and speculate a little bit about what all this means to the hardness of statistical learning. So let me sort of start with the grand goal of sort of the foundations of crypto, and this is sort of what you know, we all know and have wanted to do for many years, is that we want to base secure crypto on sort of the strongest possible hardness assumption, and for crypto, this would be the assumption that P does not equal NP. We know that they're equal, then there is no crypto. It's not possible to do anything. And this was even pointed out in the seminal paper of Diffie and Hellman, which is from from the '70s, sort of. They foresaw this connection and they foresaw the obstacle about, why is it that we cannot get it? Why-- What is it that prevents us from getting secure crypto from P does not equal to NP?
And sort of as people have studied this problem, we somehow understand the barriers in going from here to there, and there are several levels of them, sort of. There are several barriers one has to overcome. Uh, there is this very nice paper of Impagliazzo from the mid '90s where he sort of points out the different barriers. But one is that sort of, And this was even known early on, is that there are two steps one has to overcome. One has to go from P does not equal NP, which talks about worst-case hardness of problems, to average-case hardness, and then there is sort of the other thing about how one goes from average-case hardness to secure crypto.
And sort of to give you a little bit more detail about this average-case hardness, it sort of comes in two flavors. It comes in sort of the flavor of, I think, what people mostly would call refutation hardness, which is sort of you know, I want to design an algorithm which is always correct but it can say, "I don't know" some fraction of the time and it handles average-case hard instances. And the one that we need from crypto is a heuristic hardness, an algorithm that's somehow, you know, can give the wrong answer from time to time but it just happens to be right with most of the time or some non-negligible fraction of the time. And sort of a lot of the-- the work and sort of why-- So-- So somehow a lot of the work we have that study this connection is negative and it has focused on this part over here, right? We have a lot of excuses why we cannot go from P does not equal NP to even this kind of first stage of average-case hardness.
And I'm not going to talk about this in this talk, and the reason I'm not going to talk about this is because tomorrow, there is a talk by Shuichi Hirahara who had this amazing result about four years ago that showed that essentially all the excuses we have for this are nonsense. So what he showed is not exactly that you can do this, but he showed something very related. He showed that you can have a worst-case to average-case reduction for some problem which is sort of looks like going from P does not equal NP to refutation hardness. And this is this minimum time-bounded Kolmogorov complexity problem. So sort of just, Yeah, I'm not-- He's going to talk about it tomorrow, so I think you should really-- I-- I hope, so I-- I think this is the talk you should attend. But just to give you a sense of the obstacle that is overcome in this Uh, what's special about this problem is that if sort of, I'm going to start drawing this complexity picture.
So there is P, there is NP, and there is coNP, right? Np is the problems that have efficient proofs and coNP is the problems that have efficient refutations. So this problem for which he does the worst case to average-case reduction is believed to be inside NP but not inside coNP. And all the obstacles, all the excuses that we had before about not being able to do a reduction actually applied, said that problems for which we cannot do them has to be in the intersection. So in this part over here. So sort of, somehow, this worst-case to average-case barrier that we had for many years has, in some sense, been overcome. We don't know how to do crypto from it, we don't know how to go all the way down, but this is not what I'm going to talk about. What I want to do is I want to do a little bit of a different perspective today. So what I want to ask is the following question.
So in particular, the kinds of crypto that we can build, we use problems like shortest independent vector problem, which is a worst-case problem, learning with errors, which is an average-case problem. These are problems that reside in NP intersect coNP. And the question I want to talk about today is whether we can build secure cryptography. Let's have slightly more modest goals. Let's say we don't want to build it based on the assumption P does not equal NP. Can we take anything which is even conjecturally outside NP intersect coNP and build secure crypto from it? And private-key crypto is a bit boring, so today, I'm going to focus on public-key encryption.
So this clause NP intersect coNP is a little bit hard to think about. Sort of how do you argue that sort of something is outside NP intersect coNP? So instead of talking about NP intersect coNP, I'm going to talk about something slightly smaller, which actually captures a lot of what's going on inside there, and this is this beautiful conflict 50 clause called statistical zero knowledge. So I'm going to explain what this is, if you haven't seen it before, but sort of, this is my mental picture of what it happens. It captures not everything, but a lot of what's going on inside NP intersect coNP. Yes. [AUDIENCE MEMBER] Okay. So the barriers are for actually NP intersect coNP or it could be that all the barriers are modified to [ANDREJ BOGDANOV] Knowledge? It's a good question. So I'm not going to make this dist-- distinction right now. Today, I'm going to talk about statistical, sort of statist-- what-- sort of what you can break using
statistical zero knowledge. So the way that I'm going to frame the question is like this. Suppose statistical zero knowledge was easy. Okay? So I could also say suppose NP intersect coNP was easy. Okay? If I had this power, what kind of cryptography can I break with it? Okay? And the reason I'm focusing on statistical zero knowledge, I'll-- I'll show you in a minute, is because it's a little bit hard for me to think about what it means for NP intersect coNP to be easy. I mean, you can define some kind of oracle that solves problem inside NP intersect coNP, but it's complicated. On the other hand, statistical zero knowledge is a very, very, very nice complexity clause. So if you haven't seen it, or if you don't know much about it, let me tell you what it is, and the nice thing about it is that it has two definitions.
So this is sort of the standard definition. This is how it was defined first by Goldreich, Micali and-- Goldwasser, Micali and Rackoff. It's a class of problems that have not written proofs like NP, but interactive proofs. And these interactive proofs have an extra feature, which is that the verifier finds out nothing about the interaction. And what's turns out to be important is that this nothing has to be defined statistically, meaning that whatever the verifier sees from the interaction, he can create the same distribution of use on his own in a statistical way, which is statistically close that what he observed before. Okay?
Yeah, feel free to, Yes. Go ahead. I have [AUDIENCE MEMBER] A question. So you talked about two types of productions, one going from P naught equal to NP or N-- Uh-huh. partners. Yes. And then from there, all the way to secure code. [ANDREJ BOGDANOV] Yes. [AUDIENCE MEMBER] And the barriers are for usually the first type-- Yeah. --not for the third. There we go. They're not. [ANDREJ BOGDANOV] Right. But it does So I'm saying the first kind of barrier has been overcome in some sense. [AUDIENCE MEMBER] Yes. [ANDREJ BOGDANOV] Right? And now I want to kind of switch the perspective and ask, you know, suppose we want to overcome the second barrier, suppose we want to build encryption, now I want to look at sort of what we have done, what kind of encryptions we can-- we have built, and which of them do, or candidate or possible ways to overcome this barrier. [AUDIENCE MEMBER] Right? [ANDREJ BOGDANOV] So that's, Okay. Thanks. Please feel free to ask any questions.
It's I guess this talk is a little bit different in both perspective and content from what we have seen before. So feel free to hijack it and take in a different direction if you think it's more interesting. So so this is one definition, and then there is a different definition which turns out to be equivalent, which is actually very convenient, and this is from work of Sahai and Vadhan in '99, who showed that we can actually think of this statistical zero knowledge through a complete problem. And the complete problem has a very simple description. We're given two samplers for two distributions. Okay? Let me call them A and B. So they're circuits.
And then what you have to decide is whether the distributions they sample distributions, so the input is just a random string, right? The output is some string of the same length in both. You have to decide whether they sample the same distribution or very different distribution. Or sort of, if you do it with parameters, if you, they sample distributions which are statistically close or statistically far from one another. And sort of if you think about NP-completeness, usually used complete problems to argue that something is hard, but actually this is going to be a convenient definition for us to put things in statistical zero knowledge. So if I can reduce whatever I'm trying to do to this problem, namely if I have an oracle that can do this then if I can use this oracle to solve my problem, break my encryption in this case, then that would be evidence that, or it would
put this problem inside statistical zero knowledge. Yes. [AUDIENCE MEMBER] Do we get the amount of functions as an output from the samplers? [ANDREJ BOGDANOV] No, no. The sampler's output samples from distributions, right? So you can think of the output of the sampler as the description of a distribution. So there are statements about those distributions, whether they're statistically close or statistically far. So it's actually a very natural problem for statistical inference, right? But, it's a hard one.
So I want to kind of do a historical tour, mostly tell you about things that are known, and maybe say a little bit of some new observations in the end about which of the encryption schemes can we break with an Oracle that allows us to distinguish between such pairs of distributions. So I'm gonna do some examples. The first example I want to talk about is ElGamal encryption. So this is sort of one of the, I guess, early encryption schemes, which is based on the hardness of decisional
Diffie–Hellman assumptions, or the hardness of sort of distinguishing discrete logs. And for what I'm going to talk about is not going to be too important, sort of why this encryption is secure, because we're going to after all break it using our Oracle, so it's just the mechanics that are, are going to matter more. And the way that it works is G here is the generator of some secret group. And then the public key is just G raised to some random number, which you call the secret key. Okay?
So that's how this looks like, it's algebra. And if I want to encrypt a message, what I do is I take the generator, raise it to some random power, and I take the public key, raise it to the same random power, and multiply it by the message, where I, again, I think of the message as being some group element. And this allows me to decrypt the message if I know the secret key, because I can undo this operation that I did on the left. If I raise the first part to the secret key and divide, I get the message back. That's the logic behind the decryption, at least. And what I want to sort of argue now is that, if I have a statistical zero knowledge oracle, then I can break this encryption. What does it mean to break this encryption? It means that I can distinguish between encryptions of two different messages. Here, I'm going to call them one and two for convenience.
So how do I use this oracle to distinguish between the two encryptions? Now, when I'm given with the task of distinguishing two encryptions, I'm given a string, right? This is the encryption I have. What the oracle allows me to do, it allows me to distinguish between samplers. So somehow, if I want to use this oracle, I need to take this string and turn it into a sampler, or I need to take a sample and turn it into a sampler for producing sort of samples from the same distribution.
And in this case there is an easy way to do it. I think some of you see it already, right? What I can do is I can take the ciphertext, which is this pair X coma Y, and I raise it to some random power r prime. Okay? Which is independent of what it was before. In the case I had an encryption of one, what happens here is that this exponent targets re-randomized right? So I end up with something which is G raised to the power r times r prime and public key raised to the power r times r prime. Okay? So if I think of this now as a circuit that maps the CR prime into a new encryption, it's a re-randomization of the old encryption, right? It's something that takes a sample and produces samples
from the same distribution. Okay? On the other hand, I have a way of producing the same encryption, so I can compare this circuit to the circuit that just maps R to an encryption of one with randomness R. If this was an encryption of one, these two circuits with sample the same distribution. If this was an encryption of two, let's say they would sample two distributions, which are very far apart, and that's exactly the description of the statistical distance problem.
So that's one reason why you can use this kind of oracle to break encryptions, okay? And sort of the consequence of this is that actually, if you state it in more general terms, you can say that any encryption method which is re-randomizable, meaning that given an encryption, I can generate sort of random encryptions that look exactly like it, you can break it for this reason in statistical zero knowledge. A-- and sort of, I had a paper from some time ago with Chin Holle where we
showed that actually any encryption scheme, which is homomorphic not to give the details now, is sort of, you can show that it's always going to be re-randomizable. So somehow, this says that if your encryption scheme is too strong, if it supports homomorphism, if it supports too much functionality, then it's not a good candidate for being secure based on P does not equal NP, right? It can be broken with this kind of work.
Uh, example two this is an encryption scheme of Regev. So, this is sort of the famous LWE-based encryption. And it turns out that this one too can be broken in statistical zero knowledge, but for a different reason. So, I'm not going to tell you what this scheme looks like, sort of, I'm just going to tell you what the public key in the scheme looks like. And the public key has to do with the learning with errors assumption. What does the learning with errors assumption say? It says that if I take a random matrix, a tall matrix, M by N matrix with values in ZQ for some modulus Q, and I think some random linear combination of its columns and I add a bit of noise to it, okay?
That's what the right-hand side is going to look like. That this is going to be indistinguishable from what would have happened if the right-hand side was completely random and independent from the left, okay? So, this is very much like a, you know, statistical inference hypothesis, right? I have some secret key that tells me what linear combinations I'm taking, and I cannot distinguish sort of this alternative hypothesis that the right-hand side are noisy samples from this distribution from them being completely random.
So, what I'm going to sort of show you is that, what you can do using the statistical distance oracle, is you can distinguish between the null hypothesis and the alternative hypothesis. And what I'm not going to show you, but what Regev showed is that this is in fact sufficient to break the encryption scheme. So the security of this is both necessary and sufficient for the security of encryption. The reason for this is that there is, in addition, some search to decision reduction, which says that if I can break these two distributions, if I can distinguish between these two distributions, then I can recover the secret key, and once I know the secret key, then everything is insecure. Okay?
So, how can I distinguish between these two distributions using the statistical distance oracle? And this is a very nice idea of Goldreich and Goldwasser who gave actually a more general protocol. And what they say is what we're going to look at, is we're going to look at the span of the columns of this matrix on the one hand, and the span of the columns of this matrix plus the vector B on the other hand. And you get the picture that kind of looks like this. In the first case, where you have this alternative hypothesis, these two spans are going to be close to one another. Why?
Because the second one is just obtained from the first one by adding some small noise to it. Okay? In the second case, I add something completely random, so they're going to be far from one another. So, how can I distinguish between these two cases? What I do is sort of here are the two distributions if we think of it in terms of distributions. I take a sample either from here or from here, okay? And then I add a bunch of, I add a little bit of noise to it. So, I shift it by some vector, okay? Some gauss here, let's say. So, in this case, the distributions that I get are going to be close to one another, because somehow the noise is going to, you know, like make these two sub-spaces look the same.
In this case, because they're very far already, actually, even though it doesn't have too much magnitude, they're still going to be very distinct. So, I'm going to get two distributions, which are very far apart from one another. So, that's the reason why Regev encryption, you can break it also with the statistical zero knowledge oracle. [AUDIENCE MEMBER] Well, okay. [ANDREJ BOGDANOV] Now I want to talk about the third example, which is a little bit less familiar, but I think it's interesting, and the reason it's interesting is sort of because all this example involves some kind of choice of parameters. And somehow the way that this is designed ends up being that the choice of parameters that you need to make to make the encryption work is exactly the same as the one that puts it in statistical zero knowledge. So somehow there seems to be some reason why,
some different reason why this scheme is breakable in statistical zero knowledge, I don't really understand why, but sort of I want to show you the calculation and try to reason it through. So this is an encryption scheme that was proposed by Michel Aleknovic, actually predates the Regev scheme, and it has kind of a similar-- The algebra is-- is related but the domain structure is different in the sense that this scheme doesn't work over ZQ or Q is large, that's-- that's necessary for even to make sense of what Regev encryption does. Here everything is over Z2 so all these things belong in Z2, they're bits, zeros and one.
And when I do addition over Z2, right? It's like the XR operation, either flip a bit with some probability or I leave it alone. Um, so in the Aleknovic scheme what the public key is, it's a random matrix, so you can think of the rows as being some kind of random vectors mod 2. And then I have an extra vector at the end which is a linear combination, a random linear combination of the matrix, plus some noise, and this noise is going to be the secret key. Okay? So we'll figure out what the nature of what this noise needs to look like exactly later. But you can think of it essentially sort of when you do things over Z2, there is one very natural way to generate noise which is to flip each bit independently with some probability P, and if you want-- and that's pretty much the only way, the only thing you can do.
How do I encrypt a message? Well, I'm going to tell you, it's a different way that you encrypt a zero message and a one message, so I'm going to tell you how you do both, and I do it by sort of taking this public matrix, this is the public key, and multiplying it by something. Okay? So I'm going to multiply it by some vector. If I want to encrypt a zero what I do is I take some vector which is in the dual space of this, so something that will multiply to zero, has inner product zero, and then I'm going to add some extra noise to it. Somehow the purpose of this extra noise is to hide the fact that I'm in the dual. Okay? And then what Aleknovic does is he reduces the security of these two to some assumption which is pausable. Okay? But it's not going to be too important for us.
If I want to encrypt a one, what I do is I take this matrix And I just multiply the whole thing by a random vector, like completely random zero one vector. So now I have to tell you how the decryption works, sort of why you would expect even this to be functional. And the reason that the decryption works is because there is a gap between what happens when I multiply the secret key with an encryption of zero, when I multiply the secret key with an encryption of one.
When I multiply it by an encryption of zero, what happens is that because this C lives in the dual space, it's going to vanish when I multiply it by the se-- but the secret key is just some linear combination of the rows of this matrix. So that part is going to vanish, and what's going to be left over is just the dot product of the secret key and the noise. Well, when I encrypt a one, wh-- when I try to decrypt a one, what I get is inner product of the secret key, whatever it is, by something random.
So, if I end up picking the parameter so that there is a gap between these two cases, then I can decrypt. How do I ensure there is a gap? If I can ensure that the support of the secret key and the support of the noise are typically disjoint, then there is going to be a gap between the two cases, [AUDIENCE MEMBER] Right? [ANDREJ BOGDANOV] So, I need these two to be typically disjoint. So this is not a perfect decryption in the sense that here half of the time I'm going to get the zero, half of the time I'm going to get the one. But then I can play the usual trick like encrypting multiple times and so on, to increase the security. But I need to have some kind of noticeable gap here, for me to be able to tell whether I have encrypted the one or a zero to begin with.
So now comes the part which I think is somewhat interesting, is that in order to have this first property, in order for these two to be typically disjoint, if each of them is some kind of random noise, then at least one of them needs to have the-- think of them as being binomial samples, right? Needs to have probability 1 over square root of N. Right? If both of them are bigger than 1 over square root of N, then I'm going to get a collision. I'm very likely to get the collision.
But if this has probability 1 over square root of N, then it turns out that I can use that in both cases to put this, to break this description in using the statistical distance oracle. Why can I do it? Well, because I can use a very sim-- similar trick to what Goldreich and Goldwasser used. So here, the distributions are a little bit different, because they're distributions over bits, but you get the same phenomenon. Which is that, say, okay, say the secret key is comes from a distribution that looks like this. So then what I can do is I can sort of take my public key matrix and, you know, do the same trick I did before. I'm not going to explain it, but just add some noise to it. Right? And the noise that, the extra noise I'm going to add is just going to be, say I flip each bit individually with an extra probability one-third.
In one of the distributions, if I look at the distributions that comes from the secret key, the effect I get from doing this is as if I was adding somehow a random vector which has square root of N ones with a random vector that has N over three ones. And this is statistically close to a random vector that has one-third ones because square root of N is kind of within the standard deviation. Right? On the other hand, if I add this to a random vector, I'm going to notice that there is a big difference, right? Because the number of ones will jump from one-third to one half. So I think it's kind of curious that 1 over square root of N is kind of the exact point at which this happens and this is the parameter that you need to use for the security of encryption that allows you to break it in statistical zero-knowledge.
Finally, the last example I want to talk about has to do with this continuous LWE problem. So this is something that we heard about in other talks in this workshop. So it's this wonderful problem which was introduced by Bruna, Regev, Song, and Tang. And the reason they introduced this problem was precisely because they were motivated by hardness of learning mixtures of Gaussians. So it has a learning theoretic motivation. So what is the continuous LWE problem? If you didn't hear it yet. So this is sort of the picture, is that I sample a vector, now it's going to be, all the coordinates are going to be numbers, right? Real numbers. And all but one of them are going to be continuous Gaussians. Okay? Except the last one. What the last one is going to be, it's going to be kind of like a discrete Gaussian, slightly thick and discrete Gaussian which has the same or like very close to the
same parameters as the continuous Gaussian. Same mean, same standard deviation. And what this assumption says is that if I see any number of samples from this distribution, they're going to be computationally indistinguishable of what I see if all of them were continuous normals, meaning that it's a normal distribution. Now, this is clearly false the way I state, because if you just look at the last coordinate here, you're going to see discrete behavior in one case, continuous behavior in the other case, we can tell them apart.
But what they say if you do the sort of simplest thing you can to hide this, which is you just apply a random rotation, so you just do sort of this hiding in some random direction, and then it becomes computationally indistinguishable to tell any number of samples between these two distributions which one they came from. So what does this have to do with crypto? Well, so this is the hypothesis they have. Well, it turns out that there is a very old crypto system that was based on this assumption even before this assumption was made. And this is the Ajtai and Work crypto system that from 1997. Okay? So they had, they wrote it a bit differently. They used different set of parameters, so I'm not going to go into the differences, but I'm going to just take this assumption and kind of try to plug in what they did to see what we get, wha-- What are the consequences that we get from this.
And I'm actually not going to present to you the original Ajtai work, which is a little bit complicated. I'm going to present to you some simplification, which has some drawbacks, but it's part of some sort of work in progress I'm doing with uh, Miguel Cueto-Naval, Charlotte Hofman Devika Sharma, and Alon Rosen. So here is what the crypto system will look like. So think of it sort of, what is this HCLW problem? You're given a bunch of samples. I can write these samples as being columns of some matrix. And so I have some matrix PK. I'm going to call this the public key matrix, right? Each column of this is an independent sample from this distribution. Okay? So that's the public key. The secret key is just the hidden direction, is the direction in which these discrete samples occur.
How do I encrypt? So it's going to be a little bit like what happens in the Alekhinovich encryption. Uh, to encrypt a zero, what I'm going to do is I'm going to take this public key s-- uh, these samples, and I'm going to multiply it on the right by a random plus minus one vector. Okay? And then I'm going to apply some rounding, which I will tell you about what it is exactly in a minute, but it's not going to be too important for now. You can ignore it.
If I want to encrypt a one, what I'm going to do is I'm going to just take a uniform normal sample, which is independent of the public key. So if I want to en-- encrypt a zero, I'm going to multiply the public key by something on the right, and this is going to be an encryption of zero. Encryption of one is going to be something that has the same length, but it's completely independent of the public key. It's just a random vector. How does decryption work?
Well, I do the natural thing, is I know the direction of the secret key, and I multiply it by the encryption that I get. So if I had, what I had was an encryption of zero, if you ignore this rounding, which sort of I will tell you why you can in a second, what happens here is essentially you're multiplying the secret key-- The public key, by this randomness key that you used for the encryption, right? And the product of the secret key and the public key reveals exactly sort of the hidden component of the vector, right? So this part is going to give you something that looks like this, right? You get distinct samples from this distribution, right? You get something which is concentrated around the integers.
So now if I take this and multiply it by a plus minus one vector, what do I get? I get something which is very close to an integer, right? I get samples which are close to an integers, and then I take a plus minus one combination of them. So I get the sample, something which is close to an integer. If I do the same thing with an encryption of one, this thing here is completely random. I multiply it by a plus minus one, I get some Gaussian, right? So typically a Gaussian is not going to be close to an integer, it's going to be far. And this is sort of how I can distinguish encryptions of zero from encryption of one.
What is this rounding function? It turns out that you have to put in some rounding function if you want to argue security. And sort of the property that we want is that, okay, so let me tell you what it does And then I'll try to argue why it's secure. Um, so first of all, the way I'm going to implement it, is I take this vector which has entries which are real numbers, and the way that I'm going to round them up is I'm going to divide up the line into intervals.
--where the Gaussian weight of each interval is the same, and there are going to be some polynomial number of them. So you can think of them, there being this, some kind of polynomial intervals here. All of them have the same Gaussian weight, and the way that I'm going to round, say, a vector that gets one sample here, one sample here, one sample here, I'm just going to map it to the bucket, right? So if I label these buckets one, two, three, four, five, I'm going to round this to two, I'm going to round this to six, and so on. Okay? So that's how the rounding happens. So two things that fall into the same interval get rounded to the same value.
And it turns out that the property of this is that it's pseudorandom in the sense that if instead of the public key matrix I used a purely normal matrix, then the rounded encryption of zero and the rounded encryption of one would be statistically close, even given the matrix itself. And sort of using this you can then do a security argument, which is not too important for us. You can show that this implies that encryption is and encryption of one are indistinguishable.
They're close to one another, computationally, for an adversary that can see both. What does this have to do with statistical distance and statistical zero knowledge? Well, I claim that this variability to make the encryption secure will-- gives us a way to break the scheme in statistical zero knowledge. And to do this, I'm going to describe to you a protocol that uh, that puts this problem in statistical zero knowledge. So instead of giving you the reduction which you can also do, I'm just going to describe to you the-- the-- the-- the proof system.

Ask anything
We've read this whole study set, so questions about it get the best answers.