NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

All You Need is Resistance: On the Equivalence of Effective Resistance and Certain Optimal Transport Problems on Graphs

Sawyer Jack Robertson, Zhengchao Wan, Alexander Cloninger · DOI

Introduction

In data science and machine learning, comparing probability distributions is a foundational task. When these distributions reside on a graph—such as traffic patterns on a road network or signal activations in a brain scan—researchers typically employ one of two frameworks: Optimal Transport (OT) for its geometric "earth-moving" intuition, or Effective Resistance (ER) for its roots in electrical circuit theory and random walks.

A recent study by Robertson, Wan, and Cloninger argues that these two approaches are fundamentally linked. By introducing a family of "Beckmann distances," the authors demonstrate that Effective Resistance is a specific, computationally efficient instance of a transport problem.

The Computational Challenge

Comparing distributions on graphs is traditionally difficult. The 1-Wasserstein distance (Earth Mover’s Distance) is favored for its structural awareness but requires solving a linear program for every pair of distributions. This results in a computational bottleneck of approximately $O(n^3)$ for $n$ nodes, which is prohibitive for large-scale datasets.

Conversely, Effective Resistance is a classic graph metric measuring connectivity between nodes, but it was historically limited to individual points (Dirac measures). The authors sought a metric combining the structural awareness of OT with the linear-algebraic efficiency of graph Laplacians.

Methods: The Beckmann Formulation

The authors bridge this gap using the Beckmann formulation of transport, focusing on "flows" (mass movement along edges) rather than "couplings" (mass movement between points).

  1. $p$-Beckmann Distances: They define a family of distances $\mathcal{B}_{w,p}$ that minimize the $p$-norm of the flow $J$ across edges.
  2. The $p=1$ and $p=2$ Equivalence:
    • When $p=1$, the distance corresponds to the standard 1-Wasserstein distance.
  3. When $p=2$, the distance is exactly equivalent to the quadratic form of the graph Laplacian's pseudoinverse: $(\mu - \nu)^T L^\dagger (\mu - \nu)$. This is the measure-based Effective Resistance.
Comparison of optimal flows for $p=1$ (Wasserstein) and $p=2$ (Effective Resistance) on a hexagonal lattice.
  1. Linearized OT: The $p=2$ case (Effective Resistance) allows for a "linear embedding." A distribution $\mu$ can be featurized as $L^{-1/2}\mu$, reducing distribution comparison to simple Euclidean distance in the embedded space.

Key Insights and Results

The realization that Effective Resistance is Optimal Transport with a 2-norm penalty transforms a complex optimization into a linear system problem ($Lx=b$).

Computational Efficiency

To compute all-pairs distances for $N$ samples on a graph of $n$ nodes, standard OT requires $O(n^3 N^2)$. The Beckmann approach requires $O(n^3)$ once for the Laplacian inversion, followed by $O(n^2 N^2)$ for matrix-vector products, offering significant speedups.

Experimental Validation

Using the Pen-Based Recognition of Handwritten Digits dataset and synthetic graphs, the authors found:

  • High Correlation: The 2-Beckmann distance is highly correlated with the 2-Wasserstein distance. In experiments with digits, they observed $\mathcal{W}_2 \approx 8.446 \mathcal{B}_2$.
  • Clustering Performance: In unsupervised spectral clustering, the 2-Beckmann kernel performed nearly identically to the 2-Wasserstein kernel, even slightly outperforming it on the Rand Index (0.940 vs. 0.935).
  • Linear Separability: The authors proved that if classes are separable in the original space, they remain linearly separable after the $L^{-1/2}$ embedding.

Conclusion and Future Directions

This work unifies graph theory and optimal transport, providing a probabilistic interpretation of resistance between measures via random walk "access times." Future work includes extending these results to directed graphs and exploring $p$-Beckmann distances for values other than 1 and 2. Integrating resistance-based transport into Graph Neural Networks (GNNs) could also provide efficient structural regularizers.

Summary updated

BibTeX
@misc{robertson2024all,
  author = {Sawyer Jack Robertson and Zhengchao Wan and Alexander Cloninger},
  title = {{All You Need is Resistance: On the Equivalence of Effective Resistance and Certain Optimal Transport Problems on Graphs}},
  year = {2024},
  eprint = {2404.15261},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.15261},
}
Figure