k-th Order Deep Homomorphism Networks
Takanori Maehara
NeurIPS 2026
TL;DR. We extend Deep Homomorphism Networks to k-labelled patterns, yielding a framework that decouples skeleton complexity (k) from pattern vocabulary (P) and unifies existing higher-order GNN architectures as special cases.
Abstract. We develop a pattern-algebraic framework for higher-order graph neural networks by extending Deep Homomorphism Networks (DHN) from rooted patterns to -labelled patterns. The framework captures GNN expressivity along two independent axes: skeleton complexity , which controls global structure, and pattern vocabulary , which captures local structure. We introduce auxiliary gluing (), the pattern-algebraic counterpart of the -FWL sift. A pattern closure built with and invariant under label permutations generates every pattern of its -label idle lift with only labels and therefore matches its expressive power. This yields an algebraic proof of -WL -FWL. Neuralising these operations gives -DHN and -FDHN, which recover the distinguishing power of -GNN, PPGN, --LWL, and spectral invariant GNNs, and capture node-marking subgraph GNNs, with expressivity characterised by homomorphism indistinguishability over their pattern closures. The framework also resolves open expressivity separation problems in the --LWL hierarchy at every , and gives a CFI-based proof of homomorphism-distinguishing closedness for the bounded-cycle cactus class associated with -WL.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:45 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper presents a higher-order extension of Deep Homomorphism Networks that operates on k-labelled patterns instead of rooted patterns. The authors argue that increasing k in high-order GNNs increases significantly the computational cost, and propose instead to keep k small and to use some pattern vocabulary with chosen local structures to achieve high expressive power in practice. They introduce a framework that decouples skeleton complexity from pattern vocabulary, and propose two neural architectures, k-DHN and k-FDHN, whose expressive power matches that of the corresponding homomorphism counts. The paper also provides a characterization of the gap between k-WL and k-FWL, including an alternative proof that the expressive power of k-FWL is equivalent to that of (k+1)-WL. In addition, the paper also shows that several high-order models are special cases of the proposed framework. Experimental results on the BREC benchmark and motif-based datasets support the theoretical findings.
I find the overall direction of the paper interesting and well-motivated. The idea of selecting an appropriate value of k while enriching the model with high-treewidth motifs is interesting and well-aligned with practical applications such as molecular graph learning. I also agree with the reviewers that the proposed k-DHN and k-FDHN architectures are novel. The generality of the framework is highlighted by its ability to recover several existing higher-order models as special cases. Another notable aspect is the paper's focus on the folklore version of the WL algorithm, which has received little attention in the literature of graph machine learning. Although the experimental evaluation is relatively limited, it effectively accompanies the theoretical analysis and provides empirical support for the main claims. Finally, the paper is well-organized and well-written, making it easy to follow despite its technical nature.
The main weakness of the paper is that the practical utility of k-DHN and k-FDHN remains somewhat unclear since the authors do not provide results demonstrating the scalability of the proposed models. In addition, the results reported in Table 5 show that several variants of the proposed framework are consistently outperformed by the baseline methods on the TU benchmark datasets. It would strengthen the paper if the authors discussed these results in more detail and explained why the proposed variants are not competitive with the baselines. I also agree with Reviewer xWge that the extension of the theoretical results to graphs with node features is not sufficiently explained and that additional discussion would improve the presentation.
The authors' response adequately addressed most of the issues raised in the reviews. All reviewers unanimously recommended acceptance of the paper. While the practical impact of the proposed model is likely to be limited, its theoretical contributions are strong.
Final justification
Overall, this is an interesting paper with a strong theoretical contribution. Although the practical utility of k-DHN and k-FDHN may be limited, the theoretical contribution is novel and important and, in my opinion, warrants acceptance of the paper.
Read meta-review
Meta-review
This paper presents a higher-order extension of Deep Homomorphism Networks that operates on k-labelled patterns instead of rooted patterns. The authors argue that increasing k in high-order GNNs increases significantly the computational cost, and propose instead to keep k small and to use some pattern vocabulary with chosen local structures to achieve high expressive power in practice. They introduce a framework that decouples skeleton complexity from pattern vocabulary, and propose two neural architectures, k-DHN and k-FDHN, whose expressive power matches that of the corresponding homomorphism counts. The paper also provides a characterization of the gap between k-WL and k-FWL, including an alternative proof that the expressive power of k-FWL is equivalent to that of (k+1)-WL. In addition, the paper also shows that several high-order models are special cases of the proposed framework. Experimental results on the BREC benchmark and motif-based datasets support the theoretical findings.
I find the overall direction of the paper interesting and well-motivated. The idea of selecting an appropriate value of k while enriching the model with high-treewidth motifs is interesting and well-aligned with practical applications such as molecular graph learning. I also agree with the reviewers that the proposed k-DHN and k-FDHN architectures are novel. The generality of the framework is highlighted by its ability to recover several existing higher-order models as special cases. Another notable aspect is the paper's focus on the folklore version of the WL algorithm, which has received little attention in the literature of graph machine learning. Although the experimental evaluation is relatively limited, it effectively accompanies the theoretical analysis and provides empirical support for the main claims. Finally, the paper is well-organized and well-written, making it easy to follow despite its technical nature.
The main weakness of the paper is that the practical utility of k-DHN and k-FDHN remains somewhat unclear since the authors do not provide results demonstrating the scalability of the proposed models. In addition, the results reported in Table 5 show that several variants of the proposed framework are consistently outperformed by the baseline methods on the TU benchmark datasets. It would strengthen the paper if the authors discussed these results in more detail and explained why the proposed variants are not competitive with the baselines. I also agree with Reviewer xWge that the extension of the theoretical results to graphs with node features is not sufficiently explained and that additional discussion would improve the presentation.
The authors' response adequately addressed most of the issues raised in the reviews. All reviewers unanimously recommended acceptance of the paper. While the practical impact of the proposed model is likely to be limited, its theoretical contributions are strong.
Final justification
Overall, this is an interesting paper with a strong theoretical contribution. Although the practical utility of k-DHN and k-FDHN may be limited, the theoretical contribution is novel and important and, in my opinion, warrants acceptance of the paper.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors introduce a higher-order version of Deep Homomorphism Networks, based on the algebraic theory of homomorphism counting and homomorphism indistinguishability, which has evolved over the last few years. Instead of plain graphs or rooted graphs, here homomorphisms from k-rooted graphs (i.e., graphs with k distinguished roots) are counted. Such homomorphism counts are related to the k-dimensional WL algorithm, which was known before but is extended here. The main contribution of the paper is a higher-order GNN architecture that matches the expressiveness of such homomorphism counts.
Strengths and weaknesses
This is a nice paper at the intersection of current research in graph theory and graph machine learning. While the basic ingredients and connections (from graph algebras to graphs of bounded tree width to k-WL to k-GNNs) are all known, the paper makes a distinct, novel contribution by designing the appropriate GNN versions. What I particularly like is the algebraic treatment of the "folklore WL" version with a new operator and its neural implementation. Most papers in this area fail to consider this WL version and instead stop at the (oblivious) WL version, which is easier to deal with but less space-efficient.
The relevance of this paper is purely on the theoretical side. The empirical part of the paper supports the theoretical findings but makes no real attempt to establish the proposed k-deep homomorphism networks as a practical method for graph learning. From a practical standpoint, I would expect the main issue to be scalability rather than expressivity. The authors discuss efficiency and make some interesting remarks about it, but do not undertake a systematic study of it in a practical setting. (Which is fine since this is mainly a theory paper on expressiveness.)
Below are a few small remarks for the authors that may help improve the paper:
-
In the first paragraph of the introduction, you say that 1-WL cannot detect cycles. I find this a bit misleading, after all, 1-WL can identify all (finite) trees up to isomorphism (Immerman, Lander 1990) and hence distinguish cyclic from acyclic graphs. Consider rephrasing this remark.
-
It would have helped me to understand your treatment of vertex features if you had explicitly said that the are functions from X to the reals.
-
p.4, eq (4): I believe you flipped r_in and r_out
-
p.4, discussion of the construction tree: It is not clear to me what you mean by "abstracting each pattern to its terminal connections". It is also not clear that this construction yields graphs of tree width at most k. For example, what if the patterns are complete bipartite graphs on k+k vertices. I'd rather expect a tree width of 2k-1 then.
-
p.4, Sec. 3.2: What is ?
-
p.5, Sec.4: I believe the running time of k-FWL is , which is the same as the running time of k-WL. (If you think otherwise, please give a reference where the upper bound is proved.) The advantage k-FWL has over k-WL is that the space complexity is only . Usually, space is the bottleneck, so this is very relevant.
Questions
Please address the minor points I've listed above. Most importantly, clarify item 4 in my list (the construction tree).
Limitations
yes
Final justification
The rebuttal did not change my view of the paper: this is a nice theoretical contribution, and I lean towards acceptance. My score is not higher because I think the impact of this paper to ML practice will be very limited, mainly because of scalability issues.
Formatting concerns
n/a
2 comments
Thank you for addressing the small points raised in my review in the rebuttal. Also having read the other reviews, I remain positive about the paper.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper introduces higher-order deep homomorphism networks (k-DHNs), which generalize both higher-order GNNs and deep homomorphism networks by labeling k-tuples of vertices and propagating information along homomorphism-based patterns. While k-GNNs also get more expressive with increasing k, the paper argues that high k incurs a high running time cost, and that keeping k low while adding specific local patterns allows high expressivity in practice. The general framework of k-DHNs recovers the distinguishing power of many previously proposed architectures, including notably the k-dimensional (oblivious) Weisfeiler-Leman algorithm, as special cases.
The distinguishing power of k-DHNs is then exactly characterized in terms of homomorphism indistinguishability over the closure of the used patterns under two graph operations: composition and glueing.
This architecture is then extended to k-folklore DHNs (k-FDHNs), which naturally generalize the k-dimensional folklore Weisfeiler-Leman algorithm (k-FWL). Their distinguishing power is exactly characterized in terms of the used patterns closed under composition, glueing, and auxiliary glueing. The third operation captures the added expressiveness of k-FWL over k-WL. One central tool is a lifting theorem which connects the graph operations characterizing k-DHNs with those characterizing k-FDHNs. This result gives an alternative proof of the fact that the expressive power of k-FWL coincides with that of (k+1)-WL.
Central aspects of the characterizations are evaluated on the BREC dataset and a custom planted-motif dataset. The results consistently support the theoretical predictions.
Strengths and weaknesses
Strengths:
-
The proposed k-DHNs and k-FDHNs are novel and provide a uniform lens through which several existing architectures and algorithms can be viewed and analyzed. The separation of k and the local patterns P yields two independent axes of expressive power, that allow a more fine-grained analysis than just k.
-
The obtained characterizations of expressive power provide non-trivial insight into the capabilities and limits of k-DHNs.
-
Full proofs for the main theorems are available in an extensive appendix. I have only skimmed Appendix 12 due to time constraints, but all other proofs appear correct.
-
The experiments, while not strictly necessary given the theoretical nature of the paper, are nicely executed and obtain clean results that support the theory well.
Weaknesses:
-
The results that k-(F)DHNs recover certain other architectures as special cases are only short paragraphs without detailed proof. Concerning DHNs, the paper argues that they are recovered by 1-DHNs in Example 3.4. This does not appear to hold in a strong sense, as the product used by DHNs before summation has no equivalent in 1-DHNs. In terms of distinguishing power, it seems likely that 1-DHNs capture DHNs, but showing this requires some characterization of the distinguishing power of DHNs, which is not used. The sense of "recover" should be made precise and the examples expanded so that it is clear that they hold
-
The main theorems are stated in terms of unlabeled graphs. Remark 11.3 claims that the theorems can be generalized to graphs with node features, but implementing this seems to require significant changes to the proofs. The remark could be a bit more extensive how, e.g. the completeness direction of a node-feature variant of Theorem 3.2 could be shown.
-
The usefulness of the obtained characterizations is slightly diminished by the fact that they are in terms of the homomorphism-distinguishing closure rather than the class of patterns obtained by composition and glueing itself. As the discussion around Problem 6.1 acknowledges, it is consequently unclear in general when different pattern sets yield different distinguishing power.
-
The results in Appendix 12 are interesting and answer several open questions, but are difficult to appreciate, as they are only briefly mentioned in the main paper. Given the advanced nature of the involved techniques, these results might have been better served by a separate publication with more space for exposition and intuition.
Minor Remarks:
- l104: The description of the composition operation does not match its definition: The description states that the labels of F are identified with r_in, but the definition requires that the labels of F map to the same vertices as r_out. It appears that r_in and r_out may be swapped.
- Eq (6): The notation suggests that the results for the different patterns are collected in a set, but the usage and description of rho suggests a tuple is intended
- l185: The description of auxiliary glueing is difficult to follow. A more formal description clarifying that every pattern is extended with a fresh auxiliary vertex *, and that * is not a label, might help.
- l197: The equality in Theorem 4.1 cannot hold in a strict sense, as the left-hand side contains k-labeled graphs and the right-hand side contains (k + 1)-labeled graphs. A statement along the lines of the induction hypothesis at l687 would be more precise
- Eq (10): This equation uses notation inconsistent with the rest of the paper. (G)_u should be replaced with (G, u) as used in Eq (24)
Overall, this is a significant contribution to the theory of expressive GNN variants, which at some points should be made more precise.
Questions
- Please clarify Example 3.4. In what sense do 1-DHNs recover DHNs?
- How would following Remark 11.3 for example Eq (20) be modified to compute generalized homomorphism numbers?
Limitations
Yes
Final justification
While one of the issues raised pointed to a false claim in the paper, the authors convincingly argued that straightforward generalizations of their framework and proof address this. Additionally, Problem 6.1 is not as central as I thought. The announced changes in reaction to the reviews will further improve the paper. After reading the other reviews and the responses, I am not aware of any issues that would warrant rejection. Hence, I remain with my recommendation that this paper should be accepted for its theoretical contributions; however, I acknowledge that its practical impact will likely be limited.
Formatting concerns
None
3 comments
Rebuttal
We thank the reviewer for the detailed reading.
Responses to Questions
-
"Recover" / Example 3.4 (DHN). By "recover" we meant layerwise simulation: the existing layer should be an instance of our layer. We will state this meaning in the revision and write the reductions explicitly, either inline or in the appendix. Under this meaning, we found that 1-DHN does not recover DHN as stated. The reviewer correctly points to the gap: our layer is single-port, while DHN is multi-port, which generates a different pattern class. We will fix the DHN example by adding a multi-port variant in the appendix; it is parallel to our current framework, and its closure characterization carries over with the same proof structure. The same port issue affects the -loopy-WL example, so we will revise that example too.
-
Node features (Remark 11.3). Each term in Eq. (20) is multiplied by the feature weight of the matched pattern:
Here . The base and gluing cases use the same weighted homomorphism counts, and the completeness proof carries over with this weighted chain rule. We will add this formulation to the appendix.
Responses to Weaknesses/Remarks
-
Closure vs. generated class (Problem 6.1). We agree: the theorem characterizes the homomorphism-distinguishing closure, not only the generated class. Thus different generated classes need not have different distinguishing power. For model design, this gap is one-sided: choosing still gives the intended patterns in , and the closure only adds further distinguishing consequences. The gap matters for exact comparison of pattern sets, so we state it as Problem 6.1; for minor-closed pattern classes it is decidable.
-
Appendix 12. We agree the exposition is dense. These results support the paper's separation results, so we keep them in the appendix, but we will improve the signposting and explain their role more clearly in the main text.
-
Minor remarks. We will make these corrections. We will fix the prose; Eq. (4) and the layer are already correct. We will make Eq. (6) an ordered tuple. We will define auxiliary gluing: give the vertex at one label position a fresh auxiliary symbol, glue, then unlabel. No new vertex is created. We will restate Theorem 4.1 via idle-extension and label-deletion, and correct Eq. (10) to . The central -DHN and -FDHN characterization theorems are unchanged.
Thank you for the response. Your planned changes and corrections address all the points I have raised.
It is unfortunate that fixing example 3.4 requires significant changes. Could you briefly state the definition of this new 1-DHN variant and the analogue of Theorem 3.2 that you obtain?
Thank you. Up front, this is an additive generalization introduced to make Example 3.4 precise. The main-body layers and characterization theorems are unchanged; the generalization lives in a short appendix. Briefly, the variant replaces the single out-port of 1-DHN by several ports.
A multi-port rooted pattern is a rooted pattern with root and a finite list of ports , each . The layer aggregates , so one homomorphism of can read the previous states at several vertices of the same occurrence before summation. The submitted 1-DHN layer is the case ().
For DHN, the submitted single-port 1-DHN reads only the single out-label, so it cannot form DHN's product over all pattern vertices. This is the gap you identified. The multi-port variant closes it: making every vertex of a port lets one occurrence read all pattern vertices before summation, and choosing to be DHN's product makes the multi-port layer coincide with the DHN layer. This is the precise sense in which our framework recovers DHN.
The analogue of Theorem 3.2 replaces single-port by polyadic series composition: given rooted patterns and a multi-port pattern , attach the root of each to the port and root the result at . Let be the class generated by this operation and gluing. Then multi-port 1-DHN distinguishes if and only if for some in the homomorphism-distinguishing closure of . The proof runs parallel to Theorem 3.2. The base, gluing, and graph-level steps are unchanged. The series-composition chain rule becomes polyadic, and the soundness step interpolates the joint function of the port states and expands it into products over ports before the homomorphism sum.
We will add the definition and theorem as a short appendix and restate Example 3.4 through it. The main single-port theorems are unchanged.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper generalized homomorphism networks for graphs to k-homomorphism networks. The motivation is that isomorphic graphs have the same cardinality of hom sets hom(F,G) and hom(F,H) for any F, so finding non-equal hom sets distinguishes non-isomorphic graphs. In homomorphism networks, there is a recursive formula that allows one to express the hom sets between complicated graphs in terms of more simple ones using the rooted product operation. This allows for algorithms that distinguish graphs based on the number of homomorphism from patterns of interest. Further, node features can be included in a standard way and that interact with the homomorphisms and make the algorithm have learnable parameters.
In this paper, the authors make use of the algebraic structure of k-sourced graphs. Rather than joining graphs at a single node, these include operations of composing and gluing graphs along k-nodes. Even starting with a basic generating set of simple graphs, the algebra generated by these operations is quite large and complicated. This allows for precomputation on the basic generating set, with recursive formulae doing the rest of the heavy lifting, making the algorithms feasible in practice. The main theoretical result shows that their algorithm has the distinguishing power over the entire algebra generated by the pattern set, which could feasibly contain many different complicated graph structures. Further, their formalism recovers a number of existing architectures as specific examples.
The authors show that on benchmarks for distinguishing isomorphic their level 2 algorithm is competitive with the standard 3-FWL test. This is significant because changing k is the biggest computational cost -- this is borne out in the column showing their algorithm is orders of magnitude faster than the 3-FWL test. They show motifs to the generating set affects performance, suggesting some degree of interpretability in terms of the significance of different substructures.
Strengths and weaknesses
Quality
I found this to be an all round high quality paper. The introduction was clear and well-motivated. The theory seems sound to me, I thought the main mathematical ideas of using the certain graph algebra with gluing and composition operations in the graph learning setting was simple, effective and interesting. As a mathematician, my initial reservation was that computing the hom sets would be prohibitively expensive, but I think the authors made some good points and implementation decisions on this. In particular, the point that dense generating patterns aggressively prune the search space for real-world sparse graphs.
Clarity
The paper was very well written and joy to read. As somewhat of an outsider with a more mathematical background than ML, I appreciated the readability and learned a lot.
Significance
I am admittedly not totally across the literature, but there are a number of theoretical contributions that suggest this could be a significant contribution. Firstly, the strong theoretical results 3.2 and 4.3 demonstrate an impressive expressive power. Secondly, the examples in section 3 show that this is a unifying framework for many other known architectures. I found this helpful to quickly metabolize algorithms I hadn't heard of, so this paper could be significant that it is a useful reference for people entering the field looking to understand the research landscape in a single formalism. Maybe the only drawback is that the experimental section
Originality
From my limited research, the connection of applying the algebra of k-sourced graphs to this setting seems quite original and cool to me. To the best of my knowledge, the auxilary gluing operation seems like a creative adaptation of the standard one to make the folklore version work.
Questions
Q1: Would it be possible to include simple visual example figures of the composition and gluing operations? This would make parsing the formulae much easier for the non-expert.
Q2: How hard would it be to implement a 3-FDHN and see how it compares to the 3-FWL in table 1? I'm sure it would be very expensive to run, but even just to gauge how well it can do.
Q3: Was the TU benchmark really necessary? At this point it feels like more like a humiliation ritual we are all forced to endure xD I suppose you don't really lose anything having it in there but I think seeing it in the appendix, with comparison to published results with different protocols, I found to be more confusing than helpful
Limitations
Yes
Final justification
I am increasing my quality score by one point. With the contribution type corrected to theory, I think the paper should primarily be assessed on the strength and significance of its theoretical results, which I found to be the strongest aspect of the submission. My earlier concerns about the experimental evaluation therefore carry somewhat less weight. The authors’ rebuttal also addressed my main remaining questions and clarified the role of the experiments, so overall I am more positive about the paper than in my initial review.
Formatting concerns
No
2 comments
Rebuttal
We thank the reviewer for the suggestions.
-
Q1. We will add a compact figure for series composition and gluing.
-
Q2. We ran the requested 3-FDHN experiment. It ran out of memory on c7i.large (4 GB, the paper's environment) but succeeded on c7i.2xlarge (16 GB). In this environment, 3-FWL ran in 2573 s and 3-FDHN(+) in 3594 s (~1.4x), and both gave the same BREC score, 380/400. This is consistent with the results in Table 1, where added patterns do not change the CFI column.
-
Q3. We appreciate the candid framing. The TU appendix is intended as a supplementary applicability check. We agree that the current mixed-protocol table works against that purpose. We will keep only the matched comparison, our methods and a re-run GIN under the Errica et al. protocol, and drop the published Xu-best-validation rows. The remaining results show no consistent gain, which is expected because these datasets are largely 1-WL-accessible and do not strongly exercise the added expressivity.
I thank the authors for their comments.
In my opinion, the suggested changes improve the quality of the paper. I have additionally corrected the contribution type -- I think this also improves the quality as I found the theory to be the strongest aspect of the paper. I have accordingly updated my quality score from 3 to 4 and recommend the paper for publication.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for the precise reading and corrections.