Skip to Content
Advanced Algorithm

11. Lovász Local Lemma

2019-09-04Original-language archivelegacy assets may be incomplete

Unique Games Conjecture

  • Unique Label Cover(ULC): An undirected graph G(V,E)G(V,E), qq colors, each dege ee associated with a bijection ϕe:[q][q]\phi_e:[q]\rightarrow[q]. A coloring σ[q]V\sigma\in[q]^V satisfies the constraint of the edge e=(u,v)Ee=(u,v)\in E if ϕe(σu)=ϕe(σv)\phi_{e}(\sigma_u)=\phi_e(\sigma_v)
  • UGC(2002 Khot): e,q\forall e,\exists q such that this is NP\text{NP}-hard to ditinguish between ULC instances:
    • >1ϵ>1-\epsilon fraction of edges satisfied by a coloring;
    • no more than ϵ\epsilon fraction of edges satisfied by any coloring

Constraint Satisfaction Problem

  • CSP Definition
    • variables: V={v1,v2,,vn},viΩV=\{v_1,v_2,\cdots,v_n\},v_i\in\Omega
    • constraints: C1,C2,,Cm,Ci:ΩSi{T,F},SiXC_1,C_2,\cdots,C_m,C_i:\Omega^{S_i}\rightarrow\{T,F\},S_i\subset X
    • assignment: σ[q]V\sigma\in[q]^V
    • μ(σ)=i=1mCi(σSi)/Z\mu(\sigma)=\prod_{i=1}^mC_i(\sigma_{S_i})/Z
  • CSP
    • satisfiability: determine whether \exists an assignment satisfying all constraints
      • search: find an assignment
    • optimization: find an assignment satisfying as may constraints as possible
      • refutation: find a proof of no assignment can satisfy >m>m^* constraints for mm^* as small as possible
    • counting: estimate the number of satisfying assignments
      • sampling: random sample a satisfying assignments
      • inference: calculate the possibility of a variable being assigned certain value
