Optimal Transport Metrics for Graph Representation Learning

This direction is merged into another direction: graph-based optimal transport. Its last version stays readable and citable here.

Version 1 of 120 papers20 conceptsfrozen 2026-10-04

Traditional graph analysis often suffers from a "rigidity" problem. In the classical Weisfeiler-Lehman (WL) framework, two node neighborhoods are either identical or they are not. This binary view makes it difficult to quantify how similar two nodes are, how a network might be "curved," or how well a model will generalize to a slightly different graph.

A growing body of research addresses this by replacing discrete comparisons with Optimal Transport (OT). By treating neighborhoods and structural hierarchies as probability distributions, researchers can use the Wasserstein distance (or Earth Mover’s Distance) to create a continuous, geometric language for graphs.

Neighborhoods as Distributions

The core intuition behind this shift is to stop looking at a node's neighbors as a fixed set and start looking at them as a distribution of mass. If node $A$ has three neighbors and node $B$ has three neighbors, how much "work" does it take to transform the neighborhood of $A$ into the neighborhood of $B$?

This "work" is the Wasserstein distance. As Ze Ye, Chao Chen, and colleagues explain in Curvature Graph Network, this metric allows us to quantify the structural overlap between nodes. If the transport cost is low, the nodes are effectively part of a dense, well-connected cluster. If the cost is high, the edge between them likely acts as a bridge or a bottleneck.

Measuring Shape with Ollivier-Ricci Curvature

This OT-based comparison provides a discrete analogue to Ricci curvature from differential geometry. In a smooth manifold, positive curvature implies that balls (neighborhoods) are closer together than their centers are. In a graph, Ollivier-Ricci Curvature (ORC) uses the Wasserstein distance to measure the same thing.

As demonstrated by Jayson Sia and Paul Bogdan in Ollivier-Ricci Curvature-Based Method to Community Detection in Complex Networks, edges with negative curvature act as "bridges" between communities. By iteratively removing these negatively curved edges, we can reveal the natural hierarchical structure of a network. This geometric approach has practical implications beyond pure theory; for instance, Anish K. Simhal and Allen Tannenbaum used ORC to identify changes in brain network robustness in children with autism that traditional methods overlooked in Measuring robustness of brain networks in autism spectrum disorder with Ricci curvature.

Softening the Weisfeiler-Lehman Test

The WL test is the gold standard for graph isomorphism, but its "all-or-nothing" nature is a weakness when dealing with noisy, real-world data. Till Hendrik Schulz and Stefan Wrobel proposed a "relaxed" version of this test in A Generalized Weisfeiler-Lehman Graph Kernel.

Instead of checking if labels match exactly, they treat sets of subtrees as distributions and use Wasserstein distance to find similarities. This allows the model to recognize that two nodes are "mostly similar" even if their neighborhoods aren't identical. Similarly, Samantha Chen and Yusu Wang developed the WL distance in Weisfeiler-Lehman Meets Gromov-Wasserstein, providing a polynomial-time computable metric that turns the qualitative WL test into a quantitative measure of graph difference.

Tree Mover’s Distance and GNN Theory

The most recent evolution of this idea scales OT from local neighborhoods to entire graphs. The Tree Mover’s Distance (TMD) treats a graph as a collection of "computation trees"—the local structures that a Graph Neural Network (GNN) actually "sees" during message passing.

In Generalization, Expressivity, and Universality of Graph Neural Networks on Attributed Graphs, Levi Rauchwerger, Stefanie Jegelka, and Ron Levie use hierarchical optimal transport to compare these distributions of trees. This framework provides a unified theory for GNNs:

  1. Expressivity: If the TMD between two graphs is non-zero, a sufficiently powerful GNN can distinguish them.
  2. Generalization: If two graphs are close in TMD, a GNN's performance on one will likely transfer to the other.

This has immediate practical utility for data efficiency. Mika Sarkin Jain and colleagues show in Subsampling Graphs with GNN Performance Guarantees that TMD can be used to subsample massive graph datasets while maintaining rigorous guarantees on the performance of the resulting models. By selecting a subset of graphs that "covers" the distribution of computation trees, we can train models faster without losing accuracy.

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_optimal_transport_metrics_for_graph_repr_5151bdc3,
  title = {Optimal Transport Metrics for Graph Representation Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/optimal-transport-metrics-for-graph-representation-learning/rdr_5151bdc39d5f43d2be3b64d26529a96e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_optimal_transport_metrics_for_graph_repr_5151bdc3_v1,
  title = {Optimal Transport Metrics for Graph Representation Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/optimal-transport-metrics-for-graph-representation-learning/rdr_5151bdc39d5f43d2be3b64d26529a96e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}