The Average-Case Complexity of Counting Cliques in Erdos-Renyi Hypergraphs

Enric Boix-Adserà, Matthew Brennan, Guy Bresler

This paper, titled "The Average-Case Complexity of Counting Cliques in Erdős-Rényi Hypergraphs," presents a major breakthrough in theoretical computer science by bridging the gap between worst-case and average-case complexity for a fundamental combinatorial problem.

TL;DR

The authors prove that counting $k$-cliques in random Erdős-Rényi hypergraphs is essentially as hard as counting them in the worst possible case. They provide a novel reduction technique that yields tight complexity lower bounds, matching new algorithmic upper bounds particularly when edge density is above the $k$-clique percolation threshold.

What Problem Does This Paper Address?

In computational complexity, we usually ask: "How hard is this problem in the absolute worst case?" However, in fields like cryptography and machine learning, we care more about the average case—how hard is the problem for a "typical" input?

The authors focus on the problem of counting $k$-cliques (subsets of $k$ vertices where every possible hyperedge exists) in $s$-uniform Erdős-Rényi hypergraphs $G(n, c, s)$. While worst-case clique counting is well-studied (and believed to be very hard), understanding its complexity on random graphs has been an open challenge. The paper aims to determine if typical instances of this problem are just as difficult as the hardest ones.

Methods

The core of the paper is a worst-case to average-case reduction. This is a mathematical proof showing that if you had a "black box" algorithm that could solve the problem efficiently on average, you could use it to solve the problem for any input.

Key techniques include:

  • Polynomial Representation: Expressing the number of $k$-cliques as a multivariate low-degree polynomial over a finite field.
  • Random Self-Reducibility: Leveraging the fact that evaluating a low-degree polynomial on a specific input can be reduced to evaluating it on several random points.
  • Random Sparse Binary Expansions: A novel algebraic technique to decompose random field elements into weighted sums of Bernoulli variables. This allows the authors to bridge the gap between abstract algebraic randomness and the specific combinatorial randomness of Erdős-Rényi graphs.
  • Recursive Counting: A procedure to map problems on $k$-partite graphs (which are easier to handle algebraically) back to the standard Erdős-Rényi distribution.

Datasets

As a theoretical work in computational complexity, this paper does not use empirical datasets. Instead, it analyzes the mathematical properties of the Erdős-Rényi distribution $G(n, c, s)$, where each possible hyperedge among $n$ vertices is included independently with probability $c$.

Key Insights and Ideas

  • The Dense-Sparse Divide: The paper shows that for dense graphs (constant edge density $c$), average-case complexity matches worst-case complexity exactly (up to polylog factors). For sparse graphs ($c = \Theta(n^{-\alpha})$), the complexity landscape shifts, requiring new algorithmic strategies.
  • Tightness at the Percolation Threshold: For hypergraphs ($s \ge 3$), the authors' lower bounds are remarkably tight. They match their new algorithms exactly when the edge density is above the $k$-clique percolation threshold—the point where local search algorithms can typically find all cliques.
  • Fine-Grained Hardness: The results are "fine-grained," meaning they don't just say a problem is "hard" (like NP-hard), but provide specific runtime lower bounds (e.g., $n^{\Omega(k)}$) based on the Randomized Exponential Time Hypothesis (rETH).

Key Results

The paper provides a comprehensive phase diagram for the complexity of clique counting, as seen in Figure 1:

Comparison of algorithms and average-case lower bounds for counting k-cliques. The left plot shows the graph case (s=2) and the right shows the hypergraph case (s \ge 3).
  • Dense Case: Assuming rETH, counting $k$-cliques in $G(n, c, s)$ takes $n^{\Omega(k)}$ time. Specifically, it takes $\tilde{\Omega}(n^{\omega \lfloor k/3 \rfloor})$ for graphs ($s=2$) and $\tilde{\Omega}(n^k)$ for hypergraphs ($s \ge 3$).
  • Sparse Case: The authors introduce new algorithms that exploit sparsity, outperforming worst-case algorithms. For hypergraphs, they show that the runtime lower bound is $\tilde{\Omega}(n^{k-\alpha \binom{k}{s}})$, which matches the expected number of cliques.
  • Parity Counting: They also provide a variant for computing the parity (even or odd) of the clique count, which is robust even if the average-case algorithm has a constant error probability.

Limitations and Future Work

  • Error Tolerance: The main reduction for counting requires the average-case algorithm to have a very low error probability (e.g., $1/\text{poly}(n)$). A major open problem is extending this to tolerate a constant error probability (like $1/4$).
  • The Graph Case Gap: In the graph case ($s=2$), there remains a gap between the algorithmic upper bounds and the lower bounds due to the matrix multiplication constant $\omega$. Improving the constant $C$ in the lower bound exponent is a suggested next step.
  • Beyond Percolation: For hypergraphs, the lower bounds become less tight once the density drops below the percolation threshold. Characterizing this "gray" region remains an open challenge.

Summary updated

Abstract

We consider the problem of counting $k$-cliques in $s$-uniform Erdos-Renyi hypergraphs $G(n,c,s)$ with edge density $c$, and show that its fine-grained average-case complexity can be based on its worst-case complexity. We prove the following: 1. Dense Erdos-Renyi graphs and hypergraphs: Counting $k$-cliques on $G(n,c,s)$ with $k$ and $c$ constant matches its worst-case time complexity up to a $\mathrm{polylog}(n)$ factor. Assuming randomized ETH, it takes $n^{Ω(k)}$ time to count $k$-cliques in $G(n,c,s)$ if $k$ and $c$ are constant. 2. Sparse Erdos-Renyi graphs and hypergraphs: When $c = Θ(n^{-α})$, we give several algorithms exploiting the sparsity of $G(n, c, s)$ that are faster than the best known worst-case algorithms. Complementing this, based on a fine-grained worst-case assumption, our results imply a different average-case phase diagram for each fixed $α$ depicting a tradeoff between a runtime lower bound and $k$. Surprisingly, in the hypergraph case ($s \ge 3$), these lower bounds are tight against our algorithms exactly when $c$ is above the Erdős-Rényi $k$-clique percolation threshold. This is the first worst-case-to-average-case hardness reduction for a problem on Erdős-Rényi hypergraphs that we are aware of. We also give a variant of our result for computing the parity of the $k$-clique count that tolerates higher error probability.
BibTeX
@article{boixadsera2019average,
  author = {Enric Boix-Adserà and Matthew Brennan and Guy Bresler},
  title = {{The Average-Case Complexity of Counting Cliques in Erdos-Renyi Hypergraphs}},
  journal = {SIAM Journal on Computing},
  year = {2019},
  doi = {10.1137/20m1316044},
}
Figure