Small-bias sample space explained
In theoretical computer science, a small-bias sample space (also known as
-biased sample space
,
-biased generator
, or small-bias probability space
) is a probability distribution that fools parity functions.In other words, no parity function can distinguish between a small-bias sample space and the uniform distribution with high probability, and hence, small-bias sample spaces naturally give rise to pseudorandom generators for parity functions.The main useful property of small-bias sample spaces is that they need far fewer truly random bits than the uniform distribution to fool parities. Efficient constructions of small-bias sample spaces have found many applications in computer science, some of which are derandomization, error-correcting codes, and probabilistically checkable proofs.The connection with error-correcting codes is in fact very strong since
-biased sample spaces are
equivalent to
-balanced error-correcting codes.
Definition
Bias
Let
be a
probability distribution over
.The
bias of
with respect to a set of indices
is defined as
[1] biasI(X)
=
\left|
\Prx\sim\left(\sumi\inxi=0\right)
-
\Prx\sim\left(\sumi\inxi=1\right)
\right|
=
\left|
2 ⋅ \Prx\sim\left(\sumi\inxi=0\right)
-1
\right|
,
where the sum is taken over
, the
finite field with two elements. In other words, the sum
equals
if the number of ones in the sample
at the positions defined by
is even, and otherwise, the sum equals
.For
, the empty sum is defined to be zero, and hence
.
ϵ-biased sample space
A probability distribution
over
is called an
-biased sample space if
holds for all non-empty subsets
I\subseteq\{1,2,\ldots,n\}
.
ϵ-biased set
An
-biased sample space
that is generated by picking a uniform element from a
multiset
is called
-biased set.The
size
of an
-biased set
is the size of the multiset that generates the sample space.
ϵ-biased generator
An
-biased generator
is a function that maps strings of length
to strings of length
such that the multiset
XG=\{G(y) \vert y\in\{0,1\}\ell\}
is an
-biased set. The
seed length of the generator is the number
and is related to the size of the
-biased set
via the equation
.
Connection with epsilon-balanced error-correcting codes
There is a close connection between
-biased sets and
-balanced linear error-correcting codes.A linear code
of message length
and block length
is
-balanced if the
Hamming weight of every nonzero codeword
is between
and
.Since
is a linear code, its
generator matrix is an
-matrix
over
with
.
Then it holds that a multiset
is
-biased if and only if the linear code
, whose columns are exactly elements of
, is
-balanced.
[2] Constructions of small epsilon-biased sets
Usually the goal is to find
-biased sets that have a small size
relative to the parameters
and
.This is because a smaller size
means that the amount of randomness needed to pick a random element from the set is smaller, and so the set can be used to fool parities using few random bits.
Theoretical bounds
The probabilistic method gives a non-explicit construction that achieves size
.The construction is non-explicit in the sense that finding the
-biased set requires a lot of true randomness, which does not help towards the goal of reducing the overall randomness.However, this non-explicit construction is useful because it shows that these efficient codes exist.On the other hand, the best known lower bound for the size of
-biased sets is
s=\Omega(n/(\epsilon2log(1/\epsilon))
, that is, in order for a set to be
-biased, it must be at least that big.
Explicit constructions
There are many explicit, i.e., deterministic constructions of
-biased sets with various parameter settings:
. The construction makes use of
Justesen codes (which is a concatenation of
Reed–Solomon codes with the
Wozencraft ensemble) as well as
expander walk sampling.
\displaystyles=O\left(
\right)2
. One of their constructions is the concatenation of
Reed–Solomon codes with the
Hadamard code; this concatenation turns out to be an
-balanced code, which gives rise to an
-biased sample space via the connection mentioned above.
-balanced code with
\displaystyles=O\left(
| n |
\epsilon3log(1/\epsilon) |
\right)
.
\displaystyles=O\left(
| n |
\epsilon2log(1/\epsilon) |
\right)5/4
.
\displaystyles=O\left(
\right)
which is almost optimal because of the lower bound.These bounds are mutually incomparable. In particular, none of these constructions yields the smallest
-biased sets for all settings of
and
.
Application: almost k-wise independence
An important application of small-bias sets lies in the construction of almost k-wise independent sample spaces.
k-wise independent spaces
A random variable
over
is a
k-wise independent space if, for all index sets
of size
, the
marginal distribution
is exactly equal to the
uniform distribution over
.That is, for all such
and all strings
, the distribution
satisfies
.
Constructions and bounds
k-wise independent spaces are fairly well understood.
- A simple construction by achieves size
.
- construct a k-wise independent space whose size is
.
- prove that no k-wise independent space can be significantly smaller than
.
Joffe's construction
constructs a
-wise independent space
over the
finite field with some prime number
of elements, i.e.,
is a distribution over
. The initial
marginals of the distribution are drawn independently and uniformly at random:
.For each
with
, the marginal distribution of
is then defined as
Yi=Y0+Y1 ⋅ i+Y2 ⋅ i2+...+Yk-1 ⋅ ik-1,
where the calculation is done in
. proves that the distribution
constructed in this way is
-wise independent as a distribution over
.The distribution
is uniform on its support, and hence, the support of
forms a
-wise independent set.It contains all
strings in
that have been extended to strings of length
using the deterministic rule above.
Almost k-wise independent spaces
A random variable
over
is a
-almost k-wise independent space if, for all index sets
of size
, the restricted distribution
and the uniform distribution
on
are
-close in 1-norm, i.e.,
.
Constructions
give a general framework for combining small k-wise independent spaces with small
-biased spaces to obtain
-almost k-wise independent spaces of even smaller size.In particular, let
be a
linear mapping that generates a k-wise independent space and let
be a generator of an
-biased set over
.That is, when given a uniformly random input, the output of
is a k-wise independent space, and the output of
is
-biased.Then
with
is a generator of an
-almost
-wise independent space, where
.
[3] As mentioned above, construct a generator
with
, and construct a generator
with
\ell=logs=logh+O(log(\epsilon-1))
.Hence, the concatenation
of
and
has seed length
\ell=logk+loglogn+O(log(\epsilon-1))
.In order for
to yield a
-almost k-wise independent space, we need to set
, which leads to a seed length of
\ell=loglogn+O(k+log(\delta-1))
and a sample space of total size
2\ell\leqlogn ⋅ poly(2k ⋅ \delta-1)
.
References
-
- Book: Benny . Chor . Benny Chor . Oded . Goldreich . Johan . Håstad . Joel . Freidmann . Steven . Rudich . Roman . Smolensky . 26th Annual Symposium on Foundations of Computer Science (SFCS 1985) . The bit extraction problem or t-resilient functions . 1985 . 396–407 . 10.1109/SFCS.1985.55 . 978-0-8186-0644-1. 10.1.1.39.6768 . 6968065 .
Notes and References
- cf., e.g.,
- cf., e.g., p. 2 of
- Section 4 in