[Paper Review] On Approximating the Number of $k$-cliques in Sublinear Time
This paper presents a sublinear-time algorithm for approximating the number of $k$-cliques in a graph using degree, neighbor, and pair queries. It achieves a $(1+\epsilon)$-approximation with expected query and running time complexity of $O\left(\frac{n}{C_k^{1/k}} + \frac{m^{k/2}}{C_k}\right) \cdot \text{poly}(\log n, 1/\epsilon, k)$, which is optimal up to logarithmic factors and sublinear when $C_k = \omega(m^{k/2 - 1})$. The method uses a novel sampling procedure for $k$-cliques via high-degree vertex sampling and a balanced estimation of cliques involving high- and low-degree vertices.
We study the problem of approximating the number of $k$-cliques in a graph when given query access to the graph. We consider the standard query model for general graphs via (1) degree queries, (2) neighbor queries and (3) pair queries. Let $n$ denote the number of vertices in the graph, $m$ the number of edges, and $C_k$ the number of $k$-cliques. We design an algorithm that outputs a $(1+\varepsilon)$-approximation (with high probability) for $C_k$, whose expected query complexity and running time are $O\left(\frac{n}{C_k^{1/k}}+\frac{m^{k/2}}{C_k} ight)\poly(\log n,1/\varepsilon,k)$. Hence, the complexity of the algorithm is sublinear in the size of the graph for $C_k = ω(m^{k/2-1})$. Furthermore, we prove a lower bound showing that the query complexity of our algorithm is essentially optimal (up to the dependence on $\log n$, $1/\varepsilon$ and $k$). The previous results in this vein are by Feige (SICOMP 06) and by Goldreich and Ron (RSA 08) for edge counting ($k=2$) and by Eden et al. (FOCS 2015) for triangle counting ($k=3$). Our result matches the complexities of these results. The previous result by Eden et al. hinges on a certain amortization technique that works only for triangle counting, and does not generalize for larger cliques. We obtain a general algorithm that works for any $k\geq 3$ by designing a procedure that samples each $k$-clique incident to a given set $S$ of vertices with approximately equal probability. The primary difficulty is in finding cliques incident to purely high-degree vertices, since random sampling within neighbors has a low success probability. This is achieved by an algorithm that samples uniform random high degree vertices and a careful tradeoff between estimating cliques incident purely to high-degree vertices and those that include a low-degree vertex.
Motivation & Objective
- To design a sublinear-time algorithm for approximating the number of $k$-cliques in general graphs with query access.
- To address the challenge of efficiently sampling $k$-cliques, especially those involving high-degree vertices, where standard random neighbor sampling fails due to low success probability.
- To generalize prior sublinear algorithms for triangle counting ($k=3$) to arbitrary $k \geq 3$.
- To achieve query and running time complexity that is essentially optimal up to polylogarithmic factors in $n$, $1/\epsilon$, and $k$.
Proposed method
- The algorithm uses uniform vertex sampling over a set $S$ of size $\widetilde{O}(n / C_k^{1/k})$ to estimate the total number of $k$-cliques via the sum of $c_k(u)$ over sampled vertices.
- It introduces a novel sampling procedure that ensures each $k$-clique is sampled with approximately equal probability by focusing on high-degree vertices and balancing cliques with mixed-degree vertices.
- A key component is an algorithm that samples uniform random high-degree vertices and estimates cliques incident to them, using a tradeoff between cliques with only high-degree vertices and those with at least one low-degree vertex.
- The method employs a recursive doubling strategy with a confidence-based search over estimates of $C_k$ and $m$, using a black-box subroutine for clique approximation with controlled error and runtime.
- It uses a geometric search over estimates of $C_k$ and $m$ to avoid dependence on prior knowledge, ensuring robustness to initial inaccuracies.
- Theoretical guarantees are established via concentration bounds and a carefully designed analysis of expected query and running time, leveraging the structure of $k$-clique distributions and degree thresholds.
Experimental results
Research questions
- RQ1Can the sublinear-time approximation of triangle counts ($k=3$) be generalized to arbitrary $k$-clique counting in general graphs?
- RQ2What is the optimal query complexity for approximating $C_k$ in the standard query model with degree, neighbor, and pair queries?
- RQ3How can $k$-clique sampling be made efficient when the success probability of random neighbor sampling is low due to high-degree vertices?
- RQ4What tradeoffs exist between estimating cliques incident to high-degree vertices versus those involving low-degree vertices?
- RQ5Is the proposed algorithm's query complexity asymptotically optimal for $k$-clique approximation?
Key findings
- The algorithm achieves a $(1+\epsilon)$-approximation for the number of $k$-cliques with high probability using expected query complexity $O\left(\frac{n}{C_k^{1/k}} + \min\left\{\frac{m^{k/2}}{C_k}, m\right\} \right) \cdot \text{poly}(\log n, 1/\epsilon, k)$.
- The running time is $O\left(\frac{n}{C_k^{1/k}} + \frac{m^{k/2}}{C_k}\right) \cdot \text{poly}(\log n, 1/\epsilon, k)$, which is sublinear in the graph size when $C_k = \omega(m^{k/2 - 1})$.
- The algorithm's query complexity is essentially optimal, matching the lower bound of $\Omega\left(\frac{n}{C_k^{1/k}} + \min\left\{\frac{m^{k/2}}{C_k \cdot (c k)^k}, m\right\} \right)$ up to logarithmic and polynomial factors.
- The method overcomes the limitations of prior amortization techniques by introducing a balanced, uniform sampling strategy for $k$-cliques across high- and low-degree vertices.
- The algorithm is robust to unknown $C_k$ and $m$, using a geometric search and median estimation to achieve accurate results without prior knowledge.
- The analysis shows that the expected query and running time remain within the stated bounds even when initial estimates of $m$ and $C_k$ are inaccurate, due to the recursive doubling and confidence-based refinement strategy.
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.