[Paper Review] HyperBench: A Benchmark and Tool for Hypergraphs and Empirical Findings
HyperBench introduces a comprehensive benchmark and web-based tool for hypergraph decompositions, enabling systematic evaluation of hypertree width (hw), generalized hypertree width (ghw), and fractional hypertree width (fhw) across real-world conjunctive queries (CQs) and constraint satisfaction problems (CSPs). The key contribution is the first publicly available, extensible infrastructure with novel algorithms—especially a balanced separator-based GHD computation—that reveals hw and ghw are nearly identical in practice, challenging theoretical worst-case bounds.
To cope with the intractability of answering Conjunctive Queries (CQs) and solving Constraint Satisfaction Problems (CSPs), several notions of hypergraph decompositions have been proposed - giving rise to different notions of width, noticeably, plain, generalized, and fractional hypertree width (hw, ghw, and fhw). Given the increasing interest in using such decomposition methods in practice, a publicly accessible repository of decomposition software, as well as a large set of benchmarks, and a web-accessible workbench for inserting, analysing, and retrieving hypergraphs are called for. We address this need by providing (i) concrete implementations of hypergraph decompositions (including new practical algorithms), (ii) a new, comprehensive benchmark of hypergraphs stemming from disparate CQ and CSP collections, and (iii) HyperBench, our new web-interface for accessing the benchmark and the results of our analyses. In addition, we describe a number of actual experiments we carried out with this new infrastructure.
Motivation & Objective
- To address the lack of publicly available benchmarks and tools for evaluating hypergraph decomposition algorithms in practice.
- To develop efficient, practical implementations of generalized hypertree decomposition (GHD) and fractional hypertree decomposition (FHD) algorithms, especially for bounded intersection width cases.
- To empirically investigate whether hypertree width (hw) remains low (≤5) for CQs and CSPs of arbitrary arity, despite theoretical intractability.
- To extend existing theoretical knowledge of hypergraph width measures with real-world data and algorithmic optimizations.
- To provide a scalable, web-accessible platform (HyperBench) for inserting, analyzing, and retrieving hypergraphs and decomposition results.
Proposed method
- Design and implementation of a new, comprehensive benchmark of hypergraphs derived from diverse CQ and CSP sources, including SPARQL endpoints, TPC-H, and research query logs.
- Development of a novel GHD-computation algorithm based on balanced separators, which recursively partitions hypergraphs to reduce search space and improve runtime.
- Implementation of three complementary GHD algorithms: global, local, and balanced separator-based, with parallel execution to leverage strengths of each.
- Adoption of the Bounded Multi-Intersection Property (BMIP) to restrict search space and enable tractable GHD computation for CQs with low multi-intersection width.
- Integration of existing FHD and GHD algorithms from literature, including polynomial-time FHD for bounded-degree hypergraphs, into the HyperBench framework.
- Use of SMT-solving and exhaustive search as fallbacks, combined with pruning via fhw ≤ ghw ≤ hw to improve efficiency and enable exact hw computation.
Experimental results
Research questions
- RQ1Is hypertree width (hw) of real-world CQs and CSPs with arbitrary arity typically bounded by 5, enabling efficient query evaluation?
- RQ2How do the practical values of hw, ghw, and fhw compare to theoretical worst-case bounds in real hypergraph instances?
- RQ3Can novel algorithmic approaches, such as balanced separators, significantly improve the performance of generalized hypertree decomposition (GHD) computation?
- RQ4To what extent do the theoretical upper bounds (e.g., hw ≤ 3·ghw + 1) hold in practice, and how tight are they?
- RQ5Can the Bounded Multi-Intersection Property (BMIP) be effectively exploited to enable scalable GHD computation on real-world data?
Key findings
- For hypergraphs with hw ≤ 5, the values of hw and ghw are identical in 53% of cases, and in all cases where ghw computation terminated, hw and ghw were equal—indicating a much tighter practical relationship than the theoretical upper bound of 3·ghw + 1.
- The balanced separator-based GHD algorithm significantly outperformed naive approaches, reducing the number of separators explored and enabling exact hw computation in cases where Check(HD, k-1) timed out.
- The new GHD algorithm allowed the authors to compute the exact hw for many hypergraphs where previous methods failed due to timeouts in hw-checking at lower bounds.
- Most real-world CQs and CSPs, including those from SPARQL endpoints and TPC-H, exhibit very low hw: the majority are acyclic, and almost all others have hw ≤ 2.
- The Bounded Multi-Intersection Property (BMIP) is highly relevant in practice, as 3-multi-intersection width ≤ 2 in nearly all non-random CQs and CSPs, suggesting promise for future tractable GHD computation.
- The HyperBench platform successfully enabled the first large-scale empirical analysis of hw, ghw, and fhw across diverse, real-world hypergraphs, revealing strong practical tractability.
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.