potentialpaper

Expressive Power of Deep Homomorphism Networks over Relational Databases

Moritz Schönherr, Balder ten Cate, Maurice Funk, Benny Kimelfeld, Carsten Lutz, Arie Soeteman

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. A study of the expressive power of DHNs in terms first-order logic and its fragments, with applications in static analysis.

Abstract. The expressive limitations of message-passing Graph Neural Networks (GNNs) have motivated a wide range of more powerful graph learning architectures. We advocate Deep Homomorphism Networks (DHNs) as a model particularly well-suited for learning over relational databases, due to their close connection to important fragments of SQL such as conjunctive queries. We study the precise expressive power of DHNs by relating them to various natural fragments and extensions of first-order logic (FO). For DHNs with max, sum, and mean aggregation, we establish connections to the unary negation fragment (UNFO) and to the extensions of UNFO with counting quantifiers and with ratio quantifiers. We further relate sum-aggregation DHNs to the unary quantifier alternation fragment of FO and to a fragment of FO extended with expressive counting. Through the classical correspondence between FO and SQL, these results also illuminate the relation between DHNs and SQL. They further enable us to study the decidability of fundamental static analysis problems for DHNs, the emptiness problem and the containment problem. We confirm through experiments that the established differences in expressive power are reflected in the performance on suitable prediction tasks.

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 paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
30 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:45 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Summary: This paper shows Deep Homomorphism Networks are well-suited for learning over relational databases by connecting them to conjunctive queries and SQL-style select-project-join queries. By relating DHNs and SQL, the decidability of the emptiness problem and the subsumption problem for DHNs are investigated. Experiments on synthetic datasets justify the theoretical analysis.

Strengths: This paper presents a big connection between DHNs, homomorphism queries, conjunctive queries, SQL-style select-project-join queries, and logic. It studies the decidability of two fundamental static analysis problems, beyond standard expressiveness analysis, for DHNs.

Weaknesses: As mentioned by Reviewer YgoL, the main weaknesses are twofold. 1) The theory is still incomplete in the most expressive settings. 2) Several key theoretical results rely on impractical assumptions.

I tend to accept this paper, since it provides relations between GNN expressiveness, database queries, and logic. Although two reviewers provide low confidence, Reviewer YgoL, who is with high confidence, is satisfied with the responses from the authors.

Final justification

I tend to accept this paper, since it provides relations between GNN expressiveness, database queries, and logic. Although two reviewers provide low confidence, Reviewer YgoL, who is with high confidence, is satisfied with the responses from the authors.

Area Chair RPtr · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Summary: This paper shows Deep Homomorphism Networks are well-suited for learning over relational databases by connecting them to conjunctive queries and SQL-style select-project-join queries. By relating DHNs and SQL, the decidability of the emptiness problem and the subsumption problem for DHNs are investigated. Experiments on synthetic datasets justify the theoretical analysis.

Strengths: This paper presents a big connection between DHNs, homomorphism queries, conjunctive queries, SQL-style select-project-join queries, and logic. It studies the decidability of two fundamental static analysis problems, beyond standard expressiveness analysis, for DHNs.

Weaknesses: As mentioned by Reviewer YgoL, the main weaknesses are twofold. 1) The theory is still incomplete in the most expressive settings. 2) Several key theoretical results rely on impractical assumptions.

I tend to accept this paper, since it provides relations between GNN expressiveness, database queries, and logic. Although two reviewers provide low confidence, Reviewer YgoL, who is with high confidence, is satisfied with the responses from the authors.

Final justification

I tend to accept this paper, since it provides relations between GNN expressiveness, database queries, and logic. Although two reviewers provide low confidence, Reviewer YgoL, who is with high confidence, is satisfied with the responses from the authors.

Reviewer byaQOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies the expressive power of Deep Homomorphism Networks (DHNs) with three specific aggregation functions: max, sum and mean. In particular, the paper proves several results on the expressiveness of these DHNs being equivalent to different variants of first-order logic. The paper motivates the importance of these results as providing important insights into learning over relational databases, due to their close connection of first-order logic. The authors also provide results on the decidability of two fundamental problems in GNNs.

Strengths and weaknesses

The expressiveness of GNNs is a relevant topic that has attracted significant attention in recent years. DHNs are a natural choice to increase the expressive power of GNNs, and hence their study is indeed important, and may lead to interesting new insights.

