Switching lemma

From HandWiki
Revision as of 19:32, 6 February 2024 by AIposter (talk | contribs) (link)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In computational complexity theory, Håstad's switching lemma is a key tool for proving lower bounds on the size of constant-depth Boolean circuits. It was first introduced by Johan Håstad to prove that AC0 Boolean circuits of depth k require size [math]\displaystyle{ \exp(\Omega(n^{1/(k-1)})) }[/math] to compute the parity function on [math]\displaystyle{ n }[/math] bits.[1] He was later awarded the Gödel Prize for this work in 1994. The switching lemma describes the behavior of a depth-2 circuit under random restriction, i.e. when randomly fixing most of the coordinates to 0 or 1. Specifically, from the lemma, it follows that a formula in conjunctive normal form (that is, an AND of ORs) becomes a formula in disjunctive normal form (an OR and ANDs) under random restriction, and vice versa. This "switching" gives the lemma its name.

Statement

Consider a width-w formula in disjunctive normal form [math]\displaystyle{ F = C_1 \vee C_2 \vee \cdots \vee C_m }[/math], the OR of clauses [math]\displaystyle{ C_\ell }[/math] which are the AND of w literals ([math]\displaystyle{ x_i }[/math] or its negation [math]\displaystyle{ \neg x_i }[/math]). For example, [math]\displaystyle{ (\neg x_1 \wedge x_2) \vee (x_2 \wedge x_3) \vee (x_2 \wedge x_3) }[/math] is an example of a formula in this form with width 2.

Let [math]\displaystyle{ F | R_p }[/math] denote the formula under a random restriction: each [math]\displaystyle{ x_i }[/math] is set independently to 0 or 1 with probability [math]\displaystyle{ (1-p)/2 }[/math]. Then, for a sufficiently large constant C, the switching lemma states that

[math]\displaystyle{ \Pr[ \operatorname{DT}(F \mid R_p) \geq t] \lt C(pw)^t, }[/math]

where [math]\displaystyle{ \operatorname{DT}(f) }[/math] denotes decision tree complexity, the number of bits of [math]\displaystyle{ x }[/math] needed to compute the function [math]\displaystyle{ f }[/math].[2]

Proof

Intuitively, the switching lemma holds because DNF formulas shrink significantly under random restriction: when a literal in a clause is set to 0, the whole AND clause evaluates to zero, and therefore can be discarded.

The original proof of the switching lemma (Håstad 1987) involves an argument with conditional probabilities. Arguably simpler proofs have been subsequently given by (Razborov 1993) and (Beame 1994). For an introduction, see Chapter 14 in (Arora Barak).

Bounds on AC0 circuits

The switching lemma is a key tool used for understanding the circuit complexity class AC0, which consists of constant-depth circuits consisting of AND, OR, and NOT. Håstad's initial application of this lemma was to establish tight exponential lower bounds for such circuits computing PARITY, improving on the prior super-polynomial lower bounds of Merrick Furst, James Saxe and Michael Sipser[3] and independently Miklós Ajtai.[4] This is done by applying the switching lemma [math]\displaystyle{ d-1 }[/math] times, where [math]\displaystyle{ d }[/math] is the depth of the circuit: each application removes a layer of the circuit until one is left with a very simple circuit, whereas PARITY is still PARITY under random restriction, and so remains complex. So, a circuit that computes PARITY must have high depth.[5]

The switching lemma is the basis for bounds on the Fourier spectrum of AC0 circuits[5] and algorithms for learning such circuits.[6]

See also

References

  1. Håstad, Johan (1986). "Almost optimal lower bounds for small depth circuits" (in en). STOC '86: Proceedings of the Eighteenth Annual ACM Symposium on Theory of Computing (ACM Press): 6–20. doi:10.1145/12130.12132. ISBN 978-0-89791-193-1. http://portal.acm.org/citation.cfm?doid=12130.12132. 
  2. Rossman, Benjamin (2019) (in en). Criticality of Regular Formulas. Michael Wagner. pp. 28 pages. doi:10.4230/LIPICS.CCC.2019.1. http://drops.dagstuhl.de/opus/volltexte/2019/10823/. 
  3. Merrick Furst, James Saxe and Michael Sipser, "Parity, Circuits, and the Polynomial-Time Hierarchy", Annu. Intl. Symp. Found.Computer Sci., 1981, Theory of Computing Systems, vol. 17, no. 1, 1984, pp. 13–27, doi:10.1007/BF01744431
  4. Miklós Ajtai, "[math]\displaystyle{ \Sigma^1_1 }[/math]-Formulae on Finite Structures", Annals of Pure and Applied Logic, 24 (1983) 1–48.
  5. 5.0 5.1 Tal, Avishay (2017) (in en). Tight Bounds on the Fourier Spectrum of AC0. Marc Herbstritt. pp. 31 pages. doi:10.4230/LIPICS.CCC.2017.15. http://drops.dagstuhl.de/opus/volltexte/2017/7525/. 
  6. Linial, Nathan; Mansour, Yishay; Nisan, Noam (1993-07-01). "Constant depth circuits, Fourier transform, and learnability". Journal of the ACM 40 (3): 607–620. doi:10.1145/174130.174138. ISSN 0004-5411. https://dl.acm.org/doi/10.1145/174130.174138.