Homomorphism-Indistinguishability
- Homomorphism-indistinguishability is an equivalence relation that compares graphs via equal homomorphism counts from chosen test graph classes, including examples such as planar and bounded-treewidth graphs.
- Closure properties and maximality criteria link this concept to both logical characterizations and relaxations like quantum isomorphism and SDP hierarchies, providing structural insight.
- Efficient algorithmic strategies and complexity analyses demonstrate its impact on finite model theory, showcasing randomized and deterministic approaches in graph isomorphism testing.
Homomorphism-indistinguishability is the equivalence relation obtained by fixing a class of test graphs and requiring equality of all homomorphism counts from : two graphs are indistinguishable over when for every . This reformulates Lovász’s homomorphism-count characterization of isomorphism as a general schema and has become a unifying language for graph isomorphism, quantum isomorphism, cospectrality, counting-logic equivalences, and several SDP hierarchies (Seppelt, 2023, Seppelt, 2024, Seppelt et al., 12 May 2025).
1. Fundamental definition and canonical examples
For graphs , a graph homomorphism is a vertex map preserving edges, and denotes the number of such maps. Given a graph class , the associated equivalence relation is
The fundamental starting point is Lovász’s theorem: 0 A major strengthening due to Dvořák says that it already suffices to test against all 1-degenerate graphs (Jiménez et al., 9 Feb 2026).
Representative test classes already yield several standard equivalence relations.
| Test class 2 | Induced equivalence | Representative source |
|---|---|---|
| All graphs | Isomorphism | Lovász |
| Planar graphs | Quantum isomorphism | Mančinska–Roberson |
| Bounded-treewidth graphs | 3- / WL-type equivalence | Dvořák and successors |
| Tree-depth-4 graphs | 5-equivalence | Grohe |
| GHW-6 hypergraphs | 7-equivalence | Hypergraph generalization |
These examples show that homomorphism-indistinguishability is not a single invariant but a parameterized family of invariants indexed by test classes. In particular, restricting the source class weakens the relation in ways that often match logical, spectral, quantum, or optimization-theoretic relaxations (Kar et al., 2024, Grohe, 2020, Scheidt et al., 2023).
2. Closure operators, maximality, and distinguishing closedness
A central structural notion is the homomorphism distinguishing closure
8
This is the largest graph class inducing the same indistinguishability relation as 9. A class is homomorphism distinguishing closed if 0. Equivalently, adding any graph outside 1 strictly refines the induced equivalence relation (Seppelt, 2023).
The general closure theory identifies exact correspondences between graph-class closure properties and preservation properties of the induced equivalence relation.
| Closure property of 2 | Preservation property of 3 |
|---|---|
| taking minors | complements |
| taking summands | disjoint unions |
| taking subgraphs | full complements |
| taking induced subgraphs | left lexicographic products |
| contracting edges | right lexicographic products |
For homomorphism distinguishing closed classes, minor-closedness is equivalent to preservation under complements (Seppelt, 2023). This yields a structural explanation for the persistent role of minor-closed classes in the subject.
Roberson’s maximality program fits naturally into this framework. For bounded treewidth, the classes 4 of graphs of tree-width at most 5 are homomorphism-distinguishing closed for all 6, confirming Roberson’s conjecture for this family (Neuen, 2023). A different route uses oddomorphisms: if a family is closed under disjoint unions, restrictions to connected components, and weak oddomorphisms, then it is homomorphism distinguishing closed. This criterion yields, among other consequences, that for every fixed 7, homomorphism indistinguishability over graphs of maximum degree at most 8 is strictly weaker than isomorphism, and the bounded-degree class is already maximal for its induced relation (Roberson, 2022).
3. Logical characterizations
One of the main reasons the subject became central in finite model theory is that several counting logics admit exact homomorphism-count semantics.
For bounded treewidth, Dvořák’s theorem identifies 9-variable counting logic with homomorphism counts from bounded-treewidth graphs. In later formulations, 0-WL indistinguishability coincides with homomorphism indistinguishability over graphs of treewidth at most 1 (Seppelt, 2024). For bounded quantifier rank, Grohe proved that graphs satisfy the same sentences of first-order logic with counting of quantifier rank at most 2 if and only if they are homomorphism-indistinguishable over the class of all graphs of tree depth at most 3 (Grohe, 2020).
The combined width/depth fragment 4 requires a more delicate test class. The class 5 of graphs admitting a 6-pebble forest cover of depth 7 yields the exact characterization
8
This class is strictly smaller than 9 when 0 is sufficiently larger than 1, and that structural separation lifts to a strict separation of the corresponding indistinguishability relations (Fluck et al., 2023).
A further structural theorem states that if a self-complementary logic admits any homomorphism-count characterization at all, then it already admits one over a minor-closed graph class. This makes minor-closed classes canonical carriers of a large family of logical equivalences (Seppelt, 2023).
The same program extends to hypergraphs. Two hypergraphs satisfy the same 2-sentences if and only if they are homomorphism indistinguishable over hypergraphs of generalised hypertree width at most 3 (Scheidt et al., 2023). For bounded guard depth, the correct parameter is strict hypertree depth: two hypergraphs satisfy the same 4-sentences of guard depth at most 5 if and only if they are homomorphism indistinguishable over hypergraphs of strict hypertree depth at most 6 (Scheidt, 2024). This is the hypergraph analogue of the tree-depth characterization for graphs.
4. Quantum isomorphism, easy quantum groups, and SDP hierarchies
A particularly influential instance is the planar case: 7 where 8 is the class of planar graphs. Thus quantum isomorphism is exactly homomorphism indistinguishability over planar graphs (Kar et al., 2024). This result initiated a large part of the modern development.
The quantum-group perspective generalizes this phenomenon. For each orthogonal easy quantum group, one obtains a graph equivalence relation 9 and a graph class 0 such that
1
In this way, the earlier planar characterization of quantum isomorphism becomes one row in a broader correspondence between easy quantum groups, partition categories, and homomorphism-indistinguishability relations (Seppelt et al., 12 May 2025).
Optimization hierarchies admit analogous descriptions. For every integer 2, there is a minor-closed graph class 3 of treewidth at most 4 such that feasibility of the 5-th level of the Lasserre hierarchy for graph isomorphism is equivalent to homomorphism indistinguishability over 6; similarly, the version with non-negativity constraints is characterized by a class 7 (Roberson et al., 2023). Analyzing the treewidth of these classes yields the comparison result that the 8 level of Sherali–Adams is as strong as the 9 level of Lasserre, and that 0 cannot be lowered to 1 (Roberson et al., 2023).
There is also a quantum analogue for the NPA hierarchy. Each level of the NPA SDP relaxation for quantum isomorphism is equivalent to homomorphism indistinguishability over an appropriate class 2 of planar graphs. The union of these classes is the set of all planar graphs, which recovers the planar characterization of quantum isomorphism and yields a randomized polynomial-time algorithm for deciding exact feasibility of each fixed level (Kar et al., 2024).
5. Algorithms and complexity
For a fixed class 3, the decision problem 4 asks whether two input graphs are homomorphism indistinguishable over 5. The general algorithmic picture is highly nonuniform.
A major positive result is the meta-theorem that 6 admits a randomized polynomial-time algorithm for every graph class 7 of bounded treewidth that is definable in 8. In the uniform version, where the 9-sentence and the treewidth bound are part of the input, the problem is randomized fixed-parameter tractable for fixed 0, with runtime 1 (Seppelt, 2024). For bounded pathwidth classes, the same framework yields a deterministic polynomial-time algorithm (Seppelt, 2024).
Subsequent work sharpened the pathwidth bound dramatically: for every recognisable graph class of bounded pathwidth, 2, and this is tight because there exists a fixed 3-definable bounded-pathwidth class whose indistinguishability problem is 4-complete (Černý et al., 15 Dec 2025). In the bounded-treewidth regime, the same work relates the problem to multiplicity tree automata and polynomial identity testing: for some fixed bounded-treewidth class, 5, multiplicity tree automata equivalence, and PIT are logspace many-one interreducible, so a general derandomization would imply PIT 6 (Černý et al., 15 Dec 2025).
The negative side is equally important. When the width parameter is part of the input, deciding 7-WL indistinguishability is coNP-hard (Seppelt, 2024). More broadly, the complexity of 8 ranges from logspace-type classes through randomized polynomial time to undecidable cases, with planar graphs providing a prominent undecidable example through their equivalence with quantum isomorphism (Černý et al., 15 Dec 2025, Kar et al., 2024).
6. Limits, counterexamples, and current frontiers
Recent work has shown that the failure of restricted homomorphism counts to characterize isomorphism is not confined to the original minor-closed examples. For every proper immersion-closed and union-closed class 9, there exist non-isomorphic graphs 0 such that
1
This extends the earlier bounded-degree result and shows that the “special role” of minor-closed classes, if any, is shared by a much larger family (Jiménez et al., 9 Feb 2026).
Sparse graph theory provides a parallel frontier. For every 2, there exist non-isomorphic graphs that are homomorphism indistinguishable over all graphs of vortex-free Hadwiger number at most 3. In particular, for every genus bound 4, homomorphism indistinguishability over graphs of genus 5 is not the same as isomorphism, and these genus-based relations form a strict hierarchy (Neuen et al., 26 Jan 2026).
At the same time, several natural generalizations fail. The minor-closed intuition does not extend naively to topological-minor-closed classes. Two graphs are isomorphic if and only if they are homomorphism indistinguishable over all graphs excluding 6 as a topological minor, so the restricted relation can collapse back to full isomorphism (Neuen et al., 26 Jan 2026). The 2026 immersion result also states that the natural topological-minor analogue cannot hold, due to a result of Neuen and Seppelt (Jiménez et al., 9 Feb 2026).
A different limitation comes from finite model theory and categorical semantics. Invertible-map equivalences 7 cannot be characterized as homomorphism indistinguishability relations for 8, neither with ordinary counting in 9 nor with modular counting. Consequently, there is no finite-rank comonad on graphs whose co-Kleisli isomorphisms characterize IM-equivalence (Lichter et al., 2023). This establishes a precise boundary: homomorphism-indistinguishability captures a large class of graph equivalences, but not all natural linear-algebraic refinements.
Taken together, these results place homomorphism-indistinguishability at the intersection of graph structure theory, finite model theory, quantum symmetries, and optimization. The subject is now organized around three recurrent questions: which test classes characterize a given equivalence, which classes are maximal for their induced relation, and where the framework provably stops.