A Lasso-Alternative to Dijkstra's Algorithm for Identifying Short Paths in Networks

Anqi Dong, Amirhossein Taghvaei, Tryphon T. Georgiou

TL;DR

This paper reframes the classic shortest-path network problem as a continuous lasso ($\ell_1$-regularized regression) optimization problem. By doing so, the authors reveal a surprising mathematical equivalence between the Least Angle Regression (LARS) algorithm and the traditional bi-directional Dijkstra algorithm, while unlocking fast, distributed proximal solvers (like ADMM) that excel at finding short paths in massive, dynamic networks.

What Problem Does This Paper Address?

Finding the shortest path between two nodes in a graph is one of the most fundamental problems in computer science, famously solved by Edsger Dijkstra in 1959. However, as modern networks grow to massive scales (e.g., continental road maps, massive social graphs, or high-resolution image grids), traditional greedy search algorithms face limitations.

Standard algorithms like Dijkstra's must typically be re-run from scratch if the network topology changes slightly. Furthermore, in many real-world applications, finding the absolute shortest path is not strictly necessary—a reasonably short path computed quickly is often preferred. The authors address this challenge by moving the problem out of discrete graph theory and into the realm of continuous convex optimization.

Methods

The authors introduce a novel lasso formulation for the shortest path problem.

  1. Linear Programming & Lasso Relaxation: They represent a path using an incidence vector $x$ and edge weights $W$. They then relax the discrete shortest-path problem into an $\ell_1$-regularized regression (lasso): $$\beta(\lambda) := \arg\min_{\beta} \frac{1}{2}\|y - Q\beta\|_2^2 + \lambda\|\beta\|_1$$ where $\beta = Wx$, $y$ represents the source-destination virtual edge, and $Q = DW^{-1}$ ($D$ being the graph incidence matrix).

  2. The LARS Connection: They prove mathematically (Theorem 8) that solving this lasso problem using the Least Angle Regression (LARS) algorithm step-by-step exactly replicates the behavior of the bi-directional Dijkstra algorithm, iteratively building two shortest-path trees from the source and destination until they connect.

  3. Proximal Solvers for Scale (ADMM & InADMM): To handle massive graphs where LARS becomes computationally intractable, they apply the Alternating Direction Method of Multipliers (ADMM) and an Inexact variant (InADMM). InADMM uses a Conjugate Gradient (CG) method to bypass expensive matrix inversions, dropping the per-iteration complexity from $\mathcal{O}(n^3)$ to $\mathcal{O}(m T_{CG})$, where $m$ is the number of edges and $n$ is the number of nodes.
  4. Warm-Starting: Unlike Dijkstra, ADMM allows for "warm-starts," meaning an existing path can be fed into the algorithm as a prior guess to rapidly update the path when the network topology changes.

Datasets

The authors evaluated their approach on three distinct types of network problems:

  • Nicholson’s Graph: A small, classic benchmark graph used to illustrate the step-by-step mechanics of the LARS-Dijkstra relationship.
  • Image Grid ("Intelligent Scissors"): A grid graph with 4,422 pixels (nodes) and 17,291 edges, where edge weights are determined by image features to perform interactive image segmentation.
  • Urban Road Networks: Real-world city extracts from OpenStreetMap for Athens ($n=1,009$, $m=2,340$) and Amsterdam (scaled up to $n=9,379$, $m=14,571$) to test route planning.
  • Random Geometric Networks: Large-scale synthetic graphs generated using the node structure of the CiteSeerX citation network, scaled up to 8,989 nodes and 48,819 edges.

Key Insights and Ideas

  • The Continuous-Discrete Bridge: The most striking insight is that a purely statistical regression tool (LARS) implicitly executes a classic discrete graph algorithm (bi-directional Dijkstra). The "joining times" of features in a lasso regression map perfectly to the discovery of new nodes in a graph search.
  • Optimization as a Framework for Approximation: By tuning the regularization parameter $\lambda$, the lasso solution can widen its "support." Instead of returning a single rigid path, a slightly higher $\lambda$ highlights a "minimum-time corridor"—offering multiple plausible alternative routes, which is highly useful for traffic routing.
  • Distributed and Parallel Potential: Because the problem is cast as a lasso regression, it can natively leverage decades of optimization engineering, including parallel lasso frameworks to solve multi-pair or all-pairs shortest path problems simultaneously.

Key Results

  • Computational Speedups: On the 4,422-node image segmentation task, InADMM and ADMM converged in just 36 and 29 steps respectively. InADMM took 1.73 seconds, vastly outperforming standard linear programming solvers (like dual-simplex and interior-point methods), which took between 26.6 and 32.2 seconds.
  • Scalability: As the Amsterdam road network was scaled up to finer segmentations ($m = 14,571$ edges), InADMM remained highly efficient and robust, successfully recovering the identical minimum-time corridors found by Dijkstra.
  • Topology Tracking: The authors demonstrated that utilizing a warm-start initialization allows the algorithm to adapt to topological graph changes with significantly faster convergence rates than starting anew.

