On the approximation capability of GNNs in node classification/regression tasks

Giuseppe Alessio D'Inverno, Monica Bianchini, Maria Lucia Sampoli, Franco Scarselli
6/16/2021
cs.LGcs.CV
gnn

Official code: AleDinve/static-gnn (0 stars, Jupyter Notebook, last commit 2023-11-08).

Abstract

Graph Neural Networks (GNNs) are a broad class of connectionist models for graph processing. Recent studies have shown that GNNs can approximate any function on graphs, modulo the equivalence relation on graphs defined by the Weisfeiler--Lehman (WL) test.

Show full abstract

However, these results suffer from some limitations, both because they were derived using the Stone--Weierstrass theorem -- which is existential in nature, -- and because they assume that the target function to be approximated must be continuous. Furthermore, all current results are dedicated to graph classification/regression tasks, where the GNN must produce a single output for the whole graph, while also node classification/regression problems, in which an output is returned for each node, are very common. In this paper, we propose an alternative way to demonstrate the approximation capability of GNNs that overcomes these limitations. Indeed, we show that GNNs are universal approximators in probability for node classification/regression tasks, as they can approximate any measurable function that satisfies the 1--WL equivalence on nodes. The proposed theoretical framework allows the approximation of generic discontinuous target functions and also suggests the GNN architecture that can reach a desired approximation. In addition, we provide a bound on the number of the GNN layers required to achieve the desired degree of approximation, namely $2r-1$, where $r$ is the maximum number of nodes for the graphs in the domain.

View on arXivView PDF

Code Implementations(1)

Code repo associated to the paper "On the approximation capability of GNNs in node classification/regression tasks"

00Jupyter Notebook, PythonNov 8, 20233 years ago

Similar Papers

Cite this paper

@article{dinverno2021approximation,
  title  = {On the approximation capability of GNNs in node classification/regression tasks},
  author = {Giuseppe Alessio D'Inverno and Monica Bianchini and Maria Lucia Sampoli and Franco Scarselli},
  year   = {2021},
  eprint = {2106.08992},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.08992}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.08992.svg)](https://codeofpaper.com/paper/2106.08992)

Discussion