






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Mo dern cryptography has had considerable impact on the development of computational learning theory. To ols from cryptography have b een used in proving nearly all of the strong negative results for learning. In this pap er, we give results in the reverse direction by showing how to construct several cryptographic primitives based on certain assump- tions on the diculty of learning. Thus we develop further a line of thought intro duced by Impagliazzo and Levin [5]. As we describ e, standard de nitions in learning theory and cryptography do not app ear to corresp ond p erfectly in their original forms. In particular, a learning algorithm is generally required to b e much more successful than a \sta- tistical test" in cryptography. However, we show that natu- ral mo di cations to standard learning de nitions can yield a strong corresp ondence b etween hardness for learning and cryptography. The particular cryptographic primitives we consider are pseudorandom bit generators, one-way functions, and private-key cryptosystems. We give transformations of hard learning problems into cryptographic primitives with the de- sirable prop erty that the complexity of the resulting primi- tive is not much greater than that of the hard-to-learn func- tions and distributions. In particular, our constructions are esp ecially adept in preserving the degree of parallelis m in- herent in the hard functions and distributio ns. Thus, \sim- ple" functions that are apparently dicult to learn (such as DNF formulae) may lead to cryptographic primitives of considerably reduced parallel complexity. In addition to generic transformations, we also describ e a very simple pseudorandom bit generator based on the as- sumption that the class of parity functions is hard to learn in the presense of random noise (an assumption similar to the intractabili ty of deco ding random linear co des). Our construction is simpler than related constructions that have b een describ ed previously. A similar construction is appar- ently already known to some researchers in the cryptography community as a \folk theorem".
The contribution of mo dern cryptography to research in computational learning theory has b een signi cant: ideas and constructions from cryptography have b een essential in proving many of the strongest negative re- sults for ecient learning [4, 8, 1, 9]. In fact, virtu- ally every intractability result in Valiant's mo del [12] (that is representation-independent in the sense that it
(^) Supp orted in part by an NSF Postdo ctoral Fellowship. y (^) Supp orted in part by NSF grant CCR-9119319.
do es not rely on an arti cial syntactic restriction on the learning algorithm's hyp otheses) has at its heart a cryp- tographic construction (and therefore a cryptographic
has so far proven insucient to obtain representation- indep endent hardness results for learning. This state of a airs naturally leads one to wonder if such intractability results for learning in fact require cryptographic assumptions. In this pap er we give a partial p ositive answer to this question by demonstrat- ing that under the assumption that learning problems are hard under certain natural conditions, it is p ossi- ble to construct familiar cryptographic primitives such as pseudorandom bit generators and one-way functions. These primitives are an example of the p otential contri- bution of learning theory to cryptography, and demon- strate in further detail principles rst articulated by Impagliazzo and Levin [5]. We obtain our results using an average-case mo del of learning, and we describ e our cryptographic primitives as uniform circuit families rather than p olynomial time algorithms, since this allows us to make more precise statements ab out the complexity and depth of these primitives. We are esp ecially interested in constructions that preserve the parallelism present in the hard-to- learn function classes and distributions. The following are our main results.
dict" in our learning mo del, we construct a cryp- tographically secure pseudorandom bit generator. The circuit complexity of this generator can b e ex- plicitly given in terms of the circuit complexity of the class of functions and the complexity of gen- erating the hard distribution of functions and the hard distribution of inputs to the functions. We then describ e an improved version of this genera- tor that achieves signi cantly increased expansion and is based on ideas of Nisan and Wigderson [11]. The security of this improved generator is based on the stronger assumption that weak prediction is hard even when the learning algorithm is allowed to query the unknown target function on inputs of its own cho osing (known as membership queries )
in addition to receiving random examples.
predict" in our learning mo del, we construct a one- way function, whose circuit complexity can again b e explicitly given in terms of that of the class of functions and that of generating the hard distribu- tions.
dict in our learning mo del, we construct a private- key cryptosystem secure against chosen message attack, whose circuit complexity can again b e ex- plicitly given in terms of the hard functions and distributions.
tractability assumptions, we also prop ose a simple pseudorandom bit generator based on the assump- tion that the class of parity functions is hard to learn in the presence of classi cation noise. The generator is very similar to a one-way function pro- p osed by Goldreich, Krawczyk and Luby [3], who then apply a generic transformation to obtain a bit generator. Here we mo dify this function slightly and provide an analysis showing that the output of the mo di ed function is already pseudorandom.
Note that while it is well-known that some of the primitives ab ove imply the existence of others (for in- stance, the equivalence of bit generators and one-way functions) [13, 6], we are interested in the separate re- sults b ecause the equivalences b etween primitives of- ten do not preserve complexity measures such as circuit depth (parallelism). For instance, it is not known how
line of research is that as \simple" function classes (for instance, functions with small circuit depth) continue to elude ecient learning, our b elief in the intractabil- ity of learning such classes increases, and we can ex- ploit this intractability to obtain simpler cryptographic primitives.
There are several technical barriers to the immediate translation of an assumed hardness result for learn- ing (in Valiant's mo del or any of its common vari- ants) into an interesting and useful cryptographic prim- itive, the most daunting of which center on the discrep- ancy b etween worst-case and average-case assumptions. These diculties were rst noted by Impagliazzo and Levin [5]. Roughly sp eaking, in most learning theory mo dels, a learning algorithm is required for every value
(usually strong) constraints known to the algorithm. For instance, we might ask that the learning algorithm
most n^2 terms. Thus, assuming hardness for learning seems in gen- eral to imply only that for each p olynomial time al- gorithm there exists some function meeting the con- straints that is hard for that algorithm. Under such a demanding de nition of learning, for instance, a failed DNF learning algorithm might still always b e able to learn any n^2 -term DNF provided n was even, and might learn all but a small scattered set of n^2 -term DNF formulae when n was o dd. If we consider using such a \hard" learning problem in constructing a crypto- graphic primitive, this \failed" learning algorithm will clearly cause problems: a bit generator that is easily distinguishable from random whenever the seed length is even and with overwhelming probability when the seed length is o dd is not esp ecially useful either for cryptography or for the deterministic simulation of ran- domized algorithms. We thus intro duce an average-case mo del of learning that reduces these apparently fundamental discrepan- cies b etween hardness for learning and the conditions required by cryptography, but otherwise preserves b oth the spirit and technical asp ects of many existing mo d- els in learning theory. We then pro ceed to demonstrate that this worst-case/average-case discrepancy was es- sentially the only barrier to a natural corresp ondence b etween hard learning problems and many common cryptographic primitives.
The learning mo dels we consider are mo dels of learning b o olean functions from labeled examples.
able representation scheme. A representation scheme
onto mapping.
shall see that the computational details of evaluating the representations are relevant to our study. We de ne
In our average-case learning mo dels, the unknown target function will b e generated according to some
Finally, we will need to de ne circuit sequences that are formed from other circuit sequences in certain
cation of the circuits in C. More precisely, the cir-
the output C (^) nm (x 1 ; : : : ; xm ) is the concatenation of Cn (x 1 ); : : : ; Cn(xm ). Now if C and D are sequences of circuits, we de ne
or all of these inputs feed the xed circuit Dn , whose outputs (along with some or all of the inputs) in turn
cally a set of circuits since we have not sp eci ed exactly how the inputs are wired.) Similarly, if C ,D and E are
inputs fed to the xed circuits Dn and En in parallel, whose outputs (along with some or all of the inputs) in turn feed the xed circuit Cn. It will b e helpful to keep in mind that taking multiple copies of a circuit increases the circuit width , and that
In this section, we provide what we consider to b e our general results: explicit constructions of various crypto- graphic primitives based on general assumptions ab out the diculty of learning. In the following section, we give a very sp eci c bit generator based on a particular intractability assumption for learning parity functions with noise that builds on ideas intro duced in this sec- tion. We will provide the formal de nitions for the crypto- graphic primitives as they are needed. Our de nitions are essentially standard, with the exception mentioned in the intro duction that we describ e our primitives as uniform circuit families. Again, the reason for this is that it allows us to make precise complexity statements for our primitives.
We b egin by showing that a function class hard to weakly predict on average can b e used to create a CSPRBG whose circuit depth is comparable to that of the function class plus that of generating the hard distributions.
De nition 6 A cryptographically strong pseudoran- dom bit generator (CSPRBG) is a uniform circuit se-
produces g (n) > n bits of output, with the fol lowing property: for any polynomial time algorithm T that pro- duces a boolean output and any polynomial q (n), there
Pr y 2f 0 ; 1 gg^ (n)^
x2f 0 ; 1 gn
We rst tackle the sp ecial case in which the input distribution ensemble is uniform.
some xed polynomial m(n).
Pro of: (Sketch) Informally, for any n, the bit gen-
dom bit string, and uses some of these bits to generate
The rest of the input bits are used directly as m in-
generator consists of x 1 ; : : : ; xm followed by the m bits f (x 1 ); : : : ; f (xm ).
input bits required by the circuit Pn for generating a
termined by the analysis. The generator feeds the rst p(n) input bits into Pn to obtain f. The remaining
then feeds f and xi to a parallel copy of En to obtain En (f ; xi ) = f (xi ). The output of the generator is then x 1 ; : : : ; xm ; f (x 1 ); : : : ; f (xm ). It is easy to ver fy that
we obtain expansion provided that m > p(n).
nomial time algorithm such that
Pr y 2f 0 ; 1 gg^ (n)
x2f 0 ; 1 gn
for some p olynomial q (n). For each i, let ti denote the probability that T outputs 1 when its rst i input bits
maining input bits of T are truly random. Then we
ply b een copied from the input). Furthermore, we can nd such an i (with high probability) by p erforming rep eated exp eriments with T using random draws from
the bias" to pro duce an ecient algorithm T 0 such that
p olynomial q (n). Algorithm T 0 thus has the following prop erty: sup- p ose we draw a function f randomly according to
and we give T 0 the inputs x 1 ; : : : ; xm along with f (x 1 ); : : : ; f (xi ), followed by an input bit bi+1 that is either f (xi+1 ) or a truly random bit, followed by
probability signi cantly b etter than random guessing whether its i + 1st input bit bi+1 is f (xi+1 ) or a truly random bit; we interpret an output of 1 as a guess that bi+1 is random, and an output of 0 as a guess that bi+1 = f (xi+1 ). Now supp ose we have access to random exam-
test input ~x. Supp ose we give to T 0 the ran- dom strings x 1 ; : : : ; xi 1 ; ~x; xi+1 ; : : : ; xm followed by f (x 1 ); : : : ; f (xi ), followed by an undetermined input bit
easy to show by a simple averaging argument that the following strategy yields an algorithm for weakly pre-
inputs as sp eci ed, we run T 0 b oth with bi+1 = 0 and bi+1 = 1. If b oth inputs cause an output of 0, or b oth inputs cause an output of 1, we ip a coin to predict f ( x~ ). Otherwise, we predict that f ( x~ ) is the value of bi+1 that caused T 0 to output 0. The following simple lemma relates the hardness of learning a function class with resp ect to some input dis- tribution ensemble to the hardness of learning a related function class with resp ect to the uniform distribution ensemble.
class of functions obtainable by composing a function
Pro of: Immediate; we are simply letting the compu-
the target function. From Theorem 1 and Lemma 2, we can now easily obtain a bit generator from a learning problem that is hard with resp ect to some input distribution ensemble.
for some xed polynomial m(n).
The pseudorandom generator just describ ed takes
let e(n) attain any desired value by cho osing m = m(n) as large as necessary, the expansion ratio (the numb er of output bits divided by the numb er of input bits) can never exceed 1 + 1 =n; this is b ecause we always require n input bits for each n + 1 output bits. There are standard metho ds which can b e used to amplify the expansion of any generator. However, these metho ds iterate the gen- erator and therefore signi cantly increase the resulting circuit depth. By applying a result due to Nisan and Wigderson [11] we can improve our generator to obtain a much greater expansion ratio without a corresp ondingly large in- crease in circuit depth (or size). In order to prove security, we must increase our intractability assump- tion for learning. Rather than just assuming that the class of functions is hard to weakly predict on aver- age, we assume that it is hard to weakly predict on average even when the learning algorithm is provided with memb ership queries. We now describ e how this stronger intractability assumption allows us to mo dify our generator to obtain an expansion ratio on the order of n^2 rather than just O (1) as b efore.
random string of p(n) + n^2 bits. Here, as b efore, p(n) is the numb er of random input bits required by the cir- cuit Pn for generating a representation of a function
tion class. (For simplicity we assume that the hard
distribution; similar improvements can b e given for the general case as was done ab ove.) Call the additional n^2 input bits v = v 1 ; : : : ; vn 2. It is describ ed by Nisan and Wigderson [11] how to uniformly construct a family of
Our new generator will work as follows: as b efore, the
n^2 bits v are copied to the rst n^2 output bits. Now, however, if we let fi denote the function f applied to the subset of v 1 ; : : : ; vn^2 indicated by the set Si , the
input bits and gives g (n) = n^2 + n^4 output bits, for
that Pn (v 0 ) represents a function f 0 with error at most 1 =q (n), and we can simply compute f 0 ( x~). The proba-
In section we informally describ e a quite simple and nat- ural mapping from hard learning problems to private- key cryptosystems. This mapping has the prop erty that
maps directly onto the complexity of decrypting, and that plus the complexity of generating examples from
of encrypting. So, if a simple function representation (for instance, DNF formulas) is hard to learn over a sim- ple distribution (for instance, uniform) then encrypting and decrypting are b oth easy. A private-key cryptosystem is a tuple (G; E; D) of three probabilistic p olynomial time algorithms 1. The key generator G takes as input 1 n^ , and outputs a key k of length n. The encryption algorithm E takes as input a message m and a key k , and pro duces ciphertext as output. The decryption algorithm D takes as input ci- phertext and a key and pro duces a message. We require that D(E(m; k ); k ) = m. A chosen message query is a query in which a string s is given to E, and an encryption of s using k is re- turned. A chosen ciphertext query is a query in which a string s is given to D and D(s; k ) is returned. A one bit chal lenge to an algorithm T is an encryption of a random bit, and we say that T resp onds correctly to the challenge if it correctly guesses which bit was encrypted. The private-key cryptosystems we will discuss are probabilistic schemes that encrypt one bit at a time, encrypting each bit indep endently from the previous ones. We say such a scheme is secure against chosen message attack if for any p olynomial-time \breaking" algorithm T and any p olynomials m(n) and q (n), for suciently large n, the following holds: after making m(n) bits of chosen message queries, the probability that T resp onds correctly to a one bit challenge is less than 1 = 2 + 1 =q (n). We similarly de ne the notion of b e- ing secure against chosen message and ciphertext attack (T may make b oth kinds of queries). Because we are encrypting single bits in a manner indep endent of pre- vious encryptions, this security notion is equivalent to saying that the machine T cannot correctly distinguish the encryptions of two messages of its own cho osing. So far, we have considered the complexity of a rep- resentation scheme to b e that of the asso ciated eval- uation function En (; x). In this section, it will b e
(^1) Here we depart from our p olicy of describing primitives as uniform circuit families since we intend to describ e the private- key system informally. However, it is a straightforward exercise to express the circuit complexity in terms of the circuit complexity of the hard-to-learn functions and distributions as we have b een doing.
convenient to also sp eak of the function En; , where
sentation for DNF formulas, then En is a circuit that takes a string representing a DNF formula f and some x, and pro duces f (x) as output. En; may b e much simpler, however; it is just a depth-2 circuit.
uniform circuit sequences P and D resp ectively. We assume b elow that the probability a random example
algorithm could simply draw a large sample and pre- dict on the test example based on whether p ositive or negative examples were more prevalent.
as follows. The key generator G takes as input 1 n^ and uses this to generate Pn. It then feeds p(n) random bits
given to the encryption and decryption algorithms (so, technically, the security parameter is r (n)). Let f b e the function represented by . The encryption algorithm E b egins by generating cir- cuits Dn and En , and evaluating En on the private key to create En;. It encrypts a 1 by sending a random
ple of f. This requires running Dn on d(n) random bits to create an example x, and then computing En; (x) to see if the example is of the appropriate typ e, rep eating the pro cedure if this is not the case. Notice that the exp ected numb er of calls to Dn and En; is just 2 + o(1)
encrypting many bits at a time). Decryption is even simpler than encryption. The de- cryption algorithm D b egins by generating En; , and then decrypts strings x by computing En; (x).
(G; E; D) described above is secure against chosen mes-
(G; E; D) is secure against chosen message and cipher- text attack.
Pro of: (Sketch) Supp ose algorithm M is able to break (G; E; D) with chosen message attack for in- nitely many n, and asks for the encryption of m(n) message bits. The learning algorithm simply requests 3 m(n) lab eled examples (which with high probability will result in at least m(n) p ositive examples and at least m(n) negative examples) and uses them to simu- late E for M 's message queries. It then feeds the test
input x~ to M and uses M 's resp onse as the prediction. Since r (n) is p olynomial in n, and M resp onds correctly with probability at least 1 = 2 + 1 =pol y (r (n)), this will b e
If M makes chosen ciphertext queries, the learning al- gorithm, if it is allowed memb ership queries, can answer these in the obvious way as memb ership and ciphertext queries are equivalent here. Thus, if (G; E; D) is vul- nerable to chosen message and ciphertext attack, then
In this section we describ e a simple bit generator whose security is based on the assumption that the class
This means that we add a parameter 0 < < 1 = 2 to our learning mo del called the noise rate , and now a learning algorithm, rather than always receiving a la-
= f (x) with probability 1 and = :f (x) withprobability where this choice is made indep endently for each requested example. We will in addition require the learning algorithm to actually reconstruct the tar- get function with high probability.
The Parity Assumption: For some xed constant 0 < < 1 =2, there is no algorithm taking and n as input that runs in time p olynomial in 1 = and n, and
(given access to random noisy examples of fS from the
It should b e apparent that (mo dulo the assump- tion of in nitely many n) the parity assumption is no stronger than an assumption that parity with noise is hard to learn under the uniform distribution in the Valiant mo del. Note that in comparison with our de ni- tions in earlier sections, we have increased the demands on a learning algorithm (and have thus decreased the strength of our assumption) in a numb er of imp ortant ways. First, on those values of n for which a learning algorithm \succeeds", it must succeed for every func-
now actually nd the target concept with arbitrarily high con dence. Third, the learning algorithm must learn with a p ossibly large rate of noise in the lab els. We now brie y discuss the status of this assump- tion, which app ears to b e closely related to the prob- lem of eciently deco ding random linear co des, which is a long-standing op en problem. It is known that the problem of nding the parity function that minimizes the numb er of disagreements with an input set of la-
MAX-SNP hard), and this optimization problem was used by McEliece [10] as the core of a prop osed public- key cryptosystem with informal security arguments in which the matrix of examples must b e carefully cho- sen. Our assumption app ears to b e somewhat stronger than just the intractability of the optimization prob- lem since we use an average-case setting; however, the arguments given b elow suggest (but do not formally prove) that our assumption may not b e considerably stronger. Recent results [7] provide some evidence in favor of the parity assumption by proving that parity functions cannot b e learned using a certain class of sta- tistical algorithms that include all known noise-tolerant learning algorithms in the Valiant mo del. Based on the (unproven) parity assumption, we now prop ose a rather simple and natural pseudorandom bit generator. Our generator is quite similar to a pro- p osed one-way function due to Goldreich, Krawczyk and Luby [3], who then obtain a generator by running the one-way function through a generic transformation. Essentially, our contribution is to prove that the out- put of this one-way function is already pseudorandom. This stronger assertion is apparently already known to some researchers in the cryptography community as a \folk theorem". For brevity, we will describ e this generator and its attendant theorem somewhat less formally than in pre- vious sections; many of the ideas and arguments we use should b e familiar to the reader by now.
as a blo ck sf of n bits, followed by m blo cks x 1 ; : : : ; xm
is the binary entropy of the noise rate in the parity assumption.
1 in sf indicates a variable included in the subset S. As in our previous generator, x 1 ; : : : ; xm are regarded as inputs to fS. The new element in the seed is the blo ck sr , which intuitively enco des a longer noise vector: sr
and this enco ding can b e done in a numb er of standard
m-bit vectors, then we randomly cho ose s^0 r from among
[4] Oded Goldreich, Sha Goldwasser, and Silvio Micali. How to construct random functions. Journal of the ACM, 33(4):792{ 807 , Octob er 1986. [5] R. Impagliazzo and L. Levin. No b etter ways to generate hard NP instances than picking uniformly at random. In 31st Annual Symposium on Foundations of Computer Science, Octob er 1990. [6] R. Impagliazzo, L. Levin, and M. Luby. Pseudorandom generation from one-way functions. In Proceedings of the Twenty First Annual ACM Symposium on Theory of Com- puting, May 1989. [7] Michael Kearns. Ecient noise-tolerant learning from sta- tistical queries. In Proceeding s of the Twenty-Fifth Annual ACM Symposium on the Theory of Computing, May 1993. [8] Michael Kearns and Leslie G. Valiant. Cryptographic limita- tions on learning Bo olean formulae and nite automata. In Proceedings of the Twenty First Annual ACM Symposium on Theory of Computing, pages 433{444, May 1989. To ap- p ear, Journal of the Association for Computing Machinery. [9] M. Kharitonov. Cryptographic hardness of distribution- sp eci c learning. In Proceedings of the Twenty-Fifth Annual ACM Symposium on the Theory of Computing, May 1993. [10] R. J. McEliece. A Public-Key System Based on Algebraic Coding Theory, pages 114{116. Jet Propulsion Lab, 1978. DSN Progress Rep ort 44. [11] N. Nisan and A. Wigderson. Hardness vs. randomness. In 29th Annual Symposium on Foundations of Computer Sci- ence, pages 2{12, Octob er 1988. [12] L. G. Valiant. A theory of the learnable. Communications of the ACM, 27(11):1134{ 114 2, Novemb er 1984.
[13] Andrew C. Yao. Theory and applications of trap do or func- tions. In 23rd Annual Symposium on Foundations of Com- puter Science, pages 80{91, 1982.
There are several ways in which our de nition of pre- dictability on average departs from more standard learning theory mo dels such as Valiant's mo del [12]. For instance, as we have already discussed, we ease the learning task by allowing an average-case rather than worst-case choice of the target function. We also only demand that the learning algorithm work for in nitely many values of n rather than all values of n. Further- more, in our de nition we fold the choice of a random target function, a random lab eled input sample and a random test input into a single success probability for the learning algorithm. In contrast, a typical Valiant mo del variant might de- mand the learning algorithm to succeed with high prob- ability for all target functions and for all values of n. Furthermore, success would b e de ned as pro ducing a hypothesis function with appropriately small predictive error over the input distribution, as opp osed to simply passing a single random input test. One nal di erence is that, for instance, for strong learning we say that for each 1 =q (n) allowed error rate there exists an algorithm, rather than requiring an algo- rithm for all error rates (and allowing time p olynomial in the inverse of the allowed error). While some of the describ ed di erences b etween our mo del and more standard mo dels are largely cosmetic, others seem to b e forced on us by the assumptions and prop erties required by cryptography. To clarify which di erences are sup er cial and which are fundamental,
we now intro duce another learning mo del that, while retaining the asp ects of our predictability on average mo del that seem crucial for cryptography, app ears more similar to existing learning theory mo dels.
nomial m(n) such that for in nitely many n we have the fol lowing property: with probability at least over the
then we ask that for an in nite numb er of values of n,
certainly nd a hyp othesis with very small error. Such a learning criterion is very similar in spirit to that of the Valiant mo del and its o spring. In the following simple lemma the -predictability mo del (which we nd to b e the most convenient to use in the cryptographic setting) is related to the more standard-lo oking ( ; ; )-predictability.
)-predictable with
)-prediction algorithm wil l have a running time that is polynomial in 1 =, log 1 = and the running time of the -prediction algorithm.
Pro of: (Sketch) Let M b e the assumed -prediction
From the fact that M is an -prediction algorithm, the probability of drawing an f and an S such that hhS;f i has error larger than
at most
. Similarly, if for each f , pf is the prob- ability of drawing an S resulting in an hhS;f i of error larger than
, then the probability of drawing an f
)-predictable. We can b o ost the sample con dence parameter from to
with hyp othesis testing.