Limitations and Future Work

  • No Negative Weights: The current framework cannot handle networks with negative edge weights. Extending the lasso formulation to accommodate negative weights remains an open challenge.
  • Exact vs. Approximate Trade-off: To guarantee the exact shortest path, $\lambda$ must approach zero, which can slow down proximal solvers. The algorithm is at its best when finding a reasonably short path quickly in massive networks, rather than guaranteeing absolute precision.

Summary updated

Abstract

We revisit the problem of finding the shortest path between two selected vertices of a graph and formulate this as an $\ell_1$-regularized regression -- Least Absolute Shrinkage and Selection Operator (lasso). We draw connections between a numerical implementation of this lasso-formulation, using the so-called LARS algorithm, and a more established algorithm known as the bi-directional Dijkstra. Appealing features of our formulation include the applicability of the Alternating Direction of Multiplier Method (ADMM) to the problem to identify short paths, and a relatively efficient update to topological changes.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Image-based intelligent scissors (n=4422, m=17291)InADMMconvergence steps36 stepsImage-grid shortest-path edge detection.
Source quote
L549: \caption{Example based on the image ( n = 4422 and m = 17291): ``Edge in image'' identified via InADMM, InADMM with initializer, ADMM, and Basis pursuit. These converge in 36, 34, 29, 47 steps, respectively, with running times 1.7308, 1.7618, 4.0249, 35.7527 seconds in MATLAB clock.
Image-based intelligent scissors (n=4422, m=17291)InADMM with initializerconvergence steps34 stepsImage-grid shortest-path edge detection; a pre-specified path is supplied as input.
Source quote
L549: \caption{Example based on the image ( n = 4422 and m = 17291): ``Edge in image'' identified via InADMM, InADMM with initializer, ADMM, and Basis pursuit. These converge in 36, 34, 29, 47 steps, respectively, with running times 1.7308, 1.7618, 4.0249, 35.7527 seconds in MATLAB clock.
Reported baseline / comparator measurements (4)
BenchmarkMethodMetricScoreProtocol / Evidence
Image-based intelligent scissors (n=4422, m=17291)InADMM baselinerunning time1.7308 sImage-grid shortest-path edge detection; running time reported in MATLAB clock.
Source quote
L549: \caption{Example based on the image ( n = 4422 and m = 17291): ``Edge in image'' identified via InADMM, InADMM with initializer, ADMM, and Basis pursuit. These converge in 36, 34, 29, 47 steps, respectively, with running times 1.7308, 1.7618, 4.0249, 35.7527 seconds in MATLAB clock.
Image-based intelligent scissors (n=4422, m=17291)InADMM with initializer baselinerunning time1.7618 sImage-grid shortest-path edge detection; a pre-specified path is supplied as input; run…
Source quote
L549: \caption{Example based on the image ( n = 4422 and m = 17291): ``Edge in image'' identified via InADMM, InADMM with initializer, ADMM, and Basis pursuit. These converge in 36, 34, 29, 47 steps, respectively, with running times 1.7308, 1.7618, 4.0249, 35.7527 seconds in MATLAB clock.
Image-based intelligent scissors (n=4422, m=17291)ADMM baselinerunning time4.0249 sImage-grid shortest-path edge detection; running time reported in MATLAB clock.
Source quote
L549: \caption{Example based on the image ( n = 4422 and m = 17291): ``Edge in image'' identified via InADMM, InADMM with initializer, ADMM, and Basis pursuit. These converge in 36, 34, 29, 47 steps, respectively, with running times 1.7308, 1.7618, 4.0249, 35.7527 seconds in MATLAB clock.
Image-based intelligent scissors (n=4422, m=17291)Basis pursuit baselinerunning time35.7527 sImage-grid shortest-path edge detection; running time reported in MATLAB clock.
Source quote
L549: \caption{Example based on the image ( n = 4422 and m = 17291): ``Edge in image'' identified via InADMM, InADMM with initializer, ADMM, and Basis pursuit. These converge in 36, 34, 29, 47 steps, respectively, with running times 1.7308, 1.7618, 4.0249, 35.7527 seconds in MATLAB clock.
BibTeX
@article{dong2026lasso,
  author = {Anqi Dong and Amirhossein Taghvaei and Tryphon T. Georgiou},
  title = {{A Lasso-Alternative to Dijkstra's Algorithm for Identifying Short Paths in Networks}},
  journal = {Networks},
  year = {2026},
  doi = {10.1002/net.70035},
}
Figure