Docsity

Cryptographic Primitives Based on Hard Learning Problems, Exercises of Cryptography and System Security

Toggle sidebar
bg1
Cryptographic Primitives Based on Hard Learning Problems
Avrim Blum
Carnegie-Mellon University
Pittsburgh, Pennsylvania
MerrickFurst
y
Carnegie-Mellon University
Pittsburgh, Pennsylvania
Michael Kearns
AT&T Bell Laboratories
Murray Hill, New Jersey
Richard J. Lipton
Princeton University
Princeton, New Jersey
Abstract
Modern cryptography has had considerable impact on the
development of computational learning theory.Tools from
cryptographyhave been used in proving nearly all of the
strong negative results for learning. In this paper, we give
results in the reverse direction by showing how to construct
several cryptographic primitives based on certain assump-
tions on the diculty of learning. Thus we develop further
a line of thoughtintro duced by Impagliazzo and Levin [5].
As we describe, standard denitions in learning theory
and cryptography do not appear to corresp ond perfectly in
their original forms. In particular, a learning algorithm is
generally required to be much more successful than a \sta-
tistical test" in cryptography.However, we show that natu-
ral modications to standard learning denitions can yield
a strong correspondence 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 property 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
especially adept in preserving the degree of parallelism in-
herent in the hard functions and distributions. Thus, \sim-
ple" functions that are apparently dicult 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
avery 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 intractability of deco ding random linear codes). Our
construction is simpler than related constructions that have
been described previously. A similar construction is appar-
ently already known to some researchers in the cryptography
community as a \folk theorem".
1 Introduction and Motivation
The contribution of modern cryptography to research
in computational learning theory has been signicant:
ideas and constructions from cryptographyhave been
essential in proving many of the strongest negative re-
sults for ecient learning [4, 8, 1, 9]. In fact, virtu-
ally every intractability result in Valiant's model [12]
(that is
representation-independent
in the sense that it
Supported in part by an NSF PostdoctoralFellowship.
y
Supported in part by NSF grant CCR-9119319.
does not rely on an articial syntactic restriction on the
learning algorithm's hypotheses) has at its heart a cryp-
tographic construction (and therefore a cryptographic
assumption). In particular, the assumption
P6
=
NP
has so far proven insucient to obtain representation-
independent hardness results for learning.
This state of aairs naturally leads one to wonder
if suchintractability results for learning in fact
require
cryptographic assumptions. In this paper we givea
partial positive 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 model of
learning, and we describe our cryptographic primitives
as uniform circuit families rather than polynomial time
algorithms, since this allows us to make more precise
statements about the complexity and depth of these
primitives. We are especially interested in constructions
that preserve the parallelism present in the hard-to-
learn function classes and distributions. The following
are our main results.
For any class of functions that is hard to \weakly pre-
dict" in our learning model, we construct a cryp-
tographically secure pseudorandom bit generator.
The circuit complexity of this generator can be ex-
plicitly given in terms of the circuit complexityof
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 describe 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 choosing (known as
membership queries
)
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Cryptographic Primitives Based on Hard Learning Problems and more Exercises Cryptography and System Security in PDF only on Docsity!

Cryptographic Primitives Based on Hard Learning Problems

Avrim Blum

Carnegie-Mellon University

Pittsburgh, Pennsylvania

Merrick Fursty

Carnegie-Mellon University

Pittsburgh, Pennsylvania

Michael Kearns

AT&T Bell Lab oratories

Murray Hill, New Jersey

Richard J. Lipton

Princeton University

Princeton, New Jersey

Abstract

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".

1 Intro duction and Motivation

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

assumption). In particular, the assumption P 6 = N P

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.

 For any class of functions that is hard to \weakly pre-

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.

 For any class of functions that is hard to \strongly

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.

 For any class of functions that is hard to weakly pre-

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.

 In addition to these primitives based on general in-

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

to construct a bit generator in N C given a one-way func-

tion in N C. One of the main p otential b ene ts of this

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.

1.1 The Apparent Necessity of

Average-Case Assumptions

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

of n to learn al l functions over f 0 ; 1 gn^ that meet some

(usually strong) constraints known to the algorithm. For instance, we might ask that the learning algorithm

b e able to learn any DNF formula over f 0 ; 1 gn^ with at

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.

2 Preliminaries

2.1 Learning Mo dels

The learning mo dels we consider are mo dels of learning b o olean functions from labeled examples.

Throughout the pap er, Fn will denote a class of

