[Paper Review] A Simple Sublinear-Time Algorithm for Counting Arbitrary Subgraphs via Edge Sampling
This paper presents a simple sublinear-time algorithm for estimating the number of arbitrary subgraphs $ H $ in a large graph $ G $, using degree, neighbor, pair, and edge-sample queries. It achieves a $ (1\pm\varepsilon) $-approximation in $ O^*\left(\frac{m^{\rho(H)}}{\#H}\right) $ time, matching optimal bounds for triangles and cliques and extending them to all subgraphs via edge sampling, resolving a conjecture on avoiding $ n $-dependent terms.
In the subgraph counting problem, we are given a input graph $G(V, E)$ and a target graph $H$; the goal is to estimate the number of occurrences of $H$ in $G$. Our focus here is on designing sublinear-time algorithms for approximately counting occurrences of $H$ in $G$ in the setting where the algorithm is given query access to $G$. This problem has been studied in several recent papers which primarily focused on specific families of graphs $H$ such as triangles, cliques, and stars. However, not much is known about approximate counting of arbitrary graphs $H$. This is in sharp contrast to the closely related subgraph enumeration problem that has received significant attention in the database community as the database join problem. The AGM bound shows that the maximum number of occurrences of any arbitrary subgraph $H$ in a graph $G$ with $m$ edges is $O(m^{\ ho(H)})$, where $\ ho(H)$ is the fractional edge-cover of $H$, and enumeration algorithms with matching runtime are known for any $H$. We bridge this gap between subgraph counting and subgraph enumeration by designing a sublinear-time algorithm that can estimate the number of any arbitrary subgraph $H$ in $G$, denoted by $\\#H$, to within a $(1\\pm \\epsilon)$-approximation w.h.p. in $O(\\frac{m^{\ ho(H)}}{\\#H}) \\cdot poly(\\log{n},1/\\epsilon)$ time. Our algorithm is allowed the standard set of queries for general graphs, namely degree queries, pair queries and neighbor queries, plus an additional edge-sample query that returns an edge chosen uniformly at random. The performance of our algorithm matches those of Eden et.al. [FOCS 2015, STOC 2018] for counting triangles and cliques and extend them to all choices of subgraph $H$ under the additional assumption of edge-sample queries. We further show that our algorithm works for the more general database join size estimation problem and prove a matching lower bound for this problem.
Motivation & Objective
- To design a sublinear-time algorithm for estimating the number of occurrences of any arbitrary subgraph $ H $ in a large graph $ G $, under standard query access.
- To bridge the gap between subgraph enumeration and subgraph counting by extending sublinear algorithms beyond specific families like triangles and cliques.
- To achieve optimal query complexity matching known bounds for triangles and cliques, while eliminating $ n $-dependent additive terms via edge-sample queries.
- To establish a matching lower bound for the general problem of estimating colorful subgraph counts, proving query complexity optimality.
Proposed method
- The algorithm uses degree, neighbor, pair, and edge-sample queries to sample edges uniformly at random and explore local neighborhoods of vertices.
- It leverages the fractional edge-cover number $ \rho(H) $ of $ H $, which determines the asymptotic complexity of subgraph counting.
- The core idea is to use edge sampling to efficiently estimate the number of $ H $-copies by sampling edges and estimating the probability that a random edge belongs to a copy of $ H $.
- The algorithm combines these estimates with a randomized sampling strategy to compute a $ (1\pm\varepsilon) $-approximation to $ \#H $, the number of $ H $-isomorphic subgraphs in $ G $.
- It introduces a generalization to colored subgraphs, modeling the database join size estimation problem, and proves a matching lower bound in this setting.
- The analysis relies on probabilistic arguments and a carefully constructed distribution of graphs to prove query complexity lower bounds, showing $ \Omega(m) $ queries are necessary without edge sampling.
Experimental results
Research questions
- RQ1Can a sublinear-time algorithm estimate the number of arbitrary subgraphs $ H $ in a graph $ G $, beyond specific cases like triangles or cliques?
- RQ2Does the inclusion of edge-sample queries allow for optimal sublinear algorithms that avoid $ n $-dependent additive terms in query complexity?
- RQ3Is the query complexity of $ O^*\left(\frac{m^{\rho(H)}}{\#H}\right) $ tight for subgraph counting, even in the presence of edge sampling?
- RQ4Can the framework be extended to the more general problem of estimating the number of colorful subgraphs, corresponding to natural join size estimation in databases?
Key findings
- The proposed algorithm achieves a $ (1\pm\varepsilon) $-approximation to the number of $ H $-copies in $ G $ using $ O^*\left(\min\left\{m, \frac{m^{\rho(H)}}{\#H}\right\} \right) $ queries and $ O^*\left(\frac{m^{\rho(H)}}{\#H}\right) $ time.
- For $ k $-cliques, the algorithm matches the best-known bounds of Eden et al., but avoids their $ O^*\left(\frac{n}{(\#K_k)^{1/k}}\right) $ additive terms by using edge-sample queries.
- The algorithm's query complexity is optimal up to polylogarithmic factors, as shown by a matching $ \Omega\left(\frac{m^{\rho(H)}}{\#H}\right) $ lower bound for the general colored subgraph estimation problem.
- The lower bound construction uses two graph distributions $ \mathcal{G}_0 $ and $ \mathcal{G}_1 $, differing only in the presence of $ m^{\rho(H)-1} $ colorful $ H $-copies, to prove that $ \Omega(m) $ queries are needed without edge sampling.
- The work resolves a conjecture by Eden and Rosenbaum by showing that edge-sample queries eliminate the need for $ n $-dependent terms in the query complexity of subgraph counting.
- The framework generalizes to the database join size estimation problem via colored subgraphs, and the lower bound holds in this broader setting, proving optimality.
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.