Quadratically-Regularized Optimal Transport on Graphs

Montacer Essid, Justin Solomon

TL;DR

This paper introduces a quadratic regularization framework for optimal transport (minimum-cost network flow) on graphs. Unlike the widely popular entropic regularization method, quadratic regularization preserves exact sparsity in edge flows and yields a dual problem governed by the graph Laplacian. The authors leverage this structure to design a highly efficient, exact Newton-type optimization algorithm that outperforms standard first-order methods.

What Problem Does This Paper Address?

Optimal Transport (OT) is a powerful mathematical tool for computing distances between probability distributions. When applied to graphs, it manifests as the classical minimum-cost network flow problem: how do we move mass from supply nodes to demand nodes along edges while minimizing total transportation cost?

However, standard linear programming approaches face two major hurdles:

  1. Non-uniqueness: Linear ground distances often result in multiple, indistinguishable optimal paths (e.g., due to cycles or symmetrical paths in large graphs), causing standard solvers to return unpredictable, unstable solutions.
  2. Scalability: Generic solvers struggle to scale to graphs with thousands or millions of nodes.

To fix this, researchers often add a "regularizer" to make the optimization problem strictly convex, ensuring a unique solution. The state-of-the-art approach uses entropic regularization (the Sinkhorn algorithm). However, entropic regularization forces the transport matrix to be completely dense—meaning mass is mathematically sent between every single pair of nodes, completely destroying the natural sparsity of the underlying graph.

Methods

The authors propose quadratic regularization for graph transport. Instead of penalizing the entropy of the global transport matrix, they add an $L^2$ penalty ($\frac{\alpha}{2} \sum_e J_e^2$) directly to the per-edge flows ($J_e$).

By deriving the mathematical dual of this quadratically-regularized problem, they uncover a beautiful geometric property: the Hessian (the matrix of second derivatives) of the dual objective function is exactly the unweighted graph Laplacian of the active subgraph (the set of edges currently carrying non-zero flow).

Using this insight, they develop an optimization algorithm called HessUpdate:

  • Alternating Strategy: It alternates between standard gradient ascent steps and pseudo-Newton steps.
  • Rank-1 Updates: As the algorithm iterates, edges enter or leave the active flow set. Instead of recomputing the graph Laplacian's pseudoinverse from scratch—an $O(|V|^3)$ operation—the algorithm uses highly optimized sparse rank-1 updates (via the CHOLMOD library) to update the Cholesky factorization dynamically.

Datasets

The authors evaluated their approach using synthetically generated graph structures rather than standard machine learning datasets:

  • Random Heavy-Tailed Graphs: Generated using the Viger-Latapy algorithm, creating connected graphs ranging from 50 to 5,000 nodes with vertex degrees restricted between 1 and 10 to mimic real-world networks.
  • Regular 2D Grids: Grid graphs ($\mathbb{R}^2$) ranging from $10 \times 10$ to $40 \times 40$ nodes to compare against specialized grid-based solvers.

Key Insights and Ideas

  • Sparsity is Preserved: The most significant theoretical finding (Proposition 4) is that for a sufficiently small regularization parameter ($\alpha$), the regularized solution is exactly one of the valid solutions to the unregularized linear problem. This allows practitioners to find a clean, unique, and sparse solution without altering the true physics of the original problem.
  • Non-Monotonicity of Edge Activation: Intuitively, one might think that increasing the regularization parameter ($\alpha$) would smoothly and monotonically add more edges to the active network. The authors disprove this with a counterexample (illustrated in Figure 2), showing that changing $\alpha$ can cause complex mass transfers that deactivate previously open pathways.
Counterexample showing that the active set of edges does not grow monotonically as the regularization parameter alpha changes.

Key Results

  • Speedups: The proposed HessUpdate algorithm consistently and significantly outperformed standard gradient descent (GradDescent) across all graph sizes. For large graphs (5,000 nodes), HessUpdate converged in roughly 3 to 14 seconds, whereas GradDescent took upwards of 540 seconds.
  • Comparison to Simplex: For small regularizers ($\alpha \le 10^{-2}$), HessUpdate achieved the exact same objective value as MATLAB’s native dual simplex linear programming solver (linprog), while maintaining comparable or better execution times on large graphs.
  • Grid Performance: When tested against Fast L1 (a state-of-the-art primal-dual method designed specifically for grids), HessUpdate was faster in the high-regularization regime, though Fast L1 remained preferable for low-regularization on pure grid geometries.

Limitations and Future Work

While highly efficient, the algorithm's Newton step relies on handling a non-full-rank graph Laplacian, meaning its null space grows with the number of connected components in the active subgraph. Additionally, the authors proposed a "Monotonicity Conjecture" regarding mass flow trends that they observed experimentally but could not yet fully prove mathematically.

Future work includes scaling the architecture to massive graphs that cannot fit into standard computer memory, exploring parallel processing implementations, and extending this quadratic analysis to continuous domains (the Beckmann model).

Summary updated

BibTeX
@article{essid2018quadratically,
  author = {Montacer Essid and Justin Solomon},
  title = {{Quadratically-Regularized Optimal Transport on Graphs}},
  journal = {SIAM J. Sci. Comput.},
  year = {2018},
  doi = {10.1137/17m1132665},
}
Figure