b o olean functions over f 0 ; 1 gn, so each f 2 Fn is a map-

ping f : f 0 ; 1 gn^! f 0 ; 1 g. We assume that each func-

tion in Fn is represented using some xed and reason-

able representation scheme. A representation scheme

for Fn is a pair (Rn ; En ), where Rn  f 0 ; 1 gr^ (n)^ for

some xed p olynomial r (n), and En : Rn! Fn is an

onto mapping.

We interpret a string  2 Rn as a representation of

the function En ( ) 2 Fn. Note that a function f 2

Fn may have many representations in Rn. Also, since

Rn contains only r (n)-bit strings, we are insisting that

each function in Fn have a \short" representation. We

shall see that the computational details of evaluating the representations are relevant to our study. We de ne

F = fFn g and (R; E ) = f(Rn ; En )g.

In our average-case learning mo dels, the unknown target function will b e generated according to some

xed distribution Pn over the function class Fn from

the distribution ensemble P = fPn g over F. When we

have xed a representation scheme (R; E ) for F , some-

times we instead prefer to think of Pn as a distribution

Finally, we will need to de ne circuit sequences that are formed from other circuit sequences in certain

ways. If C = fCn g is a circuit sequence, we de ne

C m^ = fC mn g to b e the circuit sequence of m-fold repli-

cation of the circuits in C. More precisely, the cir-

cuit C mn takes m  n inputs, and consists of m dis-

joint \copies" of Cn : on inputs x 1 ; : : : ; xm 2 f 0 ; 1 gn,

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

the sequence C  D = fCn  Dn g as follows: the circuit

Cn  Dn has q (n) inputs for some p olynomial q (n). Some

or all of these inputs feed the xed circuit Dn , whose outputs (along with some or all of the inputs) in turn

