The Parameterised Complexity of Counting Small Sub-Hypergraphs

Marco Bressan, Julian Christoph Brinkmann, Holger Dell, Marc Roth, Philip WellnitzSociety 2026 · OpenAlex

Abstract

This paper establishes the first complete complexity classification for counting small patterns, or sub-hypergraphs, within large hypergraphs. By extending the "homomorphism basis" framework from graph theory to the more expressive domain of hypergraphs, the authors identify the specific structural parameters—namely the fractional co-independent edge-cover number and the fractional edge-cover number—that determine whether a counting problem is fixed-parameter tractable (FPT) or computationally hard. Notably, the research reveals that fundamental properties of graph complexity, such as complexity monotonicity, do not always hold in the hypergraph setting, particularly for "trimmed" sub-hypergraph variants.

Introduction

In computational complexity, the problem of counting occurrences of a small pattern graph $H$ within a larger host graph $G$ is a foundational task with applications ranging from network analysis to motif discovery. While the complexity landscape for graphs is well-mapped, hypergraphs—where an "edge" can connect an arbitrary number of vertices—present a significantly more complex challenge. Hypergraphs are essential for modeling multi-way relationships in database theory, biology, and knowledge representation, yet our understanding of their counting complexity has remained incomplete.

This research addresses the challenge of "unbounded rank," where edges can be arbitrarily large, rendering standard graph-theoretic tools like treewidth insufficient. The authors provide a comprehensive "dichotomy"—a definitive boundary between tractable and intractable problems—for two primary counting tasks: counting all occurrences of a pattern (#Sub($\mathcal{H}$)) and counting induced occurrences (#IndSub($\mathcal{H}$)).

Methodology: The Homomorphism Basis

The authors utilize an algebraic framework known as the homomorphism basis. This approach expresses the number of sub-hypergraphs as a linear combination of homomorphism counts (mappings that preserve edges but are not necessarily injective). To navigate the complexities of hypergraphs, the researchers employed several sophisticated maneuvers:

  • Lifting Complexity Monotonicity: They demonstrated that for hypergraphs, computing a linear combination of homomorphism counts is as difficult as computing its hardest individual term.
  • Dedekind Interpolation: This abstract algebraic technique was used to isolate specific hard terms within the homomorphism basis, allowing for a more granular analysis of complexity.
  • Adaptive Width Analysis: The study leverages recent findings regarding the "integrality gap" of fractional independent sets to establish hardness for hypergraphs with intricate structural properties.

Structural Divergence from Graph Theory

A significant contribution of this paper is the identification of ways in which hypergraphs diverge from standard graph behavior. In graph counting, problems that are fixed-parameter tractable (FPT) are typically also solvable in polynomial time. However, the authors show that this is not the case for hypergraphs; some counting problems are FPT but remain #P-hard or as difficult as the Graph Isomorphism problem.

Furthermore, the authors investigated "trimmed" sub-hypergraphs—a variant where parts of edges are retained even if some vertices are deleted. They discovered that for these patterns, the complexity monotonicity principle fails. This finding is critical because it suggests that the standard homomorphism basis toolkit, a staple of the field for years, is inadequate for proving hardness in trimmed pattern contexts.

Key Results and Dichotomy Theorems

Assuming the Exponential Time Hypothesis (ETH), the paper establishes two major Dichotomy Theorems that define the limits of tractability:

  1. #Sub($\mathcal{H}$) is FPT if and only if the family $\mathcal{H}$ has a bounded fractional co-independent edge-cover number ($\sigma^* < \infty$).
  2. #IndSub($\mathcal{H}$) is FPT if and only if the family $\mathcal{H}$ has a bounded fractional edge-cover number ($\rho^* < \infty$).

For the tractable cases of induced sub-hypergraph counting, the authors provide a quasi-polynomial time algorithm. This indicates that while these problems are "easy" in the FPT sense, they likely occupy a unique complexity space between P and #P.

Conclusion and Future Directions

While this work provides a definitive classification for sub-hypergraph counting, it also opens new avenues for research. A complete dichotomy for homomorphism counting on hypergraphs of unbounded rank remains elusive, particularly for patterns with unbounded fractional hypertree width but bounded adaptive width. Additionally, because the authors proved that homomorphisms do not provide a sufficient basis for counting trimmed sub-hypergraphs, future work must develop entirely new analytical frameworks to address that specific class of problems. Finally, determining whether the FPT cases for induced counting can be improved from quasi-polynomial to true polynomial time remains a high-stakes question for the broader field of computational complexity.

Summary updated

Abstract

Subgraph counting is a fundamental and well-studied problem whose computational complexity is well understood. Quite surprisingly, the hypergraph version of subgraph counting has been almost ignored. In this work, we address this gap by investigating the most basic sub-hypergraph counting problem: given two hypergraphs \(H\) and \(G\), compute the number of sub-hypergraphs of \(G\) isomorphic to \(H\). Formally, for a family \(\mathcal{H}\) of hypergraphs, let #Sub\((\mathcal{H})\) be the restriction of the problem to \(H \in \mathcal{H}\); the induced variant #IndSub\((\mathcal{H})\) is defined analogously. Our main contribution is a complete classification of the fixed-parameter tractability of these problems. Assuming the Exponential Time Hypothesis, we prove that #Sub\((\mathcal{H})\) is fixed-parameter tractable if and only if \(\mathcal{H}\) has bounded fractional co-independent edge-cover number, a novel graph parameter introduced in this work, and that #IndSub\((\mathcal{H})\) is fixed-parameter tractable if and only if \(\mathcal{H}\) has bounded fractional edge-cover number. Both results subsume pre-existing results for graphs as special cases. We also show that the fixed-parameter tractable cases of #Sub\(\mathcal{H})\) and #IndSub\((\mathcal{H})\) are unlikely to be in polynomial time, unless respectively \(\#P = P\) and Graph Isomorphism \(\in\, P\). This shows a separation with the special case of graphs, where the fixed-parameter tractable cases are known to actually be in polynomial time. From a technical standpoint, we turn to the hypergraph homomorphism basis and lift the complexity monotonicity principle due to Curticapean, Dell, and Marx [STOC 2017] from graphs to hypergraphs of unbounded rank. Moreover, we crucially rely on the integrality gap for fractional independent sets based on adaptive width due to Bressan, Lanzinger, and Roth [STOC 2023]. The heart of our proofs consists of a careful investigation of the adaptive width of the patterns that survive in the hypergraph homomorphism basis. We also consider a natural variant of sub-hypergraphs where edges are trimmed to be vertex subsets; we show that, surprisingly, in this case complexity monotonicity fails.
BibTeX
@inproceedings{bressan2026parameterised,
  author = {Marco Bressan and Julian Christoph Brinkmann and Holger Dell and Marc Roth and Philip Wellnitz},
  title = {{The Parameterised Complexity of Counting Small Sub-Hypergraphs}},
  booktitle = {Society},
  year = {2026},
  doi = {10.1137/1.9781611978971.72},
}

Loading related content...

Figure