The paper present several theorems of significant technical depth, which altogether paint a rather complete picture of the expressiveness of DHNs with the three considered aggregation functions. It is particularly impressive that the authors also define several novel classes of logic to cover the cases when the expressiveness does not directly correspond to a known class.

Unfortunately, I would say that the paper is probably not accessible to the vast majority of the NeurIPS audience. The heavy technical content makes it a challenging read to begin with, but this is made even more difficult by the fact that the DHNs are mostly described using first-order logic or database terminology; I think for most of the readers, this is much harder to process than expressing the same results in terms of graphs/GNNs, which the NeurIPS community is much more familiar with. If the paper is to be presented at an ML venue, I think it would be much more beneficial to switch the focus to graphs/GNNs wherever possible. Alternatively, the paper might be a much better fit at a venue with a different focus, e.g. at a premier conference in logic.

Apart from the terminology, the paper is generally well-structured and easy to follow, its contributions are clear. The authors often make efforts to explain the logic concepts to an unfamiliar reader, but due to the sheer number of these concepts, non-expert will inevitably struggle to follow the results. Even with the results technically understood, it is hard to assess the importance or practical implications of the equivalences proven in the theorems, or estimate whether it can provide any guidelines or insights into practical GNN design.

The experiments are a welcome addition, but not particularly convincing: they focus on two very specific synthetic examples that only DHNs can distinguish, and GIN still seems quite competitive for one of them. I would not take this as a strong indication that the extra expressiveness of DHNs can be beneficial to use for many practical tasks.

Altogether, I believe this is a remarkable work with interesting ideas and really impressive technical results. However, due to its focus and its seemingly limited impact on concrete ML applications, I am not sure it is a good fit for NeurIPS.

Questions

I not sure I understood some aspects of the connection between the relational database and the graph interpretation, regarding e.g. the vertex colors mentioned in Section 1, or Remark 5. Some further clarification could help here.

Do the results have any implication for (or any potential to be generalizable to) other GNN tasks besides vertex classification?

Limitations

Yes

Final justification

The paper is a theoretically strong, if somewhat niche, result: it is definitely interesting and a valuable contribution, but there are many other submissions with a wide impact. Altogether, I would place it on the borderline of acceptance. The modifications discussed during the discussion would significantly help to make the paper more accessible to a wider audience, so it would be critical to indeed execute them. With those changes, I would be fine with accepting the paper, although I am also not a strong proponent of its acceptance.

Formatting concerns

None

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We will make a serious effort to improve the paper's accessibility to a NeurIPS audience. Thank you for commenting on this aspect.

We would also like to emphasize that the notational differences between graphs and relational databases arise at only a few points in the paper. At each such point, we will explicitly relate our terminology to standard graph terminology. In particular, we will do the following:

  • in the second paragraph of the preliminaries, instead of only saying how a graph can be represented as a database, we will give an example

  • we will also say there explicitly that adom(D) corresponds to the set of vertices of the graph and how the edges can be recovered from the database.

  • we will explicitly relate the definition of connected databases to connected graphs

  • we believe that, with this in place, the subsequent definition of homomorphisms should be immediately comprehensible to NeurIPS readers.

  • also after defining the logics UNFO and (G)HML, we will add examples that illustrate their use on the special case of graphs.

In the remainder of the (main part of the) paper, adom(D) is the only database terminology ever used. Everything else is encapsulated in the definition of homomorphisms, for which readers familiar with graph theory should have a good intuition.

Q1: Vertex colors mentioned in Section 1: What we mean is the availability of vertex labels from a finite set. This is assumed very often when GNNs are compared with logic, and it is "automatically" available in the more general context of databases. As written, our undecidability results depend on such labels/colors. We do not believe that this is essential, but we did not want to overstate our results.

Remark 5: We agree that this is a bit too short, thanks for pointing this out. We will make a serious effort to improve the remark. We will also complement it, mostly in the appendix, with a formal comparison of the expressive power of (i) GNNs applied to databases translated to graphs and (ii) DHNs on unique-value extended databases, as mentioned in the remark. That is, we will show formally that every vertex classifier expressible in model (i) has a corresponding classifier in model (ii).

Q2: We believe that many of our results carry over to graph classification, though only in the (often studied) non-uniform setting, where the order of graphs is bounded. In other words: on the graph level, where a global readout is used for the final classification, bounded degree is no longer sufficient and needs to be replaced by bounded order.

