



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!




CS225: Pseudorandomness Prof. Salil Vadhan
March 20, 2007
Based on scribe notes by Adam Kirsch.
In the previous lectures, we have seen that very good extractors exist — extracting almost all of the min-entropy from a source with only a logarithmic seed length. But the explicit constructions we have seen (via pairwise-independent hashing and spectral expanders) are still quite far from optimal in seed length, and in particular cannot be used to give a polynomial-time simulation of BPP with a weak random source.
Fortunately, much better extractor constructions are known — ones that extract any constant fraction of the min-entropy using a logarithmic seed length, or extract all of the min-entropy using a polylogarithmic seed length. In this lecture, we will see how to construct such extractors (assuming a certain condenser construction that we will see after Spring Break).
We introduce a useful model of source that has more structure than an arbitrary k-source:
Definition 1 X = (X 1 , X 2 ,... , Xt) is a (k 1 , k 2 ,... , kt) block source if for every x 1 ,... , xi− 1 , Xi|X 1 =x 1 ,...,Xi− 1 =xi− 1 is a ki-source. If k 1 = k 2 = · · · = kt = k, then we call X a t × k block source.
Note that a (k 1 , k 2 ,... , kt) block source is also a (k 1 + · · · + kt)-source, but it comes with additional structure — each block is guaranteed to contribute some min-entropy. Thus, extracting randomness from block sources is easier task than extracting from general sources.
The study of block sources has a couple of motivations.
= n/t, then the result is a t × δ′ block source, where δ′^ = log(1/(1 − δ)). (The definition of SV sources is given in Lecture 10.)We now illustrate how extracting from block sources is easier than from general sources.
Lemma 2 Let Ext 1 : { 0 , 1 }n^1 × { 0 , 1 }d^1 → { 0 , 1 }m^1 be a (k 1 , ε 1 )-extractor, and Ext 2 : { 0 , 1 }n^2 × { 0 , 1 }d^2 → { 0 , 1 }m^2 be a (k 2 , ε 2 )-extractor with m 2 ≥ d 1. Define Ext′((x 1 , x 2 ), y 2 ) = (Ext 1 (x 1 , y 1 ), z 2 ), where (y 1 , z 2 ) = Ext 2 (x 2 , y 2 ).
Then for every (k 1 , k 2 ) block source X = (X 1 , X 2 ) taking values in { 0 , 1 }n^1 × { 0 , 1 }n^2 , it holds that Ext′(X, Ud 2 ) is (ε 1 + ε 2 )-close to Um 1 × Um 2 −d 1.
Proof: (X 1 , Y 1 , Z 2 ) = (X 1 , Ext 2 (X 2 , Ud 2 )) is ε 2 -close to (X 1 , Um 2 ) = (X 1 , Ud 1 , Um 2 −d 1 ).
Thus, (Ext 1 (X 1 , Y 1 ), Z 2 ) is ε 2 -close to (Ext 1 (X 1 , Ud 1 ), Um 2 −d 1 ), which is ε 1 -close to (Um 1 , Um 2 −d 1 ).
By the triangle inequality, Ext′(X, Ud 2 ) = (Ext 1 (X 1 , Y 1 ), Z 2 ) is (ε 1 +ε 2 )-close to (Um 1 , Um 2 −d 1 ).
The benefit of this compositoin is that the seed length of Ext′^ depends only on that of Ext 2. Thus, we get to extract from multiple blocks at the ‘price of one’. It is even better than this because typically m 2 > d 2 , so the seed length of Ext′^ can even be smaller than that of Ext 1. The lemma extends naturally to extracting from many blocks (as opposed to just two.)
Another remark is that this composition preserves ‘strongness’. If Ext 1 and Ext 2 correspond to strong extractors in the sense that their seeds are part of their outputs, then Ext′^ will also correspond to a strong extractor. If in addition d 1 = d 2 , then this construction can be seen as simply using the same seed to extract from both blocks.
Already with this simple composition, we can simulate BPP with a Santha-Vazirani source. As noted above, by breaking a SV source X with parameter δ into blocks of length , we obtain a t × k block source for t = n/, k = δ′`, and δ′^ = log(1/(1 − δ)).
Suppose that δ is a constant. Set = (10/δ′) log n, so that X is a t × k block source for k = 10 log n, and define ε = n−^2. Letting Ext : { 0 , 1 }^ × { 0 , 1 }d^ → { 0 , 1 }d+m^ be a (k, ε) extractor created using pairwise independent hash functions, we have
d = O(`) = O(log n) and m = k − 2 log
ε − O(1) > k/ 2
Composing Ext with itself t times as in Lemma 2, we obtain Ext′^ : { 0 , 1 }
n · ×{ 0 , 1 }d^ → { 0 , 1 }d+^
n ` ·m , we have that Ext′(X, Ud) is ε′-close to uniform, for ε′^ = 1/n. This tells us that Ext′^ essentially extracts half of the min-entropy from X, given a random seed, and gives us the following result.
Theorem 3 For any constant δ, we may simulate any BPP algorithm with an SV source with parameter δ in polynomial time.
Proof: Use the above construction of Ext′^ to supply random bits to the algorithm. Enumerate over all possible seeds, and take a majority vote.
As one might expect, the above procedure performs very badly when δ is not a constant. The reason is that the big-O notation in the analysis hides a (1/δ′) in the exponent of the running time. This can be overcome using extractors based on almost-pairwise independence, as on Problem Set
Given the results of the previous section, a common approach to constructing extractors for general k-sources is to reduce the case of general k-sources to that of block sources.
One approach to doing this is as follows. Given a k-source X of length n, where k = δn, pick a (pseudo)random subset S of the bits of X, and let W = X|S be the bits of X in those positions.
In this section, we will use the ideas outlined in the previous section — namely condensing and block-source extraction — to construct an extractor that is optimal up to constant factors (assuming the condenser of Theorem 7).
Theorem 8 Assume Theorem 7. Then for all positive integers n ≥ k and all ε > 0 , there is an explicit (k, ε) extractor Ext : { 0 , 1 }n^ × { 0 , 1 }d^ → { 0 , 1 }m^ with m = k/ 2 and d = O(log(n/ε)).
We will use the following building block, which you will construct on the homework.
Lemma 9 Assume Theorem 7. Then for every constant t > 0 and all positive integers n ≥ k and all ε > 0 , there is an explicit (k, ε) extractor Ext : { 0 , 1 }n^ × { 0 , 1 }d^ → { 0 , 1 }m^ with m = k/ 2 and d = k/t + O(log(n/ε)).
The point is that this extractor has a seed length that is an arbitrarily large constant factor (namely t/2) smaller than its output length. Thus, if we use it as Ext 2 in the block-source extraction of Lemma 2, the resulting seed length will be smaller than that of Ext 1 by an arbitrarily large constant factor.
We now proceed with the proof of Theorem 8. Our approach will be to reduce the task of extracting from sources of min-entropy k to that of extracting from sources of min-entropy at most k/2.
Given n and ε > 0, we construct the following by induction on i:^1 For every k ≤ 2 i^ · 8 d, we will provide an explicit (k, εi) extractor Extk : { 0 , 1 }n^ × { 0 , 1 }d^ → { 0 , 1 }k/^2 where d = c log(n/ε 0 ) and ε 0 = ε/nc^ for a constant c to be determined in the proof and the εi’s are an increasing sequence that we will bound later.
Note that the seed length d and the fraction of min-entropy extracted (namely 1/2) should be independent of i.
The base case (i = 0) follows from Lemma 9, setting t = 9 and taking c to be a sufficiently large constant.
For the induction step, suppose the above holds for i = j − 1 and we will prove it for i = j. Given a k-source X of length n for k ≤ 2 j^ · (8d), we proceed as follows:
for a sufficiently small choice of the constant α and a sufficiently large choice of the constant c.
All in all, our new extractor has seed length at most d/8 + O(log(n/ε 0 )), error εj ≤ εj− 1 + O(ε 0 ), and output length k′/ 2 ≥ k/5. This would be sufficient for our induction except that the output length is only k/5 rather than k/2. This can be remedied by applying the extractor several times.
Lemma 10 Suppose Ext 1 : { 0 , 1 }n^ ×{ 0 , 1 }d^1 → { 0 , 1 }m^1 is a (k 1 , ε 1 ) extractor and Ext 2 : { 0 , 1 }n^ × { 0 , 1 }d^2 → { 0 , 1 }m^2 is a (k 2 , ε 2 ) extractor for k 2 = k − m 1 − log(1/ε 3 ). Then Ext′^ : { 0 , 1 }n^ × { 0 , 1 }d^1 +d^2 → { 0 , 1 }m^1 +m^2 is a (k 1 , ε 1 + ε 2 + ε 3 ) extractor.
With one application of our extractor we extract k/5 bits of the source min-entropy. With the second application, we extract another (4k/ 5 −log(1/ε 0 ))/5 bits, and so on. After four applications, we have extracted all but (4/5)^4 · k + O(log(1/ε 0 ) ≤ k/2 bits of the min-entropy. Our seed length is then 4 · (d/8 + O(log(n/ε 0 ))) ≤ d and the error is εj = O(εj− 1 ) = 2O(j)^ · ε 0 ≤ ε.
This completes the proof of Theorem 8, of course assuming Theorem 7 (which we will prove after Spring Break).
Applying Lemma 10 to Theorem 8, we can extract any constant fraction of the min-entropy using a logarithmic seed length, and all the min-entropy using a polylogarithmic seed length.
Corollary 11 Assume Theorem 7. Then for every constant α > 0 and all positive integers n ≥ k and all ε > 0 , there is an explicit (k, ε) extractor Ext : { 0 , 1 }n^ ×{ 0 , 1 }d^ → { 0 , 1 }m^ with m = (1−α)k and d = O(log(n/ε)).
Corollary 12 Assume Theorem 7. Then for all positive integers n ≥ k and all ε > 0 , there is an explicit (k, ε) extractor Ext : { 0 , 1 }n^ × { 0 , 1 }d^ → { 0 , 1 }m^ with m = k + d − O(log(1/ε)) and d = O(log k · log(n/ε)).
For the latter, an extractor that extracts k + d − O(log(1/ε)) bits of min-entropy using a seed of length O(k + log(n/ε)) should be used for the final extraction to ensure that we do not lose the randomness of the seed. Such an extractor can be obtained by combining Theorem 7 with pairwise-independent hashing or by an extractor based on almost pairwise-independent hashing.
A summary of the extractor parameters we have seen is in Table 1.