cs.LGFeb 20, 2026

Unifying approach to uniform expressivity of graph neural networks

Authors: Huan Luo, Jonni Virtema

Organizations: School of Computer Science, University of Sheffield, UK · School of Computing Science, University of Glasgow, UK

Abstract

The expressive power of Graph Neural Networks (GNNs) is often analysed via correspondence to the Weisfeiler-Leman (WL) algorithm and fragments of first-order logic. Standard GNNs are limited to performing aggregation over immediate neighbourhoods or over global read-outs. To increase their expressivity, recent attempts have been made to incorporate substructural information (e.g. cycle counts and subgraph properties). In this paper, we formalize this architectural trend by introducing Template GNNs (T-GNNs), a generalized framework where node features are updated by aggregating over valid template embeddings from a specified set of graph templates. We propose a corresponding logic, Graded template modal logic (GML(T)), and generalized notions of template-based bisimulation and WL algorithm. We establish an equivalence between the expressive power of T-GNNs and GML(T), and provide a unifying approach for analysing GNN expressivity: we show how standard AC-GNNs and its recent variants can be interpreted as instantiations of T-GNNs.

Figures & tables

Explore similar work

CardsList
  1. Structural Preservation and the Logical Expressiveness of Graph Neural Networks

    Jun 16, 2026Przemysław Andrzej Wałęga, Bernardo Cuenca GrauGNN Expressivity

  2. Towards Understanding the Expressive Power of GNNs with Global Readout

    Apr 23, 2026Maurice Funk, Daumantas KojelisGraph Neural NetworksGNN Expressivity

  3. The Logical Expressiveness of Topological Neural Networks

    Apr 21, 2026Amirreza Akbari, Amauri H. Souza, Vikas GargGraph Neural NetworksGNN Expressivity