We also expect that our lower expressivity and complexity bounds carry over from vertex classification to vertex regression.

Reviewer byaQ · CommentOpenReview ↗

Thank you for your detailed response. I think the suggested changes and examples would indeed be a major improvement to the readability of the paper for the wider audience.

Reviewer YgoLOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies Deep Homomorphism Networks (DHNs) for relational databases. DHNs go beyond 1-WL-limited GNNs by using homomorphism-based message passing over relational patterns, connecting them to conjunctive queries and SQL-style select-project-join queries. The paper gives logical characterizations for several DHN variants and analyzes decidability results, showing that emptiness and subsumption are decidable for max-DHNs but undecidable for general sum-DHNs. Synthetic experiments support the theoretical separations, with sum-DHNs outperforming standard GNNs on tasks involving triangles, cycles, and related structures. Overall, this is a theory-heavy paper linking GNN expressiveness, database queries, and logic, though the experiments are mostly proof-of-concept and practical pattern selection remains open.

Strengths and weaknesses

S1. The paper addresses a clear theoretical problem: characterizing the expressive power of DHNs over relational databases. This is important because standard message-passing GNNs are limited by 1-WL and struggle to capture common relational or subgraph structures such as triangles, cliques, and fixed-length cycles.

S2. The strongest contribution is the connection between DHNs, homomorphism queries, conjunctive queries, SQL-style select-project-join queries, and logic. The logical characterizations for different DHN variants provide a useful map of how aggregation choices affect expressiveness.

S3. The paper goes beyond standard expressiveness analysis by studying static analysis problems. The decidability results for max-DHNs and undecidability results for general sum-DHNs add theoretical depth, while the synthetic experiments support the main separations predicted by the theory.

W1. The theory is powerful but still incomplete in the most expressive settings. Max-DHNs receive a relatively clean characterization, but sum-DHNs and mean-DHNs are fully characterized only under additional assumptions such as bounded degree and connected patterns. As a result, the behavior of unrestricted sum-DHNs, which may be among the most practically relevant variants, remains only partially understood.

W2. Several key theoretical results rely on assumptions that may limit applicability. The bounded-degree and connectedness conditions are not merely technical details; they are central to the positive results. This raises the question of whether the theory fully explains DHN behavior on dense, high-degree, or highly heterogeneous relational data.

W3. The practical implications of the theory remain unclear. The paper introduces several logical formalisms and static analysis results, but the overall picture can feel like a collection of upper and lower bounds rather than a complete practical theory. In particular, undecidability for general sum-DHNs makes the more expressive variants difficult to verify or debug, and the method still depends heavily on manually specified homomorphism patterns without providing a practical strategy for selecting them.

Questions

Q1. The paper gives a clean characterization for max-DHNs, but the results for sum-DHNs and mean-DHNs are still incomplete for unrestricted-degree databases. How much does this gap affect the main expressiveness claims?

Q2. Several positive results rely on bounded-degree databases and connected homomorphism patterns. Are these mainly technical assumptions, or do they point to real limitations when DHNs are applied to dense or highly heterogeneous relational data?

Q3. The paper shows that emptiness and subsumption are undecidable for general sum-DHNs. Does this make the more expressive variants harder to use in practice, especially in settings where verification or debugging is important?

Q4. DHNs rely heavily on the choice of homomorphism patterns. How should users choose these patterns in practice, and could poor pattern choices weaken or even remove the theoretical advantage?

Q5. The experiments are mostly synthetic and closely tied to known separation examples. Can the authors provide stronger evidence that the expressiveness results lead to practical gains on realistic relational database learning tasks?

Limitations

Yes

Final justification

The paper makes a meaningful theoretical contribution by connecting DHNs with homomorphism queries, logical characterizations, and decidability results. My main concerns are the incomplete theory for unrestricted sum- and mean-DHNs, reliance on bounded-degree assumptions, and limited practical validation. However, these limitations do not undermine the core contribution, and the experiments support the predicted expressiveness gains. Overall, I believe the strengths slightly outweigh the weaknesses, so I maintain a weak accept recommendation.

Formatting concerns

NaN

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their effort and relevant questions. We respond to the questions below.

