NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Estimating the Number of Induced Subgraphs from Incomplete Data and Neighborhood Queries

Dimitris Fotakis, Thanasis Pittas, Stratis Skoulakis

Abstract

Estimating subgraph counts in massive networks is a fundamental task often complicated by incomplete or noisy data. We propose a hybrid framework that combines statistical inference from partial network samples with a limited number of targeted neighborhood queries. Our approach leverages the presence of high-degree "heavy hitter" nodes to reduce estimation variance. Experimental results demonstrate that our method achieves high accuracy (often <2% error) with a query complexity that is independent of the total network size, proving particularly effective in irregular real-world graphs.

Introduction

Network analysis frequently relies on counting small subgraphs, such as triangles and $k$-cliques, to understand local connectivity and community structure. However, real-world network data is often incomplete due to privacy constraints, API limitations, or logging errors. Naive counting on such "noisy" samples typically yields highly biased results. Existing solutions generally fall into network completion (which assumes a specific model) or node probing (which often scales poorly with network size). We bridge this gap by using messy, "free" data to guide a small number of expensive queries, resulting in accurate, model-independent estimates.

Methodology

We model incomplete data by assuming nodes are hidden with a known probability $p$. An edge is visible only if both endpoints are observed. To correct for the resulting bias, we introduce two primary algorithms.

Algorithmic Framework

Algorithm 1 (Edge Estimation) utilizes two independent samples. The first sample identifies "heavy hitters"—nodes with the highest observed degrees. Neighborhood queries are then performed on these nodes to reveal their full true neighborhoods. The final estimate integrates these revealed edges with scaled counts from the second sample.

Algorithm 2 ($k$-Clique Estimation) extends this logic to larger cliques, employing a sophisticated scaling factor to ensure an unbiased total count despite the exponential disappearance of cliques in noisy data.

The One-Sample Heuristic

In practical scenarios where only one sample is available, we employ a filtering step. By selecting only the top $\alpha$-percentile of queried nodes, we mitigate the statistical bias that arises from using the same data for both query selection and estimation.

Comparison of query strategies and their impact on relative error.

Experimental Evaluation

We evaluated our methods on various real-world datasets from the SNAP collection, including social, communication, and infrastructure networks, as well as synthetic power-law graphs.

The Power of Irregularity

A key finding is that estimation error in naive approaches is primarily driven by the variance of the network's degree distribution. In highly irregular networks—those characterized by a few massive hubs—the error is initially large. However, because these hubs are easily identified even in noisy samples, querying them effectively "kills" the majority of the variance.

Relative error as a function of graph irregularity.

Key Results

  • Constant Query Complexity: The number of queries required for a target accuracy level depends on the desired error margin but is independent of the total number of nodes $n$. You can estimate triangles in a network of 10,000 nodes or 10,000,000 nodes using the same ~200 queries.
  • High Accuracy: On the wiki-talk-ar dataset (>1M nodes), we achieved a 1.37% error rate with only 200 queries.
  • Efficiency: Our method reached comparable accuracy to standard wedge sampling while requiring 1,000 times fewer queries by leveraging the initial noisy sample.

Conclusion

By combining partial network data with targeted neighborhood queries, we provide a robust and efficient framework for subgraph estimation. Our method is particularly suited for large-scale, irregular networks where traditional probing or completion methods fail. Future work will focus on providing tighter theoretical guarantees for $k$-clique estimation and extending the framework to more complex graphlets.

Summary updated

BibTeX
@inproceedings{fotakis2021estimating,
  author = {Dimitris Fotakis and Thanasis Pittas and Stratis Skoulakis},
  title = {{Estimating the Number of Induced Subgraphs from Incomplete Data and Neighborhood Queries}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i5.16525},
}
Figure