Universal Function Approximation on Attributed Graphs

This direction is merged into another direction: continuous graph limits. Its last version stays readable and citable here.

Version 1 of 112 papers15 conceptsfrozen 2026-10-04

Graph Neural Networks (GNNs) are often introduced through the lens of the Weisfeiler-Leman (1-WL) test—a discrete algorithm for determining if two graphs are isomorphic. While this "expressivity" perspective tells us whether a GNN can distinguish two structures, it doesn't fully explain why GNNs are so effective at learning complex functions over data.

Recent theoretical work has shifted the focus from discrete classification to universal approximation. This research direction explores how Message-Passing Neural Networks (MPNNs) can approximate any continuous or measurable function on graphs, provided they have sufficient depth and width.

Message Passing as a Universal Language

To understand why MPNNs can approximate functions, we first need to view message passing not just as a heuristic, but as a formal language. Floris Geerts, Jasper Steegmans, and Jan Van den Bussche introduced MPLang in On the Expressive Power of Message-Passing Neural Networks as Global Feature Map Transformers. They demonstrated that the standard MPNN architecture is flexible enough to express any feature transformation built from basic message-passing operations.

The intuition is similar to the Universal Approximation Theorem for standard MLPs: just as a sum of sigmoids can fit any curve, a sequence of message-passing steps can "sift" through graph neighborhoods to compute any valid transformation of node features. On graphs with bounded degrees, these models act as universal approximators for continuous feature maps.

Bridging the Gap Between Discrete and Continuous

A major challenge in graph theory is that graphs are discrete objects, but approximation theory usually deals with continuous functions. How do we define "closeness" between two graphs?

Levi Rauchwerger, Stefanie Jegelka, and Ron Levie addressed this in Generalization, Expressivity, and Universality of Graph Neural Networks on Attributed Graphs by introducing a "mover's distance" based on hierarchical optimal transport. By treating graphs as points in a metric space, they proved that MPNNs are dense in the space of continuous functions over attributed graphs. This means that for any continuous graph function, there exists an MPNN that can mimic it to arbitrary precision.

This continuity is vital for generalization. If a GNN is stable—meaning small changes in the graph (like adding an edge or slightly changing a node attribute) result in small changes in the output—it can effectively learn from one set of graphs and perform well on unseen ones.

Approximating the Discontinuous

In many real-world tasks, we don't just care about continuous functions. We might want to learn a logical predicate (e.g., "is this graph a cycle?") or a step function. Giuseppe Alessio D’Inverno and Maria Lucia Sampoli showed in On the approximation capability of GNNs in node classification/regression tasks that GNNs can approximate any measurable function, including discontinuous ones.

They established a constructive bound: for a graph with $r$ nodes, $2r-1$ layers are sufficient to achieve this approximation. This moves the theory beyond the Stone-Weierstrass theorem (which is limited to continuous functions) and into the realm of "approximation in probability," allowing GNNs to handle discrete logical structures.

The Limit of Large Graphs

As graphs grow to include millions of nodes, the discrete nature of the graph becomes less important than its global structure. Researchers use graphons and graphops to represent the continuous limits of these structures.

  1. Fine-grained Similarity: Jan Böker, Christopher Morris, and colleagues proved in Fine-grained Expressivity of Graph Neural Networks that MPNNs can capture a continuous spectrum of graph similarities. This explains why even untrained GNNs can be useful: their architecture inherently respects the structural limits of the graph.
  2. Sparse vs. Dense: A long-standing gap existed between theories for dense graphs and sparse ones. Ofek Amran and Ron Levie used "graphop analysis" in A Graphop Analysis of Graph Neural Networks on Sparse Graphs to show that MPNNs can uniformly approximate functions across both sparse and dense topologies of any size.

Overcoming the Limits of Standard Message Passing

Despite their power, standard MPNNs have known failure modes, such as an inability to distinguish certain regular graphs or "over-squashing" information from distant nodes. To reach true universality in all contexts, researchers are evolving the architecture:

  • Structural Identifiers: Nicolas Keriven, Alberto Bietti, and Samuel Vaiter showed that while standard GNNs lose power on large random graphs, Structural GNNs (SGNNs)—which use unique node identifiers—are universal approximators that can distinguish complex community structures that standard GNNs cannot see.
  • Global Diffusion: Jacob Bamberger, Michael M. Bronstein, and others proposed Bundle Neural Networks (BuNNs) in Bundle Neural Network for message diffusion on graphs. By combining global message diffusion with injective positional encodings, these models function as compact uniform approximators that bypass the local bottlenecks of traditional message passing.

By unifying these perspectives, the research demonstrates that GNNs are not merely structural filters, but a robust class of universal functional approximators capable of mapping the complex geometry of attributed graphs to any desired output.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_universal_function_approximation_on_attr_71b1d7d6,
  title = {Universal Function Approximation on Attributed Graphs},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/universal-function-approximation-on-attributed-graphs/rdr_71b1d7d62f8c43038d2feee60d4459c7},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_universal_function_approximation_on_attr_71b1d7d6_v1,
  title = {Universal Function Approximation on Attributed Graphs},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/universal-function-approximation-on-attributed-graphs/rdr_71b1d7d62f8c43038d2feee60d4459c7/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}