feed the xed circuit Cn. (Note that Cn  Dn is techni-

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

sequences of circuits, the sequence C  (D ; E ) is that in

which the circuit Cn  (Dn ; En ) has some or all of its

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

the comp osition op eration  increases circuit depth.

3 General Results

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.

3.1 A Bit Generator Based on Hardness

for Weak Prediction

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-

quence G = fGn g, where Gn takes n bits of input and

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

exists an n 0 such that for al l n  n 0 ,

Pr y 2f 0 ; 1 gg^ (n)^

[T (y ) = 1] Pr

x2f 0 ; 1 gn

[T (Gn (x)) = 1]  1 =q (n):

We cal l the function e(n) = g (n) n the expansion of

G.

We rst tackle the sp ecial case in which the input distribution ensemble is uniform.

Theorem 1 Let F be a class of boolean functions,

(R; E ) a representation scheme for F , P a distribution

ensemble over R, and U the uniform distribution en-

semble over f 0 ; 1 g^. Let (R; E ) be evaluated by the cir-

cuit sequence E , and let P be generated by the uniform

circuit sequence P. Then if F is not weakly predictable

on average with respect to P and U , there is a CSPRBG

computed by the uniform circuit sequence E m(n)^  P for

some xed polynomial m(n).

Pro of: (Sketch) Informally, for any n, the bit gen-

erator Gn b ehaves as follows: it takes as input a ran-

dom bit string, and uses some of these bits to generate

a function f 2 Fn according to the distribution Pn.

The rest of the input bits are used directly as m in-

puts, x 1 ; : : : ; xm 2 f 0 ; 1 gn^ for f. The output of the

generator consists of x 1 ; : : : ; xm followed by the m bits f (x 1 ); : : : ; f (xm ).

More formally, Gn takes as input a random string of

p(n) + m  n bits. Here p(n) is the numb er of random

input bits required by the circuit Pn for generating a

representation f 2 Rn of a function f = En (f ) 2 Fn ,

where f is distributed according to P ; m will b e de-

termined by the analysis. The generator feeds the rst p(n) input bits into Pn to obtain f. The remaining

m  n random input bits are regarded as m random

vectors x 1 ;    ; xm 2 f 0 ; 1 gn. For each i the generator

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

G is computed by the circuit sequence E m^  P. Since

our generator pro duces g (n) = m  n + m output bits,

we obtain expansion provided that m > p(n).

We now argue that G is in fact a CSPRBG. For con-

tradiction, supp ose that G is not, and let T b e a p oly-

nomial time algorithm such that

Pr y 2f 0 ; 1 gg^ (n)

[T (y ) = 1] Pr

x2f 0 ; 1 gn

[T (G (x)) = 1]  1 =q (n)

for some p olynomial q (n). For each i, let ti denote the probability that T outputs 1 when its rst i input bits

are the rst i bits of G (x) on random x, and the re-

maining input bits of T are truly random. Then we

have jt 0 tg (n) j  1 =q (n), and by a standard \proba-

bility walk" argument there must b e an 1  i < g (n)

such that jti ti+1 j  1 =n  q (n) (note that in fact

i must b e larger than m  n since the rst m  n bits

of Gn 's output are in fact truly random, having sim-

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

Pn and Dn , and once such an i is found we can \center

the bias" to pro duce an ecient algorithm T 0 such that

t^0 i  1 = 2 + 1 =q 0 (n) and t^0 i+1  1 = 2 1 =q 0 (n) for some

p olynomial q (n). Algorithm T 0 thus has the following prop erty: sup- p ose we draw a function f randomly according to

Pn , and draw m random n-bit vectors x 1 ; : : : ; xm

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

g (n) i 1 random bits. Then T 0 can determine with

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-

ples according to Un of a target function f drawn

according to Pn , and we also have a random

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

bi+1 , followed by g (n) i 1 random bits. Then it is

easy to show by a simple averaging argument that the following strategy yields an algorithm for weakly pre-

dicting F with resp ect to P and U : with the other

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.

Lemma 2 Let F be a class of boolean functions, P a

distribution ensemble over F , and D a distribution en-

semble over f 0 ; 1 g^. Let the ensemble D be generated

by the circuit sequence D , and let F  D denote the

class of functions obtainable by composing a function

in Fn with the circuit Dn. Then for any , if F is not

-predictable on average with respect to P and D , then

F  D is not -predictable on average with respect to P

and the uniform ensemble U over f 0 ; 1 g^.

Pro of: Immediate; we are simply letting the compu-

tation of the hard distribution ensemble D b e part of

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.

Corollary 3 Let F be a class of boolean functions,

(R; E ) a representation scheme for F , P a distribu-

tion ensemble over R, and D a distribution ensemble

over f 0 ; 1 g^. Let (R; E ) be evaluated by the circuit se-

quence E , let P be uniformly generated by the circuit

sequence P , and let D be uniformly generated by the

circuit sequence D. Then if F is not weakly predictable

on average with respect to P and D , there is a CSPRBG

computed by the uniform circuit sequence (E D )m(n)^ P

for some xed polynomial m(n).

3.2 Improved Expansion via Nisan-

Wigderson

The pseudorandom generator just describ ed takes

p(n) + m  n truly random input bits to m  n + m output

bits, giving expansion e(n) = m p(n). While we can

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.

Informally, the new CSPRBG Gn takes as input a

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

f according to the hard distribution Pn over the func-

tion class. (For simplicity we assume that the hard

distribution Dn over the inputs f 0 ; 1 gn^ is the uniform

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

n^4 sets S 1 ; : : : ; Sn^4 such that: (1) Si  fv 1 ; : : : ; vn^2 g;

(2) jSi j = n for all i; and (3) jSi

T

Sj j  log n for all

i 6 = j.

Our new generator will work as follows: as b efore, the

rst p(n) bits are used to generate a function f 2 Fn

according the the distribution Pn , and the remaining

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

(n^2 + i)th output bit is fi (v ). Thus, Gn takes p(n) + n^2

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-

bility that f 0 ( x~) = f ( ~x ) is at least 1 3 =q (n), violating

the assumption that F is not 3 =q (n)-predictable.

3.4 A Private-Key Cryptosystem Based

on Hardness for Weak Prediction

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

the complexity of evaluating the representation (R; E )

maps directly onto the complexity of decrypting, and that plus the complexity of generating examples from

the distribution ensemble D maps onto the complexity

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

En; (x) = En (; x). For example, if (R; E ) is a repre-

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.

Supp ose F is a class of b o olean functions, (R; E ) a

representation scheme for F , P a distribution ensemble

over R, and D a distribution ensemble over f 0 ; 1 g^. In

addition, supp ose (R; E ) is evaluated by the uniform

circuit sequence E , and P and D are generated by the

uniform circuit sequences P and D resp ectively. We assume b elow that the probability a random example

from Dn is p ositive for a random function f from Pn is

in the range [ 12 n^1 ; 12 + n^1 ]. Notice that if this is not the

case for in nitely many n, then F is weakly predictable

on average with resp ect to P and D since a prediction

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.

The cryptosystem we create given F , P , and D is

as follows. The key generator G takes as input 1 n^ and uses this to generate Pn. It then feeds p(n) random bits

into Pn to pro duce a string  2 Rn. String  is the key

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

(according to D ) p ositive example of f and encrypts a

0 by sending a random (according to D ) negative exam-

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)

by our assumption on D. (This could b e improved by

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).

Theorem 5 If F is not weakly predictable on aver-

age with respect to P and D , then the cryptosystem

(G; E; D) described above is secure against chosen mes-

sage attack. If furthermore F is not weakly predictable

with membership queries with respect to P and D , then

(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

a weak prediction algorithm (for F with resp ect to P

and D ).

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

F is weakly predictable with memb ership queries with

resp ect to P and D.

4 A Bit Generator Based on

Parity Functions with Noise

Let Sn denote the set of all parity functions over

f 0 ; 1 gn; sp eci cally, for each of the 2 n^ subsets S =

fxi 1 ; : : : ; xik g  fx 1 ; : : : ; xn g there is a function fS 2

Sn de ned by

fS (x 1 ; : : : ; xn ) = xi 1      xik :

Let S = fSn g.

In this section we describ e a simple bit generator whose security is based on the assumption that the class

S is hard to learn in the presence of classi cation noise.

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-

b eled example hx; f (x)i of the target function f , will

instead receive a noisy lab eled example hx; `i. Here

= f (x) with probability 1  and = :f (x) with

probability  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

that for in nitely many n, will for any function fS 2 Sn

(given access to random noisy examples of fS from the

uniform Un distribution on f 0 ; 1 gn^ with noise rate  )

pro duce the set S with probability at least 1 .

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-

tion in Sn. We have thus eliminated the assumption of

a distribution Pn. Second, the learning algorithm must

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-

b eled examples is N P -hard [2] (and easy to show it is

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.

The input seed to the generator G will consist of

s(n) = n + m  n + H( )  m random bits, regarded

as a blo ck sf of n bits, followed by m blo cks x 1 ; : : : ; xm

of n bits each, followed by a blo ck sr of H( )  m bits.

Here m will b e determined by the analysis, and H( )

is the binary entropy of the noise rate  in the parity assumption.

The blo ck sf enco des a parity function fS 2 Sn ; each

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

is an H( )  m-bit vector enco ding an m-bit vector s^0 r ,

where s^0 r has exactly b  mc 1's. Such an enco ding can

b e shown to require sr to b e of length only H( )  m,

and this enco ding can b e done in a numb er of standard

ways. Thus, if we randomly cho ose sr among all H( ) 

m-bit vectors, then we randomly cho ose s^0 r from among

all m-bit vectors with exactly b  mc 1's.

[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.

5 Technical App endix

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.

De nition 8 Let F be a class of boolean functions, P

a distribution ensemble over F , and D a distribution

ensemble over f 0 ; 1 g. For any 0 < ; ; < 1 we say

that F is ( ; ; )-predictable on average with resp ect

to P and D if there exists a polynomial time algorithm

M (taking a labeled sample hS; f i as input) and a poly-

nomial m(n) such that for in nitely many n we have the fol lowing property: with probability at least over the

random draw of a target function f 2 Pn , there is prob-

ability at least of drawing an input sample S 2 D m n(n)

such that the output of M , h = M (hS; f i), is a boolean

function satisfying Prx2D [f (x) 6 = h(x)] .

Thus, if in this de nition we have ;  1 and  0

then we ask that for an in nite numb er of values of n,

for almost all functions (with resp ect to P ) we almost

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.

Theorem 7 Let F be a class of boolean functions, P a

distribution ensemble over F , and D a distribution en-

semble over f 0 ; 1 g. If F is -predictable with respect to

P and D , then F is (1 2

p

p

)-predictable with

respect to P and D. Here 0 <  < 1 is an input, and the

resulting (1 2

p

p

)-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

algorithm. For any lab eled sample hS; f i we can inter-

pret M as de ning a function hhS;f i (x) = M (hS; f i; x).

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

p

 (with resp ect to f and D ) is

at most

p

. Similarly, if for each f , pf is the prob- ability of drawing an S resulting in an hhS;f i of error larger than

p

, then the probability of drawing an f

such that pf exceeds 1  is at most

p

p

This implies that F is (1 2

p

p

)-predictable. We can b o ost the sample con dence parameter from  to

any desired value 1  by rep eated runs of M along

with hyp othesis testing.