CSP Satisfiability Optimization Counting
2SAT P NP-hard #P-complete
3SAT NP-complete NP-hard #P-complete
matching P P #P
2-coloring(cut) P NP-hard FP
3-coloring NP-complete NP-hard #P-complete
  • Poly-time inter-reducible
    • appox. counting
    • sampling
    • approx. inference
  • Random Sampling
    • Uniform independent set in graphs of max-degree Δ\Delta: (poly-time when Δ\Delta≤5, NP-hard when Δ\Delta≥6 or higher
    • Uniform matching in any graph (always poly-time)
    • Uniform properqq-coloring of graphs of max-dgree Δ\Delta: NP-hard when q<Δq<\Delta
  • kk-SAT
    • Ω={T,F}\Omega=\{T,F\}, constraints are clauses
    • kk-CNF: each clause contains kk variables
    • Determine satisfiability
    • degree dd: each clause intersects with d\leq d other clauses

Lovász Local Lemma

  • Goal: P(i=1mAi)>0P(\bigwedge_{i=1}^m\overline{A}_i)>0, mm bad event A1,,AmA_1,\cdots,A_m
    • union bound: i=1mP(Ai)<1\sum_{i=1}^mP(A_i)<1
    • PIE: I{m},I>0(1)I1P(iSAi)<1\sum_{I\subseteq\{m\},|I|>0}(-1)^{|I|-1}P(\bigwedge_{i\in S}A_i)<1
    • LLL: i,P(Ai)14d\forall i,P(A_i)\leq\frac{1}{4d} and AiA_i is independent of all but d\leq d other bad events
  • LLL for kk-SAT: d2k2ϕd\leq 2^{k-2}\Rightarrow\phi is always satisfiable
  • LLL (asymmetric version): α1,α2,,αm[0,1)\exists \alpha_1,\alpha_2,\cdots,\alpha_m\in[0,1)

i:P(Ai)αiji(1αj)P(i=1mAi)>i=1m(1αi)\forall i:P(A_i)\leq\alpha_i\prod_{j\sim i}(1-\alpha_j)\Rightarrow P(\wedge_{i=1}^m\overline{A}_i)>\prod_{i=1}^m(1-\alpha_i)

Algorithmic LLL

Moser's Algorithm

  • Algorithmic LLL for kk-SAT(Moser 2009): d2kcd\leq 2^{k-c}\Rightarrow satisfying assignment can be found in time O(n+km)O(n+km) w.h.p.
  • Algorithm
    • Solve(ϕ\phi)
      • sample a uniform random assignment
      • while \exists unsatisfied clause CC: Fix(CC)
    • Fix(CC)
      • resample variables in CC uniformly at random
      • while \exists unsatisfied clause DD intersecting CC: Fix(DD)
  • Analysis
    • TT: total # of calls to Fix(CC)
    • # of random bits: n+kTn+kT
      • nn: intial bits
      • kTkT: each calls resampling uses kk bits
    • transcript(m+T(log2d+O(1))\leq m+T(\log_2 d+O(1)) bits) + nn bits
      • nn: final bits
      • mm: Fix calls order in Solve
      • T(log2d+O(1))T(\log_2 d+O(1)): recursive calls order
    • 1-1 mapping between above: n+kTlog2nm+T(log2d+O(1))+nTm+log2nn+kT-\log_2 n\leq m+T(\log_2d+O(1))+n\Rightarrow T\leq m+\log_2n
    • O(n+k(m+logn))=O(n+km)O(n+k(m+\log n))=O(n+km)
  • Incompressibility Theorem(Kolmogorov): NN uniform random bits cannot be encoded to less than NlN-l bits with probability at least 1O(2l)1-O(2^{-l})

Moser-Tardos Algorithm

  • Suppose A1,,AmA_1,\cdots,A_m are determined by mutually independent random variables X1,,XnX_1,\cdots,X_n, then LLL conditions \Rightarrow\exists an assignment of X1,,XnX_1,\cdots,X_n avoiding all bad events A1,,AmA_1,\cdots,A_m
    • vbl(Ai)\text{vbl}(A_i): set of variables on which AiA_i is defined
    • Γ(Ai)={Ajjivbl(Ai)vbl(Aj)}\Gamma(A_i)=\{A_j|j\neq i\wedge\text{vbl}(A_i)\cap\text{vbl}(A_j)\neq\emptyset\}
  • Assumption: followings can be done efficiently
    • draw an independent sample on a random variable XjX_j
    • check whether a bad event AiA_i occurs on current X1,,XnX_1,\cdots,X_n
  • Moser-Tardos Algorithm
    • sample all X1,,XnX_1,\cdots,X_n
    • while \exists an occurring bad event AiA_i
      • resample all Xjvbl(Ai)X_j\in\text{vbl}(A_i)
  • Algorithmic LLL(Moser-Tardos 2010): α1,α2,,αm[0,1)\exists\alpha_1,\alpha_2,\cdots,\alpha_m\in[0,1)

i,P(Ai)αiji(1αj)E[resamples until a satisfying assignment is returned]i=1mαi1α\forall i,P(A_i)\leq\alpha_i\prod_{j\sim i}(1-\alpha_j)\Rightarrow E[\text{resamples until a satisfying assignment is returned}]\leq \sum_{i=1}^m\frac{\alpha_i}{1-\alpha}

i,P(Ai)1e(d+1)E[resamples until a satisfying assignment is returned]md\forall i,P(A_i)\leq\frac{1}{e(d+1)}\Rightarrow E[\text{resamples until a satisfying assignment is returned}]\leq \frac{m}{d}

i,P(Ai)14dE[resamples until a satisfying assignment is returned]m2d1\forall i,P(A_i)\leq\frac{1}{4d}\Rightarrow E[\text{resamples until a satisfying assignment is returned}]\leq \frac{m}{2d-1}

  • Ananlysis
    • execution log Λ\Lambda: ΛiA\Lambda_i\in\mathcal{A}
    • total # of times AA is resampled: NA={iΓi=A}N_A=|\{i|\Gamma_i=A\}|