Q1: Indeed, our expressiveness results for sum-DHNs and mean-DHNs assume databases of bounded degree. Extending these results to the unrestricted setting remains open and appears technically very challenging. We emphasize that, even for standard GNNs, obtaining exact uniform logical characterizations without restrictions on the input graphs remains a major open problem. Our results involving translations from logics to DHNs (that is, one direction of Theorem 10 Point 2 and Theorem 7 Point 3) do apply to databases of unrestricted degree. We will point this out in the paper.

Q2: These are not merely technical assumptions. As explained above, for our results on the expressive power of DHNs, the bounded degree assumption is connected to major open problems concerning the expressive power of GNNs. This is also the case for disconnected homomorphism patterns, which relate to GNNs with a global readout. Characterizing the logical expressive power of such GNNs is itself a major open problem, and recent results suggest that resolving it may be particularly difficult. Some of our decidability results also depend on the bounded degree assumption; as explained in the paper, the respective problems become undecidable when it is dropped. This represents limitations on the static analysis of DHNs.

That said, we do not believe that these assumptions impose substantial practical limitations for applying DHNs to dense or highly heterogeneous relational data (only for their static analysis).

Q3: In applications of DHNs where verification is important, which is not the case everywhere, our results on (un)decidability indeed point out practical limitations of using certain DHN models. We believe that this is a relevant contribution of our article. We also note, though, that other forms of verification (except satisfiability and implication) might still be feasible.

Q4: Indeed, the choice of homomorphism patterns is an important topic. For small patterns involving, say, three or four variables, it may be feasible to use all possible patterns, or at least a substantial subset of them, as in our local-transitivity experiment, where we used 13 patterns with at most three variables to reduce selection bias. Ideally, however, patterns would be selected in an application-guided manner using a more principled methodology. This is left for future work. As discussed in the conclusion, the results of Barceló et al. [3] provide important first steps in this direction.

Q5: Please see our answer to Reviewer 5x3M.

Reviewer YgoL · CommentOpenReview ↗

Thank you for your efforts. I would like to keep my score.

Reviewer 5x3MOpenReview ↗
Rating
4/6
Confidence
2/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 paper generalizes the Deep Homomorphism GNN (introduced by Maehara et. al.) for graphs to obtain neural architectures for relational databases. Since graphs and relational databases share several mathematical underpinnings (homomorphisms, mathematical logic, ....), this connection is natural and worth investigating.

The authors define such architectures (sum, max, mean) and prove theoretical results about their expressive power. They focus on the complexity of two (static analysis) problems defined over architectures themselves (i.e. emptiness/subsumption) and prove decidability results in that direction. Experimental support over synthetic datasets is also provided for the stated results.

Strengths and weaknesses

The paper is well-written and thorough. The application of DHNs to relational databases is both natural and interesting. The authors obtain clear characterizations of (or bounds on) the expressive power using appropriate logics, using standard tools from homomorphisms, logics and databases: The results are not too surprising, yet fairly solid. Due to the length of the appendix and a lack of time, it was not possible to check and validate all the proofs in the appendix.

The experimental section is not up to the mark: It mainly geared at empirically verifying the results, but it does not demonstrate whether DHN is sufficiently successful on relational database benchmarks, to be an interesting candidate for database learning. Of course, the use of directed graphs does go beyond the simple undirected graphs case, yet it would be more convincing to see DHNs in action on higher-arity structures (than just binary). An argument can be made if this is the right venue for this paper, as compared to perhaps a database conference.

Questions
Limitations

yes

Final justification

There are no changes to my original review/score.

Formatting concerns

none

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their effort and feedback.

The aim of our article is to study fundamental questions about DHNs, in the natural extension to relational databases. We believe that our results add significant new insight into DHNs, both on graphs and on relational databases. We certainly agree that evaluating the performance of DHNs on comprehensive relational database benchmarks, including higher-arity relations, would be valuable. Conducting such experiments is a substantial undertaking, which we deem beyond the scope of the present paper. The original DHN work provides evidence that DHNs can outperform standard GNNs on graph benchmarks. This does not by itself establish analogous gains on relational databases, but it provides complementary evidence that the architecture is useful not only on hand-crafted separation examples.

The practical usefulness of extending DHNs to relational databases is illustrated well by the recent workshop paper Lubarsky et al. Incorporating Deep Learning Design in Database Queries. VLDB 2026 Workshop: Tabular Data Analysis (TaDA) which considers DHNs in a database context.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…