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

Hyperedge Estimation using Polylogarithmic Subset Queries

Anup Bhattacharya, Arijit Bishnu, Arijit Ghosh, Gopinath MishraarXiv 2019

Abstract

In this work, we estimate the number of hyperedges in a hypergraph ${\cal H}(U({\cal H}), {\cal F}({\cal H}))$, where $U({\cal H})$ denotes the set of vertices and ${\cal F}({\cal H}))$ denotes the set of hyperedges. We assume a query oracle access to the hypergraph ${\cal H}$. Estimating the number of edges, triangles or small subgraphs in a graph is a well studied problem. Beame \etal~and Bhattacharya \etal~gave algorithms to estimate the number of edges and triangles in a graph using queries to the {\sc Bipartite Independent Set} ({\sc BIS}) and the {\sc Tripartite Independent Set} ({\sc TIS}) oracles, respectively. We generalize the earlier works by estimating the number of hyperedges using a query oracle, known as the {\bf Generalized $d$-partite independent set oracle ({\sc GPIS})}, that takes $d$ (non-empty) pairwise disjoint subsets of vertices $A_1,\ldots,A_d \subseteq U({\cal H})$ as input, and answers whether there exists a hyperedge in ${\cal H}$ having (exactly) one vertex in each $A_i, i \in \{1,2,\ldots,d\}$. We give a randomized algorithm for the hyperedge estimation problem using the {\sc GPIS} query oracle to output $\widehat{m}$ for $m({\cal H})$ satisfying $(1-\epsilon) \cdot m({\cal H}) \leq \widehat{m} \leq (1+\epsilon) \cdot m({\cal H})$. The number of queries made by our algorithm, assuming $d$ to be a constant, is polylogarithmic in the number of vertices of the hypergraph.

Introduction

Estimating the count of specific structures within large-scale networks—such as edges in social graphs or motifs in biological networks—is a fundamental task in data analysis. While $(1 \pm \epsilon)$-approximation algorithms for edge counting in standard graphs are well-established, extending these techniques to $d$-uniform hypergraphs presents significant theoretical hurdles. In a standard graph, two edges share at most one vertex. However, in a $d$-uniform hypergraph, hyperedges can overlap in up to $d-1$ vertices. This complex "intersection pattern" causes traditional sampling methods to fail or become computationally prohibitive.

Previous research often relied on local parameters, such as the maximum degree or the number of structures sharing a specific element, to bound complexity. This paper introduces a generalized approach that achieves polylogarithmic query complexity relative to the number of vertices $n$, independent of these local parameters, provided the hyperedge size $d$ remains constant.

Methodology

The proposed algorithm operates within a query-based model using a Generalized $d$-partite Independent Set (GPIS) oracle. Given $d$ disjoint vertex sets, the oracle returns a boolean value indicating the presence of at least one hyperedge containing exactly one vertex from each set.

The algorithm follows an iterative framework designed to reduce the problem size until hyperedges can be counted exactly. This process is visualized in the flowchart below:

Flowchart of the iterative hyperedge estimation algorithm.

The framework consists of four primary components:

  1. Sparsification: The algorithm uses a novel $d$-dimensional hashing scheme to select a subset of hyperedges. This reduces the total count while maintaining a predictable, scaled relationship to the original hypergraph.
  2. Exact Estimation: When the number of hyperedges falls below a specific threshold, a deterministic search-tree algorithm computes the exact count.
  3. Coarse Estimation: A rapid estimation tool provides a rough "ballpark" figure (within a polylogarithmic factor) to guide the sampling process.
  4. Importance Sampling: To manage the growth of sub-problems, the algorithm uses coarse estimates to sample a representative subset of sub-hypergraphs for further processing.

Key Insights

The core innovation lies in the hashing-based sparsification. By defining "properly colored" hyperedges through vertex hashing, the authors achieve a concentration of measure that is robust against complex intersection patterns. This effectively bypasses the bottlenecks encountered in previous triangle-counting literature.

Furthermore, the paper establishes Oracle Equivalence, proving that more complex oracles (e.g., those allowing overlapping sets) can be simulated by the basic GPIS oracle with only polylogarithmic overhead. This theoretical bridge simplifies algorithm design without sacrificing efficiency.

Results and Conclusion

The algorithm provides a $(1 \pm \epsilon)$ multiplicative approximation with high probability ($1 - 1/n^{4d}$). For a fixed $d$, the query complexity is $O_d\left(\frac{\log^{5d+5} n}{\epsilon^4}\right)$, which is polylogarithmic in $n$. This represents a significant unification and extension of prior work on edge and triangle estimation.

Despite these advances, some limitations remain. The query complexity is sensitive to $d$; if $d$ is not a constant, the complexity grows exponentially. Future work may focus on improving the dependency on $d$ and optimizing the $\epsilon^{-4}$ factor toward the ideal $\epsilon^{-2}$ benchmark. Additionally, while theoretically robust, practical implementation would require tuning large constants defined in the proofs to make the algorithm viable for real-world datasets.

Summary updated

BibTeX
@misc{bhattacharya2019hyperedge,
  author = {Anup Bhattacharya and Arijit Bishnu and Arijit Ghosh and Gopinath Mishra},
  title = {{Hyperedge Estimation using Polylogarithmic Subset Queries}},
  year = {2019},
  eprint = {1908.04196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1908.04196},
}
Figure