[Paper Review] A Fast and Provable Method for Estimating Clique Counts Using Tur\'an's Theorem
This paper presents Turán-shadow, a fast and provably accurate randomized algorithm for estimating k-clique counts in large graphs using extremal graph theory, specifically strengthened versions of Turán's theorem. The method constructs a Turán shadow— a cover of dense subgraphs that contains all k-cliques—and uses unbiased sampling with variance bounds to estimate clique counts with less than 2% error, achieving sub-hour runtime on graphs with over 100 million edges.
Clique counts reveal important properties about the structure of massive graphs, especially social networks. The simple setting of just 3-cliques (triangles) has received much attention from the research community. For larger cliques (even, say 6-cliques) the problem quickly becomes intractable because of combinatorial explosion. Most methods used for triangle counting do not scale for large cliques, and existing algorithms require massive parallelism to be feasible. We present a new randomized algorithm that provably approximates the number of k-cliques, for any constant k. The key insight is the use of (strengthenings of) the classic Tur\'an's theorem: this claims that if the edge density of a graph is sufficiently high, the k-clique density must be non-trivial. We define a combinatorial structure called a Tur\'an shadow, the construction of which leads to fast algorithms for clique counting. We design a practical heuristic, called TUR\'AN-SHADOW, based on this theoretical algorithm, and test it on a large class of test graphs. In all cases,TUR\'AN-SHADOW has less than 2% error, in a fraction of the time used by well-tuned exact algorithms. We do detailed comparisons with a range of other sampling algorithms, and find that TUR\'AN-SHADOW is generally much faster and more accurate. For example, TUR\'AN-SHADOW estimates all cliques numbers up to size 10 in social network with over a hundred million edges. This is done in less than three hours on a single commodity machine.
Motivation & Objective
- Address the combinatorial explosion in counting k-cliques (k ≥ 6) in massive real-world graphs, where exact enumeration is infeasible.
- Develop a scalable, provably accurate sampling method for k-clique counting without distributional assumptions on the input graph.
- Leverage extremal combinatorics—specifically, strengthened Turán's theorem—to design a theoretically grounded and practically efficient algorithm.
- Achieve high accuracy and speed on real-world graphs, including those with over 100 million edges, for all clique sizes up to 10.
Proposed method
- Use a strengthened version of Turán's theorem to bound the minimum number of k-cliques in a graph with sufficient edge density.
- Construct a Turán shadow: a carefully chosen collection of dense subgraphs that covers all k-cliques in the input graph.
- Design an unbiased sampling estimator for the total k-clique count based on the shadow structure.
- Apply variance bounds derived from Erdős' quantitative version of Turán's theorem to ensure low error with few samples.
- Implement a practical heuristic, Turán-shadow, using O(m) samples (m = number of edges) to achieve high statistical confidence.
- Optimize the shadow construction to minimize size, ensuring runtime scales linearly with the number of edges in practice.
Experimental results
Research questions
- RQ1Can extremal graph theory be algorithmically leveraged to design a provably accurate and efficient sampling method for k-clique counting?
- RQ2How can Turán's theorem be strengthened and applied to construct a cover (shadow) of dense subgraphs that contains all k-cliques?
- RQ3What is the empirical performance of the Turán-shadow algorithm in terms of accuracy and speed on real-world graphs with up to 100M edges?
- RQ4How does the algorithm's error and runtime scale with clique size k and graph size across diverse real-world datasets?
- RQ5Can the method outperform existing sampling algorithms like Edge Sampling, Color Coding, and GRAFT in both speed and accuracy for large k-clique counts?
Key findings
- Turán-shadow achieves less than 2% relative error on all tested graphs for k = 7, with most estimates under 1% error.
- The algorithm computes all k-clique counts up to size 10 in less than three hours on a single commodity machine for a social network with over 100 million edges.
- For k = 7, Turán-shadow achieves a speedup of over 100x compared to competing algorithms on several datasets, with no competing method terminating within 7 hours on the largest instances.
- For k = 10, no competing algorithm completed within 7 hours or 100 times the Turán-shadow runtime on most datasets, while Turán-shadow completed in under 2.5 hours on the largest graph (com-orkut).
- The size of the Turán shadow scales linearly with the number of edges in practice, explaining the algorithm's efficiency, with the largest shadow being at most ten times the number of edges (on com-orkut).
- The empirical success probability of sampling a clique in the shadow is consistently above 0.1, validating the use of only 50,000 samples for reliable convergence.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.