Analysis of Boolean Functions
Li-Yang Tan
Linearity testing and Arrow’s theorem
Open Problem (S. Srinivasan): Suppose g:\{-1,1\}^{n}\to\pm\big{[}\frac{2}{3},1\big{]} where g(x)\in\big{[}\frac{2}{3},1\big{]} if and g(x)\in\big{[}-1,-\frac{2}{3}\big{]} if . Prove .
In this workshop we will study the analysis of boolean functions and its applications to topics such as property testing, voting, pseudorandomness, Gaussian geometry and the hardness of approximation. Two recurring themes that we will see throughout the week are:
The noisy hypercube graph is a small set expander.
Every boolean function has a “junta part” and a “Gaussian part”.
We will write to denote the coefficient and for the function , and call the Fourier expansion of . We adopt the convention that , the identically function. We will write to denote , and call this quantity the Fourier degree of .
We will sometimes refer to as the “parity-on-” function, since it takes value 1 if there are an even number of coordinates in and otherwise. Using the notation of Theorem 1, we have that , , , and .
Let . We define the inner product between and as
Proof. First note that since , where the final equality uses the fact that for . Next, we claim that
noting that this implies the theorem since iff . Recall that we have defined to be the identically 1 function, and if then exactly half the inputs have and the other half .
Proof. To see that this holds, we check that
Here we have used the Fourier expansion of for the first equality, linearity of the inner product for the second, and orthonormality of parity functions (Theorem 3) for the last.
Next we have Plancherel’s theorem, which states that the inner product of and is precisely the dot product of their vectors of Fourier coefficients.
Proof. Again we use the Fourier expansions of and to check that
The second equality holds by linearity of inner product, and the last by orthonormality.
Proof. For the first equality, we check that . The second equality holds because
Here the second equality uses an application of Parseval’s identity.
It is nice to think of as the “weight” of on , with the sum of weights of on all subsets of being 1 by Parseval’s. Often it will also be convenient to stratify these weights according to the cardinality of the set .
For example, in this notation we have and .
Note that , since is just a uniformly random pair of inputs with distance and therefore has the same distribution as . Similarly it can be checked that the convolution operator is commutative: . The following facts also follow easily from definitions:
.
.
The density for , where and , is .
Proof. By Theorem 12 and Plancherel, both sides of the identity equal .
2 Blum-Luby-Rubinfeld
It is natural to consider analogous notions for approximate linearity.
A straightforward generalization of argument given in the proof of Proposition 16 shows that Definition 18 (approximately linear ) implies Definition 17 (approximately linear ). However, the argument for the reverse implication no longer holds. We will adopt Definition 18 as our notion of approximate linearity for now, and we will see that the linearity test of Blum, Luby, and Rubinfeld [BLR93] implies that both definitions are in fact equivalent. The Fourier-analytic proof we present here is due to Bellare et. al [BCH+96].
3 Voting and influence
Puzzle: Is it possible for to have exactly non-zero Fourier coefficients, for ? Classify all functions with non-zero Fourier coefficients.
Puzzle: Find all with .
The following are a few reasonable properties one may expect of a voting scheme:
Monotone: if for all then .
Symmetric: for all permutations and .
Transitive-symmetric (weaker than symmetric): for all there exists a permutation such that and for all .
Later in this section (for the proof of Arrow’s theorem) we will also assume that voters vote independently and uniformly; this is known as the impartial culture assumption in social choice theory.
.
The quantity is known as the sensitivity of at , and so the total influence of a boolean function is also known as its average sensitivity. If is viewed as a 2-coloring of the boolean hypercube, the total influence can also be seen to be equal to times the fraction of bichromatic edges.
The proof of this proposition follows immediately from the Fourier expression for variable influence given by Theorem 24. Notice that each Fourier coefficient is weighted by its cardinality in the sum, and so total influence may also be viewed as a measure of the “average degree” of ’s Fourier expansion.
4 Noise stability and Arrow’s theorem
Let and fix . Let be the distribution on where if for all , with probability , and is uniformly random with probability . More generally, for , we have that is the distribution on strings where
If is uniformly random and , we say that and are -correlated strings; equivalently, and are -correlated if they are both uniformly random and for all .
.
Proof. The first identity follows from the linearity of the noise operator, along with the observation that . The second holds by noting that
Suppose there is an election with voters and three candidates: and . Each voter ranks the candidates by submitting three bits indicating her preferences: whether the prefers to (say, if so and otherwise), and similarly for versus and versus . Clearly a rational voter cannot simultaneously prefer to , to and to ; her ordering of the candidates must be non-cyclic.
A triple is rational if not all three bits are equal (i.e., defines a total ordering, and is a valid preference profile). We define the function to be iff not all three bits are equal.
Now suppose the preferences of the voters are aggregated into three -bit strings and , and the aggregate preference of the electorate is represented by the triple for some boolean function . Clearly we would like for the the outcome of the election to be rational; that is, .
With as the aggregating function it is possible that all voters submit rational preferences and yet the aggregated preference string is irrational.
Suppose is an aggregating function that always produces a rational outcome if all voters vote rationally. Then for some . If is further restricted to be unanimous (i.e. and ; certainly a very reasonable assumption) then must be a dictator.
The main result of this section is a robust version of Arrow’s impossibility theory due Gil Kalai [Kal02]. It expresses the probability that an aggregating function produces a rational outcome in terms of the noise stability of , under the impartial culture assumption (each voter selects an -triple uniformly and independently).
Proof. Using the arithmetization , we first note that
Theorem 35 does indeed imply Arrow’s impossibility theorem since
and so if then . Furthermore note that the probability of an irrational outcome is at least then . By a theorem of E. Friedgut, G. Kalai and A. Naor [FKN02], if then is -close to for some . Therefore Kalai’s theorem is in fact a robust version of Arrow’s impossibility theorem: if most rational voter preference profiles aggregate to a rational outcome, then the aggregating function must be close to a dictator or anti-dictator.
We conclude by giving an upper bound on level-1 Fourier weight of transitive-symmetric functions. By Theorem 35, this gives an upper bound on the probability that such functions aggregate rational voter preference profiles to a rational outcome. We will also prove a generalization of this fact (Proposition 42) using the Berry-Esséen theorem tomorrow.
Suppose for all . Then .
Proof. First note that \sum_{i=1}^{n}\hat{f}(i)^{2}=n\cdot\hat{f}(1)^{2}=n\cdot\big{(}\frac{1}{n}\sum_{i=1}^{n}\hat{f}(i)\big{)}^{2}=\frac{1}{n}\big{(}\sum_{i=1}^{n}\hat{f}(i)\big{)}^{2}. The claim then follows since we have seen that (Proposition 27).
Noise stability and small set expansion
Puzzle: Compute the Fourier expansion of . Hint: consider .
Let . We say that a random variable is -reasonable if . Equivalently, .
For example, a uniformly random bit (i.e. a Rademacher random variable) is -reasonable, and a standard Gaussian is 3-reasonable. The Berry-Esséen theorem [Ber41, Ess42] is a finitary version of the central limit theorem, giving explicit bounds on the rate at which reasonable random variables converge towards the Gaussian distribution.
where \varepsilon=\big{(}B\cdot\sum_{i=1}^{n}\sigma_{i}^{4}\big{)}^{1/2}\leq\sqrt{B}\cdot\max\left\{|\sigma_{i}|\right\}.
We prove the Berry-Esséen theorem with a weaker bound of \varepsilon=\big{(}B\cdot\sum_{i=1}^{n}\sigma_{i}^{4}\big{)}^{1/5} in Section 4.2.
Let be independent standard Gaussians. Set . Then and are -correlated Gaussians. Note that if and are -correlated Gaussians then .
and so it suffices to argue that . Next, we view
While the standard central limit theorem tells us that and each individually converges towards the standard Gaussian , the two-dimensional central limit theorem states that actually converge to -correlated Gaussians as . In fact, the two-dimensional Berry-Esséen theorem quantifies this rate of convergence, bounding the error by as long as is bounded away from . Combining this with Sheppard’s formula, we conclude that
2 The noisy hypercube graph
We now give a self-contained proof this fact, due to Talagrand [Tal96]:
Let and . Then .
The first summand is at most , and the second is at most
by Hoeffding, where the inequality holds since . Choosing , we get
The claimed inequality then follows by applying (5).
Let with for all . Then .
3 Bonami’s lemma
The next theorem, due to Bonami [Bon70], states that low degree multilinear polynomials of Rademachers are reasonable random variables (this is sometimes known as -hypercontractivity).
Proof. We proceed by induction on . If then is the constant and the inequality holds trivially for all . For the inductive step, let
Notice that has degree at most , has degree at most , and both are polynomials in variables. Notice also that the random variable is independent of both and . Therefore, we have:
where we used independence for the second equality. Now note that , , and by Cauchy-Schwarz. Therefore,
and so we have shown that .
KKL and quasirandomness
Open Problem: Prove that among all functions with , the quantity is maximized by . Less ambitiously, show .
We begin by proving the case of the small set expansion theorem: let be a set of density , and be its indicator function. We will need the following variant of Bonami’s lemma; its proof is identical to that of Theorem 43.
Theorem 44 is a special case of the hypercontractivity inequality [Bon70, Gro75, Bec75]: if and , then .
Proof. We will need a corollary of Theorem 44 that will also be useful for us when proving the KKL theorem in the next section: . To see that this holds, we check that
Here (3.1) is by Hölder’s inequality and (7) by applying Theorem 44 to ; dividing both sides by yields the claim. Applying this corollary to completes the proof:
Here the second equality is an application of Parseval’s, and the final uses the fact that is -valued.
2 Kahn-Kalai-Linial
This bound on the maximum influence is tight for the Ben-Or Linial TRIBES function [BL89]: the -way OR of -way AND’s of disjoint sets of variables (so ). We remark that while Corollary 47 only gives a improvement over the bound that follows directly from the Poincaré inequality, this factor makes a crucial difference in many applications (e.g. it is the crux of Khot and Vishnoi’s [KV05] counter-example to the Goemans-Linial conjecture [Goe97, Lin02]).
Let be a balanced, monotone function viewed as a voting scheme. Both candidates can bias the outcome of the election in their favor to 99% probability by bribing a O\big{(}\frac{1}{\log(n)}\big{)} fraction of voters.
3 Dictator versus Quasirandom tests
A few prototypical quasirandom functions are the constants (these are -quasirandom), the majority function (()-quasirandom), and large parities (-quasirandom). Unbiased juntas, and dictators in particular, are prototypical examples of functions far from quasirandom. The next proposition states that even functions far from being quasirandom can only have a small number of variables with large noisy influence:
It remains to check that for any : to see this holds, note that for any , and so summing over from to gives us . We have shown that , and the proof is complete.
Consider the problem of testing dictators: given blackbox access to a boolean function , if is a dictator the test accepts with probability 1, and if is -far from any of the dictators it accepts with probability . Implicit in Kalai’s proof of Arrow’s impossibility theorem (Theorem 35) is a 3-query test that comes close to achieving this:
As we will see on Saturday, for applications to hardness of approximation (UGC-hardness in particular) it suffices to design a test that distinguishes dictators from -quasirandom functions, instead of one that distinguishes dictators from functions -far from dictators.
Let . A dictator versus quasirandom test is defined as follows. Given blackbox access to a function ,
The test makes non-adaptive queries to .
If is a dictator, it accepts with probability at least .
If is -quasirandom, it accepts with probability at most .
As we will see, often we will need to assume that is odd (i.e. for all , or equivalently, for all even ). Let us consider the test as a dictator versus quasirandom test, under the promise that is odd. We have seen that the test has perfect completeness (i.e. ), and now we determine the value of . First note that since is odd,
Now let be a -quasirandom function. Applying the Majority Is Stablest theorem (we will need a statement of it for functions with -small -noisy influences instead of -small regular influences), we have
We consider two more examples of dictator versus quasirandom tests and compute their and values: the -noise test of S. Khot, G. Kindler, E. Mossel and R. O’Donnell [KKMO07], and J. Håstad’s test [Hås01].
First note the -noise test accepts with probability , the probability that is not flipped in . For soundness, let be an odd -quasirandom function and note that
where once again we have used the Majority Is Stablest theorem along with Sheppard’s formula (the assumption that is odd is used in the application of the Majority Is Stablest theorem, which requires need ). Different values of result in different versus ratios; for example, if then and .
Note that this is identical to the linearity test, except with the noisy instead of . Once again it is easy to see that dictators pass with probability , and it remains to analyze soundness:
Since the test accepts -quasirandom functions with probability at most (i.e. ), we have shown that it is a dictator versus quasirandom test.
CSPs and hardness of approximation
We begin by noting that function testers can be viewed more generally as string testers: the tester is given blackbox access to a string (i.e. the truth-table of , so ), and if satisfies some property (e.g. dictatorship) the tester accepts with probability say at least , and if satisfies some other property (e.g. quasirandomness, far from dictatorship, etc.) it rejects with probability at least .
We may view (non-adaptive) string testers simply as a list of instructions. For example,
with probability query and accept iff
with probability query and accept iff
with probability query and accept iff
Here are predicates . From this point-of-view, we see that a string tester naturally defines a weighted constraint satisfaction problem (CSP) over a domain of boolean variables, with the predicates ’s as constraints and the associated ’s as weights. The question of determining which string passes the test with highest probability is then equivalent to the question of finding an optimal assignment that satisfies the largest weighted fraction of predicates.
On Saturday Per will prove the following theorem establishing a formal connection between dictator versus quasirandom tests, the Unique-Label-Cover problem, and the hardness of approximating certain CSPs [Kho02, KR03, KKMO07, Aus08]:
Suppose there is an explicit dictator versus quasirandom test that uses predicates . For every there exists a polynomial-time reduction where:
The Unique Games Conjecture [Kho02] asserts that approximating the Unique-Label-Cover problem is NP-hard. Theorem 53 therefore says that assuming the UGC, for any constant an explicit dictator versus quasirandom test implies the NP-hardness of -factor approximating CSPs with constraints corresponding to the predicates used by the test.
Approximating MAX-3NAE-SAT to a factor of is NP-hard.
Approximating MAX-2LIN to a factor of is NP-hard.
Approximating MAX-3LIN to a factor of is NP-hard.
2 Berry-Esséen
In this section we prove the Berry-Esséen theorem [Ber41, Ess42], a finitary version of the central limit theorem with explicit error bounds. Actually we will give a proof that only yields a polynomially weaker error bound, the upshot being that the proof is relatively simple and can be easily generalized to other settings (as we will see tomorrow, the Mossel-O’Donnell-Olezkiewicz proof of the invariance principle, an extension of the Berry-Esséen theorem to low-degree polynomials, is very similar in spirit). We will need Taylor’s theorem:
Note that if each is -reasonable then .
Proof. We will view as the sum of independent Gaussians , where each . The proof proceeds by a hybrid argument, showing that only a small error is introduced whenever each in is replaced by the corresponding Gaussian. More precisely, for each , we define the random variable ; these random variables interpolate between and . We will prove the inequality
for all , noting that this implies the theorem by the triangle inequality. Fix and define the random variable , so and . Our goal is therefore to bound . Applying Taylor’s theorem twice, we get
The same proof can be rewritten to show that if is the sum of independent random variables satisfying , , and (the matching moments property), then .
if .
if .
if .
We are now ready to prove a weak version of the Berry-Esséen theorem.
Proof. Since for all we have Now using the fact that , we apply Proposition 55 to get
Since is at most 1 for all and 0 otherwise, we have
and so combining both error bounds gives us . Arguing symmetrically for gives us , and taking yields the claim.
Majority Is Stablest
Our definition of -correlated Gaussians (Definition 39) extend naturally to higher dimensions: let and be independent standard -dimensional Gaussians (i.e. where each is an independent standard Gaussian, and similarly for ). Then and are -correlated Gaussians. Just like in the one-dimension case, we have for all .
In this section we present Kindler and O’Donnell’s recent simple proof of (a special case of) Borell’s theorem [KO12]. We first introduce a few definitions and give a geometric interpretation of the theorem as an isoperimetric inequality in multidimensional Gaussian space.
2 Proof outline of MIST
In this section we sketch the proof of the Majority Is Stablest theorem (MIST):
Step 1. First consider for some small . Note that
is bounded since is an averaging operator.
Step 3. We apply the invariance principle (an extension of the Berry-Esséen theorem to low-degree multilinear polynomials, proved in the next section) to and the test function to bound
We are omitting a few details here since the invariance principle requires test functions to have uniformly bounded derivatives, just like in Berry-Esséen, so we actually need a smooth approximation of .
Here (13) holds since , (13) is an application of Cauchy-Schwarz, and (14) uses the fact that is a contraction on . Finally we note that is simply and the proof is complete.
3 The invariance principle
In this section we prove (a special case of) the Mossel-O’Donnell-Olezkiewicz invariance principle [MOO10] for multilinear polynomials with low influences and bounded degree; in full generality the principle states that the distribution of such polynomials is essentially invariant for all product spaces. The crux of the proof is a low-degree analogue of Proposition 55; once again we proceed by a hybrid argument, showing that a small error is introduced whenever we replace a Rademacher random variable with a standard Gaussian. This is sometimes known as the Lindeberg replacement trick, first appearing in Lindeberg’s proof of the central limit theorem [Lin22]. There has been other work generalizing Lindeberg’s argument to the non-linear case [Rot75, Rot79, Cha06], but these results either yield weaker error bounds or require stronger conditions (e.g. worst-case influences rather than average-case).
Let be a degree- multilinear polynomial and assume:
and where are independent Rademachers and are independent standard Gaussians.
Then .
Proof. We first define a sequence of hybrid random variables that interpolate between and . For each we define the random variable , and note that and . As before, it suffices to prove
for all . Note that the overall claim follows from the above by telescoping, the triangle inequality, and the fact that
Here in the final inequality we have used our assumption that the coefficients are normalized to satisfy . It remains to prove (15). Fix and first express as the sum of two polynomials and , the former comprising all terms not containing , and the latter the rest with factored out. That is,
where has degree at most , and at most (note that if then is simply the coefficient of in the linear polynomial ). Next define the random variables
and note that and . We bound by considering their Taylor expansions:
Note that the first four terms cancel out since and are independent of and , and the random variables and have matching first, second and third moments. Applying the bounds on the error terms given by Taylor’s theorem, we see that
where each is either a Rademacher or standard Gaussian random variable, depending on whether . We have shown that , and the proof is complete.
There exists a universal constant such that the following holds. Let be a multilinear polynomial of degree over , a sequence of independent standard Gaussians, and . Then
is smooth and .
for all .
for all .
for all .
We are now ready to prove the invariance principle.
Let be a degree- multilinear polynomial and assume
and where are independent Rademachers and are independent standard Gaussians.
Here (5.3) is again by the properties of , this time using the fact that for all , and (19) is by Carbery-Wright. Choosing , we have shown that
A symmetric argument establishes the analogous lower bound on , and this completes the proof.
Testing dictators and UGC-hardness
Saturday, 3rd March 2012 Guest lecture by Per Austrin
The Unique-Label-Cover problem is a special case of the Label-Cover problem where the constraints are not required to be permutations. In particular, in the Unique-Label-Cover problem assigning a label to a vertex necessarily determines the labels of all its neighbors, whereas this is not the case for the Label-Cover problem. Consequently, for Unique-Label-Cover the task of deciding whether there is an assignment that satisfies all the edges (i.e. distinguishing versus ) is easy: assume a label for a vertex and deduce the labels for the remaining vertices in a breadth-first fashion. If there is a conflict at some vertex we choose another label for and repeat the same process. If no consistent labeling can be found after iterating through all possible labels for then ; otherwise . This is in sharp contrast to the situation for Label-Cover: it is known that for every there is an such that it is NP-hard to distinguish between versus where is an instance of -Label-Cover; we sometimes refer to this as the -hardness of Label-Cover.
The Unique Games Conjecture of S. Khot [Kho02] asserts that the Unique-Label-Cover problem is nevertheless very hard to approximate as soon as we move to almost-satisfiable instances.
For every there exists an such that the it is NP-hard to distinguish between versus , where is an instance of -Unique-Label-Cover. Equivalently, for every there exists an such that the -Unique-Label-Cover problem is -hard.
Today we will prove the following theorem showing how explicit dictator versus quasirandom tests yield Unique Games-based hardness results for certain constraint satisfaction problems [Kho02, KR03, KKMO07, Aus08]:
Suppose we have a dictator versus quasirandom using predicates from a set . For every there exist a polynomial time reduction from -Unique-Label-Cover to such that for every instance of -Unique-Label-Cover and every , there exists a satisfying
(Completeness) If then .
(Soundness) If then .
First, a small catch: the dictator versus quasirandom test have to work not only for boolean functions but also for bounded functions . We may view any predicate as , where , the expectation taken with respect to -valued random variables satisfying . It is easy to check that for all , and in fact we have . With this observation any tester for boolean functions using predicate can be extended to one for all bounded functions: instead of accepting iff , the tester accepts with probability .
With this caveat out of the way, we are now ready to describe the reduction :
Let be an instance of -Unique-Label-Cover defined over a graph . Suppose we have a dictator versus quasirandom test for functions using -ary predicates from a set . Consider the following instance of : Variables. There will be variables: for each we define boolean variables . Constraints. A random constraint will be sampled as follows: 1. Pick uniformly. 2. Pick neighbors of uniformly independently. 3. Define . 4. Pick according to the distribution over -tuples induced by the tester, and set . 5. Return the constraint .
In step 3, is the permutation associated with the edge , and is the string with its coordinates permuted according to . For each , it will be convenient for us to think of an assignment to the corresponding variables of the CSP as a boolean function , where ; an assignment to all variables can then be defined as a set of boolean functions . We will assume that is regular; this is without loss of generality by a result of Khot and Regev [KR03].
Completeness
Soundness
We will assume that and prove . We first express the fraction of satisfied constraints as